user3824908
user3824908

Reputation:

How to get value from form control?

How to get value from StringEdit control in x++ and insert it to new record?

Now I have:

ttsBegin;    
update_recordSet _empl setting Name=<and here goes input from control>
    where _empl.RecId==pole;   
ttsCommit;

Upvotes: 2

Views: 4628

Answers (1)

Jan B. Kjeldsen
Jan B. Kjeldsen

Reputation: 18051

This is not how things work in AX, but if you insists:

update_recordSet _empl setting Name = nameCtrl.text()
    where _empl.RecId == pole;

The nameCtrl control can be declared by setting the AutoDeclation attribute to Yes.

That said, it might be easier to make the control bound to the table field.

Upvotes: 4

Related Questions