This content has been marked as final. Show 7 replies
So you have an option list. There are keys which are IDs and values which are the text display values.
When you run a search, the value for the option list metadata field is returning the key (ID). You want the value (text display value).
Is this correct?
If your option list is setup based on a view, you could make the keys/values the same.
Otherwise, I think your only option is to run a service call to fetch the display value (since the search is not returning this). If you are going to be doing this often, it might make sense to cache this information somewhere.
Hi Somesh ,
Well , with the MLR 10 patchset of WCC PS5 this feature was there (as a bug) :-) where in the display value is shown with search results from RIDC . So , if you want to use that without additional effort then download the following patchset :
Glad to know there is a requirement which is considered as a bug in product :-)
By the way this is not the right behavior which was being done from WCC side , it has since been fixed in the later patchsets .
got an alternative
what i did is created global rule and in side effect set the display value to some other hidden text field
called this hidden text field from search data resultset.
Would be good and really helpful for other boarders if you can put the code snippet here .
i wrote below code in side effect
here test1 is the drop down for which i want display value.
created a new metadata field called test2 (type text).
added it in global rule as hidden and set derived value as
that is it now from seach result in java code i can get this test2 field easily :)
Edited by: TheNewBee on Apr 1, 2013 4:42 AM
what is your reason behind setting display and value to different columns?
I have to filter the content based on drop down in portal,
drop down is fetching value from web service is giving display value.
Edited by: TheNewBee on Apr 1, 2013 10:21 PM