Skip to main content
1-Visitor
June 10, 2014
Question

Grid Actions

  • June 10, 2014
  • 2 replies
  • 10146 views

Team,
         I am a newbie to Thingworx and might be my question might be simple.

a)I want to have separate color for each cell in the Grid based on a threshold value.

b)I want to do a navigation to another screen when i tap on a particular  column.Similar as for other columns.

c)How can i populate dummy data in the grid for a Prototype.

Thanks
Thomas

    2 replies

    5-Regular Member
    June 11, 2014

    <!>a)      A.) <!>To have separate colors based on a threshold

    value, you will have to create a state definition, which can be found under

    Visualizations on the Thingworx Explorer. You can then assign this to the rows or

    columns in your grid from the mashup, or assign them to both. For more

    information on this, please refer to the Grid widget section (04.04.03.14 ) in

    the Wiki documentation where you will find more details on configuring grids. <!>b)      B.) <!>Unfortunately, navigating to a mashup from

    selected columns can’t be done with the grid widget alone, but there are other

    ways of accomplishing this in a similar fashion. You can use navigation widgets

    in the header of a layout and a repeater widget to do this.<!>c)       C:) <!>There are various ways to populate the grid with

    dummy data, and this would be determined By the way in which the data will be

    used. A little more information about your use case would help to determine the

    best way.  Will this be time series data

    or typical database storage?

    1-Visitor
    June 11, 2014

    Thanks Saeed for providing valuable info.For the part C,to answer your question it willl be in a Database.Can you please elaborate with an example for part B.

    Thanks
    Thomas



    5-Regular Member
    June 11, 2014

    Thank you that information. Just for clarification, are you interested in just clicking on the column headings to navigate to a particular mashup or are you navigating to a mashup based on a particular column entry?

    1-Visitor
    June 11, 2014

    Thanks saeed for the quick reply.I am looking for clicking on a particular cell in a grid,take the values to the new Mashup.

    Thanks
    Thomas



    5-Regular Member
    June 11, 2014

    Hi Thomas,

    Now that I fully understand your use case, the method I suggested earlier isn't feasible.This functionality isn't incorporated into Thingworx for the time being. I'll bring this up to our development team, and if this changes in the future, I can notify you. As for populating the table with dummy values, you can create a service that populates a DataTable using for loop. More information on DataTables can be found in the wiki at 03.14.01.


    Thanks,

    Saeed