It's possible when u use RunBase dialog.

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
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to