APEX 3.2.1: Page Element lose its value

Hello.
I defined a part of page with the following attributes:

Hidden and protected
Source: replacement always, value that exists in session state
Source type: column database
Maintain session state: per session

I put the value of this element as a parameter OUT of a PL/SQL application process on demand that is called when the user presses a "submit" button.
I can see that the value is as expected via DEBUG and printing htp.p of it.

I have then try to use this value as a parameter passed to another process of PL/SQL application on demand which is called if the user presses another button "submit".

However, this process sees a null as the value of the page element.

What I have to do something like persist the value using one of the built-in Javascript functions or I make a fundamental mistake?
Thanks in advance.

Change the Source used for only if it sucks. I think what happens is that after sending and reload the page, it reads the new database that sets the value of the element with a Null value.

I assume you have an extraction process DML somewhere on the loading of the page.

Tags: Database

Similar Questions

  • APEX 5 - missing values in link for the PAGE that is modal if it has used some PAGE ELEMENTS in the VALUE of the

    Hi Experts,

    There is a problem in the APEX when I open a modal page-> submit modal page and refresh parent region (report one).

    When I first open a report from the region and click the modal page, everything is ok:

    Modal page values are defined in the sense of link that open to it.

    Submit after modal page by button (there is a process of dialogue), the dialog box is closed. On the parent page, there is a DA - dialogue close report parent refresh.

    After update - waiting indicator is indicated - all the element referenced in the link to open modal values are defined as empty values.

    Is there a problem in the links when I use it it set the values of the elements of the page? (not report items)

    I reproduced the problem on apex.oracle.com:

    https://Apex.Oracle.com/pls/Apex/f?p=16502:9

    user/pass: demo/demo

    "Just check the link in 1 region report-#OPEN_MODAL" report item. You can check the link with the appropriate values.

    After opening modal, simply click on the button. Dialog box is closed and updated in the region. Check the link again. Link is not valid because the values are empty. (screenshots above)

    concerning

    J

    Hi Jozef,

    the values of your page P9_NEW1 - P9_NEW5 items are not in persistent session state, they are only available in memory at the time when the page is rendered. Every time when you want to refer to an element in your report, and no matter if it is in the report SQL statement or as a substitution in a link, it must present the server as part of the "Refresh" / AJAX call so that the server can initialize this session state and you are able to reference it. You can do this by setting "Page elements must send" your report. In your case, you must set it to P9_NEW1, P9_NEW2, P9_NEW3, P9_NEW4, P9_NEW5. See the example updated, you provided.

    Concerning

    Patrick

  • columns inputtext = 40 lose its value after 2 minutes

    Hello

    It is a piece of my jsf page fragment:

    < af:inputText label = "#{viewcontrollerBundle ['ALU.]}" "{[ASUNTO']}" id = "it1.

    value = "#{bindings." Asunto.inputValue}.

    maximumLength = "#{bindings." Asunto.hints.Precision}.

    styleClass = "comunicacionAsunto."

    required = "true".

    Binding = "#{backingBeanScope.AluComSecVirt.IT1}" >

    < f: validator binding = "#{bindings." Asunto.Validator} "/ >"

    < / af:inputText >

    < af:inputText label = "#{viewcontrollerBundle ['ALU.]}" "{[DESCRIPCIÓN ']}."

    ID = "it3" value = "#{bindings." Descripcion.inputValue}.

    required = "false".

    maximumLength = "#{bindings." Descripcion.hints.Precision}.

    rows = "5".

    columns = "40".

    styleClass = "comunicacionDescripcion."

    Binding = "#{backingBeanScope.AluComSecVirt.it3}" >

    < f: validator binding = "#{bindings." Descripcion.Validator} "/ >"

    < / af:inputText >

    < af:commandButton text = "#{viewcontrollerBundle ['ALU.]}" "{[ENVIAR']}."

    ID = "cb1".

    action = "#{backingBeanScope.AluComSecVirt.enviarMensaje} '"

                                icon=" http://domain.edu/apps/IMG/email_go.PNG "

    Binding="#{backingBeanScope.AluComSecVirt.CB1}"/ >

    If I put some data in the fields and click the commandbutton control, the screen works well.

    If I enter the page, wait about 3 minutes, then write data in the fields and click on the commandbutton control, and then my app displays an error because the it3 field is empty! After accepting alert, it3 field becomes empty in the screen.

    No bean support changes the value of the field it3. In fact, I degugged the setIt3 method:

    public void setIt3 (RichInputText it3) {}

    This.IT3 = it3;

    String value = (String) this.it3.getValue (); ((Line added to improve debugging

    }

    and if you wait 3 minutes, setting a getvalue it3 = null.  ¿?

    Why ADF or JSF could lose the value entered in the it3 field if you wait 3 minutes before entering the values and clicking on the button?

    Any idea?

    I sometimes also reproduced this behavior without wait 3 minutes (more or less immediately).

    In addition, after have reproduced this behavior, the field becomes read-only and you cannot write data in it. ¿?

  • When you add a second point to my stackpane, the first element loses its ability

    I have a stackpane. When I add a second element of my stack pane, both appear, but I can't click on my first article more. It becomes "unclickable".

    what I defined in my .setonmouse does not work. It works for my second point. If I change the order that they are in the part of the stack, the other works are, but not both.

    is there any solution for this? This is what my program looks like:

    I want that my "grid" centered STILL. There are buttons on the left centered in a column, there will be buttons on the right then, and there will be buttons/text on top of the grid and buttom in the margins thereafter too.

    I want everything to be clickable.

    http://img688.imageshack.us/img688/6025/examplerg.PNG

    Published by: 922630 on March 27, 2012 16:37

    When you place the VBox in the StackPane, it was expanded to cover the gridpane, so when you try to click on the gridpane, the vbox that just overlap the gridpane then consume all mouse events so that they never reach the underlying stackpane the phase of event propagation (i.e. When you capture the). The button inside the VBox does not expand to fill the dimensions of the VBox because that's maxsize is "tight" to its default size (which is one of the more confusing aspects of JavaFX layout). You can see this behavior by applying a green background color to the VBox, in which case the whole scene will go green-online

    vbox.setStyle("-fx-background-color: forestgreen");
    

    One way to solve this problem must also fix the size maximum of the vbox to its size by default, (similar to what the implementation of the default button does).

    vbox.setMaxSize(Region.USE_PREF_SIZE, Region.USE_PREF_SIZE);
    

    After that, the VBox doesn't fill the entire screen, but will be of size to the same size as the button and centered in the StackPane.
    To get the VBox upstairs on the left once again, you can set its alignment.

    StackPane.setAlignment(vbox, Pos.TOP_LEFT);
    

    After all this is done, you will get your mouseentered event handler that is triggered on your gridpane and implementation under the shadow effect, you will still be able to click on the button in the upper left corner of the screen as your example has and everything is nicely resizable without any appeal to hard-coded translation.
    Have fun building your game - I've always liked Connect4 :-)

  • Display the results in a report on the APEX of two datepicker page elements

    Hi all

    I'm trying to get some data to display in a report by choosing between two dates. These two dates, I select by datepickers, then a button is pressed to submit and the report to appear.

    I made the conditional statement on the button, the button submit as "searchdates", then a branch that is conditional (when the button is pressed, the application is set to "searchdates") and the branch is: 'On Submit - after treatment.

    the query behind the report is:
    select * from desk_allocation
    where (DESK_ALLOCATION.DATE_FREE >= TO_CHAR((:P5_DATE_FROM), 'DD-MON-YY') 
          AND DESK_ALLOCATION.DATE_FREE < TO_CHAR((:P5_DATE_TO), 'DD-MON-YY') 
          AND :P5_DATE_TO IS NOT NULL AND :P5_DATE_FROM IS NOT NULL)
    AND DESK_ALLOCATION.ALLOCATED like 'No'
    and the sample data that I use to test:
    DESK_NO   DATE_FREE     ALLOCATED     ALLOCATED_TO 
    66         20-AUG-10       No             -  
    75         19-AUG-10       Yes            Superman  
    60         16-AUG-10       Yes            Spiderman 
    When I run the page, it is said no data displayed.

    Someone at - it ideas?

    Using APEX v3.2

    Thanks in advance :)

    I tried with your data with this query, remove the additional supports, SQLDeveloper. There is no record for 'No', then the data found was the correct result. Changed to 'Yes' and got results.

    select * from desk_allocation
    where DESK_ALLOCATION.DATE_FREE >= TO_DATE('10-AUG-10', 'DD-MON-RR')
          AND DESK_ALLOCATION.DATE_FREE < TO_DATE('20-AUG-10', 'DD-MON-RR')
         -- AND :P5_DATE_TO IS NOT NULL AND :P5_DATE_FROM IS NOT NULL)
    AND DESK_ALLOCATION.ALLOCATED = 'Yes'
    

    Kind regards

  • IM in Firefox on Windows and every time I turn off my concection my Firefox home page internet loses its settings.

    I have reset Firefox several times but each time I have shut down my computer or disable the internet connection, the problem recurs. When I open Firefox, the search bar on the upper right side of the screen has Amazon.co.uk and the Firefox search bar in the middle of the screen has no search engine and Im unable to use it for research.

    I typed in browser.search.defaultenginename

     and it found
    

    Browser.Search.defaultenginename; Google

    Browser.Search.defaultenginename, S; Google

    SweetIM. ToolBar.Previous.Browser.Search.defaultenginename; Google

    I changed all 3 to Google and now everything works fine. Thank you for your help

  • Using JavaScript - hide/show a page element

    Environment:

    APEX 3.1.00.09 on AIX 5.3

    Sample application on apex.oracle.com:

    Workspace: GALWAY
    Username: gwicke
    Password: gwicke

    To see where my questions are:

    1 - Start on page 3
    2. in the Agency drop-down select 'J & B Marketing'
    3. in the contract drop down select the only contract that appears
    4 - Click "modify existing contract.
    5-note the "LY closures" page element has the value 261
    6 - click on the link (really a tab in my theme) at the top labeled 'full cost '.
    7 - the "Justification for estimate" is the page element to be displayed/hidden which is noted below.
    8 - "houses by year" under the column "Year1" is of the order of the day of the user entry page
    9 - the P2_BUILDER_CLOSINGS (261 above value) is the page element that you want to use in the comparison

    I need to do a few things with a potentially hidden page element:

    1 - everytime the page loads, I need to check if the page element (P8_ESTIMATE_JUSTIFICATION) is not null, and if it is indeed not null, make displayed.

    2. when the user enters a value in another element of the page (P8_HOMES_PER_YEAR1), call a function to see if the value is greater than 120% of another element on the page (P2_BUILDER_CLOSINGS) and if yes do this question page (P8_ESTIMATE_JUSTIFICATION).

    I have the function created javascript (showHideEstimateJustification) and in the HTML of the page header. Currently, the function is called with a cheque for onChange on the item page entered by the user as described above (P8_HOMES_PER_YEAR1).

    Questions:

    1. I need to force a SHIPMENT once the user enters the value of P8_HOMES_PER_YEAR1 is available in session state and so the function javascript (other ideas welcome!)

    2. I am currently using the x.style.display = 'inline' versus 'none' to hide and show the page element, where x is derived from var x = document.getElementById (P8_ESTIMATE_JUSTIFICATION) y at - there a better way?


    Any help is greatly appreciated.

    -gary (aka Javascript newbie)

    Hello

    Ok.

    An HTML tag is an object - TABLE, TR, DIV, SPAN, INPUT are all objects. Identify us these objects giving them IDs. An object consists of many different properties. Any time we want information on an object we call javascript by saying it the object, we want to know something and the property we want to know. Thus, if var g you, g.name would be "Gary" and so on.

    No matter when you need information about an object, you can point a variable to it by referencing its ID - var g = document.getElementById("GARY"). var g then lets get all the information I need and, in many cases, update information on the object. var gh = g.style.height var g.value = gValue GOLD and so on.

    Sometimes, however, all you really need is the 'value' of this object, so you can just do - var g = document.getElementById("GARY").value

    So, if you need a bit of information, to set a variable to object.property, but if you need more than one, set the variable to the object itself. Setting the variable to the object is something unique, so is generally faster than the reference to each property using document.getElementById("GARY").value inside and so on - as javascript should start at the top of the document, search for the specific object and then find the property.

    The confusing thing, I think that, coming from a programming, is that each variable is defined using "var" instead of an object type explicit

    OK, back to your page...

    Earlier, we have changed the javascript code to use:

    var closings = &P2_BUILDER_CLOSINGS.;
    

    and Apex would replace & P2_BUILDER_CLOSINGS. with a value, for example, 261, so when the page is rendered, the script actually shows:

    var closings = 261;
    

    Thus, it is digital already. If this part is ok.

    The element "homes" but must be converted to a number by the parseInt() function. The fact that you see "NaN" (which is, as you say, a shortened version of 'Not a number'), means that the value it is to see is not numeric. If the first test would be to add an alert message () to display the value of document.getElementById('P8_HOMES_PER_YEAR1').value. It is likely that non-numeric characters are entered? There may be problems with commas or currency symbols

    Andy

  • How to make the first page next page element value

    Hi all

    I have two pages namely a contact page and another page to enter the connection details

    The first "CONTACT" page contains the name and other details and e-mail, in the second page, I have a page named login element and I need to provide the email address that I have provided in the first page.

    I tried giving in the connection point as & P1_EMAIL source and I didn't clear any cache, but I don't have the email address.


    Thanks and greetings
    Srikkanth.M

    Hello

    Page element

    Type of source: Element (name of the application or page element)
    Source of value or an expression: P1_EMAIL

    Kind regards

    Patel Kartik
    ------------------------------------------------------------------------
    http://patelkartik.blogspot.com/
    http://Apex.Oracle.com/pls/Apex/f?p=9904351712:1

  • Displaying an Enum value and the name of the element when the values are not sequential

    Hello

    I use Enum and controls indictators successfully with shared and modbus variables.

    For example:

    Name of the element Value

    Off:                0

    Start 1

    On                2

    Œuvres enum Setup, I don't need to look for a cheat sheet to convert the name of the element in its value, I see the name of the item in my order/indicator.

    My new variables, I'm currently managing look like this:

    Name of the element Value

    Code 0 x 201

    Beginning Code 0 x 202

    Code 0 x 001

    Any ideas how I can display the value and the name of the element on a façade. (for a control and indicator)

    For enumerations, it seems that the item values must go 0,1,2,3,4,5

    I found the solution:

    http://digital.NI.com/public.nsf/allkb/79BA4505AE8C755E86256FB2000140B0

    use a ring of text and deselect the sequential box

  • 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

  • Apex 5, call a modal page, set page elements, in values referenced title page elements are not the same (correct) than the item itself

    Hello

    Apex 5.

    IR (departments) on page 2 I want to open a modal page 3 (classic report) with the detail data (from emp) for a Masters depno via a link on depno column.
    In Page 3, I created two elements P3_DEPNO and P3_DNAME. These elements are defined in modal page 3 of page 2.
    When I do these two visible elements on page 3 I can see, the values are set correct according to the value in column (depno) link on page 2.
    However, I would like to place these element values in the page title of page 3
    Title: PGE for DepNo: & P3_DEPNO., DepName: & P3_DNAME.

    It happens that the values mentioned in the title of the page are not the same (good) as in the items himself.
    Initially, they are NULL. Only when I refresh page 2 the values change but remain the same (last called depno) as long as I'm doing a new refresh of page 2.

    I wonder how I can run to display the values of the correct point in the title of the page corresponding to the values of the correct page element (that I have hidden).

    Y at - it something more to do, or it could be a small bug?

    I've created a little demo app on
    https://Apex.Oracle.com/pls/Apex/f?p=75955:2

    WS: AMLWS001

    Demo/demo (developer is)

    Please see the report 1.

    Thank you in advance!

    André

    Hi andremi,

    andreml wrote:

    Hello

    Apex 5.

    IR (departments) on page 2 I want to open a modal page 3 (classic report) with the detail data (from emp) for a Masters depno via a link on depno column.
    In Page 3, I created two elements P3_DEPNO and P3_DNAME. These elements are defined in modal page 3 of page 2.
    When I do these two visible elements on page 3 I can see, the values are set correct according to the value in column (depno) link on page 2.
    However, I would like to place these element values in the page title of page 3
    Title: PGE for DepNo: & P3_DEPNO, DepName: & P3_DNAME.

    It happens that the values mentioned in the title of the page are not the same (good) as in the items himself.
    Initially, they are NULL. Only when I refresh page 2 the values change but remain the same (last called depno) as long as I'm doing a new refresh of page 2.

    I wonder how I can make it work to display the values of the correct point in the title of the page corresponding to the values point right page (what I have hidden).

    Y at - it something more to do, or it could be a small bug?

    Page title is rendered before the page elements, that is why is not highlighted in your title.

    I don't think directly, we can use the page as a page element value.

    Creates a copy of yours and made the change it new App id - 45390

    There, I created a static area without a model before your report area and put your article into that.

    then displayed title PGE for DepNo: & P3_DEPNO, DepName: & P3_DNAME. for the area of your report.

    Kind regards

    Jitendra

  • How you trigger sort column of the APEX report interactive page element?

    Hi guys!

    A certain page, I have an interactive report of the APEX. Part of the query is similar to:

    SELECT

    ...,

    (definition column1) BCV,

    (definition column2) RFV,

    ...

    table. RAU,

    The TABLE table_name,...

    WHERE conditions;

    I also have a defined through the following LOV page P121_SORT_BY (selection box) element:

    SELECT "BCV" d, "BCV" r FROM DUAL

    UNION ALL

    SELECT "RF value" d, 'RFV r' FROM DUAL

    UNION ALL

    SELECT 'RA (USD)' d, "RAU" r FROM DUAL

    I've linked a dynamic Action to P121_SORT_BY which runs on the 'Change' event and performs the following JavaScript Code:

    var my_column = $v ('P121_SORT_BY');

    Alert ('test1');

    $x('apexir_COLUMN_NAME').value = my_column;

    Alert ('test2');

    gReport.column.order ('DESC');

    Alert ('test3');

    Alert (my_column);


    Obiously, there is something wrong with my code JS... What can I do to make my report interactive sort DESCENDING column selected in my page element?

    Please note that I also tested the JS without comments and I get pop ups (test1, test2, test3 and the correct name of the column of my_column) but the report isn't back to normal... What am I doing wrong?

    Thank you

    Digital

    Hi all

    I found the answer to my question by navigating through the java scripts in Apex.

    So, this is what works:

    gReport.last_col_id = "BCV";

    gReport.column.order ('DESC');

    Where "BCV" is actually your name of column position, you can send it by a Page Item and means of descending "DESC" and "CSA" means growing.

    I hope this helps other people too.

    Thank you

    Digital

  • APEX 4.2 font size popup LOV page elements is different

    Hello

    I have a page of form one of the elements Pop Up LOV. But I could see it's font size is different from the other page elements.

    No idea how to fix?
    I use APEX 4.1 on 11g with OHS.

    Thank you
    Mehabub

    Sheikh Mehabub wrote:
    Hi, AEC,.

    I created an example in apex.oracle.com
    Workspace: MEHABUB
    user: APEX
    PWD: apex

    Application: 22540
    Page: 2
    One is to select the list and the other is popup LOV. If you select from the list of selection and Pop up LOV you will see the font size LOV is different from the list of selection or other page elements.

    This seems to be intentional. The CSS theme explicitly sets the font size of LOV pop - up is greater:

    /* Select list etc */
    table.formlayout td input.text_field, table.formlayout td select.selectlist, table.formlayout td input.password,
    table.formlayout td input[type="text"], table.formlayout td input[type="password"], table.formlayout td textarea {
      ...
      font: normal 12px/16px "Helvetica Neue",Helvetica,Arial,sans-serif;
      ...
    }
    
    /* Pop-Up LOV */
    table.formlayout td.lov input.popup_lov {
      ...
      font: normal 14px/16px "Helvetica Neue",Helvetica,Arial,sans-serif;
      ...
    }
    

    If you really want to do the same, then you need to replace the theme CSS with:

    /* Pop-Up LOV same font size as other controls */
    table.formlayout td.lov input.popup_lov {
      font-size: 12px;
    }
    
  • Assign value APEX URL of the page to the redirect of the page element

    Hello
    I have the following hard coded URL routing traffic on page 10:
    href = "f? p = & APP_ID.:10: & SESSION. ::: 10 : »

    However, now I have logic to determine the button of the page which should route traffic and I'm storing in a Page element called P6_PAGE_ROUTE (the value is 10 or 23). How can I get the URL to direct traffic based on the value in P6_PAGE_ROUTE? I did some research and I've tried using the & P6_PAGE_ROUTE. but it does not work:

    href = "f? p = & APP_ID.: & P6_PAGE_ROUTE. : & SESSION. : & P6_PAGE_ROUTE. : »

    Thanks in advance for any help!

    URL addresses by passing the values generally have this format:

    href = "f? p = & APP_ID.: & P6_PAGE_ROUTE. : & SESSION. : ITEM1, ITEM2, ITEM3:VALUE1, VALUE2, VALU3

    Where,
    Question 1 has value 1
    question 2 has value 2
    and point 3A of value 3

    So the stuff LHS of the *: * must be the name of a page element

    + PS: Ensure no space after the comma as its URL. I fell for the first time and it is difficult to meet. +

  • When you change an item type only display in hidden element its value changes from any value in value null. Why?


    Dear reading

    When to change a display one item type in the hidden element its value changes from null value any value . Why?

    I would like to use the result of the query in the hidden item, as well as to display it in report footer.

    shortly the displayed element can read footer bu area hidden point cannot be viewved in the footer box. Why?

    footer

    & P11_DISPLAY_ONLY_ITEM.

    footer

    & P11_HIDDEN_ITEM.  )

    (site of apex.oracle.com Application Express 4.2.5.00.08)

    concerning

    Enformatik wrote:

    in the part of the properties point setting its source type as query retune unique value;

    but when you set its value to the calculation (before header) it works correctly.

    It is the expected behavior. The values defined in the properties of the Source element / by default are only put in the controls of the page displayed in the browser, not in session state. To refer to a session-state item value (as in a & P11_HIDDEN_ITEM. substitution of static text) then the value must be set in session state in a calculation or process that runs before the substitution reference is returned.

    Setting the value using a calculation is the right way to do it.

Maybe you are looking for

  • What is. DS_Store

    I can't escape. DS_Store file creation on my desk. I don't know how and why, but I just can't get rid of it permanently. It reappears constantly on my desk and I don't even have a clue what it is and how it continues to display on my desk. Could you

  • How to put emails again in common, Inbox email account

    Check several e-mail accounts using Thunderbird and new emails go into a common inbox. I have set up a new e-mail account and want the emails to get into my existing Inbox. I can't find a setting to make it happen. Help please!

  • [SOLVED] Firefox does not open after you restart... Until I've updated everything

    When I start my computer or restart Firefox only opens if I keep on clicking on the icon. I've pinned it to the bar of tasks and it is set as default. When I click the icon, it turns orange but fades and then back to clear. sometimes as much as 15 to

  • Bootcamp blocks windows 10

    Hello everyone I own a macbook air mid-2013 and I tried to install win 10 on it. I used Bootcamp to download supported drivers. Like many of you I had as we the trick to skip installing the audio driver realtek to install the drivers to support. Afte

  • Upstream 13: make a copy of the USB of computer image 13 Stream

    It has come to my attention that the image USB copy that I compiled may not be usable as a way to reinstall windows 8.1?I learned that the Scandisc USB flash drives which I used are not designed as a way of copying and for the resettlement of same OS