Search the FirstSpirit Knowledge Base
I am looking for a way to apply a rule on one of the components of FS_LIST... In the below code I want to set a user specific visibility rule for the action components is it possible?
please refer the highlighted code below:
Lets say I want only the users from Admin group to be able to create new data sets and rest users should not be able to see the 'create new' icon.
What should i do for that?
Please refer the form code below :
<FS_LIST name="pt_create_tags" hFill="yes" height="250">
<DATASOURCE type="database" useLanguages="yes">
<LANGINFO lang="*" label="CREATE OR ADD TAGS"/>
I read in the documents that we can use "NEW" as a property to restrict a user from creating new values so I tried adding the following rules but it is somehow not working:
<PROPERTY name="NEW" source="pt_create_tags"/>
Also if I use "visible" instead of "new".. what should I add as source for the ACTIONS tag?
<PROPERTY name="VISIBLE" source="???"/>
What would I have to do then to apply the rule set only for the highlighted part in the form code?