Haven’t seen any more posts here .. so I thought I need to check if that group still exists ;)
I am looking for a Rational Change customization, where I want to change the display properties of “a” attribute based on the value of “another” attribute, i.e. I want to change attribute B from read-only to be modifiable when a certain value for attribute A was selected.
Has anyone experimented with something of that nature, using Change 5.3?
I can see where that might become tricky as we’d have to reload the form after changing the attribute’s display properties .. other than that, I could imagine that this is a pretty common requirement, so there might be a solution for that out there.
Thank you in advance, -Rudi.--
You received this message because you are subscribed to the Google Groups "Synergy CM Tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to synergy-cm-to...@googlegroups.com.
To post to this group, send email to synergy...@googlegroups.com.
Visit this group at http://groups.google.com/group/synergy-cm-tool.
For more options, visit https://groups.google.com/d/optout.
To post to this group, send email to synergy...@googlegroups.com.
Thank you all for your responses!
Hello Rudi,
for the approach which Matthias describes is here a first untested draw how to use JavaScript in Change.
<script type="text/javascript">
dojo.addOnLoad(function()
{
dojo.query('IDENTIFY_OF_LISTBOX').onchange(function(list_node){
if(dojo.attr(list_node,'value') == 'external')
{
# Disabled a input-Field when IDENTIFY_OF_LISTBOX has the value external
dojo.query('IDENTIFY_OF_INPUT').each(function(input_node)
{
dojo.attr(input_node, 'disabled', 'disabled');
}
}
else
{
dojo.query('IDENTIFY_OF_INPUT').each(function(input_node)
{
dojo.removeAttr("disabled");
}
}
}
}
</script>this solution use the dojo framework which comes along with Rational Change.
When I understand you wouldn't like to submit any data to the change backend and only disable a field depending of a value from another. That's why you don't need to set any further attributes because everything of this modifications only happens in the browser of the user.
I hope that's helps you a little bit to solute your problem
best regards
Dan