SQLDataGrid Mockup

Can you use a SQLDataGrid to mockup a table. I do not see a way to have a table in a graphic without the SQLDataGrid object. I know there is a widget, but since I am using OMI it doesn't work within a graphic. I eventually want to have it pull data from a sql table but for demonstration purposes would like to create a mockup table without a database. 

Parents
  • Hi Caroline, there are a number of solutions, and some of them are version dependent.

    Starting with System Platform 2023, we actually allow Widgets to be placed on the graphic and OMI will render it correctly! So if the data grid widget ticks all the boxes you have, just make sure you have 2023 or later and you can place it directly on the graphic.

    The alternative is to use panes in a layout and wire it up via the properties. Depending on the version, this can be done via a ViewApp Namespace, or, more recently using MyContent. to reference content on other panes directly.

    You then have some choices to make about the content itself. You can use the Data Web widget that is already there.

    Or you could find the SQL data grid controll dll.  The grid control is a WinForms .NET control, so you need to wrap it as an OMI App - like this:

    1. In File Explorer, expand This PC and navigate to:
      C:\Program Files (x86) \ArchestrA\Framework\FileRepository\TrainingGalaxy\Vendors\Invensys_Systems__Inc__SQLDataGridUserCtrl.dll
    2. Select all files in the folder, right-click, and then select Copy.
    3. In File Explorer, navigate to a convenient folder or create a folder and paste the copied files into it.
    4. In the System Platform IDE, on the Galaxy menu, select Import | Visualization | OMI App.
    5. Navigate to the folder used in #3 and Click "Select Folder"
    6. The SQLDataGridApp will now be availbale in the Visualization toolbox.

    If you have another .NET Winforms or .NET WPF control you'd rather use, you can follow similar steps (the dll's must be either .NET Framework 4.8.1 or .NET STandard 2.0). OMI Apps cannot at this stage be placed on Industrial graphics, they have to be placed in a pane on a layout and wired up via a ViewApp NAmespace or using the MyContent. path.

    Hope this helps

     - Ernst

Reply
  • Hi Caroline, there are a number of solutions, and some of them are version dependent.

    Starting with System Platform 2023, we actually allow Widgets to be placed on the graphic and OMI will render it correctly! So if the data grid widget ticks all the boxes you have, just make sure you have 2023 or later and you can place it directly on the graphic.

    The alternative is to use panes in a layout and wire it up via the properties. Depending on the version, this can be done via a ViewApp Namespace, or, more recently using MyContent. to reference content on other panes directly.

    You then have some choices to make about the content itself. You can use the Data Web widget that is already there.

    Or you could find the SQL data grid controll dll.  The grid control is a WinForms .NET control, so you need to wrap it as an OMI App - like this:

    1. In File Explorer, expand This PC and navigate to:
      C:\Program Files (x86) \ArchestrA\Framework\FileRepository\TrainingGalaxy\Vendors\Invensys_Systems__Inc__SQLDataGridUserCtrl.dll
    2. Select all files in the folder, right-click, and then select Copy.
    3. In File Explorer, navigate to a convenient folder or create a folder and paste the copied files into it.
    4. In the System Platform IDE, on the Galaxy menu, select Import | Visualization | OMI App.
    5. Navigate to the folder used in #3 and Click "Select Folder"
    6. The SQLDataGridApp will now be availbale in the Visualization toolbox.

    If you have another .NET Winforms or .NET WPF control you'd rather use, you can follow similar steps (the dll's must be either .NET Framework 4.8.1 or .NET STandard 2.0). OMI Apps cannot at this stage be placed on Industrial graphics, they have to be placed in a pane on a layout and wired up via a ViewApp NAmespace or using the MyContent. path.

    Hope this helps

     - Ernst

Children
No Data