How to restore session item values

Hi,
We have a request form which has more than 50 fields and some hidden items which are calculated depending on other items. We have to implement SAVE request feature so that the user can save their partially filled request. We are storing these fields data in more than two tables and not storing some hidden item values. Our idea is to store that form page current session values and restore them when ever user wants to complete request. Is there any apex views which will have all these data. Please suggest how can we do this.
Thanks in advance.
Regards
Ram

Hello Ram,
>> Yes we have seperate SAVE button
That’s good, as it allows you to use these buttons to condition the PL/SQL processes, differentiates between the temporary and permanent actions.
>> Our idea is to have temp table to store all the items and their values in the page when the user clicks on the SAVE button
You are using ‘table’, in a single form, so I assume you refer to a single (temp) table. With careful planning of this temp table, it might be possible.
To use a single temp table, it must contains details of the item name, value and the application page it defined on (although this information can be derived from the item name, if you are using APEX item name convention). The page items should be defined with a Source Type of ‘Database Columns’, and in this case, you can use the APEX_APPLICATION_PAGE_DB_ITEMS view to track them. Using this view, you can retrieve the relevant items for the current page, and then, dynamically build a PL/SQL insert/update statement to save the items into the temp table; or a PL/SQL select statement to fetch relevant items from the temp table and populate the page items.
These are not trivial processes to build, and as you are going to use a single (generic) temp table, you will have to code all the temp/permanent DML statement yourself, but it seems doable.
You might also want to check the WWV_FLOW_DATA table, which holds the session state data, and see how it was defined (for example using CLOB as the item value datatype, to allow you to store different types of APEX item values in a single column).
Hope this helps,
Arie.
Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.

Similar Messages

  • How to pass session variable value with GO URL to override session value

    Hi Gurus,
    We have below requirement.Please help us at the earliest.
    How to pass session variable value with GO URL to override session value. ( It is not working after making changes to authentication xml file session init block creation as explained by oracle (Bug No14372679 : which they claim it is fixed in 1.7 version  Ref No :Bug 14372679 : REQUEST VARIABLE NOT OVERRIDING SESSION VARIABLE RUNNING THRU A GO URL )
    Please provide step by step solution.No vague answers.
    I followed below steps mentioned.
    RPD:
    ****-> Created a session variable called STATUS
    -> Create Session Init block called Init_Status with SQL
        select 'ACTIVE' from dual;
    -> Assigned the session variable STATUS to Init block Init_Status
    authenticationschemas.xml:
    Added
    <RequestVariable source="url" type="informational"
    nameInSource="RE_CODE" biVariableName="NQ_SESSION.STATUS"/>
    Report
    Edit column "Contract Status" and added session variable as
    VALUEOF(NQ_SESSION.STATUS)
    URL:
    http://localhost:9704/analytics/saw.dll?PortalGo&Action=prompt&path=%2Fshared%2FQAV%2FTest_Report_By%20Contract%20Status&RE_CODE='EXPIRED'
    Issue:
    When  I run the URL above with parameter EXPIRED, the report still shows for  ACTIVE only. The URL is not making any difference with report.
    Report is picking the default value from RPD session variable init query.
    could you please let me know if I am missing something.

    Hi,
    Check those links might help you.
    Integrating Oracle OBIEE Content using GO URL
    How to set session variables using url variables | OBIEE Blog
    OBIEE 10G - How to set a request/session variable using the Saw Url (Go/Dashboard) | GerardNico.com (BI, OBIEE, O…
    Thanks,
    Satya

  • How to pass apex item value into custom xml for chart or guage?

    Re-opening the old thread : Re: How to pass apex item value into custom xml for chart or guage?
    Which was not answered.
    Roel - Thanks. Its working - but in a semi quotes in the custom XML
    <pointers>
    <pointer value= '&P5_RUNNING_TOTAL.'
    <label enabled="true">
    <position placement_mode="ByPoint" x="50" y="15" />
    <format>{%Value}{numDecimals:1}</format>
    <background enabled="false" />
    </label>
    </pointer>
    </pointers>This question was helpful for us to resolving one recent thread : AnyChart - set Dial axis intervals dynamically?
    (Re: AnyChart - set Dial axis intervals dynamically?
    Edited by: P.Ranish on Dec 13, 2012 6:23 AM

    P.Ranish wrote:
    Is there any update for this question ???
    Edited by: P.Ranish on Dec 13, 2012 3:36 AMNo, And there won't be in the future.
    Please stop posting followup's to old threads, if you have a real problem please search the forum first and post a new question with all information
    Roel wrote:
    Try using &P5_RUNNING_TOTAL. or #P5_RUNNING_TOTAL#Just to make it clear - this will only work if page is reloaded after setting the item values dynamically via AJAX

  • How to passback report item value

    Hi,
    Below coding is passback value from popwindow to the screen fields. P2_BOOKING_NO,P2_CUSTOMER_CODE,P2_REF_CUSTOMER_CODE are form fields. i have a report, that report have booking_no a reference key of form field booking_no. So both form and report table has booking no. So using join to retreive or passback the report data also. my problem is how to passback the report data. below coding is only for form field. i dont know how to passback report item value from popup window to the screen.
    popup window javascript:
    <script language="JavaScript">
       function passBack(passVal1, passVal2, passVal3)
       opener.document.getElementById("P2_BOOKING_NO").value = passVal1;
       opener.document.getElementById("P2_CUSTOMER_CODE").value = passVal2;
       opener.document.getElementById("P2_REF_CUSTOMER_CODE").value = passVal3;
       opener.document.getElementById("P2_REF_CUSTOMER_CODE").focus();
       close();
    </script>
    Link in popup window:
    javascript:passBack('#BOOKING_NO#','#CUSTOMER_CODE#','#REF_CUSTOMER_CODE#');
    page javascript:
    function callMyPopup (formItem1,formItem2,formItem3) {
        var formVal1 = document.getElementById(formItem1).value;
        var formVal2 = document.getElementById(formItem2).value;
        var formVal3 = document.getElementById(formItem3).value;
        var url;
      url = 'f?p=&APP_ID.:3:&APP_SESSION.::::P3_BOOKING_NO,P3_CUSTOMER_CODE,P3_REF_CUSTOMER_CODE:' + formVal1 + ',' +
    formVal2 + ',' + formVal3;
      w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
      if (w.opener == null)
      w.opener = self;
      w.focus();
      }How to do this?
    Skud
    Edited by: skud on May 20, 2011 5:47 PM

    Hey Skud,
    I am trying to implement something similar and definitely need assistance. Were you able to resolve this issue?

  • How to pass Application Item value in Javascript function.

    Hi,
    I have the following javascript in the HTML Form Element Attributes properties
    I am on Page1 and passing P1_DEPT_NO page item value. This is working perferctly fine and I am able to get the exact value of the page item
    onchange="javascript:function1($x('P1_DEPT_NO').value);"I am on Page1 and passing Application Item G_DEPT_NO value.
    The problem here is, I am not getting the Application item value inside the javascript function.
    I tried using alert(); and it's giving me value as undefined
    onchange="javascript:function1($x('G_DEPT_NO').value);"Just want to know, how to pass the Application Item value in Javascript.
    Thanks,
    Deepak

    Deepak,
    I am not an expert at Javascript, but the suggestin I made was because javascript is a case-sensitive language.. and therefore onChange is not the same as onchange.
    Not quite sure if that is causing the problem.
    Application items are not associated with a page and therefore have no user interface properties.
    Therefore, as mentioned in another post, the rendering would not work for application items.
    If it is for a single item, used only in this page, you could create a hidden page item and use it fo your purpose
    If you still want to look at application items 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
    Thanks,
    Rajesh.

  • How to pass line item values in the table paramer of FM

    Hi all,
    When i will give the import of  the FM as VBELN"sales order number.
    I want to display all the line items for "PO Quantity in the out put of the FM.
    For this i thnk i have to pass the line item values in the table parameter of the FM.
    Can any body please tell me how to pass the values for the line items in the table parameter fo teh FM.
    Please give a example.
    Thanks

    Sub pLoopThroughPivotFields()
    Dim oItem As Excel.PivotItem
    Dim oField As Excel.PivotField
    Set oField = ThisWorkbook.Worksheets("Sheet1").PivotTables("Pivot Table name").PivotFields("field name")
    For Each oItem In oField.PivotItems
    oField.CurrentPage = oItem.Name
    'Put your copy code here
    DoEvents
    Next oItem
    End Sub
    Felipe Costa Gualberto - http://www.ambienteoffice.com.br

  • How to read selected item value from DropDownList?

    Hi,
    The DropDownList component has a selectedItem property that is supposed to return a ListBase.
    But what I want is just the "String" that is supposed to be the selected Item in the DropDownList.
    How can I read this value?
    thanks
    -Malena

    Thank, yes, I realized that right after I posted my question -:)
    I casted the selectedItem property to String and voila.
    Best
    -Malena

  • How to restore sessions after upgrade

    Just upgraded to FF 33. Previously I had two windows open. Upon restart only one opened, with all its tabs intact. I would like to recover the other window as well. "Restore session" is either grayed or missing on menu and start pages. Is there a way to recover the second window.

    Usually, the History menu will list closed windows you can restore below the grayed out Restore Previous Session. Anything listed?
    Before closing Firefox, please back up your session history files to a safe location for potential recovery/salvage operations.
    You can open your current Firefox settings (AKA Firefox profile) folder using either
    * "3-bar" menu button > "?" button > Troubleshooting Information
    * (menu bar) Help > Troubleshooting Information
    * type or paste about:support in the address bar and press Enter
    In the first table on the page, click the "Show Folder" button.
    In the window that launches, scroll down and double-click into the '''sessionstore-backups''' folder. Save all files here to a safe location, such as your Documents folder. We may be able to use them to recover your lost tabs.
    The kinds of files you may find among your sessionstore files are:
    * recovery.js: the windows and tabs in your currently live Firefox session (or, if Firefox is closed, your last session)
    * recovery.bak: a backup copy of recovery.js
    * previous.js: the windows and tabs in your last Firefox session
    * upgrade.js-''build_id'': the windows and tabs in the Firefox session that was live at the time of your last update
    You might also find files Firefox created if it could not update recovery.js (but since Firefox 33 is so new, I don't know what they would be named).
    Could you take a look at what you have and the date/time of the various files to see whether you think any of them would have the missing window?
    Note: By default, Windows hides the .js extension. To ensure that you are looking at the files I mentioned, you may want to turn off that feature. This article has the steps: http://windows.microsoft.com/en-us/windows/show-hide-file-name-extensions

  • How to restore the items lost before i backed up my ipod

    Well I traded in my IPod after I cracked but before I did I backed it up so all of my items wouldn't be gone. I could not restore my new IPod right away so I waited a week. In that week I accumulated a lot of pictures and notes. Yesterday I decided to finally restore my IPod. When I did I found that all of the pictures and notes I had saved in that week when I had just gotten my IPod had been deleted and replace with all of my old data. I was wondering if there was anyway to restore those pictures I had saved during that short period of time. Thank you and have a wonderful day

    If you did not backup during that time then the data is gone. You may be able to get your phtos taken by or saved to the iPod backup by getting them from your PhotoStream. For how see the PhtosStream topic of:
    iOS: Importing personal photos and videos from iOS devices to your computer
    Also see:
    iCloud: Photo Stream FAQ

  • How to restore calendar items from Entourage 2008 after upgrade to Lion (10.7.5)?

    I held off upgrading to Lion because I had a bunch of old email I wanted to convert first. But now that Apple is no longer offering security updates for Snow Leopard, I decided to take the plunge. Unfortunately, after the Lion upgrade most of my calendar items in Entourage 2008 disappeared (and those that remained appeared in duplicate).
    I think I should be able to access an uncorrupted version of my Main Identity folder for Office 2008 … because I have an Automator workflow that creates a daily backup, and that backup should be available through Time Machine. I turned off Time Machine after this calamity so that I wouldn't overwrite my Entourage Backup folder.
    I need the July 8 or 9 version of:  ~ / Documents / Entourage Backup / Main Identity.
    But when I select the Entourage Backup folder and open Time Machine, all the Finder windows behind the current one go dark and I can't move backward toward an earlier date (I've done this with Time Machine turned off and on). This makes me think the Entourage Backup folder has not been getting backed up recently, or perhaps ever. Ugh.
    When I check my Time Machine preferences, only the following items are shown as excluded from backups:
    So it seems I should be in the clear and able to access Entourage Backup.
    Any idea what I'm doing wrong in trying to restore from Time Machine? Or anything else I might be doing wrong?
    Many thanks.

    When I check my Time Machine preferences, only the following items are shown as excluded from backups:
    Not sure how any of this relates to a Time Capsule....one of the hardware products that we support in this forum.....but we will try to help.
    Main Identity is located as follows on your Mac:
    Macintosh HD > Documents > Microsoft User Data > Office 2008 Identities > Main Indentity
    Unfortunately, you have been excluding Microsoft User Data from your backups, so there is nothing to recover or restore.

  • How to clear invalid item value?

    Hi, All.
      I have two items: selectOneChoice and inputComboboxListOfValues. The second item list of values depends on the first item selected value. When the value of the first item is changed, the second item should be reset. I do this by
    calling setValue(null) on the second item. The partialTriggers property of the second item is set to the first item id. If the second item has a valid value, then everything works well. But if the second item has an invalid value, for
    example, the user after entering an incorrect value, clicks on another item, the setValue(null) does not reset the value.
      Moreover, it is possible that a user saves to the database invalid data. For example:
      1. Select a valid value on the second item.
      2. Remove some characters making the invalid value.
      3. Go to some other item by clicking the mouse.
      4. Change value in the first item. (At this time will invoke setValue(null), and the list of values of the second item will change.)
      5. Edit the value in second field to the value set in the first paragraph (this value is not valid after changing the value in the first element).
      6. After that the document can be saved, no further checks are not happening.
    Version of JDeveloper is 11.1.2.4.
    How to set null value and how to ensure that in the second item it was impossible to enter not valid value?
    Regards,
    Alexey

    OK, I looked into the issue. There are two problems:
    1) your data model does not check the entries in the SOME_DOCUMENTS. You only check the FK against the master tables. You need to check if hte combination of the keys are valid. On solution would be to use model driven dependent lov. Check Andrejus Baranovskis's Blog: Cascading LOV's in JDeveloper 11.1.2.3.0 for a sample. Next the VO you use is based on multiple EO which is not necessary if you use Andrejus's approach.
    2) There might be a bug in the af:inputComboboxListOfValues in this scenario when you you allow to enter values (or parts of it) in the inputText. However, if you validate the keys correctly, you can't insert something invalid. This problem has it's root in your data model. If you use the dependent lov and don't allow user input you can't change the selected value to something invalid. So my advice is to use dependent lov and don't allow input in the inputComboboxListOfValues (set editMode='select'), the user can still search or select the value, but only the valid ones.
    The inputComboboxListOfValues error need some more investigation which need more time. I'll see if I find out something more.
    Timo

  • How to get selected item value and display text in selectOneChoice ?

    Hi
    Thank you for reading my post
    I bind the a selectOneChoice component to my backing bean so i have an object which represent this component in the backing bean.
    now i need to find which item is selected by use , i know that i can use
    getSelect_service().getValue.toString() , but it will return the value of the selected item, how about its display text ?
    I should say that i create an static list for selectOneChoice items.
    thanks

    Using JDeveloper 10.1.3.1, freshly downloaded off OTN. I used the following code to try and identify the problem you are encountering. I attempted to use a valueChangeListener in combination with af:selectOneChoice components that use SelectItems and the singular SelectItem. I could not reproduce the error in either case. Please post more information about your development environment.
              <af:selectOneChoice label="Label 1"
                                  binding="#{backing_test.selectOneChoice1}"
                                  id="selectOneChoice1"
                                  valueChangeListener="#{backing_test.valueChangeListener}"
                                  autoSubmit="true" immediate="true">
                <af:selectItem label="1" value="1"
                               binding="#{backing_test.selectItem1}"
                               id="selectItem1"/>
                <af:selectItem label="2" value="2"
                               binding="#{backing_test.selectItem2}"
                               id="selectItem2"/>
                <af:selectItem label="3" value="3"
                               binding="#{backing_test.selectItem3}"
                               id="selectItem3"/>
              </af:selectOneChoice>
              <af:selectOneChoice label="Label 2"
                                  binding="#{backing_test.selectOneChoice2}"
                                  id="selectOneChoice2"                              valueChangeListener="#{backing_test.valueChangeListener}"
                                  autoSubmit="true" immediate="true">
                <f:selectItems value="#{backing_test.items}"
                               binding="#{backing_test.selectItems1}"
                               id="selectItems1"/>
              </af:selectOneChoice>
        public void valueChangeListener(ValueChangeEvent evt){
            // returns a UISelectOneChoice object
            System.out.println(evt.getSource().getClass().getName());
            // returns a string
            System.out.println(evt.getNewValue().getClass().getName());
        public Map getItems(){
            items = new HashMap();
            items.put("11","11");
            items.put("12","12");
            items.put("13","13");
            return items;
        }

  • How to refresh list item values before report is run?

    We have two SELECT LIST items (drop boxes) on our report. One SELECT LIST has values of "World Region" (e.g. NORTH AMERICA, SOUTH AMERICA, EUROPE, ASIA)
    the other SELECT LIST has values of "Subregion" (e.g. NORTHERN EUROPE, SOUTHERN EUROPE, SOUTHEAST ASIA etc...)
    The values in the Subregion list are dependent on the value that is chosen from the "World Region" List. Can someone tell up how to update the values in the Subregion list BEFORE we submit the page? We can get these values to update (via sql query) when the page is submitted but that is only happening after the report gets run- which is not what we want. We want the user to select a Region from one SELECT LIST and then see all the qualifying Subregions for that Region in the Subregion SELECT LIST. Only after both Region and Subregion have been selected do we want to run the report. Thank for any help on this.

    hey john--
    john) things like Scott's reference to "The name of the LOV Item". What does this really mean?
    raj) in htmldb there's a concept of items at the page and at the app level. page level items have ui component associated with them. in scott's explanation above, he's talking about using a page-level item with a "Display as" type of "select list w/submit" for your first select list. in that case, he's suggesting you have one select list item drive the values of another. when the self-submitting select list submits the page, it sets an htmldb built-in variable called :REQUEST to the name of the self-submitting select list item. in your follow-up post's example, that'd be "REGION_LIST". scott was explaining how you could control the functionality on your page by adding conditions to things like...
    :REQUEST = 'REGION_LIST'
    ...or using declarative Condition options like "Request = Expression 1" and then putting the string "REGION_LIST" in that Expression1 field. so in your case, you have a report region that you don't want displayed until the user's done selecting from your Subregion list. an easy way to handle that would be to add a hidden item (where "Display as" is set to "Hidden") to your page, for example :P1_LAST_REQUEST, to store the last value of :REQUEST. put a Computation on your page that populates :P1_LAST_REQUEST with :REQUEST each time the page is submitted. then put a Condition on your report region that makes it only render when :P1_LAST_REQUEST != 'REGION_LIST'. so this way your users can select a Region and have the page submit itself. the page will then redraw with the values of subregion list correctly populated (you'd presumably use :REGION_LIST in your subregion LOV query to achieve the filtered values) w/o your report region displayed. the user would then select a correct subregion and click some sort of "run my report" button. this time when the page redraws, :P1_LAST_REQUEST would be set so something other than "REGION_LIST" (it'd be set to whatever you named your "run my report button") and so your report region would display as desired.
    hope this helps,
    raj

  • How to restore cancelled Item with DI API

    Hello,
    how can I restore a cancelled Item with DI API ?
    Regards,
    Jan

    Hi Jan,
    Obviuosly there's no method in DI API's Items object available for that - i.e. you would need to go through the SAP Business One application to handle that (eventually through UI API-based workarounds...).
    Sorry,
    Frank

  • How to get session bean values in voimpl classes

    Hi Experts,
    To access session values in voimpl the below lines works fine.
    Map sessionScope = ADFContext.getCurrent().getSessionScope();
    String userName = (String)sessionScope.get("userName");
    Can any one please help me in getting the values from session bean in voimpl.
    Regards
    Gayaz

    Hi Jabr,
    Please have a look into this post. This is for implementing ADF search and pass bind variables while performing search.
    how to pass bind parameters while performing search
    Regards
    Gayaz

Maybe you are looking for

  • Error in Upload file-table or view does not exist-wwv_flow_file_objects$

    Hi, i am trying to upload a file and then store the contents of the file into one of my tables in the schema.I wrote one package for uploading the file and then a process to insert each record in the uploaded file to the table in my schema.When i try

  • How can i delete an old profile off game center when i dont know the password?

    i set up an account on game center when i first got my old iphone and have since upgraded my iphone. i cant remeber the password for it and so cant log in. i cant seem to reset the password but when i play games i get a prompt telling me that no achi

  • Getting to know Server 2012 R2 Issue

    Trying to work in the virtual lab for Getting to know Windows Server 2012 R2, and I was stumped within 5 minutes. Server3 in that lab can ping every other machine, but no machines could ping Server3 and thus everything involving Server3 in the lab wa

  • After Effects CS6 RAM preview seems to now be broken after 11.0.2.12 update

    Updated to the latest patch for AE CS6 11.0.2.12. When I hit RAM Preview, my After Effects just locks up, or has an enormous (minutes) delay if I have multi-processor rending turned on. Info says it is working on background processes. In fact, if I a

  • I can't start my subscription in PS CS5.1?

    I'm using Mac Lion, first time using the subscription. 'We were unable to start your subscription for Adobe Photoshop CS5.1 Extended Subscription Edition' I understand that these are the steps for windows... The following steps should allow you to re