Announcements
I have a form, contains: field A, field B, field C
field A is lookup value numberID, when I choose one of numberID in lookup field A, the value can automatically full-fill at field B and field C. Can you make example for the modified script?
*This post is locked for comments
On the modified method of Field A, you can include following code
public boolean modified()
{
boolean ret;
ret = super();
FormDataSource.FieldB = XYZ;
FormDataSource.FieldC = XXX;
return ret;
}
(Or)
On the modifiedField method on the table, you can use following code
public void modifiedField(FieldId _fieldId)
{
super(_fieldId);
case fieldNum(Table, FieldA):
this.FieldB = XYZ;
this.FieldC = XXX;
}
Check modifiedField method of table SalesLine (for reference) for below cases.
case fieldNum(SalesLine, LinePercent):
case fieldNum(SalesLine, SalesPrice):
André Arnaud de Cal...
294,157
Super User 2025 Season 1
Martin Dráb
232,938
Most Valuable Professional
nmaenpaa
101,158
Moderator