Hi everybody,
I raised this issue before and failed to resolve it, but now it's important
for me to get it done.
I want to trigger the Update event on a temp table to modify its content
before it gets back to the form.
Here's the registration script:
//////////////////////////////////////
NotReg = Trigger_RegisterDatabaseByName (346, "MOP_Comp_Trx_Items_Tab_Temp",
"MOP_Component_Trx_Entry", 8, script MOTRXENTRY);
if NotReg <> 0 then
warning getmsg(32000);
end if;
//////////////////////////////////////
And here's MOTRXENTRY procedure:
//////////////////////////////////////
inout anonymous table MOP_Comp_Trx_Items_Tab_Temp;
change first table MOP_Comp_Trx_Items_Tab_Temp;
while err() = OKAY do
if column("CB") of table MOP_Comp_Trx_Items_Tab_Temp then
set column("CB") of table MOP_Comp_Trx_Items_Tab_Temp to false;
save table MOP_Comp_Trx_Items_Tab_Temp;
else
release table MOP_Comp_Trx_Items_Tab_Temp;
end if;
change next table MOP_Comp_Trx_Items_Tab_Temp;
end while;
release table MOP_Comp_Trx_Items_Tab_Temp;
////////////////////////////////////////////////
This procedure has a random result, sometimes it works for somerows, other
times works for the first row only. I tried it with a temp table in the Main
dictionary and it gives me the same random resuts.
Could you please advise on this?
Thanks.
MH.