Aleksey 0 Report post Posted May 13 Hey, I need to create my own alarm log. I decided for each accident to create its own discrete variable. By triggering an accident to display the text in the log. With the disappearance of the text to remove. Does the development environment have a table type tool? Or how to implement this algorithm. Thank! Quote Share this post Link to post Share on other sites
Joe Tauser 285 Report post Posted May 13 Read all the Help on Data Tables to create something to show your log. Joe T. Quote Share this post Link to post Share on other sites
Aleksey 0 Report post Posted May 14 OK. I can create an event structure. And create a new element in the data table for the event (Or rather, I can not create a new line, just add an entry to the existing ones). The question is different. How do i visualize data table fields. Can I link them to tags of visual elements? The designer asks to make a magazine in the following form ... Quote Share this post Link to post Share on other sites
AlexUT 39 Report post Posted May 14 Hi Aleksey, Download examples and open "UniStream_070_alarms_by_configuration.ulpr" in "Alarms" directory. Hope this example will help you. B.R. Quote Share this post Link to post Share on other sites
Aleksey 0 Report post Posted May 14 I looked at an example. You do not quite understand me. I need to move away from the standard accident log, since it does not suit the customer. Let's say I created a data table for crashes. Created a separate structure of the accident. (For example Alarm (bool active, int index, string description, time response time)) Created an accident summary page. On the page I create binary elements of images. How do I attach a tag of a picture's status to the field of a table element. How do I dynamically create image blocks in an accident. How to tune the position of the image to the variables, to precisely position the dynamically generated elements. Quote Share this post Link to post Share on other sites
Joe Tauser 285 Report post Posted May 15 It is not possible to dynamically position an image in UniLogic or load it into a data table. Unfortunately, the end user is going to have to settle for something simpler that you can achieve with the tools we have. What they want requires a development environment with more graphics horsepower, like .NET. Joe T. Quote Share this post Link to post Share on other sites
Saragani 133 Report post Posted May 15 You can have 5 structs with the same structure that is used in the Data table, and load 5 rows into them. Once the up or down arrows are clicked, change the start index of the first row, and either re-read the entire 5 rows (The memory will need to be read and written 5 times anyway, even if you copy from 1 struct to another). You could create a custom control that represents the row, and place it 5 times (and control the visibility if needed if a struct is empty), and / or don't let the user scroll after the last / first row If you need dynamic images (and not just image by index), then the DT can store a string that will be used as a path for the image (if you use an image with indirect source). Those images will have to be stored on the external SD (and you will have to place them there). Quote Share this post Link to post Share on other sites
Aleksey 0 Report post Posted May 16 On 5/15/2019 at 10:47 AM, Saragani said: You can have 5 structs with the same structure that is used in the Data table, and load 5 rows into them. Once the up or down arrows are clicked, change the start index of the first row, and either re-read the entire 5 rows (The memory will need to be read and written 5 times anyway, even if you copy from 1 struct to another). You could create a custom control that represents the row, and place it 5 times (and control the visibility if needed if a struct is empty), and / or don't let the user scroll after the last / first row If you need dynamic images (and not just image by index), then the DT can store a string that will be used as a path for the image (if you use an image with indirect source). Those images will have to be stored on the external SD (and you will have to place them there). I went exactly this way, thanks! Quote Share this post Link to post Share on other sites