I'm building a GUI for this project and I'm trying to use a combobox that has items that represents the rows of a global table and a editbox that I want to show the quantity of the item based on the global table and according to the choice the user made, so that the user can change the value in the GUI and consequently in the global table. I don't want to enumarete all the options so it doesn't consumes a lot of space in my GUI's layout, that's why I'm using a combobox. Here some pictures of the actual situation:
1. if the client chooses the operator type 1 then the editbox should show 1 because it is the quantity that is in the global table and if the user changes the value with the spinner, lets say to 3, so in the global table the value on the column quantity should also change to 3 for the operator type 1.
2. if the client chooses the operator type 11 then the editbox should show 2 because it is the quantity that is in the global table and if the user changes the value with the spinner, lets say to 1, so in the global table the value on the column quantity should also change to 1 for the operator type 11.
So what I was trying to do was create a coldlink or coldlinkname with a variable named "row" that gets de itemcurrent of the combobox, as it returns an integer and it can represent the number of the line, and put this variable into the path because the number of the line changes when the user changes the item in the combobox. However this didn't work, and I don't know how to solve this problem. Can someone help me, please?