Add the following code at the end of method dialog()
{
...
dialog.allowUpdateOnSelectCtrl(true);
this.dialogSelectCtrl();
return dialog;
}
Next u must override method dialogSelectCtrl
public void dialogSelectCtrl()
{
super();
flag = dlgControlFlag.value();
if(flag)
dlgControlField.allowEdit(false);
else
dlgControlField.allowEdit(true);
}
--- In [EMAIL PROTECTED], "Peter Friberg" <[EMAIL PROTECTED]>
wrote:
> Hej Arabinda,
> I think you have to make a form to do this.
> /Peter
>
> -----Original Message-----
> From: panda arabinda [mailto:[EMAIL PROTECTED]
> Sent: 1. juni 2004 15:48
> To: [EMAIL PROTECTED]
> Subject: [development-axapta] Runtime Dialog Functionality
>
> Dear Friends,
>
> I have some doubt.Plz help me.
> I have created a runtime dialog.
> The code for this is as below
>
> dl= new Dialog("ABC");
> dg1= dl.addGroup("XYZ");
> df1= dl.addField(TypeId(NoYesCombo),"No / Yes ");
> df2=
> dl.addField(TypeId(AssetGroupId),"AssetGroup");
> d1.run();
>
> But now i would like to add the functionality as per
> below
> If i will choose "Yes" from the combo then the second
> one (Asset Group Field) should be disable otherwise it
> should be enable.So plz help me to add the code in my
> code to do the above functionality.
>
> Thanks in advance.
>
> Regards
> Arabinda
>
>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Friends. Fun. Try the all-new Yahoo! Messenger.
> http://messenger.yahoo.com/
>
>
>
>
> Yahoo! Groups Links
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

