Get the value of the item application from another application

Hello

My apologies if this has been answered elsewhere, but it is very difficult to find something relevant when you are interested in the function V!

My application consists of a number of different applications APEX that use the same cookie so that you can easily navigate between applications without having to log in again and to keep the same session id. Having separate applications allows to group pages and reuse the code easily.

I have a requirement to be able to write the values stored in the fields in a single application to the database through a process on a page in another application. As a simplified example, that is to create messages and bookmarks of pages to display specific records in the database. The user will navigate through the system and find a record that they are interested, click on a button that displays a page from another application, enter in some details and then save the record in the database.

The application of 'other' page knows the url of page called him, so that he knows also the application id and the page, but he doesn't know what file is being viewed. I can find the application and the page id is the name of the element that stores the primary key. I noticed that the V function also accepts the stream id, so it should be easy to then get the value by V (v_item_name, v_app_id). However it always returns null.

I've simplified this by adding a page on the homepage (32561 application) process to insert a value in a table of test using a process page:
insert into test values ('#'||V('P1_ID'));
The result is #41
So if I go to the page in the other application, I have a page process which is:
insert into test values ('*'||V('P1_ID',32561));
The result is *.
I thought that maybe the other page of the application was ignorant of id flow, in that I spent, but change the above to:
insert into test values ('*'||V('P1_ID',));
The result is * 1 (the value of P1_ID in the other application)

I'm doing something wrong? Have I misunderstood how the V function? Or is there another way I can retrieve the value of an element of application in another application?

I am currently in 3.1.2, but I just tried this on apex.oracle.com (3.2) with the same results.

Thank you very much
Sara

Hi Sara,.

Have you seen the answer by Scott here -

Re: Cross App State of Session

Namely, using APEX_UTIL. FETCH_APP_ITEM

APEX_UTIL.FETCH_APP_ITEM(
    p_item    IN VARCHAR2,
    p_app     IN NUMBER DEFAULT NULL,
    p_session IN NUMBER DEFAULT NULL)
RETURN VARCHAR2;

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

  • How to get the items selected from indesign Document?

    Hi all

    I'm trying to get the objects selected by the user in the indesign document, to which the following code, I wrote, but his does not collect do not.

    LayoutTarget InterfacePtr < ILayoutTarget > (myContext, UseDefaultIID());

    if (layoutTarget == nil)

    {

    () CAlert::ErrorAlert

    "layouttarget sucks" );

    breaking ;

    }

    UIDList itemList = layoutTarget-> GetUIDList (kStripStandoffs);

    where mycontext is IActiveContext and after getting the itemlist (all managers of related texts).

    How to perceive the limits of the textframe? (TopLeft, TopRight, BottomLeft, BottomRight).

    Thanks and greetings

    Sanjeev.k

    You must initialize the ILayoutTarget with a CSB. As

    InterfacePtr iLayoutCSB (iSelectionManager-> QueryConcreteSelectionBoss (kNewLayoutSelectionBoss));

    InterfacePtr layoutTarget (iLayoutCSB, UseDefaultIID());

    HTH.

    Jasmine

  • Hello. Recently, I buy the suite adobe for students. I also paid for two months. But in my profile it says I have a free plan for testing applications. And I can't get the entire application. How can I solve this?

    Hello. Recently, I buy the suite adobe for students. I also paid for two months. But in my profile it says I have a free plan for testing applications. And I can't get the entire application. How can I solve this?

    Your subscription to cloud shows correctly on your account page?

    https://www.adobe.com/account.html for subscriptions on your page from Adobe

    If you have more than one email, you will be sure that you use the right Adobe ID?

    .

    If Yes

    Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud

    -Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html

    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html

    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp

    -http://helpx.adobe.com/creative-cloud/kb/license-this-software.html

    .

    If no

    This is an open forum, Adobe support... you need Adobe personnel to help

    Adobe contact information - http://helpx.adobe.com/contact.html

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    -Select your product and what you need help with

    -Click on the blue box "still need help? Contact us. "

  • How can I get the filtered data from the first form

    How can I get the filtered data from the first form in a second form to make an update of the multi.
    Thank you very much

    William,

    I would use for this collections. A link is good if you need to pass a single value.

    1. create a collection
    2 fill the collection with your result set
    3. go in the page target and uses a method of a query in your link to this page
    4. your target page receives a request and allows you to edit documents.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • I try to open most of the icons in my control panel, I can get the message: application not found c\windows\system32\rundll32.exe.

    How can I fix it so I can delete unwanted programs? I try to open most of the icons in my control panel, I can get the message: application not found c\windows\system32\rundll32.exe.

    Please press Crtl + Alt + Delete key on the keyboard. Now, you will get a new manager called tasks window.

    Now, please hold down the CTRL key on the keyboard and click file, new task on the Task Manager.  Now, you will get a new black window. Copy the following and paste it into the black command window and press ENTER. Restart the computer.

    Assoc .exe = exefile

    Assoc .lnk = lnkfile

  • How to get the installed Application timestamp programmatically

    How to get the installed Application timestamp programmatically

    Can you please help me.

    http://www.BlackBerry.com/developers/docs/7.1.0api/NET/rim/device/API/system/CodeModuleManager.html#...

    I'm sure you could find yourself by reading the API.

  • How to get the mobile applications other than phonegap Build Service apk file in Dreamweaver CM³

    How to get the mobile applications other than phonegap Build Service apk file in Dreamweaver CM³

    Dreamweaver is a tool, not an install Android of web authoring tool.

  • Change Photoshop elements for windows in Phot 11, now I have no more a windows PC. Can change my serial number of windows in a MAC/OS serial number? What should I do to get the items 11 (download) for OS, one a serial number for 11 elements for OS?

    I have Photoshop elements 11 (full version with serial number) for windows; now I have more to a windows PC. Can change my serial number of windows in a MAC/OS serial number? What should I do to get the items 11 (download) for OS, one a serial number for 11 elements?

    You can download PES 11 via the following linked web page:

    PES 10: 11 - http://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-10-11-downloads.html

  • Can I use the Windows key from another computer non-working on my computer?

    Can I use the Windows key from another computer non-working on my computer? I took the key of this computer and used on my current computer, but I get a message indicating that the key is not authentic, even if it is directly from a previously active computer.

    Original title: Activation

    Hello

    No.; If the operating system on the other came computer preinstalled (Dell, HP, Acer, etc.) you can't use it on another PC.

    If the laptop/computer came with preinstalled Windows operating system (Dell, HP, Acer, etc.), this product key provided with your computer/laptop to the OEM license preinstalled and is not transferable.

    OEM license/product key (systems of operating pre-installed on Dell, HP, etc.) is related to the first machine it is installed on and dies when dies of this machine.

    Only retail Operating System license that you buy and install yourself, are allowed to be transferred to another machine.

    And retail licenses also can be installed on a machine at one time.

    See you soon.

  • Set and get the value of the item application in Javascript

    Hello guys,.
    Can you tell me an example how to set and get the value of the application element in Javascript, and how do I check if the value of the point of application is null in Javascript, too. I have read a few replies, but nothing worked (e.g. $x (app_item), $v (app_item), $s (app_item) and so on).

    Thanks in advance!

    To get the value of an element, use the following syntax:

      alert("The value of MY_TEST_ITEM is " + $x("MY_TEST_ITEM").value);
    

    to set the value that you have just made

      $x("MY_TEST_ITEM").value="Set to this value";
    

    Keep in mind however that you need to send the page in order so that he could be picked up by APEX - javascript is CLIENT SIDE, ONLY! Either that or use AJAX to put on the side server.

  • Value of the item application in javascript

    I'm sorry that if this question has been asked, I can't find a clear answer on how to search through the forum.
    I'm trying to access the value of an element of the application in javascript.
    I tried $v('APPL_ITEM') and $v('APPL_ITEM').value, when I try with alert ($v('APPL_ITEM')) or ($v('APPL_ITEM').value) alert poster null or undefined.
    I saw the session state, view all and see my request item hah a value.
    How can I use the value of an element of application money in a JavaScript function.

    Kind regards
    Mark

    Brand:

    Application parts are not part of the HTML page generated by APEX and are therefore cannot be referenced using javascript. You can however write a JS function that uses AJAX to retrieve the value of the element of the request of session state. Something like

    function getappitem(appitem){
      get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=GETAPPITEM',0);
      get.addParam('x01', appitem);
      gReturn = get.get();
      get = null;
     // alert (gReturn)
    return gReturn;
    } 
    

    And and ODP named GETAPPITEM with the following code

    HTP.PRN(v(APEX_APPLICATION.G_X01));
    

    You can now call "getappitem" in JS like

    getappitem ('TEMPORARY_ITEM') to get the value of the application element named "TEMPORARY_ITEM".

    CITY

  • How to pass the value of the item Application Javascript function.

    Hello

    I have the JavaScript in the properties attribute of the HTML Form element

    I'm on page 1 and passing the value of the item page P1_DEPT_NO. It is perferctly working very well and I am able to get the exact value of the element on the page
    onchange="javascript:function1($x('P1_DEPT_NO').value);"
    I'm on page 1 and passing the value G_DEPT_NO of the Application element .
    The problem here is, I don't get the point of Application inside the javascript function value.
    I tried to use alert(); and it gives me the undefined value
    onchange="javascript:function1($x('G_DEPT_NO').value);"
    I just want to know, How to pass the value of the Application in Javascript element.

    Thank you
    Deepak

    Deepak,

    I'm not a Javascript expert, but the suggestin I did was because the javascript is a case-sensitive... language and thats why onChange is not the same thing as onchange.
    Not sure if this is causing the problem.

    Application elements not associated with a page and have therefore no properties user interface.
    So, as mentioned in another post, the rendering would not work for the elements of the application.
    If it is for a single item, used only on this page, you might create a hidden page element and use it fo your goal

    If you want to keep watching objects application and AJAX, this page contains examples of using AJAX to solve problems like the one you mentioned.
    http://www.Oracle.com/technology/OBE/hol08/apexweb20/ajax_otn.htm#T1B

    Thank you
    Rajesh.

  • How can I get the items checked in a list that is generated automatically?

    I'm still pretty new a CF and could use very little help. I try to get every item that is checked a page that generates the list automatically from a query and get the text textbox associated with it. For example:

                        <!--- Start Get Data Hierarchy List--->
                                  <cfquery datasource="MyDatasource" name="qry_GetData">
                                            SELECT C.taxonomy_id, C.lvl, C.taxonomy_name, C.taxonomy_tree, C.taxonomy_guid, C.taxonomy_standard_name
                                            FROM dbo.taxonomy AS P
                                            JOIN dbo.taxonomy AS C
                                                      ON P.taxonomy_id = 21
                                                      AND C.hid.IsDescendantOf(P.hid) = 1
                                                      AND C.lvl = 3
                                  </cfquery>
                        <!--- Start Get Data Hierarchy List--->
    









    < cfloop query = "qry_GetData" >









    < input type = "checkbox" name = "" cbox_PE_SelTax #taxonomy_id # "value =" #taxonomy_name #"> < font size ="4"color = '3399FF' > #taxonomy_name # < / font >"









    < br / >









    "- Details of ' experience with #taxonomy_name #: < input name =" "tbox_PE_SelTax #taxonomy_id #" id = "tbox_PE_SelTax #taxonomy_id #" size = "50%" >









    < br / >









    < br / >








    < / cfloop >

    If you want just the names, you can let the value of the checkboxes the value taxonomy_name. In your action page (intrusion via CFMAIL, whatever) you could just output it:

    Taxonomies: #form.cbox_PE_SelTax #.

    Dave Watts, CTO, Fig Leaf Software

  • How can I get the same results from Google Images like in internet Explorer

    If I search Google Images in IE8, I get a list of result pages with a fixed number of items per page. These thumbnail images download quickly, and under each image there is useful information about the content of the image and its source. Images on the next page doesn't download not unless if I select the next page in the list, so that the modem activity stops quickly.

    When I use the same URL - www.google.com - in Firefox and go to Images, I get pages with an indefinitely large number of images of result. All images are stuck next to each other, and there is no other useful information from the text shown at all. If I try to scroll to the bottom of the screen, images more keep downloading. There seems to be no Google settings available in this view to limit the number of images per page.

    Only problems with this is that I am currently limited to 56 KB connection. Images from this point of view download so slowly that they simply never complete in a reasonable time.

    However, apart from the speed of connection, there is the question of the useful information from the missing text.

    I can search for photos on startpage.com and get something like the old format of Google, but I can't receive the best list of results that I expect from Google. StartPage uses Google for their research on the web regularly, according to a note on the web search display. But if I go to Images, this note disappears.

    I call it the traditional Google Images Search in Firefox?

    Problem solved by saving a bookmark to Google and then to add by changing the & sout = 1 keyword in the URL.

    When Google is accessible with this keyword, it will ship between web and image searches.

    This example gets always the classic view of Google images.

  • Am unable to download/updaate cab on windows 8.1 and CS6.  Get the error "Application feeder damaged."  Downloaded new application manager, same result.  How to proceed?

    Have just upgraded to the new computer running windows 8.1 and downloaded CS6.  Unable to download the raw files of Nikon D800, but may update the raw files from Canon G10.  When I try to upgrade to ACR, I get the error message "Application Manager" damaged, download new application manager with the same result.  CS6 came with ACR 7.0.0.308, which seems like it should treat the D800 raw files.  How should I proceed?

    update by downloading the files directly and then apply them:

    pre cc updates: http://www.adobe.com/downloads/updates/

    CC updates: http://prodesigntools.com/adobe-cc-updates-direct-links-windows.html

    updates CC 2104: http://prodesigntools.com/adobe-cc-2014-updates-links-windows.html

Maybe you are looking for

  • N40l Microserver does not illuminate. Switch will not do anything.

    Team, I have a micro N40L server that I use a home theater media server. It has been sitting in my living room for a few years, quite happy. This week, possibly after a power failure, the server couldn't start. I noticed he was sitting there with the

  • MacBook Air crashing several times per day

    Hello I have a mid-2013 11 "MacBook Air Yosemite 10.10.5 running.  Other specifications: 1.3 GHz processor Intel Core i5, 4 GB 1600 MHz DDR3. A few months ago hard breaks down started happens occasionally, so I wan't immediately concerned. But now th

  • 15 - g092sa: How do as I start my installation of windows 7?

    HelloMy 15-g092sa came with the victory of atrocious 8.1. I need to get a job done, so I try to install my Windows 7 Pro 64. That the DVD was used for several times whenever I had replaced the material. It starts well on any other equipment.However,

  • Phone lock and fingerprints

    Hi all Lollipop phone lock, either by the hardware button or software used to unlock using the fingerprint sensor. But Marshmallow only pitcher results hardware button to release through fingerprint sensor. If I use the screen with software lock (for

  • Ethernet controller drivers are missing

    Hello! One of my friends told me that on his pc (HP G6-2154 SL), there were a few problems, and she did not like Windows 8 (which she had installed by itself). She asked me to reinstall windows 7. I did, but then (after the installation process) all