Apply Entry to the first field in a SDV

J_Koeleman

New Member
I have a smart dataviewer with a fiew fields in it. When I add or edit the viewer, id like progress to apply entry to the first field in the viewer. This works fine with ordinary fields, but when I have a smart datafield or a smart select progress applies entry to the first ordinary field in the viewer.

when I run this code :

DEFINE VARIABLE tHandle AS HANDLE NO-UNDO.

tHandle = FRAME f-main:FIRST-CHILD.
tHandle = tHandle:FIRST-TAB-ITEM.
MESSAGE tHandle:NAME VIEW-AS ALERT-BOX INFO BUTTONS OK.

I get the name of the first ordinary field and not the real first field (first in tab order property of the viewer and top left).

Does anyboady knows the solution for my problem?
 
ADM(1) answer

In ADM(1), you will need to modify this method to the appropriate terms for ADM 2 methodology. Anyway in ADM(1) you would simply APPLY 'ENTRY' to the widget handle / DB field FILL-IN, in the local-enable-fields procedure. So basicaly when the widgets / fill-in fields become enabled for update the trigger is fired and your bespoke code will execute.
Regards
 
AndreyE said:
You can write:

run ApplyEntry IN <SmartFieldHandle> (?).
How does this works with a smart select? I need to specify an input parameter:

RUN applyEntry IN h_dynselect ( INPUT pcField /* CHARACTER */).

I don't know what pcField should be. It's not the name of the database field...

Who knows the solution for my problem?
 
Back
Top