Readonly Variable

rated by 0 users
This post has 1 Reply | 1 Follower

Top 25 Contributor
Posts 50
Points 850
sherenegladysj Posted: Mon, Jun 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

Top 25 Contributor
Posts 86
Points 1,295
tstickel replied on Sat, Jul 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: ....Aras\Innovator\Innovator\Client\scripts\InBasket.  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.

Terry Stickel, PDM Consultant

TStickel Consulting

Sanibel, Florida

  • | Post Points: 5
Page 1 of 1 (2 items) | RSS