i want to make form to call report which retreive data between two date those i write it in the form .
ijust made the report and i made in it 2 variable called d1 and d2 , then i made button in this form with 2 text item called d1 and d2 then i run the form to call this report but the text item not allow to me to insert the date however i justified the data type and format mask and every thing .
i wrote this trigger in the button (when button pressed):
Declare
d1 date ;
d2 date ;
PL paramlist;
Begin
PL:=create_parameter_List('d1');
PL:=create_parameter_List('d2');
add_parameter(PL,'D1',text_parameter,to_char(d1));
add_parameter(PL,'D2',text_parameter,to_char(d2));
Run_product(Reports,'c:\store_room\by date.rdf',asynchronous,RunTime,FileSystem,PL);
Destroy_Parameter_List(PL);
End;
ijust made the report and i made in it 2 variable called d1 and d2 , then i made button in this form with 2 text item called d1 and d2 then i run the form to call this report but the text item not allow to me to insert the date however i justified the data type and format mask and every thing .
i wrote this trigger in the button (when button pressed):
Declare
d1 date ;
d2 date ;
PL paramlist;
Begin
PL:=create_parameter_List('d1');
PL:=create_parameter_List('d2');
add_parameter(PL,'D1',text_parameter,to_char(d1));
add_parameter(PL,'D2',text_parameter,to_char(d2));
Run_product(Reports,'c:\store_room\by date.rdf',asynchronous,RunTime,FileSystem,PL);
Destroy_Parameter_List(PL);
End;