Can somebody provide or link an example of how to use a number series on a BC page field?
Thanks in advance!
The No. Series logic is on the table, not the page. Will your page be using a custom table? Or a standard table already support by a number series?
The Standard "To-do" table - I couldn't find number series support in the base table?!
Do you mean Table 5080? It's there. See the OnInsert trigger.
Ah, ok - and do I need any code in the page? Because I would like to have the next value when exiting the field and not when saving the complete row...The No. Series is which one?
No page code is needed. No. Series is designed to be assigned on record insert. If you need the "No." before the entire record is populated, then use a Page with DelayedInsert turned off.
Unfortunately that's not possible with a pageextension...
Yes, you'd need a custom page. But that can create its own problems.
You might try doing a SAVERECORD in the OnAfterValidate trigger of the "No." field on the page.