gulya2005
2nd July 2007, 14:47
I`m trying to open(run) ttaad4200s000 session within my own 4GL script(using Zoom.To)...How can I pass some parameters to the form of this session?

lakoon
2nd July 2007, 15:47
Try to use afs functionality.
Start session ttaad4200m000 and fill the fields with stpapi.put.field command.
/lakoon

gulya2005
2nd July 2007, 16:06
please example.

george7a
2nd July 2007, 16:14
Do you mean you want it to open on a specifed record?

lakoon
2nd July 2007, 16:50
Hello

Just like the following lines



#pragma used dll ottstpapihand

function convert.user()
{
string err.msg(128)
stpapi.put.field("ttaad4200m000", "users", str$(etol(ttyeno.yes)))
stpapi.put.field("ttaad4200m000", "authorizations", str$(etol(ttyeno.yes)))
stpapi.put.field("ttaad4200m000", "user.f", "baan") |<- replace baan by a variable of your choice and contence...
stpapi.put.field("ttaad4200m000", "user.t", "baan")|<- replace baan by a variable of your choice and contence...
stpapi.put.field("ttaad4200m000", "group.files", str$(etol(ttyeno.yes)))
stpapi.continue.process("ttaad4200m000", err.msg)
stpapi.end.session("ttaad4200m000", err.msg)
}


I just tested the lines. It works fine.

/lakoon

_Ralph_
2nd July 2007, 19:40
I guess you're trying to filter this zoom..
Search in this forum for export or import functions :cool:

gulya2005
3rd July 2007, 10:04
Do you mean you want it to open on a specifed record?
Yes, we wanted... But now we have solved the problem and runing the session with our parameters without opening of the form ...using stpapi.put.field and stpapi.continue.proces...

Thanks all!!!

p.s.: 2lakoon: by the way, in stpapi.end.session the required parameter is the name of the session to close, nor the error message...we`ve found a large number of working processes after some expirements ;-)

lakoon
3rd July 2007, 10:36
Sorry,

your right.

/lakoon