Hello All ,
There are 10 tabs in a record view and every tab has certain view level security configured to them but now the view level security show be removed and placed inside the interface .Upon click of the page/interface check if its eligible then print the existing interface else show an error message .
I wanted to know what will happen if we remove the view level security from record and place it inside interface.
Discussion posts and replies are publicly visible
Unknown said:I wanted to know what will happen if we remove the view level security from record and place it inside interface.
It will , use if condition to hide or show the child interface . But keep in mind he/she needs to access parent interface(Parent record view where you calling this interface) in the first place.
if(Condition to check eligible, child interface, error interface)
Okay Sure . The view visibility is taking the parameter as (rv!recordtype) . If i am removing the visibility from view and place inside interface how will i pass the record parameters which are responsible to get the visibility value True or False
You can apply visibility conditions within the each view, on the top of your code. You can wrap with a simple if() and the error message in the else condition.
if( a!isUserMemberOfGroup("User"), {"Your existing code"}, {"Your error Message"} )
Isn't it straight forward . Data will come from the parent record view/interface to this interface as a rule input values . ??
I am getting confused you are going to remove a record view and going to use a standalone interface(if yes, where you are showing this link??) or you going call this inside a another record view??
The record views will be there , I am going to remove the view and action securities for individual views in record to interfaces .
I guess you should not complicate and simple If() or a visibility condition(Calling a expression which will determine the visibility) within the views should be incorporated.
Thats true , I wanted to know how will i pass individual record data to the interface for evaluating the visibility.
You can simply create a rule input in the interface with the record type. And in the view you can pass the rv!record inside your interface rule. docs.appian.com/.../record-view.html
I want to check if the visibility is false - load error card else - load the localvariables followed by formLayout
i
if( local!visible, a!localVariables( few local variables declaired followed by a FormLayout), rule!AM_errorCard() )
but its showing error - could not show interface . what will be the correct approach for it .
Could you please share the error that you are seeing