Grid with static and dynamic data

Hi,

I need to make a grid like an attached file what is very simple but the data in description field are fix and the data in value field should read from tag!

E.g. Imagine I have 3 machine and I want to monitor their uptime / downtime like :

MachineName Uptime downtime

Machine A Value Value
Machine B Value Value
Machine C Value Value

If I use class tag , I have to make tag also for machine name what is fix.

May be the solution is to make a fix value for the mentioned tag! but I dont know how to do this!

How can I make this kind of grid?!

Thanks

  • Use a class tag as follows

    Define a class called 'MyGrid' with the following members 'Name', 'DownTime' and 'UpTime'

    Define a new project tag called 'GridData' with the data type 'MyGrid'

    In your Startup Script add the following

    $GridData[0].Name = "Machine A"
    $GridData[1].Name = "Machine B"
    $GridData[2].Name = "Machine C"


  • [quote]
    Posted By Norman E on 05 Dec 2019 09:28 AM
    Use a class tag as follows

    Define a class called 'MyGrid' with the following members 'Name', 'DownTime' and 'UpTime'

    Define a new project tag called 'GridData' with the data type 'MyGrid'

    In your Startup Script add the following

    $GridData[0].Name = "Machine A"
    $GridData[1].Name = "Machine B"
    $GridData[2].Name = "Machine C"



    [/quote]
    Thank you:)
  • Hi,

    I need to make a grid like an attached file what is very simple but the data in description field are fix and the data in value field should read from tag!

    E.g. Imagine I have 3 machine and I want to monitor their uptime / downtime like :

    MachineName Uptime downtime

    Machine A Value Value
    Machine B Value Value
    Machine C Value Value

    If I use class tag , I have to make tag also for machine name what is fix.

    May be the solution is to make a fix value for the mentioned tag! but I dont know how to do this!

    How can I make this kind of grid?!

    Thanks

  • When using a text file as the data source, you can only use tags for the column labels. Not the data in the text file.
  • Hi,
    Thank you for fast reply.

    however I do not agree to surrender in front of the goal,
    Could you advise which option could be used to obtain a grid with all types of Alarms for the device like a Temperature transmiter?

    Thank you
  • 1. If your goal is to be able to display live data, or edit tag values, then the easiest option would be using a class tag. (negative: uses a lot of tags)

    2. If you just want to display static information, then you could use the report function (or vbscript file functions) to generate a text file with the data you wish to display in the grid. (negative: more difficult to implement)

    3. If you have database experience, that option may offer the most flexibility. (negative: most difficult to implement)

    4. Another possibility is using custom properties and .mne files. (this is what I use for faceplates)

    You could use option 2 to display the data and option 4 to edit the data.
  • Hi,

    I need to make a grid like an attached file what is very simple but the data in description field are fix and the data in value field should read from tag!

    E.g. Imagine I have 3 machine and I want to monitor their uptime / downtime like :

    MachineName Uptime downtime

    Machine A Value Value
    Machine B Value Value
    Machine C Value Value

    If I use class tag , I have to make tag also for machine name what is fix.

    May be the solution is to make a fix value for the mentioned tag! but I dont know how to do this!

    How can I make this kind of grid?!

    Thanks

  • Hi,

    I need to make a grid like an attached file what is very simple but the data in description field are fix and the data in value field should read from tag!

    E.g. Imagine I have 3 machine and I want to monitor their uptime / downtime like :

    MachineName Uptime downtime

    Machine A Value Value
    Machine B Value Value
    Machine C Value Value

    If I use class tag , I have to make tag also for machine name what is fix.

    May be the solution is to make a fix value for the mentioned tag! but I dont know how to do this!

    How can I make this kind of grid?!

    Thanks

  • [quote]
    Posted By Norman E on 05 Dec 2019 09:28 AM
    Use a class tag as follows

    Define a class called 'MyGrid' with the following members 'Name', 'DownTime' and 'UpTime'

    Define a new project tag called 'GridData' with the data type 'MyGrid'

    In your Startup Script add the following

    $GridData[0].Name = "Machine A"
    $GridData[1].Name = "Machine B"
    $GridData[2].Name = "Machine C"

    [/quote]

    Thank you Norman E for the above comment.
    It was very helpful for my project also, regarding column Label.