Hi Formspider team,

I have got a grid which has a button in a column. This button is now displayed for all records in the grid. But i would like to display the button only for certain rows in the grid. Is this possible or is there a trick how to do this?

thanks again, Michiel A.

asked 21 Sep '12, 04:46

Michiel%20A's gravatar image

Michiel A
accept rate: 13%

Hi Michiel,

For instance, a component level data driven attribute (similar to tooltipColumn for example) which sets the visible state of the component does not exist. We are planning to add this attribute in the release 1.3.

However, if you are not using paging in your grid datasource, you can use api_component.setVisible API to hide the specified component in the specified datasource row. To provide the row information you should assign a primary key to your datasource definition and set the in_primaryKey_tx parameter of the API. An example usage is below;

procedure hideButtons is
  v_rows_t api_datasource.tt_rows;
  v_pk_nr number;
  api_datasource.getRows(yourDatasourceName, v_rows_t);
  -- loop through all rows existing in the datasource
  for i in 1..v_rows_t.count loop
    v_pk_nr := v_rows_t(i)(yourPKColumnName).value_nr;
    if ... then
      api_component.setvisible(panelDotButtonName, 'N', v_pk_nr);    
    end if;
  end loop;

Regards, Ibrahim


answered 21 Sep '12, 06:29

Ibrahim%20Sandalli's gravatar image

Ibrahim Sand... ♦♦
accept rate: 25%

Hi Ibrahim,

OK, that's clear. You got my vote for the enhancement.

Thanks, Michiel

(21 Sep '12, 06:32) Michiel A
Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: 21 Sep '12, 04:46

Seen: 2,316 times

Last updated: 21 Sep '12, 06:32

© Copyright Gerger 2017