I need to restrict the attributes on my edit page to different users. For example, while I cannot see some attributes for user X, I want user Y to see all of them. How can I make this distinction?
Solved! Go to Solution.
Hi @smcvr
If you need to restrict the access to IBA attributes, you can do it by profiles.
Set own profile to one group, and another own profile to second group of users
You can set what user can do or see. Attibute or just value, atc.
.PetrH
Hi @smcvr
If you need to restrict the access to IBA attributes, you can do it by profiles.
Set own profile to one group, and another own profile to second group of users
You can set what user can do or see. Attibute or just value, atc.
.PetrH
This situation also affects the create screen. Do you have a solution for the edit screen only?
Hi @smcvr
Oh I expected that Edit wizard also means create wizard.
To restrict the access just in the edit wizard means you can achieve it by a customization.
For example crate datautility that is run just in the EditWizard where the restriction is set in the code by your conditions.
or another direction with Create Wizard
PetrH
Hi @HelesicPetr
I want to show the value I got from "TEMEL PROBLEMLER" with "Temel Problemler Edit" on the edit page. How can I assign String value?
Hi @smcvr
Do you want to just show it in the edit wizard?
Or you are trying to divide one parameter to two that a user can edit one parameter by change the another one?
I didn't catch the point.
You can create DataUtility to show value from TEMEL PROBLEMER in your new editable parameter.
PetrH
I want to assign the value taken for "KEY PROBLEMS" on the Create page to the "Basic Problems Edit" variable on the Edit page.
So I can make constraints on the Edit page, but I need to pull the same values. I did this with Calculated but it couldn't be edited.
I still miss the point(use case). It is important to advice the best solution.
You want that the parameter KEY PROBLEMS is not editable anymore after the Create Wizard is finished?
And you need to set same value to editable parameter called Basic Problems Edit?
This Basic Problems Edit should be editable in the edit wizard?
PS> Calculated attributes are just for showing values, not edit. This is fact.
PetrH
AND
I want to display the value from the create page with a different variable on the edit page. For example, I typed x in TEMEL PROBLEMLER on the create page and I want to show it as x on the edit page in Temel Problemler Edit
I want it to be changed on the edit page
I want to make a restriction on the edit screen, but when I restricted the "TEMEL PROBLEMLER", it also affected the create screen. I thought about creating two separate variables. Someone will take a value on the create screen and assign it to the "Temel Problemler Edit" variable on the edit screen, so when I restrict the "Temel Problemler Edit" variable, it will only affect the edit screen and the users I want can change it on the Edit screen. I thought of such a solution, the only thing I need to do is assign the value I got for TEMEL PROBLEMLER to the Temel Problemler Edit variable.
That is the point.
I would advice to use just one parameter TEMEL PROBLEMLER and create DataUtility, Yes it is customization.
In the DU you can set a condition if the value is editable or not based on a group and on the wizard type (crate edit).
Your idea for solution is too complicated and needs to use also the DataUtility so why to do it so complicated.
first you need to create class for DataUtility,
Then you need to register the datautility in the service.properties
then assign the datautility to the create and edit wizard in the type and attribute management.
if the input is text area then you can use something like this:
TextArea textArea = null;
try
{
textArea = new TextArea();
textArea.setId("getIDFromGeneralComponent");
textArea.setName("Input from the parameter");
textArea.setEditable(false); // set that is not editable for group od user
textArea.setLabel("Input from the parameter"");
textArea.setReadOnly(true);// set that is not editable for group od user
textArea.setEnabled(true);
textArea.setColumnName("nameOfYourAttribte");
textArea.setValue("Input from the parameter");
textArea.setHeight(40);
textArea.setWidth(150);
} catch (Exception var9)
{
logger.debug(var9);
throw new WTException(var9);
}
PetrH