Hi team,

i have a datasource with many rows. Some columns may only be updated when other columns in the same row have specific values. To manage this i do this:

api_datasource.getRows('DATASOURCE-NAME', t_rows_t);
FOR i IN 1..t_rows_t.count LOOP
  IF t_rows_t(i)('UPDATE_COL_A_ALLOWED').value_tx = 'Y' THEN
    api_component.setEnable ( 'panelName.COL_A','Y',t_rows_t(i)('COL_UID').value_nr);
  ELSE
    api_component.setEnable ( 'panelName.COL_A','N',t_rows_t(i)('COL_UID').value_nr);
  END IF;
END LOOP;

This works perfectly, however, it ONLY works for the rows visible in the panel. When i scroll down, the rows appearing next have not been changed with this procedure, so all checkboxes have been enabled. Offcourse that's a big problem.

Is there a way to make this procedure work for all rows fetched?

Kind regards, Jan Willem Vermeer

asked 27 Nov, 11:02

Jan%20Willem%20Vermeer's gravatar image

Jan Willem V...
1431436
accept rate: 0%


Sorry team, this is not entirely true.

It appears that setEnable DOES work for all rows.

However, the visual attributes are not set correctly. For example i have a grid with 90 rows. Only 29 are visible at the same time. The visual attributes are set for rows 1 thru 35. So, when i scroll down, it looks as if setEnable is only working for the first 35 rows because the checkboxes have been greyed out. But i can also not check the checkboxes for row 36 thru 90 when they have been disabled.

The cells displayed correctly have this class:

x-grid3-cell-inner x-grid3-col-1 bdf-grid-single-row-component bdf-checkBox bdf-grid-cell-not-editable

The cells not displayed correctly have this class:

x-grid3-cell-inner x-grid3-col-1 bdf-grid-cell-neutral bdf-grid-single-row-component  bdf-grid-col-editable bdf-checkBox

So, for some reason bdf-grid-cell-neutral is added for rows 36 thru 90.

Kind regards, Jan Willem

link

answered 28 Nov, 09:01

Jan%20Willem%20Vermeer's gravatar image

Jan Willem V...
1431436
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×3
×2

Asked: 27 Nov, 11:02

Seen: 37 times

Last updated: 28 Nov, 09:01


© Copyright Gerger 2017