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: 10180
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: returning list item datatype values to number datatype
Next Topic: FRM-40735: ON-ERROR trigger raised unhandled exception ORA-06508
Goto Forum:
  


Current Time: Sun Aug 20 01:10:04 CDT 2017

Total time taken to generate the page: 0.49231 seconds