Mirian Posted April 27, 2019 Report Share Posted April 27, 2019 Hello I need to build an application in UniLogic like the screen shot attached. In the upper left corner i have a text box for description, and then 23 numeric box . and i have a button to write row to DTI. Then below the brown horizontal line i have a text box for entering a specific description than correspond to a specific row number. I can find the row number and then read the row from DTI. So a can modify the row and then write the new value to the same row, or i can remove row from DTI. I need that the text box below the brown line to be a drop down list so the operator don't have to write the description (because it may be writing with mistakes) but only select it. I am not finding any solution. Can any one please show me the way to do this? Thank you Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted April 29, 2019 MVP 2023 Report Share Posted April 29, 2019 UniLogic does not have a drop-down list object. The other list tools are static - you can only load fixed texts and display them. Unfortunately, this isn't like VB where you can operate on visual elements from within the code. So you'll have to go old school on this one and populate the text box you've drawn with an external pointer referring to a row in the data table containing the description and some up and down arrows to move the pointer. Joe T. Link to comment Share on other sites More sharing options...
Saragani Posted April 29, 2019 Report Share Posted April 29, 2019 Well, UniLogic 1.26 will support Combo Box items that comes from a csv file, so it is not that "static" anymore. The combo box still returns the selected index, so you would have to have some kind of a lookup table to get the text from the index. The csv file is read when the screen loads, so you have to make sure that the csv contains all the texts that you want before the screen loads. Link to comment Share on other sites More sharing options...
Mirian Posted May 1, 2019 Author Report Share Posted May 1, 2019 Hope this tool is add in the future to unilogic. I think it is a nice tool Thank you Joe Thank you Saragani Link to comment Share on other sites More sharing options...
Saragani Posted May 2, 2019 Report Share Posted May 2, 2019 Which tool, the dynamic combo box? If so, then it is already in 1.26.90, which was released yesterday. The version changes do not talk about it, but if you take a combo box, then you can change the location to "Indirect" and then the path property appears in the property grid. It is a path to a file where the options are separated by line-break, f.e: option1 option2 option3 Link to comment Share on other sites More sharing options...
Mirian Posted May 3, 2019 Author Report Share Posted May 3, 2019 Hello Saragani I downloaded the new version. I am missing something with this new dynamic combo box. And the updated help file have the old information. When I write a tag to the path parameter it became red an say , parameter must be a constant value. When i put a constant value it say, parameter can not be linked to a constant value. Just to be clear, can this new dynamic combo box load DTI column values? I did not understand it well. Can you give me more details how to use this dynamic tool? Thank you Link to comment Share on other sites More sharing options...
Saragani Posted May 5, 2019 Report Share Posted May 5, 2019 Yes, indeed the help file does not cover this new feature. The dynamic combo box can only be linked to a csv file, but if you create a csv file from your DTI Column (requires iterating the table, and using append buffer to file), then you can load it to the combo box. Put a const (not a const tag), for example: #"data.csv" Link to comment Share on other sites More sharing options...
Mirian Posted May 5, 2019 Author Report Share Posted May 5, 2019 I can not found a tool to make a csv file from a specific column. there is one to store the DTI but it store all DTI. i try with a DTI with one column but it do not work. Please can you make me a step to step rung how to load a specific column to dynamic combo box Thank you Link to comment Share on other sites More sharing options...
Ofir Posted May 7, 2019 Report Share Posted May 7, 2019 Hello, See attached example for indirect options list in the combo box. (Please make sure you are using the latest UniLogic version 1.26.90). Place the CSV file under UserLogs/Csv/ BTW you can create the CSV in real time as Saragani mentioned using append buffer to SD file. Example Combo Box Indirect.ulprComboBox.csv Link to comment Share on other sites More sharing options...
Mirian Posted May 8, 2019 Author Report Share Posted May 8, 2019 Hello Ofir I have try this append buffer to sd file. But it requires a source buffer. How do i make a buffer with column data which are type STRING-ASCII Link to comment Share on other sites More sharing options...
Mirian Posted May 8, 2019 Author Report Share Posted May 8, 2019 Hello, Can anyone help me how it is done. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now