Yamini
Returning Observer

Is it possible to apply "VISIBLE" rule on <ACTIONS> tag in FS_LIST?

Hi there!

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">

      <ACTIONS>

       <ACTION name="NEW"/>

        <ACTION name="ADD"/>

        <ACTION name="REMOVE"/>

        <ACTION name="EDIT"/>

      </ACTIONS>

      <COLUMNS>

       ...

      </COLUMNS>

      <LAYOUT>

        ...

      </LAYOUT>

      <table>test.article_tags</table>

    </DATASOURCE>

    <LANGINFOS>

      <LANGINFO lang="*" label="CREATE OR ADD TAGS"/>

    </LANGINFOS>

  </FS_LIST>

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:

<RULE>

<WITH>

<IN_GROUP name="Admins"/>

</WITH>

<DO>

<PROPERTY name="NEW" source="pt_create_tags"/>

</DO>

</RULE>

Also if I use "visible" instead of "new".. what should I add as source for the ACTIONS tag?

<RULE>

<WITH>

<IN_GROUP name="Admins"/>

</WITH>

<DO>

<PROPERTY name="VISIBLE" source="???"/>

</DO>

</RULE>

What would I have to do then to apply the rule set only for the highlighted part in the form code?

Many Thanks!

0 Kudos
0 Replies