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 8797051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:46:00+00:00 2026-06-13T23:46:00+00:00

Basically, I have an SQL Updateable report based on the following sample SQL query:

  • 0

Basically, I have an SQL Updateable report based on the following sample SQL query:

select A, B, C from my_table;

Based on this report, I have made column B a SELECT LIST based on a Named LOV – I have also assigned this column an id of “lov_select”

Column C here is also a text area

My question and unsure how to do this, is, as this report can vary in rows, assuming this report returns 3 rows, based on the value selected from the Column B – select list, I want to use this value in column B select list to retrieve another value from a table and then return this value into Column C text are field, alongside this select list value used.

I would like to do this via a Dynamic Action.

For example:

Column A                Column B (select list LOV)   Column C
----------------------- ---------------------------- ------------------------------------
Row 1                   NAME1                        returns 5                       
Row 2                   NAME2                        returns 6
Row 3                   NAME3                        returns 7

So if I change row 2 Column B and select “NAME2”, I then want to execute a query using the value “NAME2” which would return a value of 6, which I then would like populated alongsde NAME2 into Column C.

  • 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-13T23:46:01+00:00Added an answer on June 13, 2026 at 11:46 pm

    Manual tabular form with source:

    select 
    apex_item.text(1, empno) empno,
    apex_item.text(2, ename) ename,
    apex_item.text(p_idx => 3, p_value => deptno, p_size => 4, p_maxlength => 2, p_attributes => 'class="deptno"') deptno,
    apex_item.text(4, null) dname
    from emp
    

    2 possible solutions:

    1. Dynamic action with ajax process

      • Event: Change
      • Selection Type: jQuery selector
      • jQuery selector: .deptno
      • Condition: no condition

      True action: Execute javascript code

      • Fire on page load: unchecked

        var lFetchFor = $(this.triggeringElement).val(), 
            lTarget = $(this.triggeringElement).closest('tr').find('input[name="f04"]');
        
        $.post('wwv_flow.show', 
               {"p_request"      : "APPLICATION_PROCESS=fetch_value",
                "p_flow_id"      : $v('pFlowId'),
                "p_flow_step_id" : $v('pFlowStepId'),
                "p_instance"     : $v('pInstance'),
                "x01"            : lFetchFor}, 
               function(data){
                  lTarget.val(data);
               });
        
      • No affected element type

    2. Dynamic actions only and hidden items

      • Event: Change
      • Selection Type: jQuery selector
      • jQuery selector: .deptno
      • Condition: no condition
      • True action: Set value
        • Set type: Javascript expression
        • Javascript expression: $(this.triggeringElement).val()
        • Fire on page load: unchecked
        • Affected elements:
          • Selection type: Item(s)
          • Item(s): P37_FIND_DEPTNO
      • True action: Set value
        • Set type: SQL statement
        • SQL Statement: select dname from dept where deptno = :P37_FIND_DEPTNO;
        • Page items to submit: P37_FIND_DEPTNO
        • Fire on page load: unchecked
        • Affected elements:
          • Selection type: Item(s)
          • Item(s): P37_FIND_DEPTNO_RESULT
      • True action: Execute javascript code

        • Code:

          $(this.triggeringElement).closest('tr').find('input[name="f04"]').val($v ('P37_FIND_DEPTNO_RESULT'));
          
        • Fire on page load: unchecked

        • No affected element type
      • 2 hidden items, value protected set to No
        • P37_FIND_DEPTNO
        • P37_FIND_DEPTNO_RESULT

    Both take care of fetching the value, just depends on how you’d rather solve it.

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

Sidebar

Related Questions

so basically I have this scope(sql): scope.to_sql => SELECT \offers\.* FROM \offers\ INNER JOIN
I have a sql query that gives me array in following format. Basically the
I have an SQL query that I am looking to optimize. SELECT * FROM
I have below SQL query: SELECT * FROM ( SELECT S.aCol, S.bCol, S.cCol, ROW_NUMBER()
I am trying to make a sql query following these rules: basically i have
Basically I have 2 SQL queries from 2 different databases and I am trying
I have an SQL table with basically the following structure: PK (int, primary key),
I have an sql query pulling a few results from different tables, one of
SQL 2008 Basically i have a dataset that looks like this: AcctID AcctType AcctSubType
I have a SQL query that has me stumped. Basically, I have a Recipes

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.