I Have a DBGRID with the following EEP in the on entry into DBGRID col.

 

SET VAR vCnum = NULL

GETPROPERTY Comp_DCLup CURRENTCOLUMNNAME vColumnname

RECALC VARIABLES

-- get order number value so I can bring up order form for that number.

SET VAR vCnum = (RBTI_FORM_COLVALUE)

RETURN

 

The var vCnum then is used in a bit button to bring up an order based on
that var.

The bit button EEP is as follows:

SET VAR vformmode = 'EDIT'

EDIT USING kayparkorderbrowse WHERE control# = .vcnum

PROPERTY Comp_DCLup SET_FOCUS 'TRUE'

RECALC VAR

RETURN

 

When I first go into the DBGRID then click the Bit button, the order
form comes up as it should.

If after getting out of the order form I then click on a different order
number within the DBGRID (same column) and hit the bit button, it just
brings up the order I looked at previously.

If however I click on a different column within the DBGRID, click on the
Order number column, then the bit button, I get the new Order to come up
in the form.

 

I am not quite sure what code I need to use in the bit button to reset
the var vCnum without having to click a different col then the order
col.

 

Jim

 

 

Reply via email to