change Display Method to Edit Method

Hi,

Can we convert Display method into edit method if yes then How can we do it.

Actully In a Form I have a control (of display method) which value I cant change but I want to make it enable means I want to change the value of that control.

(Please, Let me know if there is any better solution then this (to change display method to Edit Method) )

Regards,

AK

hi,

U try like this…

for example u have a display display method which returns a value 20…

like…

display real marks()

{

return 20;

}

u cant change the value here …

So change display method to edit method…

edit real marks(boolean set, real _real)

{

return 20;

}

Now u can change the value…

Thanks Chaitanya,

I did the same, but I when I enter new value in control and when I press enter button then again control is showing old value instead of new value…!

This is the code :

Edit CustExchRate displayExchRate(boolean _set, EDT_ExchRate _rate )
{
date _date = this.InvoiceDate;
;

if (this.CurrencyCode)
return ExchRates::displayExchRate(Currency::exchRate(this.CurrencyCode, _date));

else
return 0;
}

Regards,

AK