Development of the APEX element via javascript

I'm fighting to set the value of an element of the APEX of the javascript.
At the moment I have a button on Page 1 that has a URL action. The URL points to
JavaScript:getConfirmation('&APP_SESSION.');
and my function is

< script type = "text/javascript" >
function getConfirmation (sessionNumber) {}
var response = confirm (' remove this step remove also all the dependencies that depend on this step.) ») ;
{if (Answer)}
html_SetSelectValue (P4_CREATED_STEP, 'YTest');
document.getElementById('P4_CREATED_STEP').value = "YTest1";
} else {}
html_SetSelectValue (P4_CREATED_STEP, 'Packers');
document.getElementById('P4_CREATED_STEP').value = "NTest1";
}

Window.Location.href = "http://appsit-dev-10g.oraclecorp.com/pls/aitmarvel/f?p=101:3:"+ open; "
}
< /script >

I see that I get no error javascript via the Firefox error console.
However when I redirect to page 2 with the javascript call. The value of 'P4_CREATED_STEP' is undefined.

Help, please.

Hello

You do not submit the page or use AJAX to set the item session state.
This might help

http://www.oracleapplicationexpress.com/tutorials/68
http://Apex-at-work.blogspot.com/2010/02/set-item-value-with-AJAX.html

BR, Jari

Tags: Database

Similar Questions

  • Reduce the width of the apex element field...

    I can't reduce the width of the apex element field. I used apex_item.text in the region of select query report.

    I want to change the field width. I tried to change the width of the element... but no use. pls help how to change.


    Thanks and respect,
    SKUD.

    The third parameter to apex_item.text is p_size. You can set the width of field with this setting.

    Swear

  • Assign the value to the Application Variable via javascript

    Hello

    How can I assign value to an element of the application (not the page element) through javascript.

    I tried to assign the value as follows:

    $s ('F150_REGION_TEMP', region);

    where F150_REGION_TEMP is the application variable and 'region' is populated value in javascript.

    Kind regards
    Benz

    Hello

    Try

    
    

    BR, Jari

    Published by: jarola on March 1st, 2010 14:47

  • How to target another element via Javascript (hand rendered control ID ID)

    Hello

    My version of jDeveloper is 11.1.1.9.0


    I am aware of target an item via the clientListener tag. But who will give me a reference to the only element in which it was declared. What happens if I want to target another element on the page function is declared in jDeveloper ID? For example:

    <af:inputText label="Label 1" clientComponent="true" id="it15"> /* what's declared in jDeveloper     */
    

    Render in HTML as:

    <input type="text" class="x25" name="r1:0:it15" id="r1:0:it15::content">
    

    Notice how it15 converted to r1:0:it15. In doing so the following fails to get a reference to the element:

    document.getElementById("it15"); // returns null
    AdfPage.PAGE.findComponent("it15"); // returns undefined
    

    This brings me to the following questions:

    1. Why ID does not change when the HTML is rendered?
    2. How I would apply the element if its ID gets ed precede by a random string?
    3. Is there a way of extraction and random string instead of hard-coding it with control ID?

    Well, I found a solution that works for now. That's what I did:

    document.querySelector("[id$='it15::content']");
    

    which means basically select the item whose ID ends with it15::content

  • How to pass the value of the apex element to html source?

    Hello world

    I have a HTML box on a page of the Apex with the following value hardcoded:
    <img src="#OWNER#.FILE_TO_BLOB?p_file_id=22"/>
    I have a question about the page (P90_LINK_DB_ID) that will contain the value I want to use with the above code, so it is hard coded, I tried:
    <img src="#OWNER#.FILE_TO_BLOB?p_file_id=P90_LINK_DB_ID"/>
    <img src="#OWNER#.FILE_TO_BLOB?p_file_id=:P90_LINK_DB_ID"/>
    <img src="#OWNER#.FILE_TO_BLOB?p_file_id=&P90_LINK_DB_ID"/>
    <img src="#OWNER#.FILE_TO_BLOB?p_file_id='P90_LINK_DB_ID'"/>
    <img src="#OWNER#.FILE_TO_BLOB?p_file_id=':P90_LINK_DB_ID'"/>
    ....
    without success, can someone point me in the right direction please.

    Thank you

    Daniel

    Hello

    Try

    
    

    Point of note after the name of the element. You didn't try this variation

    BR, Jari

  • Question by passing the value of the report column via javascript

    I'm going through #COL05 # to P28_CREATIVE_URL using the following javascript code. I got this Oracle documentation example, but it does not work for me. The status bar shows me that #COL05 # is recognized correctly, so it might be in the... opener.document.

    PAGE
    Function and Global Variable declaration:
    function passback (passVal1)
    {
    opener.document.getElementById("P28_CREATIVE_URL").value = passVal1;
    Close();
    }

    Column attribute
    The column link
    URL:
    JavaScript:passback(#COL05#);

    Use instead of single quotes

    javascript:passback('#COL05#');
    
  • Applications are developed at the Apex Apex 4.1.0 compatible 3.1?

    Hi guys,.

    I only started working on Oracle Apex since version 4.1 and is currently working on a DEV (apex 3.1) application be moved to prod (in TOP 4.1).

    I had no idea about the compatibility, if the application used to work all or some documented features does not work.

    Could all gurus of APEX that has developed the 3.1 application and deployed in 4.1, could share you your experience if there is anything else I should look out for?

    Hello

    Applications developed in older versions of Oracle Application Express can be imported in more recent versions, for example, you can import your 3.1 apps in 4.1. And usually, it should work without any problems. There are some things to look out and there was a few reports of problems, especially when moving from 3.x to 4.x. Then you should definitely test your application after the upgrade, and I would advice against development on 3.x and 4.x deployment. You development, test and production environments should use the same version of Oracle Application Express.

    Kind regards
    Marc

  • How to get the value of the global element using javascript or ajax!

    Hello!

    How can I read at global(point application created in the shared components) using ajax or javascript?
    You can imagine that I need to get the value of this element by function as:
    -----
    Function getText() {var itemVal = $x ('MY_GLOBAL_ITEM') .value;}  Return itemVal; }
    -----
    .. .but I can't do it because it is not made to couse of the page it is global element! so, anyone know no work around to do?
    I know that I can make point page and read the value of that, but not what I really need!
    If I have 100 pages and all pages need to use my function, it would take 100 Articles :) - that's why its no good average!

    Please, share your ideas!

    THX

    Rafix,

    You must use a little AJAX to retrieve a request element value. Three steps in this solution. Implementation of a callable JavaScript function, creating an application process on the request and call the JavaScript function with dynamic action.

    1 set up a JavaScript function that can be called by:

    This function calls the process of application level which has a visibility of the element of your application and then returns the value of points.

    Edit your page and JavaScript code according to the code in the 'function and Variable global statement' of your page. You can also add to the model page, that you use, but you also have to encapsulate this code in the script tags.

    getAppItem = function(pItemName){
        var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=GET_APP_ITEM',$v('pStepId'));
        get.addParam('x01',pItemName);
        gReturn = get.get();
        get = null;
        return gReturn;
    }
    

    2. creating an application on request process:

    The application of level process has visibility to your application-level element. It is to retrieve the value of points and it prints the htp buffer. Essentially, this acts as a way to return the values of AJAX calls (the javascript function we set previously);

    go to the shared components > procedures > Create.

    Point process: "We Demand: run this application...". »
    Name: GET_APP_ITEM
    Type: Anonymous PL/SQL block

    declare
       -- get the item name passed into the JavaScript function.
       app_item_name varchar2(30) := apex_application.g_x01;
    begin
        -- print its value to the buffer
        htp.p(v(app_item_name));
    end;
    

    3. call the JavaScript function with dynamic action:

    The function call allows to specify an application-level element name and have its returned value. The trigger event is specific to what you need, but the action must be of type to run JavaScript code. In my case immediately the value of P1_NUMBER to my value of demand points. This code doesn't have to be in a dynamic action, but it helps to stay organized. you could call it from any script tag.

    $s('P1_NUMBER',getAppItem('MY_APP_ITEM'));
    

    See you soon,.
    Janet Tyson

  • Try to highlight the item application via javascript

    Hello

    I don't know what I do wrong here someone maybe can enlighten us? I have the following in my
    Header HTML of my login page
    <script language="JavaScript1.1" type="text/javascript">
    function setAppItem(val){
      var req = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=dummy',  
      &APP_PAGE_ID.);
      req.add('F_LOGIN_MESSAGE', val);
      var gReturn = req.get();
      req = null;
    }
    </script>
    
    <script language="JavaScript1.1" type="text/javascript">
    function doLogin()
    {  
      var err = false;
    
      alert(document.getElementById('P101_USERNAME').value);
    
      if((document.getElementById('P101_USERNAME').value == '') ||
        (document.getElementById('P101_PASSWORD').value == '')) {
    
        setAppItem('You must enter a username and password.');
        err = true;
    
      }
    
      if(!err) {
        doSubmit('Login');
      }
    }
    </script>
    The setAppItem function is called, but it does not put the text of elements of application?

    Thanks in advance for any help!

    Hello

    Check your page now.
    I think you don't need any point or set those.
    Just the value internal node HTML DOM.

    BR, Jari

  • Generic procedure for the development of the item application of javascript?

    For now, all I can think about is a javascript function call to an application process, which looks like this:

    function setVariableValue (pName, pValue) {}
    var gReturn;
    get var = new htmldb_Get (null, $x('pFlowId').value, 'APPLICATION_PROCESS is odpSetVariableValue', 0);
    get.addParam('x01',pName);
    get.addParam('x02',pValue);
    gReturn = get.get ();
    get = null;
    }

    odpSetVariableValue
    Start
    immediate execution ':' || wwv_flow.g_x01 | ' := ' || wwv_flow.g_x02;
    end;

    Is there a function of APEX to do without "immediate execution"?

    Igor

    Hello Igor.

    I think you can do the same thing without actually executing a PL/SQL process (see here for an example).

    function setVariableValue (pName, pValue) {}
    get var = new htmldb_Get (null, $x('pFlowId').value, 'APPLICATION_PROCESS is dummy', 0);
    Get.Add (pName, pValue);
    var gReturn = get.get ();
    get = null;
    }

    (The dummy application process are really...)

    Greetings,
    Roel

    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.Logica.com/

    You can assign this answer to your question in marking it as useful or Correct ;-)

  • Get the name of the current strategy via JavaScript

    Hello

    Anyone know if there is a way to read the current policy that is located on a

    document using JavaScript code from the document?

    Thanks in advance.

    I don't think that this is possible.  I checked the Acrobat JavaScript API Reference ( http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/js/html/wwhel p.htm? href = JS_API_AcroJSPreface.87.9.html #1516075 & accessible = true ) and there is the possibility to obtain information from document (properties) but is no name of the policy.

    The properties that are available are:

    Title

    Author

    Authors

    Object

    Keywords

    Creator

    Producer

    CreationDate

    ModDate

    Trapped

    Steve

  • [CS4:JS] How to run the file ".sh" via Javascript

    Dear all,

    How to run the file ".sh" through Adobe InDesign Javascript, I used the code below:

    //================== Code =============================//

    var myFile = File("xxx/xxx/xxx/Test.sh");

    var Exec = "sh" + "" + "\""+myFile+"\;"

    Leader (exec). Execute();

    //================== End =========================//

    codes above does not work, I checked before without the "sh" in addition, it does not work.

    Please can someone give me the solutions and the suggestion, and I'd appreciate it.

    Thanks and greetings

    SudhaN T.R.Harihara.,.

    Have your IDMLExportparse.sh file runs permission set?

    If you open Terminal.app and type

    /Applications/MacXinPro/IDMLExportparse.sh

    It work? Or do you need to run "sh"? If so, either adjust the

    permissions with

    chmod a + x /Applications/MacXinPro/IDMLExportparse.sh

    or modify the JavaScript code for:

    shell("sh "+myFile);
    
  • How to hide the textfield element using javascript

    I point textfield and I want to hide it using javascript...

    can you help me please?

    Hello

    I checked his works well for me.

    Go to DISPLAY ATTRIBUTES and change the direction of cursor to DO NOT FOCUS CURSOR

    then check...

    Let me know incase of any concerns.

    See you soon,.
    Shan...

  • How to open the print window via Javascript (normally we use shortcut Ctrl-P in illustrator)

    Screen Shot 2016-04-05 at 4.42.26 PM.png

    You can use the method executeMenuCommand as below:

    app.executeMenuCommand("Print");
    
  • To hide multiple items via javascript or actions in case of different variable values - how?

    Note: I'm still Captivate 8

    The Question has 2 parts:

    (1) is there a possibility to hide (or show) of the elements via javascript instead of shares advanced? I think it would be a much faster workflow. I think of something as

    If variable1 < = 100 screenx.elemeta.hide;

    If variable1 < = 90 screenx.elemetb.hide.

    If variable1 < = 80 screenx.elemetc.hide;

    If variable1 < = 70 screenx.elemetd.hide;

    (2) if it is not possible... OK, I use advanced actions. But there is the 2nd problem: it runs only the first part of it when exporting in HTML5.

    See photo. I try to hide - or no - hide the 9 elements in case of different values in a Variable. Lets say that the value is "7". In se9 is Laura if the value is less than or equal 9 to hide the element ausw_se_10. This method works. In se8 is asket if the value is less than or equal 8 in order to hide the element ausw_se_09 - what you see in the image. This and the following mask does not work. I'm doing something wrong or is this a bug? And is there a solution?

    sc_2015_10_16_erweiterte_aktionen.jpg

    Showing and hiding are a relatively easy control if you use HTML5:

    CP. Hide ("element_name");

    If you want to hide as much as you describe, you would need a very strict naming convention and use a loop to hide items.

Maybe you are looking for

  • Key to the left of the URL does not return the Save password.

    I read a lot of discussions and pages on Firefox recording not passwords. I do not have 'private browsing '. I have cookies and history recorded "until they expire". I checked "save passwords". I don't have any exceptions. When I go to enter a passwo

  • Satellite A80 crash very often

    Very often my laptop goes down. I do not get the BSOD, but the screen has about 8 vertical lines on it. Within each section created by these lines, the display is distorted into small rectangles. You can see vaguely the display. None of the keys work

  • Satellite L300D - how to get rid of the Aston Shell software

    Hello I bought a new computer Satellite L300D last month and was very happy with it.Unfortunately, yesterday, by chance, I ran a progrmme called Aston Shell.My computer the entire screen has changed. When it came to MacAffee, he asked if I wanted to

  • Vista service pack 1

    have a 32 bits, tried to load from the Download Center, can't find any place that will download

  • Going JUST Win7 HDD to SSD

    I bought a new SSD, and I want to put my Win7 Prof 64 (legit) top. The problem is that the disc is only 64g, and is simply not large enough to copy the disc HARD whole with my copy of Win7 already turned on him. How can I only copy (or uninstall + re