catnesma
21st March 2010, 10:39
Does choice.mark.occur: after.choice: works in ERP LN or is there any other command?

When trying to click on a dashboard button in an overview group after selecting a perticular record in the details group the function called in choice.mark.occur: after.choice: is geeting the current field of details group (the last field in it) instead it should pick the current field as the one on which the mouse was clicked.

Here is the script...

choice.mark.occur:
after.choice:
click.dashboard.buttons()

functions:
function click.dashboard.buttons()
{
ctr.flag = tcyesno.no

select tsctm460.csco
from tsctm460
where tsctm460._index1 = {:tsctm300.csco}
selectdo
ctr.flag = tcyesno.yes
break
endselect
display.fld(actual.occ, "ctr.flag")
}


function extern show.dashboard.child()
{
if dashboard.child then
dashboard.child = stop.synchronized.child (dashboard.child)
endif

if fattr.currfld$ = "ctr.flag" and ctr.flag = tcyesno.yes then
dashboard.child = start.synchronized.child("tsctm4160m000", "tsctm300.csco","tsctm460.csco")
endif
}