Quantcast
Channel: Martin Dráb's Activities
Viewing all articles
Browse latest Browse all 17532

Access form control in edit method of a form extension class

$
0
0

Hi,

I have added two form controls to a form extension; one drop-down(Field01) and another a text box(Field02). Based on the selection made in drop down the text box gets populated with some description. Now, all this is done in an edit() method in a class (for the form extension). Field02 is not associated to any table, it is just a display of the description. How can I access the text box form control and set a value for it?

Note:- I did not create the edit() in table extension class because of the need to access form control Field02.

e.g. Form extension = PurchTable.Extension

Class Extension:-

[ExtensionOf(formStr(PurchTable))]
final class PurchTable_Extension

{

public static edit Description editField01(PurchTable _this, boolean _set = false, Str60 _recid = "0")

{

_this.Field01 = str2int64(_recid);

//Some more code

// This is where I am trying to access Field02 to set some value to it.

Field02.text("");

}

}


Viewing all articles
Browse latest Browse all 17532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>