Web Portal: make a field not editable when adding new employee

Hi, how can I make an attribute not editable when adding a new employee from the Web portal and vice versa? E.g. I cannot modify the manager attribute (by default I guess), is it because of a flag in web designer?

Most important: Version 8.1

Thanks,
Roberto

Parents
  • Hi,

    For the standard project (VI_StandardWeb), open the web designer, select your web project and click edit->Configure Project->Web Project.  Search the section for Persons/Identities (in my 9.x  they replaced the name by Identities) or either click the search bar on top of options for the configuration project tab and look for the key VI_Employee_MasterData_Attributes , as an example. This setting lists the master attributes for a Person, such as LastName, Firstname, Centralaccount and so on. On the configuration setting, click on the + sign under the Value (custom) and add the attributes you need that will define your person's master data. Could be the same you have now, only that now you can edit them. Select one of these attributes/properties to edit its settings and scroll down. There's a section named "Restrict the property to be read-only". Here you can specify a condition that'll set that property to read only. Use 1=1 as the condition, for instance,  and you'll no longer be able to edit that property.

    HtH. I know it's a little bit hard to find and the forum does not easily allow to insert screenshots 

  • hi,


    thanks for the help, can you tell me which conditional I can use so that the field cannot be changed after being filled in and saved? our intention is for the data to be entered through the portal but edited only through the Manager.

  • Hi, 

    Have a look at the help file in the web designer, there's a list of functions available. You could try "not isNullorEmpty(<property>)" . If the property has a value it will be set as read only in the portal. But you'll always be able to edit it in Manager.

    Please be aware that getting the <property> value could be tricky depending on the context and might need a deep knowledge of the web designer internals. 

Reply
  • Hi, 

    Have a look at the help file in the web designer, there's a list of functions available. You could try "not isNullorEmpty(<property>)" . If the property has a value it will be set as read only in the portal. But you'll always be able to edit it in Manager.

    Please be aware that getting the <property> value could be tricky depending on the context and might need a deep knowledge of the web designer internals. 

Children