I have the following tabular report using the following query:
select id,
name,
telephone,
apex_item.checkbox2(1,id) as "Tick when Contacted",
apex_item.text(20,my_date) as "Date Contacted",
apex_item.textarea(30,my_comment,5,80) as "Comment"
from my_table
This report displays 10 records where the driving key is the checkbox assigned to F01.
My problem is, as this is a tabular report, using Oracle APEX_APPLICATION.G_F01.COUNT - how can I access the values of the textarea field, where "my_comment" is a user enterable value on the report and not from a database column/table?
From what I can see, it seems to be a sequence issue and if the records you enter are not in the correct order then values are missed.
I am only ticking the checkbox for row 1, 3 and 5 and so expect to return the values for textarea fields that relate to these selected rows only.
Yes, it gets tricky when your tabular form contains checkboxes. In your example, g_f01 will only contain 3 elements with values 1, 3, 5 but array g_f30 will contain 10 elements.
usually when using apex_item to build tabular forms it is best to also use an APEX collection:
apex_item.checkbox2(1,seq_id)
So in your example you might first update the APEX collection with to indicate which rows have been ticked by setting c050 to 'Y':
Then update it with the other changes:
Finally apply the relevant changes to my_table:
Simple as that...?!