Set the value of the element

Nice day

I have a form with a data block and two elements in the data block. The first element is a checkbox control, while the second is an id I have set up a trigger on the ID element (after CHANGE) which must set the checkbox item if the ID has a system ID valid. The problem I have is that I can't seem to be able to set the check box. I need advice.

Data block = VARREQ
Articles:
USE_VAR_FLAG (valid values are "Y", "N")
VAR_ID (valid values are a number)

The code I've tried so far:

Start
: VARREQ. USE_VAR_FLAG: = 'Y ';
end;

This does not set the value of the checkbox.

Hello

Sometimes we need to test pls create a button insert your code after change of BUTTON-WHEN-PRESSED new trigger
then display message of your box it will come back?

happy u solved your problem it comes to choice of trigger is not a code problem :)

I think you can also use WHEN-VALIDATE-RECORD release...

Kind regards

Amatu Allah

Published by: Amatu Allah on May 15, 2012 15:03

Tags: Oracle Development

Similar Questions

  • Set a value of an element of value in the column of a checkbox (not ROWID) in an interactive report APEX 4

    I have an interactive relationship with an APEX_APPLICATION. CHECKBOX (1,MYCOLUMN) I want users to check the box in the column of the report, and then click a button.  When they click this button I want the value of an element of the value of the MYCOLUMN for boxes ticked.  I will concatenate the values with commas. I'm fairly new to APEX and can't seem to define the value AS #MYCOLUMN # is the column alias.  This value would be set with PL/SQL. I now get "#MYCOLUMN # as my value so I don't ' have the correct syntax.

    Any help is greatly appreciated.  Thank you.

    Hello

    Put this in the header HTML of your page and you should be good to go.

    Remember to change to the name of the element you want to be defined by the function.

    Note that I used al colon as a separator (in le.get (.join(':'))). You can change that to a comma if you like that better.

  • Set the element hidden in Javascript

    Hello

    I'll have a hidden page P4_SELECT element in my page. I'm putting this article on the page with a javascript function value.
     function getTheCurrentRow(triggerItem){   
        alert( triggerItem.slice(6));
       document.getelementbyid(P4_SELECT).value=triggerItem.slice(6);    
    
    // $x(P4_SELECT).value=triggerItem.slice(6); 
       
    }
    </script>
    Even if I get the value in the "Undefined P4_SELECT" javascript error alert

    When I checked the 'view Source' of the page is to have this line in
    <input type="hidden" name="p_t04" value="" id="P4_SELECT"  />
    I tried
     $x(P4_SELECT).value=triggerItem.slice(6);
    But getting the same result only. We cannot set values of the element hidden by Javascript.


    Kind regards
    Jyothi

    Hello

    If you're on Apex 3.x or higher, try

    function getTheCurrentRow(triggerItem){   
    
     alert( triggerItem.slice(6));
     $s("P4_SELECT", triggerItem.slice(6));    
    
     /* Alert hidden item value you did set */
     alert($v("P4_SELECT"));
    
    }
    
    

    Here is the link to the Apex JavaScript API document where you can find the functions $s and $v I used
    http://download.Oracle.com/docs/CD/E14373_01/apirefs.32/e13369/javascript_api.htm#CDEEIGFH

    Kind regards
    Jari

  • How to set 'Initial value' of an element of messageTextInput dynamically

    How can I dynamically set 'Initial value' of a messageTextInput point?

    Hello

    Su wrote:
    curr.setValue (pageContext,"" + r.getAttribute (0) ");

    String value = r.getAttribute (0);

    curr.setValue (pageContext, value);

    Concerning
    Meher Irk

  • Link to page with LOV cascading don't set the element LOV

    I have a page with two elements LOV DB and TABLE. The TABLE is set cascading to the DB. These elements to work on the page very well. The problem is that if I connect to this page for an interactive report on another page, only the point DB prepares while ARRAY elements by default on the first item in the list instead of what I spend.

    URL of the link:

    http:// < servername >/apex/f? p = 101:376: < ID >:no:RIR:P376_DB, P376_TABLE:audit, Pub. ScanEvent

    With the help of Apex 4.0.

    Hello

    Rob Farver says:
    I have a page with two elements LOV DB and TABLE. The TABLE is set cascading to the DB. These elements to work on the page very well. The problem is that if I connect to this page for an interactive report on another page, only the point DB prepares while ARRAY elements by default on the first item in the list instead of what I spend.

    URL of the link:

    http:// /apex/f? p = 101:376:: No.: RIR:P376_DB, P376_TABLE:audit, PUB. ScanEvent

    With the help of Apex 4.0.

  • You must pass values of 'return' of item selection list while trying to assign the value via a URL. Make sure the audit and PUB. ScanEvent are the correct return values
  • Make sure that the child value is good for the selected parent value. that is, the table PUB. ScanEvent must be a child value for DB audit. If you pass an incorrect combination of parent-child of the values that have been created as cascading, only the parent value is defined.

    Kind regards
    Hari

  • Set the element property in the detail block

    Hello

    I wish to address an item property in my block of detail that consists of several documents as a tabular presentation. For example, when I use APIs like the code below. The API defined the entire column for this particular element rather than the game each element in each record. Could you please take a look below coding and advisor how I can configure each element in each record?


    -----------------------------------------------------------------------
    BEGIN


    GO_BLOCK ('USER_RESP');

    last_record;
    premier_enregistrement;
    LOOP

    If: USER_RESP. End_date is null then
    -app_item_property.set_property ('USER_RESP.) END_DATE ', ALTERABLE_PLUS, PROPERTY_OFF);
    set_item_property('USER_RESP.) END_DATE ', INSERT_ALLOWED, PROPERTY_OFF);
    set_item_property('USER_RESP.) END_DATE ', UPDATE_ALLOWED, PROPERTY_OFF);
    end if;

    When the output: system.last_record = "TRUE";
    next_record;
    END LOOP;
    premier_enregistrement;




    END;

    --------------------------------------------------------------------------------

    Published by: user11270809 on January 12, 2010 18:15

    Hello
    better do you in pre-record trigger

    If: USER_RESP. End_date is null then
    SET_ITEM_INSTANCE_PROPERTY('USER_RESP.) END_DATE ', CURRENT_RECORD, UPDATE_ALLOWED, PROPERTY_FALSE);

    on the other
    SET_ITEM_INSTANCE_PROPERTY('USER_RESP.) End_date ', CURRENT_RECORD, UPDATE_ALLOWED, PROPERTY_true);
    end if;

    Published by: amitphynyl on January 12, 2010 23:19

  • How can I set a value of page element to a column of tabular form field when add line button clicked?

    Hello

    I'm new in APEX. I work with APEX 4.2.

    I have a simple form in a page (page no. 3) and I have another region containing a tabular form on the same page.

    P3_EMP_ID is a part of the area of simple form.

    And there is a column field named 'emp_id' tabular.

    If it is possible that

    When I click on the button "add row", field in the column named 'emp_id' in a table will be filled with the value that is available in P3_EMP_ID?

    Pls someone help me.

    Thnks

    Magali

    Yes, it is possible

    simply to > edit in > attribute report > change empno field tabular > attribute in the form >select and set up according to

    default type: point (the name of the application or page element)

    default: P3_EMP_ID

    I hope this helps...

  • Set the value of the page elements using apex.submit

    Hey,.

    Does anyone have an idea how to set the value of several page elements using apex.submit?

    Here is my request, she works for this element of the page, but I want to first the value of the other elements of the page (i.e. P30_SHOW_REF) as well.

    select s.nr as NRR, 
    '<input type="button" value="clickme2" onclick="document.getElementById(''BUTTONS'').style.display = ''block'';apex.submit({request:''SET'',set:{''P30_KLT_NR'':'||s.nr||'});"/>' Button 
    from klant s
    

    Thanks in advance!

    Hi Julijan,

    Here is the example:

    apex.submit({
      request:"DELETE",
      set:{"P1_DEPTNO":10, "P1_EMPNO":5433});
    

    Concerning

    J

  • dynamic action sets the value of the element, but not save to DB on submit

    I'm working on a page where the value of several to show only the page elements are defined using a dynamic Action.  They are set when the user selects a value in a list of selection (and is based on the value of the selection list).  Dynamic action is triggered on a list selection change event and then runs the real action "set the value.  The selection list displays the names of sales representative.  The three fields dynamically filled are the org structure (that is, their chain management).

    For the action to set the value, I use a defined Type of SQL statement:

    Select VP, DIR, MGR

    of SALES_ORG where SSR =: P20_SSR

    In the affected elements, I have fixed Type of selection to the 'item (s)"and the value of the Item (s) for 'P20_GVP, P20_DIR, P20_MGR.

    Dynamic action works fine for the display of the page (that is, when I select a sales representative in the selection list dynamic action properly updated only display value fields three).  This page is a form in which the user submits information relating to the rep.  When the page is sent, all fields are filled in a new record of DB with the exception of three that were populated dynamically above.  These fields get the values NULL.

    When the dynamic action updates the values in the three fields is - it does not set the value of session?  Why these fields don't are not taken into account in the submit other ideas > process Page?

    I use 5 APEX with Chrome on Mac (Yosemite).

    Thanks for the note.  I didn't only display the items could not be used in this way.  I think I'll take a different approach with the design; given that the org structure is in another table that I can simply refer to that by rep when necessary rather than saving the information uploaded to the page of the form.  The reason why I have not fill the screen only the points of loading the page is because I don't know what the values should be until the user selects a sales representative in the selection list.

    I'll change the design to one of the following:

    1) change the display only items of standard text field.  NOTE: if I make the text read-only field that causes other problems when loading (I get the message "violation of protection Session state").

    OR

    2) do not include org structure in the download folder and just refer to table org Rep when necessary.

    Thank you!

    Steve

  • Can not set a value by the executed dynamic action on the page element "selection list."

    I created an agenda of the page 'list of selection' and I want to when I change a value in another element of the page set only 'screen '.

    I created a dynamic action on the page element "selection list" for this.

    These are the dynamic action attribute:

    When:

    ======

    Event: change

    Selection type: point

    Article: P29_PURCHASE_ORDER

    Condition: No strings attached

    Advanced:

    ========

    Scope of the event: static

    Identification:

    ==========

    Action: Set

    The ' Action Page when the changed value "attribute of the element of 'list of selection' = 'None', and when I run form the dynamic action run and set the value for once and do not update the value according to the change in the article"list of selection. "

    Note: when I change the previous attribute of 'Redirect and set', dynamic action run and properly value, but the value was hidden soon

    I want to value when the value of change of select list according to this change successfully.

    Please, advice me,

    Best regards

    Mustafa Ezzat

    Hello

    you set the value of the 'Page elements to submit' to P29_PURCHASE_ORDER?

    Then, the SQL statement would use the current selected value.

    This is the help text says: "specify a list separated by commas of the elements of the page that will be submitted to the server and therefore available for use in your"SQL statement"," PL/SQL Expression"or"Body of the PL/SQL function".»

    Kind regards

    Erik-jan

  • Apex. Submit in javascript do not set a value for the element

    Hi all
    I work with Application Express 4.1.1.00.23.

    I am trying to use this
    apex.submit({request:parRequest,set:{'P30_SELECTED_ROW_ID':parID},showWait:true});
    in order to assign a different value to P30_SELECTED_ROW_ID, and depending on demand, run the processes corresponding, but even if the beginning of the process correctly the value of the element sucks.

    I also try to call the apex.submit using a javascript function to check the parameters passed and the value of Thierry is correct and NON NULL .

    Thanks in advance for any help or suggestion.
    Alex

    Hello

    article P1_SELECTED_ROW_ID is about to "view only".
    If you replace this 'hidden' and unprotected, it should work.

    But because of the check constraint DEMO_CUST_CREDIT_LIMIT_MAX credit_limit<= 5000="" there="" will="" be="" an="" error="">

    Good luck, Erik-jan

  • Setting the value of an element of Application (defining a global variable);

    Apex 3.2.0.00.27, I need to initialize a global variable to 0 to implement a variable to test to see if something on the page has changed. Will update to 1 when some lists of selection on the page are changed. Read through a few similar questions and answers within the forum, as well as blogs and other sites. So, I think that what I do is the way forward in this regard. Unfortunately, my point/global application initialization is not past yet. Here's an overview of what has been implemented:

    1) has created an element of demand, G_CLASSIFICATION_ID_NEW in the shared components.
    (2) created the Javascript (JS) function called by addLoadEvent area header html page so when the page is loaded, the application global/G_CLASSIFICATION_ID_NEW element should be set to 0 with the following JS and using AJAX and htmldb_GET:

    < script type = "text/javascript" >
    function initVars()
    {
    Alert ("before the initvars get");
    get var = new htmldb_Get (null, $x('pFlowId').value, null, 22);
    Get.Add ('G_CLASSIFICATION_ID_NEW', 0);
    gReturn = get.get ();
    {if (gReturn)}
    Alert (gReturn.value);
    }
    get = null;
    Alert ("after get initvars");
    }

    Alert ("before the call to the initpage");
    addLoadEvent (initVars ());
    < /script >

    I used the htmldb_Get successfully to populate other global variables and processes on request with onchange THAT JS call in the attributes of html form elements select list on the page. Later, I check the globals via the Session view and research on elements of Application. Unfortunately, I'm missing something, because my G_CLASSIFICATION_ID_NEW never gets filled when I load the page. The Alerts popup every when the page is loaded, so I know that the script is running when the page loads. alert (gReturn.value) is not defined. And, of course, the G_CLASSIFICATION_ID_NEW to 0 does not place.

    I tried the htmldb_Get with her call for a process of application and without (null value). What I read, you should not need to call an application process to have the get.add of the value of the global variable. Here again, this could be where I'm wrong. However, as I mentioned, it works for the other functions called from an onchange to fill a part of the application, but the page has already loaded when the onchange (s) executed. They can work because the page is already loaded when the onchange is called. My point here is that my other on application processes are NOT set or modify global variables at all. The globals are preparing with the get.add (< element app >, < value >) part of my other JS works within the HTML header area. So I'm inclined to believe that I don't need 'application_process = < some_odp >' set parameter, but if it is not true, please let me know. If so, what should be in the application process-that is to say, what would be the purpose of the get.add (< application item >, < value >) if I set the global variable in the application process on because it's the only thing I could think to do within an application process on for this?

    If someone can point out what I'm not understand or, failing to do it here, that would be great. I am doing fine with APEX, but don't consider myself a guru with it immediately. I'm certainly not a JS/AJAX guru, and when things like that, go astray, I get bogged down because I'm not sure of the problem. So, I hope that you gurus who monitor this forum can get going in the right direction.

    Thank you
    Bob

    Hello

    Create page 0 (zero) to your application.
    Then try this javascript in your HTML page header

    
    

    BR, Jari

  • Set a value of the element of the Page in Javascript

    I've created two elements on the page P9_DEVELOPMENT & P9_DEPARTMENT. The two select lists that are inspired by the shared components and in the sections of the list of the value of the properties display Null = Yes and Null = text "- Select -".

    I want each selection list for mutually is when I select P9_DEVELOPMENT P9_DEPARTMENT is back 'Sélection' - and vice versa. I wrote a function javascript with the following assignment.

    switch (pItem)
    {
    case 'P14_DEVELOPMENT ':
    $x('P14_DEPARTMENT').value = "- select -";
    break; …

    Logic sets the value of "P14_DEPARTMENT" empty, but I do not see "- select -". I get the same result with the statement
    $x('P14_DEPARTMENT').value = null;

    How can I reset the value of P14_DEPARTMENT and then displays the default "- select -"?

    Ned

    If the "- Select -" is the first option in the list select below the statement defines the list select Show "- Select -"

    $x('P14_DEPARTMENT').selectedIndex = 0;

    CITY

  • MASTER DETAIL - SET THE DEFAULT VALUES FOR ELEMENTS

    I have a page master detail where, on the master, I do things like update the fields entered_by and entered_date
    by applying functions to define item-level details and the read-only setting.

    On the portion of the page detail, I would do the same thing, but I don't see the point of page details - only master items.
    The portion of details is for comments so I wish I had the commenter_name and commenter_date the value of the values
    When I hit the Add button line on the portion of details.

    Where are the elements of detail?

    I use APEX 3.2

    Thank you

    Steve

    Hello

    When you use the master detail form, APEX build "Detail part" in the report. So if you edit the page, you won't see actual items for 'Party detail'

    If you want to set default values or want to format these items, you may need to perform like this

    1 > edit 'report' of the "retail portion.
    2 > click on attributes report
    3 > click on the column, you want to set default values
    4 > now here, in accordance with article 'Tabular form Element' you can do this by setting appropriate in 'default' type fields and "default".

    It may be useful

    See you soon
    Hari

  • HOW TO SET THE VALUE TO A PAGE OF AJAX ON DEMMAND PROCESS ELEMENT?

    Hi, I have a javascript that calls an ajax on demmand process , and I need a the ajax process variable value is updated about my page: P2_CONTENT:

    • Here's my javascript call:

    doprint() function

    {

    Apex. Server.Process ("GENTICKET", {pageItems: "#P2_PARAM1"}, {async: false});

    }

    • and here is My ajax on demmand process (GENTICKET):

    BEGIN

    declare

    CONT varchar2 (1000); -the return value is less than this length, I have already checked in my table-

    Start

    Here, I call a DB procedure that fills my data. I verifyed and works nice!

    pro_generate (:P2_PARAM1);


    Here, I select the data obtained in the previous step

    Select tic_text

    in cont

    of t_reim

    WHERE f_type =:P2_PARAM1 ;



    Here, I need to set the value to display in my page field


    APEX_UTIL. SET_SESSION_STATE ('P2_CONTENT', CONT);  -< < < < < that doesn't work. I tried: P2_CONTENT: = cont; but does not


    end;

    END;


    Thanks in advance for the help.

    You can do all this declaratively by using dynamic actions, to try jQuery is like trying to swim before you can float.

    You can influence the value returned from JavaScript with this PL/SQL:

    HTP. PRN (cont);

    Then include a function of success (as described in the previous link) to run code like:

    success: function {(pData)

    $s ('P2_CONTENT', pData);

    }

Maybe you are looking for