Change length of attributes in Advanced Search

JDeveloper 11.1.1.0.2 and JHeadstart 11g TP1.
I have a question about changing the length (width) of attributes in Advanced Search in JHeadstart:
I have a varchar2(6) field and In JAG I have used the following values:
Java type = String
Display type = TextInput
In my application this field has 6 characters (= OK).
But when I use Advanced Search in my application the field is much longer than 6 characters. I can fill in everything I want. Is there a way to change this so I can only use 6 characters in de the search field?

OK, this is because in a search item you can use as many wildcards as you like: 'A%b%cdef%'.
If you want to restrict the maximum length, you need to make a custom template for findTextInput.vm and add the following macro:
#ITEM_MAXIMUM_LENGTH()
Steven Davelaar,
Jheadstart team.

Similar Messages

  • LOV in Advanced Search Mode Problem

    Hi all,
    I have a strange problem with LOV!.
    In advanced search of our pages, sometimes we used LOV.
    As a normal way, we used two entities for the whole page, one as updatable
    one, and another which is referenced in LOV and I defined that as reference.
    After choosing a value from LOV, I want to assign its return values (from
    selected row) to other fields. The returned values from LOV that are comming
    from updatable entity is available and I could access them, but I can not see
    the returned values from the reference entity.
    At the end, I repeat that our LOV is working now for create mode and our problem with that is only in Advanced Search mode.
    Thanks for ur helps:)

    Hi Nasser2,
    You could try to make the attribute in the reference entity that you want to put a new value in, updateable.
    I guess you don't see the return value in that attribute in advanced search, because the VO-attr is readonly (which makes sense, because it is a reference-attribute!).
    Regards
    Evert-Jan
    JHeadstart Team

  • Change OVS text Advanced Search

    Hello.
    Someone knows how to change the text from label in OVS (Advanced Seach) to other language ?
    We have a webdynpro project using the OVS (Obejct Value Selector) and we need to change the label Advanced Search in OVS to portuguese !
    Best Regards.
    Taylor.
    Edited by: Taylor on May 17, 2010 9:24 PM
    Edited by: Taylor on May 17, 2010 9:27 PM

    Hi,
    Please refer to the link for OVS related information:
    /docs/DOC-8061#51 [original link is broken]
    For changing the text to portugese, u can create a message in the messagePool (pg_textHeader) with the property "text" and enter the portugese text content.
    In the UI bind the header to an attribute (say headerText) which takes the value dynamically.
    In code, u can set the value of the attribute using the line:
    IWDTextAccessor textAccessor = wdComponentAPI.getTextAccessor();
    String headerOVS = textAccessor.getText("pg_headerText");
    wdContext.currentContext.setHeaderText(headerOVS);
    Regards,
    Poojith MV

  • Message about uncommitted changes in advanced search

    If the advanced search option is used, and one or more fields are filled in, and the search button is clicked, then a message occurs: "The page you are about to leave has uncommitted changes ...".

    You can register items that should be ignored for this uncommitted changes message using the following javascript call:
    <script text="addToIgnoreChangedFields(['<item1>','<item2>']);"/>
    For example:
    <script text="addToIgnoreChangedFields(['FindDepartmentsDepartmentId','FindDepartmentsDepartmentName','FindDepartmentsManagerId','FindDepartmentsLocationId','FindDepartmentsManagerName','FindDepartmentsEmployeeId',]);"/>
    So, make sure that all items in the find region are added to the ignore list through this javascript call.
    Steven Davelaar,
    JHeadstart Team.

  • Advanced Search dropdownlist shows transient attributes

    Dear Forum,
    When I set a couple of attributes on display = false, they DO appear in my dropdownlist for the advanced search screen.
    Any ideas how to hide them there also?
    Kind regards,
    Arjen

    Got that already covered.
    Manually remove them from the uix-code..

  • How can I change font size of advanced search results?

    Once I do an advanced search the font is very small. Any way to change it?

    Printer font size is controlled by your printing software or browser settings. You must change the font size in these programs.

  • A bug in Advanced Search ?

    Hi,
    In my requirement, I have an EO-based view object which is the view instance of an advanced table, and I provide two submitButtons, 'save button' and 'reset button' on the table which is used to do commit and rollback respectively for the data update.
    When user click on 'reset button', getOADBTransaction().rollback() statement in the AM will be executed , then a strange thing happens, the "Add Another" poplist in the advanced search panel will become blank.
    Hence I'm wondering transaction.rollback() will cause clearing the VO in the 'Add Another' poplist?
    Do I have another way to roll back the change and meanwhile the poplist would not be cleared?
    Please help.
    Regards,
    MZ

    Navid,
    JHeadstart checks whether the attribute definition is queryable before adding it to the list of advanced search attributes. A transient VO attribute can still be set to queryable, for a transient EO attribute this is not possible. We will remove this check on queryability in the upcoming patch release, since you have a valid use case. For now, you can subclass JhsSearchBean and override method createArgumentListForAdvancedSearch and comment out the check for "def.isQueryable()".
    Steven Davelaar,
    JHeadstart Team.

  • Textfields in advanced search from LOV non-editable

    I have a LOV where the textfields in advanced search are always non-editable. When I look into the LOV JSP page, maxlength of the textfields is 0.
    One of the textfields uses following attribute:
    in EntityObject: attribute "Kuerzel", type "String" (database datatype VARCHAR2(10))
    in ViewObject: attribute "DspKuerzel"
    in the JHeadstart ADF BC Property Editor from EntityObject and ViewObject the Setting "maximum length" of the attribute is not set (no entry). Jheadstart help says that when maximum length is set to 0 then the corresponding textfield is non-editable. But here it is not set. Is there a solution to this problem?

    If you send a testcase to [email protected] and rename extension .zip to .zipped we can investigate why the maximum length is not generated correctly in your situation.
    Steven Davelaar,
    JHeadstart Team.

  • How to add a new  search criteria in Advance Search Page in OAF

    HI,
    In my application (R12) we can access customer related information from 2 places (2 different responsibilities as mentioned below), both are OAF pages.
    1. AX receivables
    2. Sales online
    From both the responsibilities we can perform search for customer related information as well (Simple as well as Advance Search).
    But Advance Search screen from 'Sales online' allows user to perform search, based on few additional fields as well such as 'Classification' (it's an lov based field).
    Now, User is asking to add that field on search page of AX receivables as well.
    So, how to add one more field (as search criteria), on an standard 'Customer' screen?
    Additional Info :
    1. LOV is based on HzPuiClassificationFilterVO
    2. And this VO is available on both pages. (oracle.apps.ar.hz.components.search.server.HzPuiClassificationFilterVO)
    So can we achieve this by Personalization only ? if yes plz share the steps as well.
    Regards,
    Adi

    Yes. It is possible through personalization.
    1. Create a criteria row under Advance Search
    2. Create a Result Item under advance table columns
    3. Create a Query Criteria Map based on the criteria and result item above.
    Please note the newly added criteria field should be in the Searchresults VO attributes list.
    Otherwise you need to extend the VO as well.
    Hope this helps.
    Regards,
    -Mukesh.

  • Search Item drop-down does not show any data for Advanced Search.

    Hi,
    I have a requirement to add a new criteria to the existing Advanced Search region of 'My Employee Information' in Manager Self Service responsibility. I substituted the AdvancedSearchVO to include the new column. Using personalization i did the below steps to show the new column in the page,
    1) Created a 'Message Styled Text' item under Table Layout region to display the result. I associated the View Instance (AdvancedSearchVO1) and View Attribute (AttrColumn).
    2) In Advanced Search Panel created a new CriteriaRow and set the 'Search Allowed' property to True.
    3) In Advanced Search Mappings i tried to create the new mapping but the Search Item drop-down does not show any of the CriteriaRow item. But Results Item shows the 'Message Styled Text' item created in step 1 above.
    Any idea what i would be missing becasue of which 'Search Item' property does not show any data?
    I am using OAF version 12.1.1.
    Thanks, Suresh

    Hi,
    I faced the same situation but i still waiting for the solution.. this is my problem's thread..
    Addition of LOV Search Filter using Personalization
    But when i tried to create a new custom page with advanced table and created a new LOV column via personalization. i was able to create new search mapping.. but this is not happening in the seeded page case :(.
    I m also looking for solution...if any one can provide some inputs on it , will be highly appreciated.
    Thanks
    Renu

  • Unable to create Table Bean advanced search criteria

    Hi,
    I want to create new search criteria for advanced search region. The reason being new search criteria i tried to add by personalization it didnt worked may be guessing construction mode is autocustomization mode. Somewhere i have seen if resultsbased it will work. Can someone confirm on this??
    I'm trying to create new bean for search criteria at the specified location under <oa:table akRegionCode="EAM_AD_ASSET_RESULTS_TABLE" but unable to do so:
    Here is the part of the page
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!-- dbdrv: exec java oracle/jrad/tools/xml/importer XMLImporter.class java &phase=dat+24 checkfile(120.15.12000000.2=120.18)(115.26=120.1):~PROD:~PATH:~FILE &fullpath_~PROD_~PATH_~FILE -username &un_apps -password &pw_apps -dbconnection &jdbc_db_addr -userId "1" -rootPackage /oracle/apps/~PROD -rootdir &fullpath_~PROD_mds_directory -->
    <page xmlns="http://xmlns.oracle.com/jrad" xmlns:ui="http://xmlns.oracle.com/uix/ui" xmlns:oa="http://xmlns.oracle.com/oa" xmlns:user="http://xmlns.oracle.com/jrad/user" file-version="$Header: EAM_AD_ADVSEARCH_PAGE.xml 120.18.12010000.3 2009/02/11 09:21:55 smrsharm ship $" version="10.1.3_1147" xml:lang="en-US" xmlns:jrad="http://xmlns.oracle.com/jrad">
    <content>
    <oa:pageLayout id="EAM_AD_ADVSEARCH_PAGE" akRegionCode="EAM_AD_ADVSEARCH_PAGE" regionName="Asset Search" amDefName="oracle.apps.eam.asset.server.AdvSearchAM" controllerClass="oracle.apps.eam.asset.webui.AdvSearchPageCO" appMenu="EAM_MAIN_SS" amStateRequired="false" helpTarget="EAM_AD_ADVSEARCH_PAGE">
    <ui:corporateBranding>
    <oa:image id="corporateBranding" source="/OA_MEDIA/FNDSSCORP.gif" shortDesc="Oracle"/>
    </ui:corporateBranding>
    <ui:productBranding>
    <oa:image id="productBranding" source="/OA_MEDIA/EAMBRAND.gif" shortDesc="Asset Management"/>
    </ui:productBranding>
    <ui:contents>
    <oa:query id="EamAssetQueryRegion" mode="autoCustomizationCriteria" dispSimple="true" dispCustomized="true" dispAdvanced="true" defaultPanel="customized" controllerClass="oracle.apps.eam.asset.webui.AdvSearchSearchCO" simpleSearchPanelButtonLabel="Simple Search" viewConfPanelButtonLabel="Views" advSearchPanelButtonLabel="Advanced Search" customizePanelTitle="Views" saveSearchButtonText="Save Search">
    <oa:simpleSearchPanel>
    <oa:defaultSingleColumn id="AssetSimpleSearchRegion" headerDisabled="false" text="Simple Search">
    <ui:contents>
    <oa:messageTextInput readOnly="false" columns="25" prompt="Asset Number" rows="1" secret="false" maximumLength="30" shortDesc="Asset Serial Number" id="EamAssetNumber" promptTranslationExpansion="100%" user:akAttributeCode="EAM_ASSET_NUMBER" user:akAttributeApplicationId="426" required="no" selectiveSearchCriteria="true"/>
    <oa:messageLovInput externalListOfValues="/oracle/apps/eam/lov/webui/EAM_ASSET_CATEGORY_LOV" readOnly="false" columns="25" prompt="Category" rows="1" secret="false" id="EamAssetCategory" promptTranslationExpansion="100%" user:akAttributeCode="EAM_ASSET_CATEGORY" user:akAttributeApplicationId="426" selectiveSearchCriteria="true" shortDesc="Category">
    <lovMappings>
    <lovMap criteriaFrom="EamAssetCategory" lovItem="EamAssetCategory" id="lovMap1"/>
    <lovMap resultTo="EamAssetCategory" lovItem="EamAssetCategory" id="lovMap2"/>
    <lovMap id="lovMap39" lovItem="EamAssetCategoryId" resultTo="EamAssetCategoryId"/>
    </lovMappings>
    </oa:messageLovInput>
    <oa:messageChoice readOnly="false" prompt="Asset Route" pickListViewDef="oracle.apps.eam.asset.server.PicklistYesNoVO" pickListDispAttr="Meaning" pickListValAttr="LookupCode" id="EamNetworkAsset" promptTranslationExpansion="100%" user:akAttributeCode="EAM_NETWORK_ASSET" user:akAttributeApplicationId="426" shortDesc="Asset Route" allowBlankValue="false" defaultValue="N"/>
    <oa:formValue id="EamAssetCategoryId" dataType="NUMBER"/>
    </ui:contents>
    </oa:defaultSingleColumn>
    </oa:simpleSearchPanel>
    <oa:simpleSearchMappings>
    <oa:queryCriteriaMap id="AssetNumberMapSS" criteriaItem="EamAssetNumber" resultsItem="AssetNumber1"/>
    <oa:queryCriteriaMap id="AssetCategoryMapSS" criteriaItem="EamAssetCategory" resultsItem="AssetCategory1"/>
    <oa:queryCriteriaMap id="AssetRouteMapSS" criteriaItem="EamNetworkAsset" resultsItem="AssetRoute"/>
    <oa:queryCriteriaMap id="AssetCategoryIdMapSS" criteriaItem="EamAssetCategoryId" resultsItem="AssetCategoryId"/>
    </oa:simpleSearchMappings>
    <ui:contents>
    <oa:tableLayout akRegionCode="EAM_AD_ADVSEARCH_RESULTS" regionName="Results" controllerClass="oracle.apps.eam.asset.webui.AssetResultsCO" addChildren="true" id="EamResultsNr" user:akAttributeCode="EAM_RESULTS_NR" user:akAttributeApplicationId="426">
    <ui:contents>
    <oa:tableLayout id="ResultsTableLayout2" width="100%" rendered="true">
    <ui:contents>
    <oa:rowLayout id="RowLayoutRegion2">
    <ui:contents>
    <oa:cellFormat id="CellFormatRegion2">
    <ui:contents>
    <oa:switcher id="MappedTableRegion">
    <ui:case name="ShowTable" id="ShowTable">
    <oa:table akRegionCode="EAM_AD_ASSET_RESULTS_TABLE" regionName="Asset Search" blockSize="25" standalone="true" height="1" id="MappedTable" user:akAttributeCode="EAM_RESULTS_NR" user:akAttributeApplicationId="426" width="100%" rendered="true" userCustomizable="true" shortDesc="Mapped Table">
    <ui:contents>
    <oa:messageStyledText id="AssetNumber1" viewName="AdvSearchVO" viewAttr="InstanceNumber" shortDesc="Serial Number" prompt="Asset Number"/>
    <oa:messageStyledText id="AssetDescription1" viewName="AdvSearchVO" viewAttr="DescriptiveText" shortDesc="Asset Description" prompt="Asset Description"/>
    <oa:messageStyledText id="AssetCategory1" viewName="AdvSearchVO" viewAttr="AssetCategory" shortDesc="Asset Category" prompt="Asset Category"/>
    I tried several ways :
    OAPageLayoutBean pageLayout = oapagecontext.getPageLayoutBean();
    OAQueryBean query=(OAQueryBean)pageLayout.findChildRecursive("EamAssetQueryRegion");
    OATableBean oawebbeantb = (OATableBean)query.findChildRecursive("EAM_AD_ASSET_RESULTS_TABLE");
    OAMessageLovInputBean ccidbean = (OAMessageLovInputBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext, OAWebBeanConstants.LOV_TEXT, null, "xxValidation");
    if (oawebbeantb==null){                    
    throw new OAException("Error this is a test!", OAException.ERROR);
    oawebbeantb.addIndexedChild(ccidbean); --here it getting null
    OR
    OATableBean oawebbeantb = (OATableBean)oawebbean.findIndexedChildRecursive("EAM_AD_ASSET_RESULTS_TABLE");
    OAMessageLovInputBean ccidbean = (OAMessageLovInputBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext, OAWebBeanConstants.LOV_TEXT, null, "xxValidation");
    oawebbeantb.addIndexedChild(ccidbean); --here it getting null
    Please someone help me on this..
    thanks,
    mallik

    1) Search panel textinput item should be search allowed true and prompt is need. no other property need to set.
    HERE YOU DONT WANT TO SET VIEW INSTANCE AND ATTRIBUTE SINCE WE ARE DOING FOR EXTENDED VO ITEM AS SEARCH ITEM.THAT'S OK. I TRIED WITH YOUR COMMENTS FOR TEXTINPUT ITEM TOO.
    Comment--
    textinput item created is a simple item without any VO instance , etc.
    There is no question of extended VO item, its a simple textinput item.
    value in this field is going to compare with the values in result table.
    2) Search mapping, only search item id and result item id need to set.
    I'M DOING HERE MAPPING FOR ABOVE SEARCH ITEM ID AND RESULT ITEM ID
    Comment-- Perfect !!
    3) Item created in table , after you extended Vo, view instance and attribute needs to set.
    WHERE DO YOU WANT THIS TO BE SET?? CAN YOU ELABORATE THIS MORE PLEASE.MAY BE I'M MISSING HERE SOMETHING.
    Comment-- you must have created message styled text item in adv table bean, assign VO instance and attribute to it, right?
    4) One more thing Parag, do i need to include where clause for extended VO item in view object??
    for ex:
    where attribute(this is extended vo item)=:4
    Comment-- No need. this will be handled by point#2 above, i.e. criteria and result items.
    --Parag Narkhede                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Error while changing the Display Attribute into Navigational Attribute

    Hi all.. Gud Mrng.
    I was changed the attribute (product) from display attribute into navigational attribute and while save and activating the info object it is not getting activated and it is throwing the below error message.
    Error Message: u201CThe Info object is being used in several data targetsu201D
    My Questions:
    i)     Do I need to delete the data from all the data targets (where this info object is using)??
    ii)     Do I need to delete data only from the main info object (Zmaterial)? Is this single action enough?
    Please suggest me which action I need to follow & What are the precautions need to take while changing the Display Attribute (product) into Navigational attribute of info object (Zmaterial).
    Thanks in advance.
    Thanks & Regards,
    B Venugopal

    Hi Garima
    Only in case of key figures we cannot change it from display to navigational.
    If the info object is a characteristics then in the General tab of the info object if you select 'attribute only' then the iobj would be a display attribute only. If you leave it unmarked then you can use the iobj as a navigational atribute.
    I am sure you know that these settings only mean if a IOBJ can be used as display or navigational.  To  use it as a navigational within another object you will have to change the settings from 'DIS' to 'NAV' for the said info object in the 'Attributes' tab of its parent info object.
    Further if you use the parent info object in any data target / infio provider you will have to further mark the info object as 'navigational' while defining the attrbute of the said data target / info provider. The info object gets displayed in the data target / info provider attribute properties as 'parent IOBJ_info object'
    Cheers
    Umesh

  • Changing the ImageData attribute of a list viewnode..

    Hi,
    I am trying to change the Image Data attribute of a list view node after
    a user clicks on it. But it just doesnot get reflected in the listview.
    UpdateFieldFromData()/UpdateWindow() donot do the job either.
    I could ofcourse clone the node, change it's ImageData, remove the old
    node, insert the new one and then do a SetViewNodes(), but that is really
    not the solution!!
    Has anyone been in this situation before??
    Thanks in advance.
    Inderjyot Singh
    Indus Consultancy Services
    201-261-3100 x232
    [email protected]

    I discovered what was wrong with what I did.
    You have to an UpdateFieldFromData() on the DisplayNode object of the
    listview to get refreshed. Doing an UpdateWindow/UpdatefieldFromData on
    the ListView widget doesnot work!!
    Thanks.
    Inderjyot Singh
    Indus Consultancy Services
    201-261-3100 x232
    [email protected]
    -----Original Message-----
    From: Lee Wei [SMTP:[email protected]]
    Sent: Friday, February 13, 1998 9:29 AM
    To: Singh, Inder Jyot
    Subject: Re: Changing the ImageData attribute of a list view node..
    I tried the situation you described and saw the same problem.
    You should probably let Tech Support know and file a bug.
    Lee Wei
    At 09:25 AM 2/13/98 PST, you wrote:
    >
    Hi,
    I am trying to change the Image Data attribute of a list view node after
    a user clicks on it. But it just doesnot get reflected in the listview.
    UpdateFieldFromData()/UpdateWindow() donot do the job either.
    I could ofcourse clone the node, change it's ImageData, remove the old
    node, insert the new one and then do a SetViewNodes(), but that is really
    not the solution!!
    Has anyone been in this situation before??
    Thanks in advance.
    Inderjyot Singh
    Indus Consultancy Services
    201-261-3100 x232
    [email protected]

  • Adding a new Search Field in Advance Search

    Hi,
    In 1 of the advance search regions, :
    We have a search panel in the adv search RN. In the poplist we have say 10 fields. We can add either of these 10 fields and use for searching. Now I want to add another search field ( an attribute from a table).
    Question 1 :*
    How to find the underlying VO from which the search fields are coming. I saw the page ( about this page) but couldn't find anything.
    Question 2:*
    Suppose I get the VO (resolution from above question) , if my extra filed is not there I add it in the VO ( VO extn), now how to configure this new field to the existing search panel fields?
    Thanks

    Hi,
    I think search fields are not mapped to any VO. If this is your standard page, check the standard controller. It might be getting values from pageContext.getparameter().
    You can create a new item using 'Personalize this Page' option and extend your controller to set where clause for the same.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Problem in using quick and advanced search based on transient items

    Hi everybody
    I want to have an unbound string item in my form and allow users to use advanced search and quick search on that item.
    I read the following post About advanced search and added a transient
    item on view object and overrode the advance search method in application module and realized that the value of that string was
    added to arguments.
    Then I decided to add this transient item on entity object instead of view object so that we were able to add the item in one place and
    use it in several view objects. I added an item in the entity and unchecked the persistent flag but I can't set queryable flag since it was disable.
    I added the item in the view object and by use of application definition I forced the item to be shown in the advance search.
    I generate the application and the item was shown correctly in the advanced search but when I set the item in advanced search its value
    was not sent to advance search method.
    Is it a bug ? (value of the field in the advanced search section was not sent to advanced search method )
    Is it a way to add a queryable transient item in the entity object and still benefit from overriding advanced search method ?
    I am using Jdeveloper 10.1.3 and Jheadstart 10.1.3.
    Any help would be appreciated.
    Best Regards
    Navid

    Navid,
    JHeadstart checks whether the attribute definition is queryable before adding it to the list of advanced search attributes. A transient VO attribute can still be set to queryable, for a transient EO attribute this is not possible. We will remove this check on queryability in the upcoming patch release, since you have a valid use case. For now, you can subclass JhsSearchBean and override method createArgumentListForAdvancedSearch and comment out the check for "def.isQueryable()".
    Steven Davelaar,
    JHeadstart Team.

Maybe you are looking for