How to access current catalog item from User Citeria Script

Jarkko
Tera Expert

Hi,

trying to implement custom user criteria and need to get properties of current catalog item from User Criteria script. Haven't found a way doing that, so could anyone here maybe help? Or is that even possible?

Thanks!

Jarkko

1 ACCEPTED SOLUTION

Since it seems to be impossible to get the current catalog item and it's properties from User criteria script, I had to write own UC-script for each of our items. So, I think we should considet this as solved

View solution in original post

5 REPLIES 5

ricker
Tera Guru

@Jarkko,

How will the catalog item be related to and how would it affect the User Criteria?  I don’t understand a use case for adjusting user criteria based on the open record.

@ricker

We have a attribute(s) in catalog items we want to use in user criteria. For example we want to chek if user is already a member of a group set as attribute for current catalog item and if positive, hide the item from user.

 

This can offcourse be done statically by using that group as a criteria, but I'm looking for dynamic solution, because we have a bunch of that kind of catalog items.

@Jarkko,

Sounds like you have a custom process to replace the available for and not available for tabs....might be able to script creating user criteria records by group and adding them to the Items based on the group attribute value.....ACLs might work.

@ricker

Something like that, but preferably like to use Not available for tab and write a script in there if posdible.

Thanks for the hint - i'll take a look to ACLs