Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8446977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:04:16+00:00 2026-06-10T10:04:16+00:00

I have the following tabular report using the following query: select id, name, telephone,

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:04:17+00:00Added an answer on June 10, 2026 at 10:04 am

    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:

    1. Populate the APEX collection on entry to the page with the relevant data from my_table. Hold the ID of the mytable rows in a hidden item e.g. apex_item.hidden(2,id).
    2. Write the report to work from the collection rather than my_table, and to use seq_id rather than ID in the checkbox item: apex_item.checkbox2(1,seq_id)
    3. On submit, use the g_fxx arrays to update the collection – oftne using more than one pass.
    4. Finally use the collection to update my_tabl

    So in your example you might first update the APEX collection with to indicate which rows have been ticked by setting c050 to ‘Y’:

    for i in 1..apex_application.g_f01.count loop
        apex_collection.update_member_attribute('MYCOLL', apex_application.g_f01(i), 
          50, 'Y');
    end loop;
    

    Then update it with the other changes:

    for i in 1..apex_application.g_f02.count loop
        apex_collection.update_member_attribute('MYCOLL', apex_application.g_f02(i), 
          20, apex_application.g_f20(i));
        apex_collection.update_member_attribute('MYCOLL', apex_application.g_f02(i), 
          30, apex_application.g_f30(i));
    end loop;
    

    Finally apply the relevant changes to my_table:

    for r in (select c002, c020, c030 
              from apex_collection
              where collection_name = 'MYCOLL'
              and c001 = 'Y' -- Checked rows only
             )
    loop
        update my_table
        set my_date = r.c020
        ,   my_comment = r.c030
        where id = r.c002;
    end loop;
    

    Simple as that…?!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In SQL Reporting Services 2005 SP3, we have the following tabular report: JobName Product
Have following String built SQL query: StringBuilder querySelect = new StringBuilder(select * from messages
I have following nested objects. I am using @Valid for validation in my controller.
I have following SQL statementL: select DATE(bla), count(*) from tableA group by DATE(bla) UNION
Friends, I have written the following JavaScript to ascertain which row of an tabular
I have the following code: $('#refresh').click(function () { alert($('.report-container').length); $('.report-container').each(function () { var accordian
I have tabular data with the following fields constituting a record: SourceID SourceLabel SourceGroupID
I have following code that creates Linq query. I've never used Linq until today
I'm implementing a system following version 2.0 of the WCAG guidelines. I have tabular
Have following validation for year value from text input: if (!year.match(new RegExp('\\d{4}'))){ ... }

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.