
I have a dropdown within form that for the most part always has one option within it. Because of this I'd like for it to just automatically select the first option within the dropdown. It's the LedgerJournalTransVendPaym form and I'm trying to auto populate the Payment Specification field within the form. The datasource is the LedgerJournalTrans table
*This post is locked for comments
I have the same question (0)In case there is a query behind in a lookup method, couldn't you just create an instance of that query using the same code, and fetching the first record from the QueryRun object, then assign the value to the form control / table field during the create() call of the record (on the form datasource)?
If the lookup is not with code but bound to a table via relations, then just fetch the first record on the table and again assign the value in create().