It looks like you're new here. Sign in or register to get started.
FORM.RUN(XX);
CLEAR(recSalesHeader); recSalesHeader."Document Type" := recSalesHeader."Document Type"::"Credit Memo"; recSalesHeader.INSERT(TRUE); FORM.RUNMODAL(FORM::"Sales Credit Memo",recSalesHeader);
erugalatha wrote: Hi kriki, With this code ... it tells me FORM.RUNMODAL(...) is not allowed in write transactions. FORM.RUN seems to run fine. Might there be any issues when using FORM.RUN?
CLEAR(recSalesHeader); recSalesHeader."Document Type" := recSalesHeader."Document Type"::"Credit Memo"; recSalesHeader.INSERT(TRUE); COMMIT; FORM.RUNMODAL(FORM::"Sales Credit Memo",recSalesHeader);
Comments
In Bottom - OnPush
Where XX is Form Number (f.e. 52)
To open with a blank line... i can't help you
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
With this code ... it tells me FORM.RUNMODAL(...) is not allowed in write transactions.
FORM.RUN seems to run fine.
Might there be any issues when using FORM.RUN?
It is better to use this:
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!