Skip to main content
5-Regular Member
July 15, 2016
Question

How to activate grid in mashup on button click

  • July 15, 2016
  • 2 replies
  • 1882 views

Hi,

Want to achieve something as below,

  1. Open mashup
  2. Click on Button (Labeled as View Full Info)
  3. Grid will show the result

Sor far, I have created

  1. Thing template
  2. A service which is calling a SQL query
  3. Datashape

and able to see with grid. on "Mashup"


Now, I want to show results in grid only, but when button has been clicked on Mashup.


Please guide me on this.


Regards,

Mahesh

2 replies

1-Visitor
July 15, 2016

Bind Button Click event to the Service which queries SQL. And unbind Mashup Loaded event from the service.

1-Visitor
July 15, 2016

Plus you can create a simple switching function which returns a boolean and bind that result to visibility property of Grid widget.