darkbook4008
28th November 2011, 16:58
Hello, I'm using BaaN V.
I'm trying to do AFS to session ttiex1280m000 to export dumps, but I have problems with this.
This is the source of my dll
extern domain tcmcs.st90m g.cod_error1
extern domain tcmcs.st90m g.cod_error2
extern domain tcmcs.st90m g.cod_error3
extern domain tcmcs.str10 g.path
#pragma used dll ottstpapihand
function extern domain tcbool tccpedll.documentacion(domain tcmcs.str7 p.cpac,
domain tcmcs.str7 p.vers.f,
domain tcmcs.str7 p.rele.f,
domain tcmcs.str7 p.cust.f,
domain tcmcs.str7 p.vers.t,
domain tcmcs.str7 p.rele.t,
domain tcmcs.str7 p.cust.t,
domain tcmcs.str7 p.clan,
domain tcmcs.str7 p.cprj,
ref string p.error)
{
long l.ret
g.path = "P_"&toupper$(trim$(p.cprj))
stpapi.put.field("ttiex1280m000" , "cpac" ,trim$(str$(p.cpac))) |Package
stpapi.put.field("ttiex1280m000" , "vers" ,trim$(str$(p.vers.f))) |VRC
stpapi.put.field("ttiex1280m000" , "rele" ,trim$(str$(p.rele.f)))
stpapi.put.field("ttiex1280m000" , "cust" ,trim$(str$(p.cust.f)))
stpapi.put.field("ttiex1280m000" , "c.update" ,str$(etol(tcyesno.yes))) |
stpapi.put.field("ttiex1280m000" , "vers.f" ,trim$(str$(p.vers.t)))
stpapi.put.field("ttiex1280m000" , "rele.f" ,trim$(str$(p.rele.t)))
stpapi.put.field("ttiex1280m000" , "cust.f" ,trim$(str$(p.cust.t)))
stpapi.put.field("ttiex1280m000" , "clan" ,str$(p.clan)) | Language
stpapi.put.field("ttiex1280m000" , "based.sessions" ,str$(etol(tcyesno.no)))
| stpapi.put.field("ttiex1280m000" , "sess.from.file" ,str$(etol(tcyesno.no)))
stpapi.put.field("ttiex1280m000" , "dump.comp" ,str$(etol(tcyesno.yes)))
| stpapi.put.field("ttiex1280m000" , "only.pack.yn" ,str$(etol(tcyesno.yes)))
stpapi.put.field("ttiex1280m000" , "error.report" ,str$(etol(tcyesno.yes)))
stpapi.put.field("ttiex1280m000" , "path" ,str$(g.path))
| l.ret=stpapi.enum.answer("ttiex1280m000","ttadvq1151",tcyesno.yes) |ruta
stpapi.enum.answer("ttiex1280m000","ttadvq1151",tcyesno.yes) |ruta
stpapi.handle.subproc("ttiex1280m000", "ttadv11152", "kill")
| |componente 1
stpapi.put.field("ttiex1280m000" , "sessions" ,str$(etol(tcyesno.no))) |Sesiones
stpapi.put.field("ttiex1280m000" , "reports" ,str$(etol(tcyesno.no))) |
| stpapi.put.field("ttiex1280m000" , "report.sources" ,str$(etol(tcyesno.no))) |
stpapi.put.field("ttiex1280m000" , "forms" ,str$(etol(tcyesno.no))) |
| stpapi.put.field("ttiex1280m000" , "form.sources" ,str$(etol(tcyesno.no))) |
stpapi.put.field("ttiex1280m000" , "menus" ,str$(etol(tcyesno.no))) |
stpapi.put.field("ttiex1280m000" , "scripts" ,str$(etol(tcyesno.no))) |
| stpapi.put.field("ttiex1280m000" , "script.sources" ,str$(etol(tcyesno.no))) |
stpapi.put.field("ttiex1280m000" , "libraries" ,str$(etol(tcyesno.no)))
| stpapi.put.field("ttiex1280m000" , "library.sources" ,str$(etol(tcyesno.no)))
stpapi.put.field("ttiex1280m000" , "functions" ,str$(etol(tcyesno.no)))
| stpapi.put.field("ttiex1280m000" , "func.sources" ,str$(etol(tcyesno.no)))
stpapi.put.field("ttiex1280m000" , "table.def" ,str$(etol(tcyesno.no)))
stpapi.put.field("ttiex1280m000" , "domains" ,str$(etol(tcyesno.no)))
|componente 2
stpapi.put.field("ttiex1280m000" , "messages" ,str$(etol(tcyesno.no)))
stpapi.put.field("ttiex1280m000" , "questions" ,str$(etol(tcyesno.no)))
stpapi.put.field("ttiex1280m000" , "impl" ,str$(etol(tcyesno.no)))
stpapi.put.field("ttiex1280m000" , "labels" ,str$(etol(tcyesno.no)))
stpapi.put.field("ttiex1280m000" , "charts" ,str$(etol(tcyesno.no)))
stpapi.put.field("ttiex1280m000" , "help" ,str$(etol(tcyesno.no)))
| |componente 3
stpapi.put.field("ttiex1280m000" , "sql.queries" ,str$(etol(tcyesno.no))) | SQL Queries
stpapi.put.field("ttiex1280m000" , "projects" ,str$(etol(tcyesno.yes))) | Project
stpapi.put.field("ttiex1280m000" , "cprj.f" , p.cprj)
stpapi.put.field("ttiex1280m000" , "cprj.t" , p.cprj)
stpapi.put.field("ttiex1280m000" , "cupt.f" ," ") |From customization part
stpapi.put.field("ttiex1280m000" , "cupt.t" ,"zzz") |To customization part
stpapi.put.field("ttiex1280m000" , "cppt.f" ," ") |From project part
stpapi.put.field("ttiex1280m000" , "cppt.t" ,"zzz") |To project part
stpapi.put.field("ttiex1280m000" , "docu" ,str$(etol(tcyesno.yes))) | docuementation
stpapi.put.field("ttiex1280m000" , "reln" ,str$(etol(tcyesno.yes))) | release notes
stpapi.set.report("ttiex1280m000", "ttiex12800100", "D",g.cod_error1)
stpapi.form.command("ttiex1280m000",5,"exec.cont.process",g.cod_error2)
| if not isspace(g.cod_error2) then
| stpapi.handle.subproc("ttiex1280m000", "ttadv11152", "kill")
| stpapi.continue.process("ttiex1280m000", g.cod_error2)
| stpapi.form.command("ttiex1280m000",5,"exec.cont.process",g.cod_error1)
| g.cod_error1 = stpapi.get.mess.code("ttiex1280m000", g.cod_error2)
| else
| g.cod_error1 = stpapi.get.mess.code("ttiex1280m000", g.cod_error2)
| endif
stpapi.end.session("ttiex1280m000", g.cod_error3)
p.error = trim$( g.cod_error1& " "
& g.cod_error2 & " "
& g.cod_error3
)
return(isspace(p.error))
}
In the command button
stpapi.form.command("ttiex1280m000",5,"exec.cont.process",g.cod_error2)
I had this result in the return message
g.cod_error2 = Directory created
In the command button
stpapi.continue.process("ttiex1280m000", g.cod_error2)
I had this result in the return message
g.cod_error2 = Command disable
And in stpapi.get.mess.code
g.cod_error1 = stpapi.get.mess.code("ttiex1280m000", g.cod_error2)
I had this result in the return message
g.cod_error2 = Command cancelled
These messages are returned in different tests, but in any test the dumps aren't created, only in test number one, the directory is created, but nothing more
Please help me with this
I'm trying to do AFS to session ttiex1280m000 to export dumps, but I have problems with this.
This is the source of my dll
extern domain tcmcs.st90m g.cod_error1
extern domain tcmcs.st90m g.cod_error2
extern domain tcmcs.st90m g.cod_error3
extern domain tcmcs.str10 g.path
#pragma used dll ottstpapihand
function extern domain tcbool tccpedll.documentacion(domain tcmcs.str7 p.cpac,
domain tcmcs.str7 p.vers.f,
domain tcmcs.str7 p.rele.f,
domain tcmcs.str7 p.cust.f,
domain tcmcs.str7 p.vers.t,
domain tcmcs.str7 p.rele.t,
domain tcmcs.str7 p.cust.t,
domain tcmcs.str7 p.clan,
domain tcmcs.str7 p.cprj,
ref string p.error)
{
long l.ret
g.path = "P_"&toupper$(trim$(p.cprj))
stpapi.put.field("ttiex1280m000" , "cpac" ,trim$(str$(p.cpac))) |Package
stpapi.put.field("ttiex1280m000" , "vers" ,trim$(str$(p.vers.f))) |VRC
stpapi.put.field("ttiex1280m000" , "rele" ,trim$(str$(p.rele.f)))
stpapi.put.field("ttiex1280m000" , "cust" ,trim$(str$(p.cust.f)))
stpapi.put.field("ttiex1280m000" , "c.update" ,str$(etol(tcyesno.yes))) |
stpapi.put.field("ttiex1280m000" , "vers.f" ,trim$(str$(p.vers.t)))
stpapi.put.field("ttiex1280m000" , "rele.f" ,trim$(str$(p.rele.t)))
stpapi.put.field("ttiex1280m000" , "cust.f" ,trim$(str$(p.cust.t)))
stpapi.put.field("ttiex1280m000" , "clan" ,str$(p.clan)) | Language
stpapi.put.field("ttiex1280m000" , "based.sessions" ,str$(etol(tcyesno.no)))
| stpapi.put.field("ttiex1280m000" , "sess.from.file" ,str$(etol(tcyesno.no)))
stpapi.put.field("ttiex1280m000" , "dump.comp" ,str$(etol(tcyesno.yes)))
| stpapi.put.field("ttiex1280m000" , "only.pack.yn" ,str$(etol(tcyesno.yes)))
stpapi.put.field("ttiex1280m000" , "error.report" ,str$(etol(tcyesno.yes)))
stpapi.put.field("ttiex1280m000" , "path" ,str$(g.path))
| l.ret=stpapi.enum.answer("ttiex1280m000","ttadvq1151",tcyesno.yes) |ruta
stpapi.enum.answer("ttiex1280m000","ttadvq1151",tcyesno.yes) |ruta
stpapi.handle.subproc("ttiex1280m000", "ttadv11152", "kill")
| |componente 1
stpapi.put.field("ttiex1280m000" , "sessions" ,str$(etol(tcyesno.no))) |Sesiones
stpapi.put.field("ttiex1280m000" , "reports" ,str$(etol(tcyesno.no))) |
| stpapi.put.field("ttiex1280m000" , "report.sources" ,str$(etol(tcyesno.no))) |
stpapi.put.field("ttiex1280m000" , "forms" ,str$(etol(tcyesno.no))) |
| stpapi.put.field("ttiex1280m000" , "form.sources" ,str$(etol(tcyesno.no))) |
stpapi.put.field("ttiex1280m000" , "menus" ,str$(etol(tcyesno.no))) |
stpapi.put.field("ttiex1280m000" , "scripts" ,str$(etol(tcyesno.no))) |
| stpapi.put.field("ttiex1280m000" , "script.sources" ,str$(etol(tcyesno.no))) |
stpapi.put.field("ttiex1280m000" , "libraries" ,str$(etol(tcyesno.no)))
| stpapi.put.field("ttiex1280m000" , "library.sources" ,str$(etol(tcyesno.no)))
stpapi.put.field("ttiex1280m000" , "functions" ,str$(etol(tcyesno.no)))
| stpapi.put.field("ttiex1280m000" , "func.sources" ,str$(etol(tcyesno.no)))
stpapi.put.field("ttiex1280m000" , "table.def" ,str$(etol(tcyesno.no)))
stpapi.put.field("ttiex1280m000" , "domains" ,str$(etol(tcyesno.no)))
|componente 2
stpapi.put.field("ttiex1280m000" , "messages" ,str$(etol(tcyesno.no)))
stpapi.put.field("ttiex1280m000" , "questions" ,str$(etol(tcyesno.no)))
stpapi.put.field("ttiex1280m000" , "impl" ,str$(etol(tcyesno.no)))
stpapi.put.field("ttiex1280m000" , "labels" ,str$(etol(tcyesno.no)))
stpapi.put.field("ttiex1280m000" , "charts" ,str$(etol(tcyesno.no)))
stpapi.put.field("ttiex1280m000" , "help" ,str$(etol(tcyesno.no)))
| |componente 3
stpapi.put.field("ttiex1280m000" , "sql.queries" ,str$(etol(tcyesno.no))) | SQL Queries
stpapi.put.field("ttiex1280m000" , "projects" ,str$(etol(tcyesno.yes))) | Project
stpapi.put.field("ttiex1280m000" , "cprj.f" , p.cprj)
stpapi.put.field("ttiex1280m000" , "cprj.t" , p.cprj)
stpapi.put.field("ttiex1280m000" , "cupt.f" ," ") |From customization part
stpapi.put.field("ttiex1280m000" , "cupt.t" ,"zzz") |To customization part
stpapi.put.field("ttiex1280m000" , "cppt.f" ," ") |From project part
stpapi.put.field("ttiex1280m000" , "cppt.t" ,"zzz") |To project part
stpapi.put.field("ttiex1280m000" , "docu" ,str$(etol(tcyesno.yes))) | docuementation
stpapi.put.field("ttiex1280m000" , "reln" ,str$(etol(tcyesno.yes))) | release notes
stpapi.set.report("ttiex1280m000", "ttiex12800100", "D",g.cod_error1)
stpapi.form.command("ttiex1280m000",5,"exec.cont.process",g.cod_error2)
| if not isspace(g.cod_error2) then
| stpapi.handle.subproc("ttiex1280m000", "ttadv11152", "kill")
| stpapi.continue.process("ttiex1280m000", g.cod_error2)
| stpapi.form.command("ttiex1280m000",5,"exec.cont.process",g.cod_error1)
| g.cod_error1 = stpapi.get.mess.code("ttiex1280m000", g.cod_error2)
| else
| g.cod_error1 = stpapi.get.mess.code("ttiex1280m000", g.cod_error2)
| endif
stpapi.end.session("ttiex1280m000", g.cod_error3)
p.error = trim$( g.cod_error1& " "
& g.cod_error2 & " "
& g.cod_error3
)
return(isspace(p.error))
}
In the command button
stpapi.form.command("ttiex1280m000",5,"exec.cont.process",g.cod_error2)
I had this result in the return message
g.cod_error2 = Directory created
In the command button
stpapi.continue.process("ttiex1280m000", g.cod_error2)
I had this result in the return message
g.cod_error2 = Command disable
And in stpapi.get.mess.code
g.cod_error1 = stpapi.get.mess.code("ttiex1280m000", g.cod_error2)
I had this result in the return message
g.cod_error2 = Command cancelled
These messages are returned in different tests, but in any test the dumps aren't created, only in test number one, the directory is created, but nothing more
Please help me with this