Found a way to get the desired effect through the event wizard by adding a new action role event. I was convinced that I could it through the checkbox clickable event handler that I laid out earlier.
Unless someone wants to share an alternative way to accomplish the task, (I am still very much interested) consider the matter closed.
Code below:
public void InitializeCustomCode()
{
// other custom generated code
CreateRowRuleUD100AApprove();
}
private void CreateRowRuleUD100AApprove()
{
// Description: new rule
// **** begin autogenerated code ****
RuleAction disabledUD100A_Character01 = RuleAction.AddControlSettings(this.oTrans, "UD100A.CheckBox01", SettingStyle.Disabled);
RuleAction[] ruleActions = new RuleAction[] { disabledUD100A_Character01 };
RowRule rrCreateRowRuleUD100ACheckBox01Equals_True = new RowRule("UD100A.CheckBox01", RuleCondition.Equals, true, new RuleAction[] {
disabledUD100A_Character01});
((EpiDataView)(this.oTrans.EpiDataViews["UD100A"])).AddRowRule(rrCreateRowRuleUD100ACheckBox01Equals_True);
// **** end autogenerated code ****
}
---In vantage@yahoogroups.com, <ben.johnson@...> wrote:Hate to seem pushy but can someone give me a hint or direction to solving this before the weekend? I'd appreciate it. :)
---In vantage@yahoogroups.com, <ben.johnson@...> wrote:Hello,We have a Change Reqeuest form we're setting up for different departments within the company to sign off on potential changes that will be made to software.We are using UD100 for the actual change request header and UD100A as the child tables for each sign-off.Currently, we programmatically generate up to 6 UD100A rows that have approve/reject checkboxes on them. After the user approves or rejects, we want to disable the checkboxes so the options are not modifiable.How can I change the property of one checkbox (enabled, etc.) without it affecting the other child properties with that control's EpiGUID?The following sample code disables all CheckBox01 on all UD100A tables.private void chkApproved_Click(object sender, System.EventArgs args){EpiCheckBox epiChkBx =(EpiCheckBox)csm.GetNativeControlReference("65fd6e0c-4c10-405b-b3ed-14bcc79ddb8d");epiChkBx.Enabled = false;}We need to selectively target which specific CheckBox01 on the form was clicked.Thanks for your help,-Ben