Question
Accenture
BR
Last activity: 5 Jun 2019 1:13 EDT
Disable the import option of a single datatype
Hello everybody!
I have a requirement to disable the import option of a single datatype. I mean, disable just the import option of a specific datatype in the environment, not all datatypes.
There is some configuration that we can do to achieve this?
Thanks in advance!
César Pizarro.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
IN
Hi Cesar,
As Susan mentioned you can not disable the import icon for a particular class, but you can restrict the user to import anything for that particular class by following the below steps:
There is an activity "pyPreProcessDataImport" which is called before opening the dialog box for data import.
This activity is available and you can modify it based on your requirement.
In this activity you need to set the property "pyDisableImportPurpose" to true.
You can have a when condition which will check for a particular class and if the when condition is true then only it will set this property to true otherwise exit activity.
In the next step you add a page-set-message step where you can have have a message that user are not allowed to import data for this class.
Regards,
Vikash
Pegasystems Inc.
US
"Import" link under "Records" tab of the Data Type is from OOTB section "pzRecordsEditorWrapper" under PegaAccel-Task-DataTableEditor class. It's a "Final, Internal" rule. You are not allowed to modify it and to disable that link.
Accepted Solution
Pegasystems Inc.
IN
Hi Cesar,
As Susan mentioned you can not disable the import icon for a particular class, but you can restrict the user to import anything for that particular class by following the below steps:
There is an activity "pyPreProcessDataImport" which is called before opening the dialog box for data import.
This activity is available and you can modify it based on your requirement.
In this activity you need to set the property "pyDisableImportPurpose" to true.
You can have a when condition which will check for a particular class and if the when condition is true then only it will set this property to true otherwise exit activity.
In the next step you add a page-set-message step where you can have have a message that user are not allowed to import data for this class.
Regards,
Vikash
Accenture
BR
Hi Susan and Vikash!
After I apllyed the logic Vikash explained, it worked! I'm attaching the images to show the final look of the solution.
Thank you very much for the help!
Regards,
César Antonio Brito Pizarro.
-
praveen velagapudi venkatesh R NIHARIKA PALLI
Pegasystems Inc.
AU
Thank you.
However we would also like to hide (disable) Next button on the pop up with the error message. It does not make sense to have this button as the import is not allowed, further to this when Next button is clicked one gets presented with errors that do not make sense, the only valid action is to Cancel anyway.
Pegasystems Inc.
AU
How can we hide Next button ?