Let's say that the field id i have assigned for the check box in IndexPlus is "
isToBA" and for the drop-down-list to control its "enabled" attrbiute is "
toOrganization".
I have created a custom script using Visual Studio 2005 (
new class library), have written the script the will handle the required behavior as follows:
<blockquote class="jive-quote">
publicvoid SelectedIsToBAChanged(IFieldEventInformation info) {
IIndexFields nodeFields;
IIndexField isToBA, toOrganization;
String isToBAValue; nodeFields = info.GetCurrentNodeFields();isToBA = nodeFields.GetFieldById("isToBA"); isToBAValue = isToBA.Value;toOrganization = nodeFields.GetFieldById("toOrganization");
if (isToBAValue == "1") {toOrganization.Enabled =false; }
else {toOrganization.Enabled =true; }}
</blockquote>
After compiling my class library, I added the resulting .ddl to my process script files (using "
Manage Script Files" window).
At this point, i assigned the function above "
SelectedIsToBAChanged" to the "
Changed" event for my check-box "
isToBA".
Thus, after saving module configuration and creating a new batch, the "
enabled" attrbiute for the drop-down-list "
toOrganization" is now controled with the state of the check-box "
isToBA".
HTH,
LimoMan