Try this code: CLEAR(Item), Page.RUNMODAL(Page::"Item Card", Item); this thing (with FORM) in Classic would make you a new blank Item Card so that you can enter a new Item, in 2009 SP1 RTC gets a card with editing the first Item in your list. From the card you can go "New" again and another another, finally blank card, but it is confusing for the users.
I know in the worst case I can try temp tables. Still, any simpler ways? Why does the RTC think a blank record is not actually a new record but the first one in the list?
Possible use case if it is confusing: you have a customization that for every Item creates a record in a new table that shows statistical information for that item, gathered from other tables e.g. denormalizes the qty. per fields from the item unit of measure. You use this new list form, new table as your usual item list, but you still want to be able to let users create the normal, standard items from it, which will then be automatically processed and written back into this table.
0
Comments
- I can create a simulated New action (on another record than what is in the current list) by setting properties, but not code. The OnActon trigger will not run in 2009 SP1, this means automatic post-processing is not possible.
- Editing a record that is not in the current table should not be a problem however, because in the worst case even if the Page opens as View mode I can still click in the actions menu to go to edit mode. This must be acceptable.