cancel
Showing results for 
Search instead for 
Did you mean: 

Using properties

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

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!

Former Member
0 Kudos

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:)

detlev_beutner
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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:)

Answers (0)