Skip to main content

[Migrated content. Thread originally posted on 18 November 2004]

I am new to ACUCOBOL-GT programming and AcuBench . For now, I?m working on test programs. I cannot get the hidden-data feature for grids to work. I can find only one program example using grids and it doesn?t use hidden-data.

My code to load the grid is:
perform varying ws-cntr from 1 by 1 until ws-cntr > max-rows
modify scr-act-grid, record-to-add = act-ent(ws-cntr),
hidden-data = act-cd(ws-cntr)


My code to retrieve the data is:
perform varying ii from 1 by 1 until ii > max-rows
modify scr-act-grid, y = ii
inquire scr-act-grid, record-data = act-ent(ii),
hidden-data = act-cd(ii)


Also, is there AcuBench documentation anywhere that fully explains all the settings in the property window for the different controls?

[Migrated content. Thread originally posted on 18 November 2004]

I am new to ACUCOBOL-GT programming and AcuBench . For now, I?m working on test programs. I cannot get the hidden-data feature for grids to work. I can find only one program example using grids and it doesn?t use hidden-data.

My code to load the grid is:
perform varying ws-cntr from 1 by 1 until ws-cntr > max-rows
modify scr-act-grid, record-to-add = act-ent(ws-cntr),
hidden-data = act-cd(ws-cntr)


My code to retrieve the data is:
perform varying ii from 1 by 1 until ii > max-rows
modify scr-act-grid, y = ii
inquire scr-act-grid, record-data = act-ent(ii),
hidden-data = act-cd(ii)


Also, is there AcuBench documentation anywhere that fully explains all the settings in the property window for the different controls?
You're probably making the same mistake I made and assumed that the hidden data is related to the whole record (or row) as in the tree-view and list-box controls.

The grid stores the hidden data against each CELL.

Thus when storing hidden data you need to specify an X and Y, and when you retrieve it you need to specify the same X and Y.

Looking at your example code, I'm not sure which cell it would have saved your hidden data against.

I would suggest you add your record, then modify the hidden data of the first cell of the row you added (usually LAST-ROW).

It's funny, I'm working on my first GRID right now!

[Migrated content. Thread originally posted on 18 November 2004]

I am new to ACUCOBOL-GT programming and AcuBench . For now, I?m working on test programs. I cannot get the hidden-data feature for grids to work. I can find only one program example using grids and it doesn?t use hidden-data.

My code to load the grid is:
perform varying ws-cntr from 1 by 1 until ws-cntr > max-rows
modify scr-act-grid, record-to-add = act-ent(ws-cntr),
hidden-data = act-cd(ws-cntr)


My code to retrieve the data is:
perform varying ii from 1 by 1 until ii > max-rows
modify scr-act-grid, y = ii
inquire scr-act-grid, record-data = act-ent(ii),
hidden-data = act-cd(ii)


Also, is there AcuBench documentation anywhere that fully explains all the settings in the property window for the different controls?
DuncanK,

Thanks for the help. It worked like a charm.

Gloria