Skip to main content
5-Regular Member
November 4, 2016
Question

How to change infotable column Header and rows information on button click event in Mashup

  • November 4, 2016
  • 2 replies
  • 6258 views

Hi,

How to change infotable column header and rows information on button click event in Mashup

According to me, there can be two possibilities,

1. Create two different tables (one will be visible and another is invisible and through scripting interchange it)

2. There will be only one inforTable and on Button click event another will be created on same location with newer values

Please suggest which is possible and how.

Regards,

Mahesh Lohokare

2 replies

5-Regular Member
November 4, 2016

What exactly are you trying to do here? When a button is clicked on the mashup, you want the column headers to change?

mlohokare5-Regular MemberAuthor
5-Regular Member
November 7, 2016

Hi,

Yes, Once button is clicked on mashup; column headers along with data has to be changed.

Regards,

Mahesh

1-Visitor
November 7, 2016

With only one Grid widget you can set "ShowAllColumns" on the grid widget and have a service which returns the Infotable with the desired columns depending on a parameter --> The limitation of this approach it's that you can't define column formats.

With two different Grid Widgets you can do what you want showing / hidding them and you can define the format, the problem with this approach will be that can't be responsive, they will have to have the same width and eight, or put on Tabs and show/hide one and the other ( but the tab will be visible ).

The most flexible option will be to use a repeater widget, where the repeated mashup it's different depending on the current view mode.

Carles.

mlohokare5-Regular MemberAuthor
5-Regular Member
November 7, 2016

Thanks Carles,

This is really helpful.

Can you please suggest which one I have to follow.

I have attached a screenshot here.

These are 2 grids; and information to these grid is coming though 2 different SQL queries.Query-07-11-2016.jpg


Regards,

Mahesh

1-Visitor
November 7, 2016

I would start with first option, and instead of a button use a Checkbox ( true/false ).