spacer
cornerspacercorner
Reply
Mel
Senior Member
Mel
Posts: 5
Registered: 01-24-2011
0 Kudos

Re: How to assign a folder to particular user dynamically

Hi does anyone have an example of the code used on a dynamic role that is based on a value of a custom variable

 

I have an action that i only want visible if a specific checkbox is ticked, so if chkRequired = TRUE

 

In V7 we used %Evaluate and I realise that there is a %Evaluate in V9 but i dont want to use it as its not the best way to do it.

 

I have tried

 

If(TAPData.chkRequired==true, GetToDoList("ProcessContext.FolderId"), "")

 

But this fails

 

If someone has any examples, i would really appreciate if you could post them.

 

Thank you

Valued Contributor
BMellert
Posts: 177
Registered: 05-21-2010
0 Kudos

Re: How to assign a folder to particular user dynamically


Mel wrote:

If(TAPData.chkRequired==true, GetToDoList("ProcessContext.FolderId"), "")


I haven't tried something along these lines, at least not yet.  However, I don't believe ProcessContext.FolderID should be in quotes as that will be interpreted as a literal instead of passing in a folder ID.  (At least from things I've tried thus far.)

Valued Contributor
Greg
Posts: 179
Registered: 05-19-2010
0 Kudos

Re: How to assign a folder to particular user dynamically

In latest v9 you have property only show action if. You may use it instead of creating roles to hide actions.
line spacer line
spacerFollow Metastorm on:
spacer Twitter YouTube Blog iTunes LinkedIn Metastorm Community Central, MC2
spacer Copyright © 2011 OpenText Corporation. All Rights Reserved.spacer About Metastormspacer Privacyspacer Legalspacer Site Mapspacer RSSspacer Contact Us
Microsoft Gold Certified Partner
Powered by Windows Azure
line spacer line