IndoTech
19th May 2016, 10:54
Hi
wants to find a item in tcibd001 and change/update tcibd001.seak = "new value" with dal.set.field() but the dal.save.object() shows error like
"dal.do.update.denedent.fields"
so how this can be resolved or how to find the dependent fields of tcibd001.seak and update those also at a sametime.
code as below
ret.val.itm = dal.get.object("tcibd001",TRUE,"tcibd001.item",v.itm)
If ret.val.itm <> 0 then
dal.get.error.message(mess.code)
endif
dal.set.field("tcibd001.seak", v.itm001.dsca)
ret = dal.save.object("tcibd001")
if ret = 0 then
commit.transaction()
else
abort.transaction()
endif
Regards
Umesh
wants to find a item in tcibd001 and change/update tcibd001.seak = "new value" with dal.set.field() but the dal.save.object() shows error like
"dal.do.update.denedent.fields"
so how this can be resolved or how to find the dependent fields of tcibd001.seak and update those also at a sametime.
code as below
ret.val.itm = dal.get.object("tcibd001",TRUE,"tcibd001.item",v.itm)
If ret.val.itm <> 0 then
dal.get.error.message(mess.code)
endif
dal.set.field("tcibd001.seak", v.itm001.dsca)
ret = dal.save.object("tcibd001")
if ret = 0 then
commit.transaction()
else
abort.transaction()
endif
Regards
Umesh