lbencic
2nd March 2006, 18:17
Hi -

Anybody programming in ERP LN have the parameters session commands figured out? When you create a parameter session, you can only insert if there is not a current record. Once there is a record, you can only modify the 'Actual Set'.

I have copied the commands from a standard Parameter session, and I have this generally working. However, when they save the record, while it creates 2 records for me (the Dated one and one that SHOULD be the 'Actual Set'), but the Actual Set one does have a date, does not say 'Actual Set' and cannot be modified.

There are commands in the standard Parameter sesssion that must be creating this Actual Set record, but I can't find them directly in that script or the DAL for the Parameter tables. I think it has something to do with the following commands:


before.display.object:
HANDLE.ADD(tdpur000)

and / or:

after.update.db.commit:
SET.ACTUAL.SET(tdpur000)
e = refresh.parent(-1)



But I can't find documentation or how I can make these work with my own tables. Some more code must go somewhere...but where?

Edited: I should add that I don't use the setting for 'Parameter' in Session type, I use 'List Window', and have generally copied the logic, form settings, etc from tdpur0100m000

ARijke
3rd March 2006, 13:40
Hi,

HANDLE.ADD and SET.ACTUAL.SET are functions defined in include tcmcs0095.ui.
So include in your script:
#include "itcmcs0095.ui"