Default model search attributes

Hi guys,
Using JDeveloper 11.1.1.6 and JHeadstart 11.1.1.4.26.
I'm having problems with the default model search component. As per section 7.1.2 of the JHS Developers guide, I have "not specified any view criteria which results in a default search where the user can select all attributes that have "Queryable" checked in the view object attribute editor".
This works fine until I need to change the queryable status of some of the view attributes. Even after unselecting the queryable attribute in the view object, the attribute is still being shown in the quick and advanced search fields. I have tried deleting the page/page def/task flow etc and regenerating but the original attributes always remain in the search area. This seems to work ok for view objects based on entities but does not for non-entity view objects.
I can see in the pageDef that the searchregion component has an attribute "Criteria" populated with "__ImplicitViewCriteria__". How does this criteria get populated ? And why do my original attributes remain in the search fields even though they no longer are specified as "queryable" in the view object.
I'm tearing my hair out trying to get these old fields to disappear from the search components - HELP !
Cheers,
Brent

Brent,
Can you create a drag and drop page without JHeadstart on the same VO?
Do you get the same behavior? If so, you might try the JDeveloper forum, maybe it is a known issue.
Steven Davelaar,
JHeadstart Team.

Similar Messages

  • Default value for attribute "COUNTRY" in BP_HEAD_SEARCH/MainSearch

    Hi Gurus,
    Requirement is to set default value for attribute "COUNTRY" in BP_HEAD_SEARCH/MainSearch when user clicks on Corporate Account.
    Below is code that i have written in DO_PREPARE_OUTPUT.
    Code is working fine and in the debug also i can see the value of COUNTRY is set to DE, but it is not showing on the screen for first time but when i load component second time(Refresh the screen), it shows me value.
    Any help would be appreciated. If somebody has otheralternative kindly share.
      CALL METHOD super->do_prepare_output( iv_first_time = iv_first_time ).
    Calling Super Method
    CALL METHOD super->do_prepare_output
       EXPORTING
         iv_first_time = abap_true.
    Data Declatation
      DATA :lr_col            TYPE REF TO if_bol_bo_col,
            lr_current        TYPE REF TO if_bol_bo_property_access,
            lr_param          TYPE REF TO if_bol_bo_property_access,
            lr_qs             TYPE REF TO cl_crm_bol_dquery_service,
            lv_attr_name      TYPE name_komp,
            lv_sign           TYPE bapisign,
            lv_option         TYPE bapioption,
            w_country_exist   TYPE c,
            w_param           TYPE string,
            w_value           TYPE string,
            w_flag            TYPE c.
    Getting SEARCH Context Node
      lr_qs ?= me->typed_context->search->collection_wrapper->get_current( ).
    Get Selection Parameters
      lr_col ?= lr_qs->get_selection_params( ).
    Start from first parmaters
      lr_current = lr_col->get_first( ).
    Clearing Variables
      CLEAR : w_country_exist, w_flag, w_param, w_value.
    Loop till we have selection paramters
      WHILE lr_current IS BOUND.         " While loop 1
    checking attribute name is COUNTRY then setting some variable
        w_param = lr_current->get_property_as_string( 'ATTR_NAME' ).
        CASE w_param.
          WHEN 'COUNTRY'.
    If country is filled then setting variable
            w_value = lr_current->get_property_as_string( 'LOW' ).
            IF w_value IS NOT INITIAL.
              w_country_exist = abap_true.
            ENDIF.
    When we got COUNTRY attribute then setting flag
            w_flag = abap_true.
        ENDCASE.
    Calling next parameter
        lr_current = lr_col->get_next( ).
      ENDWHILE.                          " While loop 1
    In below block we are checking is COUNTRY attribute is blank and
    we have found COUNTRY attribute in current selection paramters
      IF lr_qs IS BOUND.                 " SEACRCH CONTEXT BOUND
    If vairable is blank means DE or any other value is not filled in COUNTRY Attribute
        IF w_country_exist IS INITIAL.   " w_contry_exist
    We have to add selection attribute if we come accross COUNTRY attribute during our search
          IF w_flag EQ abap_true.        " w_flag
    Adding COUNTRY attribute with default value 'DE'
            lr_qs->add_selection_param( EXPORTING iv_attr_name = 'COUNTRY'
                                                  iv_sign      = 'I'
                                                  iv_option    = 'EQ'
                                                  iv_low       = 'DE' ).
          ENDIF.                         " w_flag
        ENDIF.                           " w_contry_exist
      ENDIF.                             " SEACRCH CONTEXT BOUND
    In below block we will remove COUNTRY attribute when it has blank value
      IF lr_qs IS BOUND AND w_country_exist IS INITIAL.
        lr_current = lr_col->get_first( ).
        WHILE lr_current IS BOUND.
          w_param = lr_current->get_property_as_string( 'ATTR_NAME' ).
          CASE w_param.
            WHEN 'COUNTRY'.
              w_value = lr_current->get_property_as_string( 'LOW' ).
              IF w_value IS INITIAL.
                lr_col->remove( iv_bo = lr_current ).
              ENDIF.
          ENDCASE.
          lr_current = lr_col->get_next( ).
        ENDWHILE.
      ENDIF.
    Edited by: Harsharandeep Singh on Apr 28, 2011 3:44 PM

    Hi,
    Try it like this:
      DATA:
        lr_bo        TYPE REF TO if_bol_bo_property_access ,
        lv_attr_name TYPE name_komp.
      FIELD-SYMBOLS:
        <ls_param>   TYPE crms_thtmlb_search_criterion.
      READ TABLE parameters
           ASSIGNING <ls_param>
           WITH KEY field = 'COUNTRY'.
      IF ( sy-subrc = 0 ).
        <ls_param>-value1 = ip_pfct.
      ENDIF.
      CHECK ( me->parameter_collection IS NOT INITIAL ).
      lr_bo = me->parameter_collection->get_first( ).
      WHILE lr_bo IS BOUND.
        CALL METHOD lr_bo->get_property_as_value
          EXPORTING
            iv_attr_name = 'ATTR_NAME'
          IMPORTING
            ev_result    = lv_attr_name.
        IF lv_attr_name EQ 'COUNTRY' .
          CALL METHOD lr_bo->set_property
            EXPORTING
              iv_attr_name = 'LOW'
              iv_value     = 'DE'.
          EXIT.
        ELSE.
          lr_bo = me->parameter_collection->get_next( ) .
        ENDIF.
      ENDWHILE .
    Kind regards,
    Micha

  • Is it possible to change ldap search attribute telephonenumber to an other

    Hello, I have a directory that holds the users phones number in an alternate ldap attribute "numeroCourt".
    The default Directory search asp files are displaying the content of the telephonenumber attribute in the LDAP Directory.
    What do I need to edit to change "telephonenumber" with "numeroCourt"?
    Thanks in advance.

    Since telephone number is not populated the logical thing for the CorpDir application to do would be to see that the
    "ciscoatUserProfileString" has a value and go retrieve the extension information from there.
    http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_tech_note09186a0080094493.shtml

  • Lack of search attributes?

    When I try to search for something (in addition to the ridiculous long wait times), I can not specify any search attributes other then the default (kind, open date, modified date, created date, name, and contents.) How can I get any search attributes to chow up when I select "Other..."? I would like to search amongst the system files as well as just the computer.

    At the risk of asking the obvious, you followed the sequence exactly as described, as there's a second sequence that I've seen documented at some web sites and that sequence does not work with SLS and SL. When you get the selection sheet, you are not on the line that has the +Kind is Any+ stuff. You're on the next line, with the Other... on that next line.
    There are suggestions around the com.apple.spotlight.plist plist preferences file (that I've not tried), but I'd tend to try a repair permissions and a reboot, and than (failing that) go for an archive and install here. I'd get a backup before that, regardless.

  • How can I change the default Google search engine in Firefox 8 from google.fr to google.co.uk? Yes, I live in France with a French ISP, but English is my mother tongue and I want UK based responses.

    How can I change the default Google search engine in Firefox 8 from google.fr to google.co.uk? Yes, I live in France with a French ISP, but English is my mother tongue and I want UK based responses.
    I'm using XP Pro.

    You can find search engines on the Mycroft Project website.
    * http://mycroft.mozdev.org/
    * http://mycroft.mozdev.org/google-search-plugins.html

  • Approach to customize workflow - setting default values of attributes

    Hello Friends,
    I have a requirement to customize the standard workflow - PO Requisition Approval & PO Create Documents. I want to change the default value of certain attributes in both the workflow.
    Generally workflows are customized through process customization (create a new process by copying the main process (which gets called) and customize it under the same 'Item type' ) but if we just need to change the default value of attributes , do we create a new 'Item type' and set the attribute values or any other approach? If we make the change in the seeded workflow , whichever OU use that workflow will see the changes in functionality.
    The requirement is very common and even Oracle has mentioned that buisness should set these attributes to suit their business needs.One such attribute is 'Is Automatic Creation Allowed' (Should PO be created from iProc requisition without user intervention)
    What is the recommended/best way forward.
    Please suggest , thanks !!
    Regards,
    Amit

    You can simply update the wf_item_attributes table.
    Set text_default to Y WHERE name = 'CONT_WF_FOR_AC_REL_GEN'           
    Hope this helps
    Sandeep Gandhi
    Independent Techno-functional Consultant

  • Change Default Document Size Attribute

    I understand that I can make a custom attribute that displays the size in KB, MB, etc -
    But I want to know how to edit the default Document Size attribute - surely that is possible?

    @Steve – you are totally clear what you are doing and what you like to do.
    But I fear an automatic setting that is creating the page size according to an asset's size does not exist right now.
    I can change the size of a new document beforehand, if no document is open and create a new size in the document's properties dialog with the keyboard shortcut alt + cmd + p (in my German InDesign on Mac OSX 10.7.5). But you have to know in advance what size that should be.
    Example: If I chose A3 instead of A4 (my default) when no document is open and double click an asset in a CC Library the asset will be placed in a one page document sized A3.
    1. Changing the size (no document is open) in my German UI of InDesign CC-2014.2:
    2. Double click and the result is according to the settings I made:
    Uwe

  • The default google search in the middle of a new window is gone, how do i restore it?

    I downloaded free flash player not knowing I already have it with adobe, but with it was Mcafee security (I uninstalled it right away). Now, when I open Firefox, it has the Google icon in the middle of the page, but when I add or open a new window, the google icon is gone. How can I bring back the default google searcher in the middle of the new page?

    A new window opens with the home page, so you need to check the home page setting.
    *https://support.mozilla.com/kb/How+to+set+the+home+page

  • Always displays the default saved search in af:query

    hi,
    The saved search drop down lists the saved searches but could not select another saved search. The dropdown selected value always point to the default saved search, as well as it's UI in criteria region. The same behavior in saving a new search, it will always refresh to the default. What seems to be the problem here? The current QueryDescriptor point to the new search but the UI always displays the default.
    Thanks in advance.

    Found the solution. The queryDescriptor getter calls again the default value that's way it doesn't change. Thanks for the time.

  • Problem with Search Attributes iView in MDM Business package

    Hello Everybody,
    I am configuring MDM Search Attributes iView in Portal.
    This iView should show data based on selected record in Search Hierarchy iView. But it is not showing any attribute data on Search Attributes iView.
    Any idea what could be the problem.
    I have MDM 5.5. SP01
    Appreciate your help.
    Thanks,
    Bhavik Devisha

    Hi,
    I tried the scenario on MDM 5.5 SP06 and its working fine.
    Following are the steps:
    1. Create the MDM System.
    2. Create the Search Hierarchy iView
    3. Create the Search Attributes iView
    4. Create the page and place both the iViews into that page.
    Now when i am changing the hierarchy,its corresponding attributes appear in the Search Attributes iView as expected.
    Try the same on some different version.Then only we can conclude that it might be because of version.
    Regards,
    Jitesh Talreja

  • Can I change the default model in Slideshow ?

    I have created different models of slideshow and want to choose one as default model : how to delete the default model of LR or decide one of my models as default model ?

    Open one of your new document profiles located at
    /Users/YOURNAME/Library/Application Support/Adobe/Adobe Illustrator CS6/en_US/New Document Profiles/
    Edit the normal character style and save. Now when you create a new document choose that new document profile.

  • Unable to set default Model

    Hi,
    When i tried to set default Model for Web Input/Report forms i am unable to change the previous. Exp when i go and set A as my default model in features>context defaults it shows as default model ....... when i open input form it still has the model B.(i have also re-logged in to see the changes not shown though)
    Please help
    Thanks,
    PR

    Thanks guys for showing interest in helping.
    As you guys can see, there's no adobe reader when u expand. Also, I already browsed the reader just in case too. Thus expanding doesnt help. =(
    Also, I cant seem to find the "file type" tab in folder options

  • Safari 6 Address bar defaults to 'search'. How do I get default to URL?

    I like the old default of adding '.com. to the location I type in the address bar. Now, it has defaulted to search and my options appear to be Bing, Google, or Yahoo. I've tried the Customize Toolbar option with no luck. How do I get Safari 6 to default to the web address rather than search mode?

    @Camping Doc: I subscribe to this.
    My first entry in any Apple forum if I recall it right, but hopefully some internal developers will see this.
    From my point of view Safari 6 is indeed a big step backward. My troubles in short:
    Entering urls causes a search engine request, seems that "Prevent search engine from providing suggestions" does not work properly.
    Even starting the url with http:// or https:// or entering IP addresses causes search ?! (I don't want google to know any of my LAN addresses if mistyped, or servers I administer).
    HTTPS (with the lock on the left) can disappear even if the certificate is trusted all the chain up. I would like to see directly if I login with SSL. Even my granny wants to see that.
    Even if the setting  "Prevent search engines auto completion" == on I get an auto completion list, maybe a cached one ?! The dropdown list definitely says "Google search results ...".
    Editing URIs causes me a lot of trouble, again because of the auto-completion.
    I can understand that a some people (I personally know some) might be ok with all this because they might not care about SSL, and enter URLs in the Google page text field, but PLEASE make at least an opt-out setting or get the "Prevent search engine from providing suggestions" running properly. Safafi was always such a nice piece of software with good usability and good developer tools as well.
    { Version I use: 6.0 (7536.25)  @ Lion 10.7.4 }

  • Changing LDAP "Search Attribute"

    Hello:
    I am authenticating against LDAP as such:
    Hashtable authEnv = new Hashtable();
    String dn =
    "CN=" + userAuth.getFirstName() + " " + userAuth.getLastName() +
    ",OU=zzzzzzzz,DC=yyyyy,DC=xxx";
    authEnv.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.sun.jndi.ldap.LdapCtxFactory");
    authEnv.put(Context.PROVIDER_URL, "ldap://999.999.199.999:389");
    authEnv.put(Context.SECURITY_AUTHENTICATION, "simple");
    authEnv.put(Context.SECURITY_PRINCIPAL, dn);
    authEnv.put(Context.SECURITY_CREDENTIALS, password);
    I am using the user's first and last name to authenticate. Now, I want to use their login id to authenticate. I was told "to change the Search Attribute from 'uid' to 'sAMAccountName'". I don't know what this refers to. Does anybody have any ideas?
    Thanks
    Eric

    A call to Apple support helped solve this problem, especially to deal with a typo in the Apple Snow Leopard Server documentation:
    1. Export all of your users, groups, etc. to files. Passwords will be reset but everything else will work.
    2. In OD, change the server to be "stand alone" (basically turning off OD).
    3. From the command line run the following command, noting that you literally put the string "HostName" in the position specified, not the old host name specified in the documentation:
    sudo scutil --set HostName <fully qualified domain name>
    4. Reboot
    5. Restart Server Admin and recreate the OD master using the fully qualified name.
    6. Go to KeyChain and look for the entries for system -> com.apple.opendirectory. One should point to your server and one should be blank. Delete the bank entry.
    Done!

  • Defaulting % in search pages using personalizations

    Is it possible to default % in search pages of SSHR using personalizations?

    Hi,
    Try to extend the controller where the search region is there, and get the handle of the search item
    and set the value % in the process request.
    With regards,
    Kali.
    OSSI.

Maybe you are looking for