learn_ln6
3rd January 2008, 11:43
Hi all

I am using AFS functionalty for report operation completed.
Session no (tisfc0130m000).

but when i update complete quantity through AFS
it is giving the error "Editable Synchronized Dialog not Started"

any one know how can i start Synchronized Dialog in Editable mode with syntax.

Thanks
Sanj

mark_h
3rd January 2008, 14:46
See if this thread (http://www.baanboard.com/baanboard/showthread.php?t=23952&highlight=tisfc0130m000) helps. I always recommend searching at least on the session name. Good Luck!

som.papai
5th January 2008, 06:15
Hi All,
I am using stpapi.browse.set because, when u add ur session in DEM
It will not find the perticuler Operation which u give.
But if u run it from Run Program it will Find the perticuler Operation.


Here is the code for tisfc0130m000 session.

function run.afs()
{
string value(5)
domain tcopno opno

stpapi.put.field("tisfc0130m000","tisfc010.pdno",tisfc010.pdno)
stpapi.put.field( "tisfc0130m000", "tisfc010.opno", str$(tisfc010.opno))

ret_val = stpapi.change.view( "tisfc0130m000", error)
if ret_val = 1 then

ret_val = stpapi.browse.view("tisfc0130m000","first.set", error)
if ret_val = 1 then

value = ""
stpapi.get.field( "tisfc0130m000", "tisfc010.opno", value )
opno = lval(value)

while opno < tisfc010.opno

ret_val = stpapi.browse.set( "tisfc0130m000", "next.set",error)

value = ""
stpapi.get.field( "tisfc0130m000", "tisfc010.opno", value )
opno = lval(value)

endwhile

ret_val =stpapi.synchronize.dialog("tisfc0130m000", "modify", error)

stpapi.put.field( "tisfc0130m000", "qcmp.form", str$(qcmp.form))
stpapi.enum.answer("tisfc0130m000", "tisfc01302", tcyesno.yes)
stpapi.put.field( "tisfc0130m000", "qrjc.form", str$(qrjc.form))
stpapi.enum.answer("tisfc0130m000", "tisfc01302", tcyesno.yes)

ret_val = stpapi.update( "tisfc0130m000", true, error )
stpapi.enum.answer("tisfc0130m000", "tisfc02023", tcyesno.yes)

IF not isspace(error) then
message(" %s ",error)
ELSE
log.dates()
message(" Data Saved Successfully..............",error)
ENDIF

stpapi.end.session("tisfc0130m000")

endif
endif

}

:)