Persist saved query across sessions

I have an Query Panel with Table, built from a View Object. The panel has a "Save" button that allows users to save queries, but it works only for a single session. Is it possible to make it work across sessions?
I'm using JDeveloper 11.1.1.5.0

Yes you can save it across sessions - for this you'll need to enable MDS on your system.
http://andrejusb.blogspot.com/2009/09/persisting-query-criteria-results.html

Similar Messages

  • Persist Table selection Across Sessions

    Hi,
    JDev 11.1.1.5.0
    I've an use case on 'Persisting Table selection Across Sessions'.
    I've a three regions in a page.
    Region1 contain three structure with around 6 levels.User can select required nodes from the tree.
    Then click on Update cmd button. Now Region 2 & Region 3 will be refreshed on Update cmd button
    click.
    Region2 lists metadata info of all the selected nodes in a table format.
    Region3 contains some statistic information.
    Conclusion:
    Region1 - Tree structure
    Region2 - Table Structure
    Region3 - Statistics form
    So far, I've achieved this. Now User can select rows from the table in region2 and then click on
    Save cmd button.
    I Need to save selected rows accross the sessions.
    Usecase perpose:
    The table contains very huge content. User might not able to complete his job on one day. So user
    want to save his selection and save for today then continue with same tomorrow also.
    At the end, selection list going to patch process.
    I tried my level best to explain my usecase.
    Please let me know, if you have any suggestion to achieve my usecase.
    Thanks,
    Samba.

    Hi Akash,
    Thanks for your quick response.
    I've doubt on your suggestion. Please correct me, if my understanding is correct. I need to add one more column in the DB table for selection status.
    Here my doubt is: How can I handle the scenario, if the same row is selected by more than one user?
    can I create a separate table with below details
    Name:(PK)
    Table content references CLOB: List of all Primary Keys of selected rows.
    It seems to be completely programmatic approach. Looking for best option similar to 'Saved Search' functionality.
    -Samba.

  • Changing Variable values and saving it across sessions.

    Hi,
    I've have an requirement like counting the number of times a form is opened and number of times a button is clicked.For this I tried to use global variables.I tried to increment the value of the variable each time a form is opened or a button is clicked.
    opencount.value += 1;
    But it didnt work for me.I tried to hardcode a value like
    opencount.value = 5;
    Even this is also not working.Do I need change any settings or extend rights.Is it possible to save the values that are persistent across the sessions.
    Please help

    I have another apporach using an extras object.
    What you is a script object 'Actions' with this script, to create a counter in the extras object in any form object.
    function initOpenCounter(targetObject) {
        if (targetObject.extras.nodes.namedItem("OpenCounter") === null) {
            targetObject.extras.nodes.append(xfa.form.createNode("extras", "OpenCounter"));
            targetObject.extras.OpenCounter.nodes.append(xfa.form.createNode("integer", "state"));
            while (targetObject.extras.OpenCounter.nodes.length > 0) {
                targetObject.extras.OpenCounter.nodes.remove(targetObject.extras.OpenCounter.nodes.item(t argetObject.extras.OpenCounter.nodes.length - 1));
            var newState = xfa.form.createNode("integer", "OpenCounter");
            newState.value = 0;
            targetObject.extras.OpenCounter.nodes.append(newState);
    Then you need another script, to call the function in the script object and raise the counter, when the form opens.
    I used a floating field in a text on a master pager and put this script into its initialize event.
    Actions.initOpenCounter(this);
    var cCount = parseInt(this.extras.OpenCounter.nodes.item(0).value, 10);
              cCount += 1;
    this.extras.OpenCounter.nodes.item(0).value = cCount;
    this.rawValue = cCount;
    Here's a sample form with an open and save counter.
    https://acrobat.com/#d=C90OHrJKx52LHrtbtahWzQ

  • How can I disable Google Instant in Firefox 6 without saving cookies across sessions??

    I'm currently using Firefox 3.6.22 & clear all history including cookies, etc. whenever I close Firefox. I can disable Google Instant by changing general.useragent.extra.firefox in about:config to Fx/3/6/22. When I tried Firefox 6, with the same history settings & config setting, Google Instant kept rearing its ugly head. Is there a setting in Firefox 6 that will allow me to disable Google Instant without having to set a preference each time I open Firefox 6?? I find Google Instant to be extremely annoying. Please help.
    Thanks,
    Steve W.

    [https://addons.mozilla.org/en-US/firefox/addon/switch-google-instant/ https://addons.mozilla.org/en-US/firefox/addon/switch-google-instant/] is a pretty good addon, which seems to address your problem.

  • The "Pin as app tab" produces tabs that do not persist across sessions. I have this problem on two installations, and it's really annoying (since the Permatab Mod no longer works in Ff4). Can you offer any assistance?

    The "Pin as app tab" produces tabs that do not persist across sessions. I have this problem on two installations (PC and laptop, both running Win7), and it's really annoying (since the Permatab Mod no longer works in Ff4). Can you offer any assistance?

    App tabs and Tab Groups (Panorama) are stored as part of the session data in the file sessionstore.js in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder]
    * http://kb.mozillazine.org/Session_Restore
    Make sure that you do not use [[Clear Recent History]] to clear the "Browsing History"

  • How to build a query across parent and child object fields?

    As a part of an Integration Requirement, I need to query Opportunity records that have been Modified after a specific date and time?
    Now, Opportunity has a child object called ProductRevenue with a one to many relationship. Is there anyway I can construct a querypage that will fetch records whose Opportunity fields 'OR' its child ProductRevenue's fields have been modified after a specific date and time?
    I have tried using the SearchSpec argument, but it does not let me query across child object fields.
    For eg:-
    ObjOpptyQueryPageInput.ListOfOpportunity.Opportunity.searchspec = "([ModifiedDate] > '01/01/2013 00:00:00') OR ([ProductRevenueData.ModifiedDate] >= '01/01/2013 00:00:00')";
    [This above code written in C# thew me an error saying - The object Opportunity does not have an integration component called - ProductRevenueData.ModifiedDate.]
    Any help will be greatly appreciated. Thank you.

    Hi,
    As far as I know this can't be done at once because you have to consider :
    - Every Opportunity and their time-limited ProductRevenues
    AND
    - Time-limited Opportunities
    If you want to achieve this, you have to consider the 2 datasets separately and make your first query :
    ObjOpptyQueryPageInput.ListOfOpportunity.Opportunity.searchspec = "([ModifiedDate] >= '01/01/2013 00:00:00')";
    but also another query with the restriction on the ProductRevenue Searchspec.
    This shouldn't be too hard because the searchspec functionality is present at each level :
    - ListOfOpportunity -> Opportunity (the top-level that you used for your query)
    - ListOfOpportunity -> Opportunity -> ListOfProductRevenue -> ProductRevenue (the sub-level that you should use for the second query)
    Then in your C# code, you merge the 2 datasets and you end up with your expected result.
    Hope this helps,
    Charles.
    http://www.dubant.com

  • Global Variables across sessions in PL/SQL package Specification

    Hi,
    Is there a way I can share a variable value across sessions that doesnot affect by Commit/rollback.
    The value would be set by one session and is visible across sessions, until it is set to another value by another/same session, and the new value is visible across.

    V$Session is not granted to the user executing this. So, had to go with the context. Finally could resolve with the following code.
    Run by DBA
    create or replace context ctx1 using USER_procowner.pkg_global accessed globally;
    grant execute on dbms_session to USER_procowner;
    Run by user_procowner
    create or replace package user_procowner.pkg_global AS
    procedure set_lock(in_val IN VARCHAR2);
    Function get_lock RETURN VARCHAR2;
    end pkg_global;
    create or replace package body user_procowner.pkg_global AS
    procedure set_lock(in_val IN VARCHAR2) IS
    begin
    dbms_session.set_context('ctx1','var1',in_val);
    end;
    Function get_lock RETURN VARCHAR2 IS
    begin
    return (Sys_context('ctx1','var1'));
    end;
    end pkg_global;
    grant execute on pkg_global to user_procuser;
    exec user_procowner.pkg_global.set_lock('Y')
    select user_procowner.pkg_global.get_lock Lock from dual;
    LOCK
    Y
    exec user_procowner.pkg_global.set_lock('N')
    select user_procowner.pkg_global.get_lock Lock from dual;
    LOCK
    N
    The current value of var1 is visible across sessions using user_procowner.pkg_global.get_lock.
    Thanks to all contributors.

  • Saving query result to a file

    Hi,
    I have a sql*developer version 1.5 but i am getting a problem while saving query result to a file. When i click on "script output "-> "file icon" nothing is showing.
    Can anyboby guide me whether its a bug or some other settings are required.
    I have oracle 10.2.0.3 working on linux.
    Thanks & regards
    Girish

    I am getting the same thing and as far as I know it is a bug.
    As a workaround, you can either copy the contents of the script output or run the query as a statement (F9) instead of as a script (F5) and export the query results from the results tab.

  • Create and schedule iBot to seed cache with  the saved query

    Hi all,
    May I know how to Create and schedule i Bot to seed cache with the saved query((iBot to run right a daily load to reseed the cache)

    Here is the documentation:
    10g
    http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/b31767.pdf
    11g
    http://download.oracle.com/docs/cd/E21764_01/bi.1111/e10544/delivers.htm#i1060405

  • Query across two facts with filter on unconformed dimension

    Hi
    This question is actually regurgitated from another post as I wrongly tagged it onto the end of an already answered question.
    Anyway, I am trying to query across 2 fact tables which have a dimension in common (conformed) and also some dimensions that are not directly joined to BOTH fact tables (seemedly referred to as 'unconformed' in OBIEE).
    So in it's simplest form
    Fact1, measure1 linked to dim1 & dim2
    Fact2, measure2 linked to dim2 only
    I have followed the recommended method advertised here and elsewhere of adding the second fact as a LTS of the first in the BMM layer and setting logical levels on measure2 to Total for all dimensions that fact2 is not joined to (in this case dim1).
    When a basic query is issued in Answers that filters on the unconformed dimension (dim1), a spurious result set is returned that includes all records for the second fact.
    This is quite a standard warehousing reporting query whereby 2 sets of data are queried independently and then joined on their common attributes but in this scenario the BI server seems to always generate a FULL OUTER JOIN and return an unrestriced data set.
    Has anyone else come across this strange behaviour?
    thanks
    Tony

    adding the second fact as a LTS of the first in the BMM layer
    Could you try without this step? Just have separate facts and separate LTSs and set
    Fact1 LTS to lowest for Dim1
    Fact1 LTS to lowest for Dim2
    Fact2 LTS to Total for Dim1
    Fact2 LTS to lowest for Dim2
    ?

  • No Role exist when saving query

    Hi all,
    After creating a query in query designer when I click to save it, it shows no roles in the Role area. However, I can save it under favorite.
    Can someone plz shed some light as to how can I add roles here. Bearing in mind, I have already added some roles in PFCG that appear in SU01 for this user, but these are not available when saving query.
    Is there any specific auth object required to save the queries to their respective roles?
    Regards.
    Mohammad

    Hi,
    Pls check the below link.
    [Re: Steps to add Query to a role (SAP BW);
    Hope this helps!!!
    Regards,
    Jini

  • Diff Between Saved Query Views and Work Books

    Hi..
    Can some one explain me the diff betwen Saved Query views and Workbooks interms of their use, and operation..
    thanks..
    kishore

    hi kishore,
    We use workbooks for excel formating,like font changes, lay out changes etc...
    Workbooks into which queries are inserted are no different in appearance than other Excel workbooks.
    They can be saved as files, copied, sent and (using Excel functions) edited however you like and even supplemented with other data.
    Views are primarily used for BW Web Reports, it is similar to the concept of workbooks is for BEx.A local view can be accessed only within a workbook in which it was saved, where as a global view can be accessed globally in the system, it is not attached to a workbook. Only Global view can be used in BW Web Templates.
    u can seee the help doc for more details:
    http://help.sap.com/saphelp_nw04s/helpdata/en/0d/af12403dbedd5fe10000000a155106/content.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/3a/89883989676778e10000000a11402f/content.htm
    bye
    shameem

  • Executing saved query in B1

    Hi,
       Is it possible to execute a saved query in B1 or a formatted search from an addon.
    Appreciate your help.
    Gopal

    1. Every saved query get a menuitem... See Tools > Queries > User Queries (These are menuitems are dynamic but it might work)
    2. Regarding formatted searches you can activate a formatted search by setting focus of the field containing the search and make a send-keys (sboApplication.SendKeys("+");)

  • Start Saved Query through menuitem

    HI,
    I have saved different queries, stored in the "queries manager". But saved queries are only accessible through that queries manager. It is also possible to define a formatted search behind an EditText control.
    What I need is startup a saved query through code, by catching the button click event on a form or by catching a click event on an item in the modules menu. Are saved queries accessible through code?
    Has anyone done this before and tell me how I can do this?
    Thanks in advance
    Eddy

    Eddy,
    Maybe you'll find the following snippets useful.
    Just make sure that the name of your query is unique in the Menus -collection.
    HTH
    Juha
    -- snip ---
    SBOLaunchQuery("TheNameOfMyQuery")     
    -- snip ---
    Public Sub SBOLaunchQuery(ByVal strQueryName As String)
              Dim mnuitem As SAPbouiCOM.MenuItem
              mnuitem = GetMenuItemByTitle(strQueryName, SBOApplication.Menus)
              SBOApplication.ActivateMenuItem(mnuitem.UID)
         End Sub
    -- snip ---
         Public Function GetMenuItemByTitle(ByVal strTitle As String, ByVal mnus As SAPbouiCOM.Menus) As SAPbouiCOM.MenuItem
              Dim mnuitem As SAPbouiCOM.MenuItem
              Dim mnuitem2 As SAPbouiCOM.MenuItem
              On Error GoTo EndFunction
              If mnus.Count = 0 Then Exit Function
              On Error GoTo 0
              For Each mnuitem In mnus
                   With mnuitem
                        If .String = strTitle Then
                             GetMenuItemByTitle = mnuitem
                             Exit Function
                        Else
                             If .Type = SAPbouiCOM.BoMenuType.mt_POPUP Then
                                  mnuitem2 = GetMenuItemByTitle(strTitle, .SubMenus)
                                  If Not mnuitem2 Is Nothing Then
                                       Return mnuitem2
                                  End If
                             End If
                        End If
                   End With
              Next mnuitem
    EndFunction:
         End Function
    -- snip ---

  • Saved Query string

    Hi all..
    How to save the all query string?
    And, If the saved query string, just click the query string it is automatically search again and displays the search result. Is there any solutions?
    Thanks!

    Can anyone help this one?
    Thanks!

Maybe you are looking for

  • Home Sharing freezes

    When I select Home Sharing on my iPhone 5 it freezes when the progress circle is about at the half way point (semi-circle).  Does Home Sharing have any limitations regarding how much music can be shared between devices?  My iTunes library has over 67

  • PC to Mac Transition help!

    Hi- I bought a pc about a year ago which I regret and would like to try out Mac. now I've got 3x1TB hdd and 1x60gb ssd. If purchase Mac pro would I be able to use these hdd along with rams and video card and moniter and put additional cpu. Specs are

  • Using skype as my phone

    In the maps app, if i tap on a phone number it opens up the phone app and calls using skype. Thas exactly what i want it to do. If i open up the contact app, it show all of my contacts but if i tap on a phone number in a contact the phone client open

  • I would like to change the alternate email address in my personal settings

    Please help. Thank you.

  • After effects 7 won't install

    when I click on Adobe After Effects 7.0, it asks if I want to run the software, and I click on "RUN," then a window opens and immediately closes and another one comes up, "Adobe AD 7.0 Installer Information" w/ exclamation mark in yellow triangle say