newlnuser
16th June 2010, 16:38
Hi,
I am trying to call the session tipcf5120m000 using AFS. I am setting the key value(Product Variant) and try to call using form.command function, but the session is not getting displayed.Please let me know, where i am making mistake.
Code:
stpapi.put.field("tipcf5501m000","tipcf500.cpva","21")
fnd = stpapi.find("tipcf5501m000")
if fnd = 1 then
stpapi.get.field("tipcf5501m000","tipcf500.cpva",cp.val)
stpapi.get.field("tipcf5501m000","tipcf500.dsca",var.desc)
stpapi.get.field("tipcf5501m000","tipcf500.item",item.val)
ret = stpapi.mark("tipcf5501m000", error.msg)
if ret then
stpapi.form.command( "tipcf5501m000", 5, "start.product.config", error )
endif
endif
stpapi.end.session("tipcf5501m000")
Thanks in Advance,
I am trying to call the session tipcf5120m000 using AFS. I am setting the key value(Product Variant) and try to call using form.command function, but the session is not getting displayed.Please let me know, where i am making mistake.
Code:
stpapi.put.field("tipcf5501m000","tipcf500.cpva","21")
fnd = stpapi.find("tipcf5501m000")
if fnd = 1 then
stpapi.get.field("tipcf5501m000","tipcf500.cpva",cp.val)
stpapi.get.field("tipcf5501m000","tipcf500.dsca",var.desc)
stpapi.get.field("tipcf5501m000","tipcf500.item",item.val)
ret = stpapi.mark("tipcf5501m000", error.msg)
if ret then
stpapi.form.command( "tipcf5501m000", 5, "start.product.config", error )
endif
endif
stpapi.end.session("tipcf5501m000")
Thanks in Advance,