on 01-10-2006 11:15 AM
Hi all,
I'm trying to list documents in a search, based on the country of the user that has logged on to the portal. Therefore I'm using the Search option set with predefined properties this is what I did:
-create a property called country (EN,DE,FR,NL, etc)
-create a search option set with predefined property: country(value=%ume_user_country%). I also tried %user.country% and a lot of variations, but it doesn't work.
-Is this possible?
-What should the values of the property country be restricted to?
-What is the correct statement?
I would also like to do this for the subscription property. same here:
-copied the cm_rnd_subscription property and made it indexable.
-created a search option set with predefined property: cm_rnd_subscription=????? Is this possible and how do I know the allowed values, is there any documentation available for these issues?
Thanks in advance and kind regards,
Barry
Hi Barry,
> -Is this possible?
No.
> -What should the values of the property country
> be restricted to?
If you want an automatic restriction, you could implement your own Search Dialog Box Component, which in fact only would provide the dynamically determined user language and set this as value for the search property country, rendering simply nothing.
> -copied the cm_rnd_subscription property
Could you explain your use case for this?
Hope it helps
Detlev
PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Detlev,
> If you want an automatic restriction, you could
> implement your own Search Dialog Box Component, which
> in fact only would provide the dynamically determined
> user language and set this as value for the search
> property country, rendering simply nothing.
Does this mean it will not do nohing? What is the value of the dynamically determined user language if for example someone has logged on in English and how do I read this value without using the development kit and API's?
> > -copied the cm_rnd_subscription property
I copied it to make it an indexable property. In this way I hoped to be able to use it in my search iView. I think however that a subscription is a collection of values and not just one?
Regards,
Barry
PS points willbe rewarded ofcourse:)
Hi Barry,
> What is the value of the dynamically determined user
> language if for example someone has logged on in
> English
Just to be able to determine this dynamically
> do I read this value without
> using the development kit and API's
You won't do without. My proposal was to develop this.
> copied it to make it an indexable property
For sure, so far I got it already I just wanted to know the exact use case, do you want some automatism agan or for what do you want to search?
Hope it helps
Detlev
Hi Detlev,
> Just to be able to determine this dynamically
Ok:)
> > do I read this value without
> > using the development kit and API's
>
> For sure, so far I got it already I just wanted
> to know the exact use case, do you want some
> automatism agan or for what do you want to search?
Yes, the same reason. I was looking for a simple filter without having to develop.
Thanks very much, althouigh not the ansewers i hoped for:)
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.