Persist Saved Searches into MDS question

JDeveloper 11.1.1.3.0
According on-line help (27.2.3 How to Persist Saved Searches into MDS ) to be able to store search it is needed to add
<persistence-config>
<metadata-namespaces>
<namespace path="/persdef" metadata-store-usage="mdsstore"/>
</metadata-namespaces>
<metadata-store-usages>
<metadata-store-usage id="mdsstore" deploy-target="true"
default-cust-store="true"/>
</metadata-store-usage>
</metadata-store-usages>
</persistence-config>
to adf-config.xml, then to defined cust-config needs as part of the MDS configuration.
But I find nothing about how to overwrite methods of CustomizationClass. What shud I write instead of public String getName() and getValue. When I run application with default methods I am getting exception
The operation on the resource /persdef/model/ViewEventAppl.xml failed because source metadata store mapped to the namespace / DEFAULT is read only.
By the way xml fragment above is incorrect.
Any examples?
Thanks

Pop over to otn and have a search for "adf development essentials" there are three articles in there that should get you going.
John

Similar Messages

  • Put Saved Search in the dock.. Can't drag and drop files.

    I upgraded to OS X Mavericks yesterday. Great results I am happy with it. So much faster than Mountain Lion. (I think honestly this is why Apple made it free. So many complaining about ML being slow.. my iMac is now fast and zippy)
    Problem is, and I don't know if this is Mavericks related, but I am using tags..
    I have a very prominent client and since I work with his files every day, I made a tag for his files and I drag the saved search into the dock at the end where you drag folder..
    When I open the folder in the dock then try to drag a file it doesn't drag.
    The other issue is when I click Date Modified as the order it shows oldest files first, which is not the behavior when I drag a normal folder into the dock.

    You have many issues with your and your wife's machine(s). Everything you've posted works here. Reinstall Snow Leopard, repair permissions, and see if that fixes things.

  • Error in saving search result in MDS application

    Hi All
    I'm developing a ADF customizable web appicatoion using jdeveloper 11.1.2.0
    It works fine when I deploy this application to metadata repository, but when I Save a search result in search panel it gives following error "You do not have permission to replace this search"
    This is my configuration in ADF-Config file
    <persistence-config>
    <metadata-namespaces>
    <namespace metadata-store-usage="MAR_TargetRepos" path="/pages"/>
    </metadata-namespaces>
    <metadata-store-usages>
    <metadata-store-usage default-cust-store="true" deploy-target="true" id="MAR_TargetRepos">
    <metadata-store class-name="oracle.mds.persistence.stores.db.DBMetadataStore">
    <property value="mds-csd" name="repository-name"/>
    <property value="jdbc/mds/csd" name="jndi-datasource"/>
    <property value="owsm" name="partition-name"/>
    </metadata-store>
    </metadata-store-usage>
    </metadata-store-usages>
    </persistence-config>
    Please help me to resolve this error

    Hi,
    you are trying to change a system search, which is not allowed for customization. You can save custom searches in MDS but not override system searches
    +"Query component now support the overriding the saved search functionality. When user click on the "Save..." button, "Create Saved Search" dialog comes up with name field populated with the currently selected saved search. If user enters a "System Search" name and click OK button, a error dialog stating "You do not have permission to replace this search:" is shown. If user enters an already existing saved search name then a warning dialog stating "Replace existing search:" is shown. On clicking OK existing search is replaced with the new definition. If a name that is not already present in the saved-search list is provided, a new search with the given name is created. For this a new event QueryOperationEvent.Operation.OVERRIDE is added.+
    +Query component now allows the deletion of saved-search which is currently active search in the query-panel. When user deletes currently active saved-search, we set the first search from system-search list as the currently active search, and refresh the query-panel when "Personalized Saved Search" dialog is closed. "+
    http://jdevadf.oracle.com/adf-richclient-demo/docs/release-notes.html
    Frank

  • Query on the af:Query - Saved Search Functionality

    Hi all,
    Using Jdev 11. R2, and what I think is the latest UI shell.
    Looking to tap some knowledge and to validate whether I'm heading in the right direction....... I also suppose this post relates to a broader topic on user sessions and what I think is referred to as 'state saving'.
    Firstly, I have an AF:Query which I can, for the life of my tasakflow save a particular search.... I'm keen to use this functionality (especially the automatically execute option), so that each user can save their preferred search and upon form load, see their particular list, rather than a blank search form.
    The issue is that once I restart the task flow the saved search does not persist!!
    Now I'm guessing this relates to state saving, and that there may be a global or template setting? I can see a property on the template 'State Saving' and I have tried setting this to client - and nothing happens....
    To further expand my question..... is it also possible that as a user changes their pages (through collapsing splittter and re-arranging table columns) that we can also have these selections persist?
    I just can't seem to find enough resources on this, and I suspect I'm searching with the wrong keywords, as I'm not 100% certain of the correct terminology.
    Cheers,
    Simo

    Simo,
    I guess you have to look for MDS or Meta data service. MDS stores changes to the ui like table layout and query state for each user in a central store (db or file).
    To use MDS you must use ADF security as this gives MDS the user ID.
    I can't search for more info right now as I'm not in front of my pc. Check the doc for MDS and you find more info.
    Timo

  • How to implement saved search delete feature in af:query

    Hi,
    I have implement MDS for af:query. However, delete button in "Personalized" window of af:query is still being disable.
    My test flow is the following:
    1) fire a search on the query component and then save it as "savedSearch1".
    2) then try to personalize it. Observed that "Delete" button in Personalize window is being disable. Not able to delete "savedSearch1"
    My question is: Is there a way for me to enable the "Delete" Button at the personalized window so that user can delete the saved search?
    I have af:query component with the following code:
    <af:query id="qryId1" headerText="#{uiBundle.SEARCH}" disclosed="true"
    value="#{bindings.KanbanCardSummaryVOCriteriaQuery.queryDescriptor}"
    model="#{bindings.KanbanCardSummaryVOCriteriaQuery.queryModel}"
    queryListener="#{KanbanSummaryBean.queryListener}"
    queryOperationListener="#{bindings.KanbanCardSummaryVOCriteriaQuery.processQueryOperation}"
    resultComponentId="::pc1:t1" maxColumns="2" rows="1"/>

    Hi,
    Does anyone knows the answer for this question?
    Thanks,
    Hong

  • Adding Saved Searches task flow to a Page Template

    I am trying to add the Spaces "Saved Searches" task flow to my custom page template. I have tried a few different approaches and none seem to be working.
    First, I tried simply dragging and dropping the task flow from JDeveloper's Resource Palette into my template. JDeveloper created added the following to my template source code:
    +<af:region value="#{bindings.allsavedsearches1.regionModel}" id="pt_r1"/>+
    After uploading the changes to Spaces, there seemed to be no change to the rendered template.
    Second, I tried to simply add the task flow to a page in my test space via composer. However, as soon as I click the "Add" button next to the Saved Searches task flow, the page goes blank (white screen of death) and the following message shows up in the spaces error logs:
    javax.servlet.ServletException: com.sun.el.parser.ParseException: Encountered "\'" at line 1, column 65.
    Finally, I looked at how the out of the box templates implement the saved searches functionality. It appears that the saved searches use a custom folder in the Default Navigation Model. I looked at the source in the Default Navigation Model and found the following node:
    +<customFolder factoryClass="oracle.webcenter.search.view.rc.SearchServiceContextFactory" id="savedSearchesFolder" visible="true">+
    +<attributes resourceBundle="oracle.webcenter.webcenterapp.resource.WebCenterResourceBundle">+
    +<attribute attributeId="Description" isKey="true" resourceBundle="oracle.webcenter.webcenterapp.resource.WebCenterResourceBundle" value="NAV_APPLICATIONS_CUST_FOLDER_SEARCHES.DESCRIPTION"/>+
    +<attribute attributeId="IconURI" value="/adf/webcenter/foldersavedsearches_qualifier.png"/>+
    +<attribute attributeId="Title" isKey="true" resourceBundle="oracle.webcenter.webcenterapp.resource.WebCenterResourceBundle" value="NAV_APPLICATIONS_CUST_FOLDER_SEARCHES.TITLE"/>+
    +<attribute attributeId="WEBCENTER_SERVICE_ID" value="oracle.webcenter.search"/>+
    +</attributes>+
    +</customFolder>+
    I copied the entire node and put it in my navigation model. Upon rendering the template, I can see the new node in the navigation but when I click on it, nothing happens.
    Can someone please tell me if I am on the right track with any of these three approaches? Or where to look to diagnose the issues I am running into?
    Thanks,
    Joe

    UPDATE: I updated the "activation" property in the page def for the allsavedsearches task flow to be "deferred". Now I am getting an ADF popup menu with two menu items: "My Searches" and "Other Members" but clicking on the items does not trigger anything...
    Any thoughts? What additional information would be helpful for analyzing this issue?

  • Yosemite: Saved search from Spotlight does not work the same

    Hi,
    I have various Logic Pro folders throughout my computer and want to create a Saved Search that brings all and only the Logic project files together into one place.
    There's a couple of catches: the Logic file extension has changed over the years with the various application updates.
    It would be nice to create a Smart Folder/Saved Search with something like File Extension:logic OR File Extension:logicx OR File Extension:lso
    However if you just add these search criteria as separate lines, it appears they are "AND" filters so nothing shows up at all.
    I seem to remember older versions of Smart Folders allowing you to have much more control over boolean search parameters.
    After a bit of online investigation I discovered that you can do some more complex searches using Spotlight and then save it as a Smart Folder or Saved Search.
    In Spotlight I used:
    Kind:Logic -.0 -(crashed) -.cst -.pst -.prf -.patch -.logikcs
    This cleaned out all the extra unneeded files and backups that are associated with Logic and just displayed only my desired .logic, logicx and .lso files.
    Awesome! Then I saved it as a Saved Search in the sidebar.
    Which doesn't work. Or at least the extra flags don't work. All I am seeing is the Kind:Logic again.
    This is how the Spotlight search translates across into the Saved Search window (I can scroll across to see the extra flags). Any good ideas or workable solutions? Thx!

    >
    fromObject in the code above is a key (String) that I retrieve from the OrderedHashtable and clone it using the code above.No. How could that code possibly clone a String? Where are you telling it what the new String's contents should be?
    (HINT: Nowhere.)
    I guess there is a work around where I can check if the cloneClass is an Instance of String and just do fromObject.toString(), but I was curious to know if there was a change in the way class.newInstance() works in Java 1.5No, it has not changed.

  • Af:query saved search not getting deleted.

    hi,
    I have a af:query component in which I am setting saveQueryMode="default".
    As per the docs, setting this value to default implies: "default: all saved searches are displayed. In addition any saved search can be created but only user saved searches can be deleted/updated."
    I fire a search on the query component and then save it as "mysearch".
    I then try to personalize it.
    However, here I don't find the Delete button enabled for it.
    I want the user saved searches to be deletable.
    Am I missing anything here?
    Thanks.

    Simo,
    I guess you have to look for MDS or Meta data service. MDS stores changes to the ui like table layout and query state for each user in a central store (db or file).
    To use MDS you must use ADF security as this gives MDS the user ID.
    I can't search for more info right now as I'm not in front of my pc. Check the doc for MDS and you find more info.
    Timo

  • ADF : af:query saved search issue

    hi
    Please consider this example application from Andrejus Baranovskis
    http://jdevsamples.googlecode.com/files/UserCustomizationsSession.zip
    (which he refers to from his blog post "User Customizations for Duration of Session in Oracle ADF 11g")
    I see some strange behaviour with a saved search in this scenario:
    (a1) open the UserCustomizationsSession.jws file in JDeveloper 11.1.1.1.0 and configure the "Hr" database connection in the Application Resources panel
    (a2) right-click the main.jspx page in the ViewController project and click Run
    (a3) on the "Index" page click the "Employees" button
    (a4) on the "Employees Form" page, without entering any search values, click the "Search" button, which causes (all) the rows to show in the table
    (a5) in the "Firstname" search field, enter "a" and click the "Search" button, which causes rows with "a" in their first name to show in the table
    (a6) click the "Save..." button
    (a7) in the "Create Saved Search" dialog, enter "my-a-search" in the "Name" field and keep the default values for the checkboxes ("Set as Default" checked, "Run Automatically" checked and "Save Results Layout" unchecked) and click "OK", which causes "my-a-search" to show up in the "Saved Search" dropbox
    (a8) click the "Close" button
    (a9) on the "Index" page click the "Employees" button, which causes the "Employees Form" page to show up with the results of "my-a-search"
    (a10) in the "Saved Search" dropbox, select "EmployeesViewCriteria" and click the "Search" button, which seems to cause the table to refresh but still showing what seems to be the result of "my-a-search"
    (a11) try to change the value of the "FirstName" search field or use the "Reset" button, each time the result of "my-a-search" shows up
    question
    (q1) Why don't I get all the rows in step (a10) instead of just "my-a-search"?
    many thanks
    Jan Vervecken

    Hi Jan,
    seems related to bug 8817108 - AF:QUERY DOES NOT WORK CORRECTLY WITH MUTIPLE VIEW CRITERIA
    I'm copying below an except of the SR with possible workarounds:
    The key point in the modified testcase is that we created a method in the
    Application Module that resets the View Criteria of the View Object:
        public void unapplyViewCriteria() {
            String[] allVC = getViewObj1().getAllViewCriteriaNames();
            for (String vc: allVC )  {
                System.out.println("Unapply View Criteria: " + vc);
                getViewObj1().removeApplyViewCriteriaName(vc);
        }This method was published as a client interface and added to the bindings of
    the Page definition (by a drag&drop from the DataControl palette):
        <methodAction id="unapplyViewCriteria" RequiresUpdateModel="true"
                      Action="invokeMethod" MethodName="unapplyViewCriteria"
                      IsViewObjectMethod="false" DataControl="AppModuleDataControl"
                      InstanceName="AppModuleDataControl.dataProvider"/>This created a button that we updated as the following:
            <af:commandButton
                              text="Go To Other Page AND Unapply View Criteria"
                              disabled="#{!bindings.unapplyViewCriteria.enabled}"
                              id="cb1"
                              actionListener="#{bindings.unapplyViewCriteria.execute}"
                              action="otherpage"/>This button will execute unapplyViewCriteria() and then navigate to the other page.
    That's a first solution, where we unset the View Criteria just when navigating.
    Another option is to unapply the ViewCriteria when the af:query has completed its query.
    This can be done by the method we exposed in the aforementioned Note.
    The method processQuery() in the backing bean is:
        public void processQuery(QueryEvent queryEvent) {
             * add your PreQuery code here
             * invoke the real processQuery
            invokeMethodExpression("#{bindings.NameStartsWithMQuery.processQuery}",
                                   Object.class, QueryEvent.class, queryEvent);
             * add your PostQuery code here
            // Workaround for Bug 8817108
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("unapplyViewCriteria");
            Object result = operationBinding.execute();
        }where we first execute the standard processQuery, and then unapply the View Criteria.
    If memory serves me well, customer opted for WA 2.
    Regards,
    Didier.

  • What is a saved search query? And can I delete it?

    I was making some back up disk and created a Saved Search Query. Can the file that's on my desktop be trash? What exactly is this, and what is it's purpose.
    Greg

    Hi Gregory, and a warm welcome to the forums!
    It's an xml file with Aliases to a previous search criteria.
    Selecting "Find..." from the Finder's "File" menu (or typing another user-configurable keyboard shortcut, command-option-space by default) brings up an "advanced" Spotlight search window that includes a field for a search string (treated like the same string typed into the Spotlight menu bar drop-down search field) and any number of additional search conditions.
    Any search performed in this window can be saved as a "smart folder." This "folder" is actually nothing more than a plain file with a ".savedSearch" file name extension. The file contains an XML serialization of the Spotlight query.
    http://arstechnica.com/apple/reviews/2005/04/macosx-10-4.ars/9
    One way you can delete it by going to the Finder>File>Find, click on a Saved Search, click the little Minus icon...

  • Best way to store user-saved searches/forms

    Hello,
    in our project, we want to give to our users ability to save form fields values for later use. It will be named the fast OR saved searches.
    We have a relatively huge number of search forms, each one with specific fields. So I don't want, if possible, to use a distinct table for each form.
    The good and logic way to design the table for this purpose looks like :
    SAVED_USERS_FORMS (
    USER_ID NUMBER,
    -- corresponding user
    FORM_ID NUMBER,
    -- system wide unique form identificator (maybe varchar2 code rather than number?)
    SAVED_NAME VARCHAR2,
    -- name of the shorcut/saved form, by user
    FIELDS_VALUES ???????,
    -- saved fields key/values for PK (user, form, name) combination
    PRIMARY KEY (USER_ID, FORM_ID, SAVED_NAME)
    The hesitation here is : how to store the fields & values pairs?
    - XML field?
    - our custom text structure and formating representing something key => value
    - our custom serialized java object into a field
    I think that the EAV modelling technique approach can be a flexible way to achieve our goal, but as I read on the net there's an important set of downsides with this approach. But, this way, my table is something like:
    SAVED_USERS_FORMS (
    USER_ID NUMBER,
    FORM_ID NUMBER,
    SAVED_NAME VARCHAR2,
    FIELD_NAME VARCHAR2,
    FIELD_VALUE ????,
    -- saved field key/values for PK (user, form, name, field name) combination
    PRIMARY KEY (USER_ID, FORM_ID, SAVED_NAME, FIELD_NAME)
    So the new problem can be the field FIELD_VALUE type enforcement. Do we need to have a field for each data type, so validation complexity can increase dramatically...
    Do we need or is suggested to have in a way or another metadata tables describing supported form fields, datatypes, etc?
    Other things to take into account:
    * simple and scalable solution, heh, ye, please.
    * what happens if the form evolve over time? the final solution must not crash or cause some kind of inconsistencies.
    * ..... others ..... ?
    Other info: we're using Oracle Database 10g, JDEV, JSF, ADF, Business Components.
    thanks for any help or comments
    Bruno

    Hello,
    in our project, we want to give to our users ability to save form fields values for later use. It will be named the fast OR saved searches.
    We have a relatively huge number of search forms, each one with specific fields. So I don't want, if possible, to use a distinct table for each form.
    The good and logic way to design the table for this purpose looks like :
    SAVED_USERS_FORMS (
    USER_ID NUMBER,
    -- corresponding user
    FORM_ID NUMBER,
    -- system wide unique form identificator (maybe varchar2 code rather than number?)
    SAVED_NAME VARCHAR2,
    -- name of the shorcut/saved form, by user
    FIELDS_VALUES ???????,
    -- saved fields key/values for PK (user, form, name) combination
    PRIMARY KEY (USER_ID, FORM_ID, SAVED_NAME)
    The hesitation here is : how to store the fields & values pairs?
    - XML field?
    - our custom text structure and formating representing something key => value
    - our custom serialized java object into a field
    I think that the EAV modelling technique approach can be a flexible way to achieve our goal, but as I read on the net there's an important set of downsides with this approach. But, this way, my table is something like:
    SAVED_USERS_FORMS (
    USER_ID NUMBER,
    FORM_ID NUMBER,
    SAVED_NAME VARCHAR2,
    FIELD_NAME VARCHAR2,
    FIELD_VALUE ????,
    -- saved field key/values for PK (user, form, name, field name) combination
    PRIMARY KEY (USER_ID, FORM_ID, SAVED_NAME, FIELD_NAME)
    So the new problem can be the field FIELD_VALUE type enforcement. Do we need to have a field for each data type, so validation complexity can increase dramatically...
    Do we need or is suggested to have in a way or another metadata tables describing supported form fields, datatypes, etc?
    Other things to take into account:
    * simple and scalable solution, heh, ye, please.
    * what happens if the form evolve over time? the final solution must not crash or cause some kind of inconsistencies.
    * ..... others ..... ?
    Other info: we're using Oracle Database 10g, JDEV, JSF, ADF, Business Components.
    thanks for any help or comments
    Bruno

  • Adf:Query - Saved Search issue

    Hi all,
    Using Jdev 11g. R1(Version 11.1.1.7.0) , I am getting the following error on returning to my UI's Advanced Search page after I add a field from 'Add Field" button and save it as a default search.
    *"Would you like to save the changes you made to the layout before proceeding?"*
    Any suggestion for debugging this issue.
    Thanks in advance..

    I believe you are encountering a usability issue. When you receive, "Would you like to save the changes you made to the layout before proceeding?", it is question not an error. You added a field and must have changed something in the results table (added a column, reordered column), and it is asking if you want to save the changes to the results layout table with your saved search. I think that may be what is going on here. I am not sure if you can disable this question, but you may be able to change the message itself to be worded differently.

  • Saved search not navigating for only one user

    Hi Everyone,
    I have a saved search that navigates for all users except one. Furthermore, on that same search screen if I use a different object type, do a search and save it, the saved search works for that user. So it seems like it is related to the object type I'm searching for.
    since it is working for some users, I don't think it is related to some IP or OP settings.
    any idea what could cause this issue?
    Thanks in advance,
    Ralph

    It seems someone has set the user policy at webapplication level for that user.Check the similar thread below
    http://social.msdn.microsoft.com/Forums/es-ES/18b4f019-093d-45f6-92b7-8350d13bd663/let-us-know-why-you-need-access-to-this-site-why-do-i-see-this-error-and-who-will-give-access?forum=sharepointgeneral
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • How to paste or insert an image into a question?

    Hi everyone, do any of you know how to insert a picture/ image into a question being posted on the discussion forum I came across a question at
    http://discussions.apple.com/thread.jspa?messageID=6479101&#6479101
    and realized that it can be done so I've printed part of the screen saved an image and would like to use it along with my question to help me explain the question in more detail.
    Thanks Tumahawk

    I discovered how to do it at this link for any of you wondering how to post images in these forums here's the link take care http://discussions.apple.com/thread.jspa?messageID=6477956&#6477956

  • Saved Searches Re-Implementation

    Hi gurus,
    I'm working with new CRM 2007 Interaction Center Web Client and configure SAP provided Interaction Center Agent Role.
    I'd like to integrate Saved Searches functionality into the Header area. I was able to do that but unfortunately it's not working: I can only create Saved searches and see them in drop-down list, but when I take any of them and press go button nothing happens. Could you please give me any advise what is additional dependant configuration?
    Best regards,
    Kate

    HI,
    Can you tell me what are the steps that you had followed for the Saved search functionality to get activated.
    There are two regions to look into , One at the UI component level and the other customization at the SPRO transaction.
    At the UI component, for the GO button, have you provided a seperate inbound plug at the window? if so try to put a breakpoint and observe whether the breakpoint gets called. If not then it is definitely the customization settings being incomplete at the SPRO level.
    Let me know what is the result of the debugging and the steps you had followed at the SPRO level so that i could help you out.
    Thanks.
    Do reward if you find helpful.
    Regards,
    Harish P M

Maybe you are looking for

  • TS1702 Safari, Maps, App Store, and Non Apple Apps crashing on IOS6

    Since upgrading to IOS 6, the majority of my apps are crashing after a few seconds, including Safari, App Store, I Books and also non apple apps like BBC News etc. I have: Reset Restored Tried the date and time change (not affective) I cant at the mo

  • Can we modify sales order line item before its booked through API?

    can we modify sales order line item before its booked through process_order API? here we have a situation where related item should be substituted for actual order item when user selects the related item , So looking for a way to modify the ordered i

  • BP Address fields

    BP may have different addresses. It's possible to use following fields: AddressName  AddressType  Block  BuildingFloorRoom  City  Country  County  FederalTaxID  State  Street  TaxCode  ZipCode  But I want to have a different Name (maybe the name of t

  • Video watermarking in java?

    Can any one suggest me how to proceed for this problem? Input is quicktime file. A watermark should be added to the video track (this can be a small black square in the upper left hand corner of the screen, or something more elaborate). The watermark

  • Install "Make" and other unix tools on 10.5

    I am new to Macbook but accustomed with other unix computers. I want to have unix tool "make" available on Mac 10.5. Where can I download this and other tools? Are there pre-built binary distributions?