Anil Ozay
12/1/2005 8:37:00 PM
Dear John,
This is the step by step solution for you ;)
Dialog form gets parameters from Dialog class. So if you can send parameter
from Dialog class, you can set the label name. Firstly we must customize
Dialog class.
1. In the class declaration of Dialog Class, add a field to hold the value
of param. :
str labelOfOk;
2. Add a method to set and get this field :
str LabelOfOk(str _labelText = labelOfOk)
{
;
labelOfOk = _labelText;
return labelOfOk;
}
3. In the run() method of Dialog FORM (not class..), write this code before
super();
if(dialog.LabelOfOk()) OkButton.text(dialog.LabelOfOk());
From now, if you want to set this label you can use :
dialog.LabelOfOk('MyLabelText..');
I hope this help you..
Regards,
Anil Ozay
Software Engineer
MBSCP, MCP
anilozay@hotmail.com
"John" wrote:
> Hi!
> Actually i am creating a new Dialog, I would like that, it should be
> change only my Dialog not overall.
> If u change label property, it will change overall in Axapta.
> bye
>
> "Anil Ozay" wrote:
>
> > Hi John,
> >
> > Dialog class uses 'Dialog' form. So you can change the label of 'OkButton'
> > with your name in the 'Dialog' form.
> >
> > Regards,
> >
> > Anil Ozay
> > MBSCP,MCP
> >
> > anilozay@hotmail.com
> >
> > "John" wrote:
> >
> > > Hi friends!
> > > I have a problem to create a new DialogBox.When u create a Dialog,
> > > it has two Button OK & CANCEL. I would like to Change OK Button with mine
> > > name.
> > > Is it possible.
> > > Reply as soon as possible...
> > > Bye
> > >