Skip to main content

[archive] modify grid, row-color

  • August 11, 2009
  • 8 replies
  • 0 views

[Migrated content. Thread originally posted on 11 August 2009]

I have used the drag and drop feature in AcuBench 7.2.0 with a paged grid.

I then copied the code in the .prd file that has the modify grid, record-to-add statement and added row-color my-color-variable and moved it into my event paragraph:

MODIFY Screen1-Gd-1, RECORD-TO-ADD Screen1-Gd-1-Autoload,
row-color screen1-gd-1-re-color.

However, no color shows when the grid is displayed.

Any ideas? Thanks.

8 replies

[Migrated content. Thread originally posted on 11 August 2009]

I have used the drag and drop feature in AcuBench 7.2.0 with a paged grid.

I then copied the code in the .prd file that has the modify grid, record-to-add statement and added row-color my-color-variable and moved it into my event paragraph:

MODIFY Screen1-Gd-1, RECORD-TO-ADD Screen1-Gd-1-Autoload,
row-color screen1-gd-1-re-color.

However, no color shows when the grid is displayed.

Any ideas? Thanks.
If you use the code generated by AcuBench you'll see something like this:

MODIFY CUST-SCREEN-Gd-1, MASS-UPDATE = 0.

This in effect tells the screen painter that is okay to now show the screen. Modify the color in the record to add area wil probably have little effect. Do the color modifcation after the screen or control displays

MODIFY CUST-SCREEN-Gd-1, MASS-UPDATE = 0.
modify Cust-Screen-Gd-1, CELL-COLOR 514

[Migrated content. Thread originally posted on 11 August 2009]

I have used the drag and drop feature in AcuBench 7.2.0 with a paged grid.

I then copied the code in the .prd file that has the modify grid, record-to-add statement and added row-color my-color-variable and moved it into my event paragraph:

MODIFY Screen1-Gd-1, RECORD-TO-ADD Screen1-Gd-1-Autoload,
row-color screen1-gd-1-re-color.

However, no color shows when the grid is displayed.

Any ideas? Thanks.
I think I understand the mass-update option however there is no modify grid mass-update statement with this auto generated code.

I would like rows to have color as they are added to the grid based on one of the fields in that row.

[Migrated content. Thread originally posted on 11 August 2009]

I have used the drag and drop feature in AcuBench 7.2.0 with a paged grid.

I then copied the code in the .prd file that has the modify grid, record-to-add statement and added row-color my-color-variable and moved it into my event paragraph:

MODIFY Screen1-Gd-1, RECORD-TO-ADD Screen1-Gd-1-Autoload,
row-color screen1-gd-1-re-color.

However, no color shows when the grid is displayed.

Any ideas? Thanks.
I think I understand the mass-update option however there is no modify grid mass-update statement with this auto generated code.

I would like rows to have color as they are added to the grid based on one of the fields in that row.

[Migrated content. Thread originally posted on 11 August 2009]

I have used the drag and drop feature in AcuBench 7.2.0 with a paged grid.

I then copied the code in the .prd file that has the modify grid, record-to-add statement and added row-color my-color-variable and moved it into my event paragraph:

MODIFY Screen1-Gd-1, RECORD-TO-ADD Screen1-Gd-1-Autoload,
row-color screen1-gd-1-re-color.

However, no color shows when the grid is displayed.

Any ideas? Thanks.
perhaps it would be faster to post what you have done and that way the respose will be a better fit

[Migrated content. Thread originally posted on 11 August 2009]

I have used the drag and drop feature in AcuBench 7.2.0 with a paged grid.

I then copied the code in the .prd file that has the modify grid, record-to-add statement and added row-color my-color-variable and moved it into my event paragraph:

MODIFY Screen1-Gd-1, RECORD-TO-ADD Screen1-Gd-1-Autoload,
row-color screen1-gd-1-re-color.

However, no color shows when the grid is displayed.

Any ideas? Thanks.
From the AcuBench sample code that I see mass-update is used.

Try this to see the third row becoming yellow

modify CUST-SCREEN-Gd-1 Y = 3
modify CUST-SCREEN-Gd-1 ROW-COLOR 480

[Migrated content. Thread originally posted on 11 August 2009]

I have used the drag and drop feature in AcuBench 7.2.0 with a paged grid.

I then copied the code in the .prd file that has the modify grid, record-to-add statement and added row-color my-color-variable and moved it into my event paragraph:

MODIFY Screen1-Gd-1, RECORD-TO-ADD Screen1-Gd-1-Autoload,
row-color screen1-gd-1-re-color.

However, no color shows when the grid is displayed.

Any ideas? Thanks.
i don't usw the workbench.

To customize the row color after i added a record i use this:


    modify cust-screen-gr-1, record-to-add = record-data.
    inquire cust-screen-gr-1, last-row = max-row.
    modify cust-screen-gr-1, y = max-row, row-color = color-value.

[Migrated content. Thread originally posted on 11 August 2009]

I have used the drag and drop feature in AcuBench 7.2.0 with a paged grid.

I then copied the code in the .prd file that has the modify grid, record-to-add statement and added row-color my-color-variable and moved it into my event paragraph:

MODIFY Screen1-Gd-1, RECORD-TO-ADD Screen1-Gd-1-Autoload,
row-color screen1-gd-1-re-color.

However, no color shows when the grid is displayed.

Any ideas? Thanks.
i don't usw the workbench.

To customize the row color after i added a record i use this:


    modify cust-screen-gr-1, record-to-add = record-data.
    inquire cust-screen-gr-1, last-row = max-row.
    modify cust-screen-gr-1, y = max-row, row-color = color-value.

[Migrated content. Thread originally posted on 11 August 2009]

I have used the drag and drop feature in AcuBench 7.2.0 with a paged grid.

I then copied the code in the .prd file that has the modify grid, record-to-add statement and added row-color my-color-variable and moved it into my event paragraph:

MODIFY Screen1-Gd-1, RECORD-TO-ADD Screen1-Gd-1-Autoload,
row-color screen1-gd-1-re-color.

However, no color shows when the grid is displayed.

Any ideas? Thanks.
Guys,

I've tried the SAMPLE PagedGrid program from the acucobol library and attempted to put that row coloring code just after the cell titles were set. But it doesn't work... is there some sequence that must be done before the color actually is active??

UPDATE: I get it now. I can only change the color, AFTER data has been inserted into the row... I see..