pjohns
25th September 2013, 13:53
Hello,

Can somebody please help me in what logic I need in my program script.

I want to populate a table field based on the values inserted to two other table fields.

Field 1 = XX
Field 2 = YYYYYY

So field 3 with be auto populated with the two fields above seperated with a '.'

Field 3 = XX.YYYYYY

I know the logic will need to go in the field section but I'm unsure which field sub-section I should use.

Thanks in advance.

PJ

bhushanchanda
25th September 2013, 15:16
Hi,

Are these field in the same table? If yes then its easy.

field.field1:

when.field.changes:

field3 = field1 & "." & field2

field.field2:

when.field.changes:

field3 = field1 & "." & field2

You can also do it in on.input section of field1 & field2.

You can also use before.display section of field3.

pjohns
25th September 2013, 16:58
Hello,

Thanks for info.

As one of the fields was enumerated my code ended up as below.

Thanks for your help.

field.tssma951.bupo:

before.display:
bu = enum.descr$("tssma.bu", tssma951.bu)

tssma951.bupo = bu & "." & tssma951.custpo