So... I'm looking at Structs again...
Simply because my main DashBoard has gotten so big that the parameter values are getting somewhat out of hand, and yes, structs would help me...
However, after just reading up on structs in the help documentation, and from the documentation itself... Cant find it really (except a few posts on the forums), and there's nothing on DashBoard U about it... Sooooo... Possible to get a "Structs for Dummies" in the DashBoard U?
-------------------------------------
Edit: So, after sitting with this way too late into the early hours, I've gotten a bit further, but then again, I end up with alot of questions as well.
I do have teh table working now, and with the correct data showing. I did also find the example DashBoards with adding a new row to the table, and also found the p.additive config part as well. All good...
I got the w.selectedparameter (or what it was called again) to work, so I got an integer parameter showing what index is selected and getting that value etc...
Now, here's a list of new questions then...
- On a select of say index 3 on a table containing 10 rows, and 3 collums. Say that when I select the row with index 3 (being the 4th row visually), I want to get the value from col3 (lets say the headers are simply col1, col2, col3), and use that value for other stuff. How do I access the data to further program with?
Update: Ok! Figured this one out.
- I assume I can read and write data to a row not nessasarily chosen in the table by defining the index at wich to get/insert data?
Update: Ok! Figured this one out. Answer is yes of course. Just making sure...
- How would I go about deleting a row in the table? Say if I want to delete row 6 (index 5) in a table of 10 rows.
Update: For just parameter arrays, that could be done with a simple params.getParam(OiD, 5).remove(); But cant quite figure this one out for structs.
- When I did this with the parameter tables instead where parameters make up the table. Turning on the rearrange did not actually change the index value of that entry, but rather just rearranged it visually.
What is the case with structs?
Update: Turns out YES! Using the integer parameter to select index/rows after turning on the w.reorder and it actually reorderes the array and not just visually.
- In a table with 3 entries, I wish to add another row, but I want to add it between row 2 and 3. How would I go about this with a struct?
Update: Still in the blanks on this one...
I think that about sums up what I need of functionality now.
Will probably be more later, but more on that when it comes to it!