Home » Developer & Programmer » Forms » passing parameters to chart
passing parameters to chart [message #214825] Thu, 18 January 2007 04:12 Go to next message
fassi_79
Messages: 9
Registered: July 2006
Junior Member
I have created a chart with a paramter p_1 initial value 2000. i write this code in form's button when-button-press

declare
pl_id ParamList;
begin
pl_id := Get_Parameter_List('tmpdata');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;

pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id,'p_1',text_PARAMETER,:txt_sal);
Run_Product( graphics,'c:\chart1',SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id,null);


end;


but chart showed with intial value parameter.
Re: passing parameters to chart [message #215362 is a reply to message #214825] Sun, 21 January 2007 21:32 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Don't use the item name (':txt_sal') alone. Always place the blockname as well as the itemname. Have you tried testing the parameter passing by using a specific value? For example: "Add_Parameter(pl_id,'p_1',text_PARAMETER,'100');"

David
Previous Topic: Error to connect Outlook with Oracle.
Next Topic: error while executing chart from form
Goto Forum:
  


Current Time: Fri Sep 20 14:32:12 CDT 2024