Looping through report paramters
UsmanPKJan 26 2013 — edited Jan 29 2013Dear All,
I have a problem regarding report parameters.
I have given a taskt save report paramters to a table REP_INFO structure blow.
Report Name, Paramter name, Value, Report Run Date/Time
------------------------------------------------------------------------------------
Now I have 5 report paramters, ORG_ID, P_FDATE,P_TDATE, LOT_NO, LOT_QUANTITY
I have applied an INSERT query in AFTER PARAMTER FORM TRIGGER.
Report Trigger: AFTER_PARAMTER_FORM
----------------------------------------------------------
INSERT INTO REP_INFO VALUES (......................)
ISSUES:
--------------------------------
1) Should I have to issue seperate INSERT statements for each paramter?
2) Problem get worse when want to add three additional paramters to the report. What the solution?
3) Can't we dynamically refer report paramter name and insert values in a LOOP through using a single INSERT statement????
Best Regards,
Usman