lego1as
9th January 2013, 15:27
Hello everybody,
running the export data dictionary for integrated sessions in LN from inside a script like this

extern domain ttaad.path path.components
extern domain ttaad.path path

...

function export.software(
domain ttaad.path i.path,
domain ttaad.path i.dump.list)
{
path = i.path
path.components = i.dump.list
zoom.to$("ttiex1280s000", z.session, "iexpatch", "", 0)
}

results in error report saying
Report (session name) not present
or
Script (session name) not present

and no export is done.
Any idea about that?

Thank you in advance

Regards

NPRao
9th January 2013, 22:42
It might be picking up your session defaults. You can reset the field values for the AFS program with the following command -

Clear All fields
SYNTAX
void stpapi.clear(string session)
ARGUMENTS
Session Name of the session this command is executed on.
DESCRIPTION
This function fills in an ‘empty’ value (unset) for all input fields of the form.
EXAMPLE
stpapi.clear(“dtfsa1101s000”)
stpapi.put.field("dtfsa1101s000", "dtfsa101.seno", str$(i.seno)) stpapi.put.field("dtfsa1101s000",
"dtfsa101.name", name)
retval1 = stpapi.insert("dtfsa1101s000", true, error.msg)
if not retval1 then
retval2 = stpapi.recover("dtfsa1101s000", recover.msg)
endif
Explanation:
Before you execute the put.field actions, you first make all fields empty using
the clear function.
USAGE NOTES
Function in dll created by creatdll:
Function extern void <fs-name>.clear()
Note
In early versions of Functionserver, you required this stpapi.clear function to
clear the put field buffers. The newer versions will after an action such as
insert automatically reset the put field buffers.

lego1as
10th January 2013, 09:56
Hello NPRao,
thanks for your help.

NPRao
11th January 2013, 01:44
Try assigning blank to all the fields and only assign values to the specific fields you want.

Also post the complete code so others can review and describe that purpose for why you need this utility for others to understand and help you out