Quantcast
Channel: Baanboard.com
Viewing all articles
Browse latest Browse all 4216

AFS hangs in in UI but for client works

$
0
0
Hello guys,

I know that afs is not supported in UI but I haven't encounter any problems untill now. The problem is that my afs program runs smoothly in client but hangs forever and ever in web browser. The session that I run via APi is standard cisli2405m000 Reprint invoice or something.
The code is
Code:

        stpapi.put.field("cisli2405m000", "f.sls.inv.company", str$(sfcp))
        stpapi.put.field("cisli2405m000", "f.reprint.option",  str$(etol(cisli.rprn.by.invoice)))       
        stpapi.put.field("cisli2405m000", "prnt.lang",  str$(etol(cisli.lang.bpct)))
       
       
        stpapi.put.field("cisli2405m000", "f.fin.company.f", str$(sfcp))
        stpapi.put.field("cisli2405m000", "f.fin.company.t", str$(sfcp))
       
        stpapi.put.field("cisli2405m000", "f.trans.type.f", tdsls406.ttyp)
        stpapi.put.field("cisli2405m000", "f.trans.type.t", tdsls406.ttyp)
        stpapi.put.field("cisli2405m000", "f.document.f", str$(tdsls406.invn))
        stpapi.put.field("cisli2405m000", "f.document.t", str$(tdsls406.invn))
        stpapi.put.field("cisli2405m000", "date.t", str$(utc.num()))
        stpapi.put.field("cisli2405m000", "f.print.device", device)
        stpapi.put.field("cisli2405m000", "f.excp.device", device)
|        stpapi.set.report("cisli2405m000", "rcisli12002300", "T", error.msg)

        device = "ASCIT        "
        stpapi.set.report("cisli2405m000", "rcisli12001100", device, error.msg)
        if isspace(error.msg) then       
                suspend(5000)
                message("Ii dau play")
                stpapi.form.command("cisli2405m000",5, "exec.cont.process", error.msg) 
                message("I-am dat continua")
                suspend(5000)
        endif
        stpapi.end.session("cisli2405m000")
       
        if tc.is.html.ui()        then                                                                                |HTMLUI.sn
                copy_to_local = client.prepare.download()                                                |20171216.o
                retx = client.add.download.file(copy_to_local, bse.tmp.dir$() & file.name)                |20171216.o       
                retx = client.start.download(copy_to_local)                                                |20171216.o
        endif


Viewing all articles
Browse latest Browse all 4216


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>