column triggers in dynamic temp-tables

jpdelbarre

New Member
Hi,
i have the following procedure:
CREATE BROWSE brwKostint
ASSIGN TITLE = "Interne kosten"
FRAME = FRAME frmTaakInt:HANDLE
QUERY = QUERY q1:HANDLE
COLUMN = 3
ROW = 12.48
WIDTH = 54
DOWN = 6
VISIBLE = TRUE
SENSITIVE = TRUE
READ-ONLY = FALSE
TRIGGERS:
ON row-leave PERSISTENT
RUN RowLeavebrwKostint IN THIS-PROCEDURE.
END TRIGGERS.
hOmschr = brwKostInt:ADD-LIKE-COLUMN("tmpKostInt.omschr").
hHoev = brwKostInt:ADD-LIKE-COLUMN("tmpKostInt.hoev").
hKost = brwKostInt:ADD-LIKE-COLUMN("tmpKostInt.kost").

this works fine.
what i like to is adding a collumn trigger, like
ON LEAVE OF hHoev IN BROWSE BrwKostInt persistent
run xxxxx in this-procedure .
with this syntax the program doesn't compile. i've been looking everywhere but i don't find a solution.
can someone help me?
thanks a lot.
 
The IN BROWSE clause is used for statically defined browsers only. As your browse is dynamically created, then the clause is invalid in this context.

So instead of:

ON LEAVE OF hHoev IN BROWSE BrwKostInt persistent
run xxxxx in this-procedure .

All you need is:

ON LEAVE OF hHoev persistent run xxxxx in this-procedure.
 
Top