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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:15:10+00:00 2026-06-11T01:15:10+00:00

I have the following select statement but unsure how to setup the dynamic action

  • 0

I have the following select statement but unsure how to setup the dynamic action to assign the current sysdate when the user select
an option from with the LOV. I basically want to populate automatically the “DATE_CALLED” field to sysdate when a LOV selection is
made via a Dynamic Action.

Trying to use the same processing from this thread that was against a checkbox but cannot seem to work out – see:

Oracle ApEx Checkbox to Manipulate Other Values When Checked/Unchecked

select  APEX_ITEM.HIDDEN(1,change_id) ||
        APEX_ITEM.HIDDEN(2,contact_id) ||
        APEX_ITEM.SELECT_LIST_FROM_LOV(p_idx => 10,
                                       p_value => reason_id,
                                       p_lov => 'LOV_REASONS',
                                       p_attributes => 'class="lov_select"',
                                       p_show_null => 'YES',
                                       p_null_value => NULL,
                                       p_null_text => '--- Please select a reason ---') reas,
        APEX_ITEM.TEXT(p_idx => 20, 
                       p_value => TO_CHAR(date_contacted,'DD/MM/YYYY HH24:MI'),
                       p_size => 14,
                       p_attributes => 'class="date_val" readonly="readonly" style="background-color:#B0C4DE;border:1px solid #999999;"') "DATE_CALLED",
        APEX_ITEM.TEXTAREA(p_idx => 30,
                       p_value => comments,
                       p_rows => 2, 
                       p_cols => 30 ) "MPA_COMMENT"
from  MY_TABLE

For the Dymanic Action, I have the following:

Dynamic action: "lov selection"
Event: Change
Selection Type: jQuery Selector
jQuery Selector: .lov_select (this is the class I added to the select list from lov in the sql)
Condition: JavaScript Expression
Value: ****** Unsure what I need to put here ******

For True Action, I have the following:

True Action:
Sequence: 10
Action: Execute PL/SQl Code
Fire On Page Load: No
Code: :P1_DEF_DATE := TO_CHAR(SYSDATE,'DD/MM/YYYY HH24:MI'); and have Page Item Submitted and Returned

Sequence: 20
Action: Execute JavaScript Code
Fire On Page Load: No
Code: $(this.triggeringElement).closest("tr").find("td[headers='DATE_CALLED'] input").val($v('P1_DEF_DATE'));

This code is not working as $(this.triggeringElement) is not correct for a select list.

How can I achieve what I need based on a select_list_from_lov scenario and not a checkbox?

  • 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-11T01:15:11+00:00Added an answer on June 11, 2026 at 1:15 am

    I used the condition on the checkbox to distinguish between the checked/unchecked state, and to be able to define both true and false actions. You don’t really need this on the checkbox: change will fire whenever the value changes (ie: user selects another option).

    However, if you want to catch an invalid/null option you could use the condition, but instead of javascript expression use one of the operators to test the value (eg: “=” with “1”)

    To further elaborate on the action on your select list:
    this is the query i used to set up an example:

    select 
    apex_item.checkbox2(p_idx => 1, p_value => empno, p_attributes => 'class="check_select"') empselection,
    apex_item.text(2, :P14_DEF_TEXT) empname,
    APEX_ITEM.SELECT_LIST_FROM_LOV(p_idx => 3,
                                           p_value => NULL,
                                           p_lov => 'LOV_REASONS',
                                           p_attributes => 'class="lov_select"',
                                           p_show_null => 'YES',
                                           p_null_value => NULL,
                                           p_null_text => '--- Please select a reason ---') reas,
    apex_item.text(4, null) some_text,
    empno,
    ename,
    comm
    from emp
    

    I used an lov with static values for LOV_REASONS.

    Dynamic action on lov select

    Code in True action:

    $(this.triggeringElement).closest("tr").find("td[headers='SOME_TEXT'] input").val("THIS IS A TEST");
    

    This seems to work fine for me.

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

Sidebar

Related Questions

I have the following SQL statement: SELECT ID, NAME FROM myTable WHERE ID LIKE
I have the following MySQL query statement: SELECT * FROM table1 INNER JOIN table2
I have a SQL statement like the following: select A from table1, (select B
I have the following statement SELECT b.Prig FROM Tirr tr JOIN Bud b ON
I have the following select statement where I need to sum each task from
I have the following sql prepared statement: SELECT * FROM video WHERE video_name LIKE
I have the following Select statement, but want to change it to use iner
I have the following SQL-statement: SELECT DISTINCT name FROM log WHERE NOT name =
I have the following SQL statement: SELECT * FROM cars car LEFT JOIN (SELECT
I have the following sql statement: SELECT COUNT(table2.programName), table2.programName FROM table1 LEFT JOIN table2

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.