BACK Page of Application/item values

Hi all

I use a package and I need the value of certain elements of the ApEx on the inside but I can get it. I use the following code: (without success)

SELECT v ('APP_USER') FROM DUAL

How can I get the current value of an element by using pl/sql code? This element may be a page or application component.

Cordially Pedro.

Hello

With the code you have shown you are not actually store this value any where...

declare
  l_name varchar2(100);
begin
  l_name := v('APP_USER');
end;

would work.

However, it would be much more efficient to move in the value of your your apex application variables in the code packaged as parameters (to avoid the call to the function of V).

Hope this helps,

John.
--------------------------------------------
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd
AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone!

Tags: Database

Similar Questions

  • Page to confirm item values

    Hello

    I have a form with 4 elements of page, simple text fields, and I as a confirmation message to be able to display their values when a user clicks on submit, but before it is actually submitted. I confirm dialog box pop up, but every page element values are empty, if I hit OK then it is submitted and successfully downloaded, so I know that it's working properly. So is there a way I can capture the values and display them before submitting?

    Thank you!

    OK, I see the problem.  This gets really complicated with DA because & P1115_HOSTNAME. is not a value in session state to what you are proposing.  You could do some actions "Set value" true before the confirm, but it can still does not work as you want too because this message be made client side.

    So, here's a solution without da pass Action your button defined by the dynamic Action of URL redirection.

    Use code like this:

    javascript:apex.confirm("Is this the correct hostname: " + $v("P1115_HOSTNAME") + "?", "SUBMIT");
    

    Your message may be all that you need and the SUBMISSION is the value of the actual demand for the button. So, if you need to RECORD use, etc...

    Now, I wonder if this text is exactly what you want in your confirmation message?  If so, you can use \r for new lines.

    javascript:apex.confirm("HOST\rhostname - " + $v("P1115_HOSTNAME") + "\rORA_INST\rinst_name - " + v$("P1115_INST_NAME") + "...more stuff....", "SUBMIT");
    

    Thank you

    -Jorge

    http://rimblas.com/blog/

  • The session-state item values are used is not in the redirection Page

    Hello
    I have a P7_PERIOD point Page, I put the value of the session state for the click of a button. I can confirm that the value of P7_PERIOD is correctly set in session state after the button is clicked. When I try and P7_PERIOD allows to set the value of an element in another page (P17_PERIOD) on the click of a button, it does not recognize the value of new session state.

    For the second button, I'm telling you "Redirect to Page in this application" on Page 17
    Place these items: P17_PERIOD
    With these values: & P7_PERIOD.

    P7_PERIOD has the correct values in session state, but passes the old values to P17_PERIOD during the click on the second button.

    Any suggestions are greatly appreciated.
    Thank you
    John

    Johnny98 wrote:

    I have a P7_PERIOD point Page, I put the value of the session state for the click of a button. I can confirm that the value of P7_PERIOD is correctly set in session state after the button is clicked. When I try and P7_PERIOD allows to set the value of an element in another page (P17_PERIOD) on the click of a button, it does not recognize the value of new session state.

    For the second button, I'm telling you "Redirect to Page in this application" on Page 17
    Place these items: P17_PERIOD
    With these values: & P7_PERIOD.

    P7_PERIOD has the correct values in session state, but passes the old values to P17_PERIOD during the click on the second button.

    Redirections are run in the browser using URL generated during page processing. This means that the redirect for the second button URL uses the value of P7_PERIOD is during the broadcast of the page, not as it is in session state after it is defined by the first button.

    The second button must execute a submit and branch to retrieve the new value of P7_PERIOD. If there are page accept treatment that should not be run when the user clicks this button, use a branch point before the execution of these processes (for example on submit: before calculating), or condition the process on the other buttons.

  • How do I dynamically set values of the pages on a null value when an item is changed

    Hi all

    I am new to Oracle Apex.

    I have P_ITEM1 as a selection and P_ITEM2 also a list selection of value P_ITEM1. (to my condition that I do not use cascading article Parent LOV)

    I submit the page when the P_ITEM1 value is selected then LOV on P_ITEM2 gets refreshed based on the P_ITEM1 value.

    I am train to clear the item previously selected to P_ITEM2 when the value of P_ITEM1 is changed.

    I tried to create a dynamic action on the change on P_ITEM1 event and net Action on P_ITEM2.

    and the dynamic action does not work.

    Thank you.

    -Kumar

    Kumjeeth

    Set the attribute area of the Page to send items to P_ITEM2. He would submit the P_ITEM2 on dynamic action of refreshment.

    Nicolette

  • Post adjustment Application items in the apex.server.process for a * process application *.

    We were spending the entirety of our method of apex.server.process htmldb_get request the favorite (and documented and supported!). It has worked well so far for the AJAX JavaScript process call, as long as the process of AJAX in question was one * Page * level process. However, when we try to eat a * application * process, it just doesn't seem to work.

    For the examples below, we have two elements of Application named PRS_PRODUCT_PROFILE_ID and PRS_PROFILE_OPERATION. We have a process to request on request (* not * a process page!) named MAINTAIN_PRODUCT_PROFILE_2.

    Here are the previous htmldb_get approach (which works fine):

    function resynchronizeProductProfile (productProfileID)

    {

    var profileOperation = 'EDIT_PROFILE ';

    var ajaxRequest = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is MAINTAIN_PRODUCT_PROFILE_2', 0);

    ajaxRequest.add ("PRS_PRODUCT_PROFILE_ID", productProfileID);

    ajaxRequest.add ("PRS_PROFILE_OPERATION", profileOperation);

    var resynchronizeResult = ajaxRequest.get ();

    ajaxRequest = null;

    Return resynchronizeResult;

    }

    Here's the (what I think is the) same call using the new approach of apex.server.process:

    function resynchronizeProductProfile (productProfileID)

    {

    var resynchronizeResult;

    $s ("PRS_PRODUCT_PROFILE_ID", productProfileID);

    $s ('PRS_PROFILE_OPERATION', 'EDIT_PROFILE');

    Apex. Server.Process ("MAINTAIN_PRODUCT_PROFILE_2"

    , {pageItems: ' #PRS_PRODUCT_PROFILE_ID, #PRS_PROFILE_OPERATION '}

    , {dataType: "text"}

    Async: false,

    complete: function (ajaxResponse)

    {

    var resynchronizeResult = ajaxResponse.responseText;

    }

    });

    Return resynchronizeResult;

    }

    However, in the new version, arguments don't appear to be preparing when the MAINTAIN_PRODUCT_PROFILE_2 application process is called. PRS_PROFILE_OPERATION, for example, is on "even if above, you can see that it is, in fact, pre-programmed on 'EDIT_PROFILE '.

    As a general rule, the call to apex.server.process sets the item values in the page and in the session in a single step. This doesn't seem to be the case with elements of the Application (although it works very well for the items on the Page).

    What's up with that? Everyone see my mistake?

    Thank you

    -Joe

    Post edited by: Joe Upshaw

    Joe,

    Using the pictures I showed you can simply use your application objects in the process. This is exactly the same as what htmldb_Get: when you use. add(), you provide a key pair / value that will be added to the respective tables, it is just behind the scenes. By manually adding to the table with apex.server.process, you get the same exact behavior and apex define elements of page/application corresponding to the value in the table of p_arg_names with the value in the p_arg_values table.

    When test you it in your demo application by assigning the value of the page element, and then using the 4 button (point), you can see that the question of the application session state has changed by inspecting the session state of the elements of the application through "session" in the developer toolbar. (it's in the "apex of ajax samples - forum" app)

    Of course, you can use the scalar parameters x # to provide values for the process, but why would you do the extra arch? If the elements of the application would set the restrictions, you still get the same result as if they were not, and they are easily manipulated through the same ajax call. I added an extra button with an ajax call using x 01. I never had problems with the help of the scalar parameters.

  • 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

  • SkillBuilders modal and Page point question of value

    Hello

    I created a version simplified a problem, I am trying to understand on http://apex.oracle.com (it happens on the two Apex 4.1 and 4.2).

    Workspace: EDIAZJORGE

    User name: TEST

    Password: test123

    Application: 2188

    Page: 1

    I have a field of date and a button that opens a modal page; When the date is changed, a dynamic action is triggered to assign a URL on an element hidden with the new date, for example f? p = 2188:2:105346728385780:P2_DISPLAY:21 - Aug-14

    Whenever the button is pressed, it will open the modal page and display the value of P2_DISPLAY.

    The dynamic action that opens the modal page has a defined static URL like & P1_URL.

    My confusion is that when I change the date, I can see on Session State and HTML P1_URL organizes the correct URL with the new date; However, when I click on the button to open the modal, it displays the value of the page when was initially loaded. For example:

    • If the page load with 21/08/2014, no matter how many times I change the date, it will always show 21/08/2014.
    • If I change the value at 31/07/2014 and refresh the page, then it will show the 31/07/2014 no matter how many times I change the date.

    Two questions:

    1. When the plug-in receives the value of (the Session State and the input HTML to P1_URL element have the correct date)?
    2. How can I fix without having to submit the page?

    Thank you


    Erick

    I am happy that it worked Erick. I didn't know if I explained.

    As for the suggestion of 2...

    If you run the page, as it is now (at least in a recent version I watched) you will see that when you changed the Date you can see that P1_DATE is defined in the session.

    It's b/c you have a dynamic action that works PL/SQL and declares the value of P1_DATE. So, instead of setting the value P2_DISPLAY of the session in the URL, you can use this P1_DATE session state that is set when this is handled via Ajax.

    If you were to change the action that affects your url "f?" p = & APP_ID.: 2: & APP_SESSION. "(or just use it as a static URL in the plugin) then changed P2_DISPLAY to have a value based on the value of P1_DATE it should work.

    Greg

  • By the way the item values without using the URL for it

    Hello

    I want the value of an element to another page.

    Is there a good tutorials on it? I don't want to use the URL for it, if you understand what I mean.

    Also I would like to learn more about session state in the apex and how it works and how I could display a value of an element stored in the session state. So if you have some good reads on that I would appreciate it.

    d6752e93-BC8D-48f1-b3ef-073ab316b748 wrote:

    Update your profile with a readable handle.

    Also, how do I acsess an element that was previously presented on a page.

    A value of element are accessible anywhere in the APEX using the syntax of reference described in the documentation appropriate session state. The required syntax depends on where the item is referenced. In general, use bind value [: MY_ITEM] syntax in queries SQL for APEX and PL/SQL expressions and blocks; the functions V and NV [V ('MY_ITEM')] in stored program units; and the substitutions of static text [& MY_ITEM.] in the properties of code, templates and HTML component. The actual value returned will depend on where the item is referenced in the APEX show/accept treatment.

    For example that I want to fill a text field empty with a value of an element that has been filled with front page.

    What do you mean by "an element that was filled in front page? Before what? By the presentation of previous page? On the same page layout or a different page?

    Please try to make your questions more clear: How to ask questions

  • Open the pages of Application within the region of global page

    Hello, we have an application that uses the hierarchy Menu menu setting (by Tony Jedlinski). To keep menu still visible on the page overall, even when we open the pages of the form or report. So application menu should stay on the left side panel always visible. Do you have a similar requirement and is there a solution? Request Express 4.2.2.00.11 Oracle Database 11g Express Edition Release 11.2.0.2.0 - concerning Production,.

    I can't page 0 in your application? See my first response

    To scroll to page 0 page 1

    12.2 creating a global Page to display items on each Page

  • Compensation using Javascript ITEM values

    Hello guys!

    I try to use javascript in order to clear the item values for multiple items of page at a time using the code below:
    <script language="JavaScript" type="text/javascript">
    function f_setItem (fld)
    { 
    $x('P1_GEBIETSSUCHE').value = '';
    $x('P1_ART_GEBIETE').value = '';
    $x('P1_SELECT_ARBEITSSCHRITTE').value = '';
    $x('P1_FEDER').value = '';
    $x('P1_BIOGEOGRAFISCHER_RAUM').value = '';
    $x('P1_VERFAHREN').value = '';
    $x('P1_REG_KART_TEAMS').value = '';
    $x('P1_ALF').value = '';
    }
    </script>
    The function is called using
    javascript:function f_setItem(fld);
    Of course, this does not. You must override fld with the page element that is supposed to be standing.
    Can you please show me how the function should be to call the function and clear all values in point?
    Maybe this will not only solve this problem but add to my understanding of Javscript routines and calls!

    Would be happy to do this before the end of week moved to.  :-)

    Thank you

    Sebastian

    Hello

    Change it as

    
    

    And call it as

    javascript:f_setItem ();
    
  • I can't get my web pages and applications to open full screen

    No matter what I try, I can't do my windows to open in full screen, currently that's about 3 x 4 inches and whenever I have to optimize and then close when it opens again its young? I have a right-click the Explorer icon open the Properties tab and do it on the line run together optimise but still no luck?

    * original title - I can't get my web pages and applications to open full screen, I tried everything *.

    Here, everything you haven't done?

    Three options.

    1: take the corners of the window and drag it to the format full screen. Do not use to expand. Close all other windows first via the taskbar and the latter. Windows will remember the size of the last closed window the next time that you open the program.

    2: any shortcut you use to launch the window, right-click, and select Properties. Under the 'Run' drop-down list, choose "expanded".

    3: IE New Window Maximizer
    http://www.MajorGeeks.com/IE_New_Window_Maximizer_d1746.html

    Given that this only happens with IE, if the above does not help, please repost it here.

    Internet Explorer forums
    http://answers.Microsoft.com/en-us/IE

  • How to navigate to the next page based on the value returned by the method call inside the action attribute of the command key.

    How to navigate to the next page based on the value returned by the method call inside the action attribute of the command key.

    I use JDeveloper 12.1.2.0.0

    < af:button id = "tt_b2".

    rendered = "#{attrs.nextRendered} '"

    partialSubmit = 'true '.

    action = "#{attrs.backingBean.nextAction} '"

    Text = "next".

    Disabled = "#{attrs.nextDisabled}" / >

    private static final String NEXT_NAVIGATION_ACTION = "controllerContext.currentViewPort.taskFlowContext.trainModel.getNext";

    public String nextAction() {}

    If (validate()) {}

    updateModel();

    Return NEXT_NAVIGATION_ACTION;

    }

    Returns a null value.

    }

    Use case is made for model train, which is being implemented based on this blog: http://javacollectibles.blogspot.co.UK/2014/10/ADF-train-template.html

    We define a generic action following in the model, but the action must be called under certain conditions, based on the question of whether all validation controls had been passed on no.

    You can do this in two ways:

    1 returnValue = (String) ADFUtils.invokeEL("#{controllerContext.currentViewPort.taskFlowContext.trainModel.getNext}");

    return returnValue;

    2.

    public String getNextTrainStop() {}

    String nextStopAction = null;

    ControllerContext controllerContext = ControllerContext.getInstance ();

    ViewPortContext currentViewPortCtx = controllerContext.getCurrentViewPort ();

    TaskFlowContext taskFlowCtx = currentViewPortCtx.getTaskFlowContext ();

    TaskFlowTrainModel taskFlowTrainModel = taskFlowCtx.getTaskFlowTrainModel ();

    TaskFlowTrainStopModel currentStop = taskFlowTrainModel.getCurrentStop ();

    Terminus of TaskFlowTrainStopModel = taskFlowTrainModel.getNextStop (currentStop);

    nextStopAction = nextStop.getOutcome ();

    _logger.fine ("train, next stop:"+ nextStopAction ");

    Return nextStopAction;

    }

  • What is the difference btw: block.item and $item.block.item.value in State of form customization


    Hello

    What is the difference btw: block.item and $item.block.item.value in the customization of the form State section

    I've seen this condition as

    triggering event

    the point at which instance

    : PRESS RELEASE. PICKING_RULE not in the ('US_CB_1', 'US_CC_1', 'US_CA_1', 'US_CU_1')

    and

    When the point instacne

    ${item.release.picking_rule.value} not in ('US_CB_1', 'US_CC_1', 'US_CA_1', 'US_CU_1')

    the two are the same or different

    Thanks in advance

    In the particular example that you use, no difference, you are getting the value and comparing it with a set of values.

    The second form of the syntax, however, take into account what follows, while the first only retrieves the value of the field:

    Conditions can refer to properties of objects using a SPEL (simplest Possible Expression Language) syntax. For example, allows you to create a Condition that tests whether a field is displayed or not. These expressions take the following general form:

    ${objectType.objectName.Property}

    Internally, the expression of SPEL is a cover for Oracle Forms builtins like GET_ITEM_PROPERTY, GET_BLOCK_PROPERTY, etc. In addition, expressions of SPEL are supported recovery values of profile, the dictionary of text messages and local Variables (described later).

  • Input for an item values

    I have a doubt about the creation of input for an item values.

    There is a checkbox for 'point database' when you set the input value.

    What is the exact use of this box?

    I mean even if it is not checked that we select these input as entries in a quick formula values.

    (for example. The entries are BASIC_SALARY)

    What happens if you want to use the value of the entry element in another entry value formula.

    A formula is not attached to your current item.

    It's when you use ELEMENT_NAME_INPUT_VALUE_NAME_ENTRY_VALUE

    Check-

    Select * from ff_database_items

    where user_name like '% ENTRY_VALUE ';

    See you soon,.

    Vignesh

  • Calculation for cutting the first part of the string in the Manager list item values

    Hello

    Please help me with a calculation after submit pl/sql function process for cutting the first part of the string (CQ.) within the values of list manager. For example the list manager support contains values such as

    CQ... SAMPLE1... TEST1

    CQ... SAMPLE2... TEST2

    CQ... SAMPLE1... TEST2

    The calculation process should cut the first part(CQ..) and must return to the list of values of Manager as

    SAMPLE1... TEST1

    SAMPLE2... TEST2

    SAMPLE1... TEST2

    Oracle APEX 4.0.2 is the version and Oracle 10 g r2 is the database.

    Please help me with possible approaches in the development of the service. Thanks in advance.

    Thank you

    Orton

    orton607 wrote:

    But when I insert/update Manager list item values I don't want the first part of the string in the database.

    I still don't understand why you can't change the LOV or create a new...

    The LOV should be:

    SELECT original_value  AS HUMAN_SEES_THIS_VALUE
        ,LTRIM (SUBSTR ( original_value, INSTR (original_value, '..') + 2))
          AS DATABASE_GETS_THIS_VALUE
    FROM (
      -- place original SQL for LOV here
    )
    

Maybe you are looking for

  • AirPort Express is no show in the utility AP

    Airport Express 1264 does not appear in the chart of AirPort Utility. I had my time airport Capsule (3rd generation) running for years. Buy a model 1264 1st Gen Airport Express to extend the system. CAT6 used to connect Express to Time Capsule but Ex

  • How to install Win 8 on Satellite C850 after HARD drive failure?

    I have a PC repair business and a customer gave me a portable Satellite C850-1 kN which took a catastrophic hard disk failure (just clicking from the road). I replaced the hard drive and tried to boot from a DVD 8 Windows, changing the order of start

  • Bluetooth in satellite C660-10V has stoped working

    Hi, my bluetooth has stoped working for a week. Time I changed my internet modem rather USB adapter, I can't reactivate my bluetooth.On my screen is the message of our Lady: "interface power supply is cut off.Its imposible to turn it on, by the funct

  • The Windows 8 operating system upgrade

    I want to improve my hp pavilion dv6 6140 tx (product no.-QC339PA #ACJ) of windows 8 from windows 7.  I surfed on the hp site and discovered this 8 for windows driver my laptop is not yet available.  Its really sad to know that HP does not provide wi

  • Q10 BBM blackBerry channels

    I'm a fan of blackberry for a long time, recently I bought the Q10 and noticed in the bbm application I don't think bbm channels, so I tried to look for an update to the world of blackberry bbm. I couldn't find the bbm application by typing 'bbm' on