BobyIsProgress
Member
Hi everyone,
I have a new one for you.
This is my case:
I have a Window app with a Temp-Table in parameter, and a list of the field I want to display:
So I was able to create the field in my browse BR-TT1 and make them updatable like this:
But now I need to create some triggers to manage the changed I can make on my browse .
Or maybe there is another way that I'm willing to take.
So if you can help it would be greet
Best regards
- BobyIsProgress -
I have a new one for you.
This is my case:
I have a Window app with a Temp-Table in parameter, and a list of the field I want to display:
Code:
DEFINE INPUT PARAMETER cListData AS CHARACTER. /* My list of field (index of the extent) */
DEFINE INPUT PARAMETER cListCol AS CHARACTER. /* Column-label */
DEFINE TEMP-TABLE TT1
FIELD data AS CHARACTER EXTENT 102.
So I was able to create the field in my browse BR-TT1 and make them updatable like this:
Code:
DEFINE VARIABLE iCmpt AS INTEGER NO-UNDO.
DEFINE VARIABLE hCol AS HANDLE NO-UNDO.
DEFINE VARIABLE hTT AS HANDLE NO-UNDO.
DEFINE VARIABLE hTTF AS HANDLE NO-UNDO.
ASSIGN
hBR = BR-TT1:HANDLE IN FRAME F-Main
hBR:READ-ONLY = FALSE
hTT = TEMP-TABLE TT1:HANDLE.
DO iCmpt = 1 TO NUM-ENTRIES(cListData) :
ASSIGN
hCol = hBR:ADD-LIKE-COLUMN("TT1.data[" + ENTRY(iCmpt, cListData) + "]")
hCol:LABEL = ENTRY(iCmpt, cListCol)
hCol:WIDTH-PIXELS = func-widthcolumn(hCol)
hCol:READ-ONLY = FALSE
hTTF = hTT:DEFAULT-BUFFER-HANDLE:BUFFER-FIELD('data')
hTTF:FORMAT = "X(40)".
END.
But now I need to create some triggers to manage the changed I can make on my browse .
Or maybe there is another way that I'm willing to take.
So if you can help it would be greet
Best regards
- BobyIsProgress -