rohan_rege
12th September 2002, 00:43
I am trying to write an AFs for Maintain transaction , session.
but the problem is that there is no data entry done on this session ,bczo most of the fields transc. date , batch no , etc are defaulted.
we can change all fields except batch no. if desired , of course .
but mostly the default values are taken.
i am trying to simulate the session thru a script where i am putting a value in only the batch no. description .
i am assuming that all the fields shud be populated as they are defaulted when a user tries to create a new record manually.
the foll. compiles but goes in to a loop forever ........
any suggestions
the code goes as follows :
function in.tfgld1100m000()
{
f1100m000.put.Batch_Reference("test batch")
f1100m000.insert(1,err)
if(strip$(err)<>"") then
msg = f1100m000.get.last.message.code()
msg = "tfgld1100m000 insert: "& strip$(err)&" "& strip$(msg)
message(msg)
else
message(" successfull " )
endif
f1100m000.end( )
return
}
but the problem is that there is no data entry done on this session ,bczo most of the fields transc. date , batch no , etc are defaulted.
we can change all fields except batch no. if desired , of course .
but mostly the default values are taken.
i am trying to simulate the session thru a script where i am putting a value in only the batch no. description .
i am assuming that all the fields shud be populated as they are defaulted when a user tries to create a new record manually.
the foll. compiles but goes in to a loop forever ........
any suggestions
the code goes as follows :
function in.tfgld1100m000()
{
f1100m000.put.Batch_Reference("test batch")
f1100m000.insert(1,err)
if(strip$(err)<>"") then
msg = f1100m000.get.last.message.code()
msg = "tfgld1100m000 insert: "& strip$(err)&" "& strip$(msg)
message(msg)
else
message(" successfull " )
endif
f1100m000.end( )
return
}