rmoreira0271
31st May 2006, 21:12
Hi friends,
I am with a problem to execute AFS in the LN. :confused:
I create a program that imports an archive text to make a load of countable balances. For this, the session is necessary to execute way AFS the session tfgld1101m000 (Transactions) to register in cadastre transactions based in the loaded load. The AFS in this session is correct, but when I go to subsession tfgld1105s000(Transaction's Entry ) I didn't obtain to insert the due fields.
In stpapi.insert this return "Command Disabled"
Detail: all fields that I insert are from form 2.
I believe that it is trying to insert a register in form1, this that is not possible, only new group.
It follows part of the code below:
|after "insert" and "save" in tfgld1101m000...
stpapi.mark("tfgld1101m000")
stpapi.handle.subproc("tfgld1101m000", "tfgld1105s000", "add")
stpapi.form.command("tfgld1101m000", 5, "exec.cont.process", error.msg)
stpapi.put.field("tfgld1105s000", "tfgld102.hcod.l", shiftl$(hist1))
stpapi.put.field("tfgld1105s000", "tfgld102.bpid", shiftl$(parc1))
stpapi.put.field("tfgld1105s000", "tfgld102.leac", shiftl$(conta1))
stpapi.put.field("tfgld1105s000", "form.amnt", str$(valor1))
stpapi.put.field("tfgld1105s000", "tfgld102.refr", ref_tran)
ret = stpapi.change.view("tfgld1105s000", error.msg) |não retorna erro
|Import variable "form.curr" from subsession tfgld1105s000 - always value = 1 (form 1) :(
stpapi.get.field("tfgld1105s000","form.curr", fnr)
stpapi.insert("tfgld1105s000", 0, error.msg) |return "Command Disabled" :mad:
stpapi.save("tfgld1105s000", error.msg)
If somebody helps me, I'm so thankful
[]s
Bruno Teixeira Lomba
I am with a problem to execute AFS in the LN. :confused:
I create a program that imports an archive text to make a load of countable balances. For this, the session is necessary to execute way AFS the session tfgld1101m000 (Transactions) to register in cadastre transactions based in the loaded load. The AFS in this session is correct, but when I go to subsession tfgld1105s000(Transaction's Entry ) I didn't obtain to insert the due fields.
In stpapi.insert this return "Command Disabled"
Detail: all fields that I insert are from form 2.
I believe that it is trying to insert a register in form1, this that is not possible, only new group.
It follows part of the code below:
|after "insert" and "save" in tfgld1101m000...
stpapi.mark("tfgld1101m000")
stpapi.handle.subproc("tfgld1101m000", "tfgld1105s000", "add")
stpapi.form.command("tfgld1101m000", 5, "exec.cont.process", error.msg)
stpapi.put.field("tfgld1105s000", "tfgld102.hcod.l", shiftl$(hist1))
stpapi.put.field("tfgld1105s000", "tfgld102.bpid", shiftl$(parc1))
stpapi.put.field("tfgld1105s000", "tfgld102.leac", shiftl$(conta1))
stpapi.put.field("tfgld1105s000", "form.amnt", str$(valor1))
stpapi.put.field("tfgld1105s000", "tfgld102.refr", ref_tran)
ret = stpapi.change.view("tfgld1105s000", error.msg) |não retorna erro
|Import variable "form.curr" from subsession tfgld1105s000 - always value = 1 (form 1) :(
stpapi.get.field("tfgld1105s000","form.curr", fnr)
stpapi.insert("tfgld1105s000", 0, error.msg) |return "Command Disabled" :mad:
stpapi.save("tfgld1105s000", error.msg)
If somebody helps me, I'm so thankful
[]s
Bruno Teixeira Lomba