This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Readonly Variable

sherenegladysj - Monday, June 15, 2009 9:02 AM:

Hello all,

I am trying to disable/enable the variables added in the workflow activity. To implement this, I have added a property named as "is_disabled" in 'Activity Template Variable' and 'Activity Variable' ItemTypes. I have added a checkbox and named as "Disabled" in 'Activity Template Variable' Form and associated "is_disabled" as datasource.

Problem I'm facing is; if I check the Disabled checkbox in 'Workflow Activity Template'. In the 'Activity Completion Worksheet' it's not getting reflected. It is displayed as normal fields. And not displayed as Readonly fields.

Have anyone come across this scenario??? Any help would be great...

Thanks.

Regards,

Sherene



tstickel - Saturday, July 18, 2009 5:04 PM:

The changes you have already made are to "core" Innovator objects.  So be aware that if you upgrade to a new Innovator release these changes might be lost.  But, given that, here is a suggestion.  If you can verify that your setting of is_disabled for an Activity Template Variable instance is actually being reflected in the related Activity Variable instance then this might work for you.

Look at the directory: ....ArasInnovatorInnovatorClientscriptsInBasket.  There you should find InBasket-VoteDialog.html.  This is the web page that displays the Activity Completion worksheet.  One of the things that it does is construct any needed html controls to display activity variables (look at the function populateVariables()).  If you know how to write JavaScript code you could easily modify InBasket-VoteDialog.html to determine if the variable has is_disabled set and disable the Input or Select control that is being constructed.

Again, if you upgrade Innovator to a new release it is likely that any change you make to InBasket-VoteDialog.html would be lost unless you take actions to avoid the loss.