Discussion


chase
US
Last activity: 28 Sep 2015 2:59 EDT
pega 6.3 - in review harness buttons are still editable want it to be disabled - pls suggest ?
pega 6.3 - in review harness buttons are still editable want it to be disabled - pls suggest ?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!


Pegasystems Inc.
SG
If you want to disable the buttons, edit the review harness and disable the button.


chase
US
they are 100 + buttons - we can do it in the each button configuration . pls help


Pegasystems Inc.
SG
I'm curious. If you disable all the buttons, they how would you perform an action from the review harness, for example, if you want to run a local action to transfer the work to another operator?
If you really need to disable all the buttons in the review harness due to business requirements, even if there are 100+ buttons, it's still a one-time effort.


chase
US
actually i am having a update button in the top of screen , on click of which all the elemets including all the buttons will be editable . please advice how to do it in one time as a whole , what we thought is - we need to give the disabliting condition in all the buttons one by one .


Pegasystems Inc.
SG
I'm not sure there is an easy way around this. I do not have an instance of PRPC 6.3 with me so I'm basing my observation using Pega 7.1.6. The Harness container, Section include and Layouts within the section only has "Visibility" property which you can configure. There is no "Edit option", which can only be found on each Control.
Hence, there is no quick way to ensure all controls within a section (or harness for that fact) can be enabled/disabled. You will probably need to configure that in each control individually.
Perhaps another way is to have 2 containers where one contains all the sections with enabled controls, and then another container with all the sections with disabled controls. Upon triggering of the "Update" button in the top of the screen, you dynamically hide/display the relevant container? Not the most elegant solution though...


chase
US
Thanks a lot for inputs CHUAT .


Pegasystems Inc.
IN
could you please refer to harness rule: "harness_preview" available in ruleset "Pega-UIEngine"?
also would it make sense to add a .js script (~ to disableAllButtons, disableAllHyperLinks called from OnLoad) at the configured harness rule to disable buttons, clicks, events etc.. based on when condition ( $input-Enabled)...


chase
US
Thanks a lot sahup ,so we will include a JS script code in a textfile and will place in the harness . pls give some example how to write this JS especially with syntax inside text file .


Pegasystems Inc.
IN
>>> pls give some example how to write this JS especially with syntax inside text file
sorry santosh. I'm not sure of the syntax... we may either need to include it as an external js file or need to overwrite in WorkUserForm...also please try having a privilege to disable in review harness otherwise...