|
| Inicio → WINDEV 2024 → [WB19] Combobox in Lopper - How get the "storedvalue" |
| [WB19] Combobox in Lopper - How get the "storedvalue" |
| Iniciado por guest, 08,feb. 2015 10:05 - 5 respuestas |
| |
| | | |
|
| |
| Publicado el 08,febrero 2015 - 10:05 |
Hi,
I have a Combobox in a Looper. The Combo has a Displayvalue (=text) and a Stroredvalue (=GUID).
How can I get the storedvalue ? The attribute of the looper has only the "value", thats the number of the selected row. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,febrero 2015 - 13:17 |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,febrero 2015 - 14:31 |
| Nope ... doesn´t work in a looper (its empty) |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,febrero 2015 - 16:48 |
Hi,
next problem. I try to fill a second combobox in a looper row depending of the value of the first.. Each row should be separat.
listadd(looper[1].combo_test,"test")
tells me that "combo_test" is not a combobox. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,febrero 2015 - 17:22 |
Michael
I suspect that you will need to fill the combo from an array of structures (or class).
The 'value' property will tell you which array row to get your GUID value from. MyArray[RetVal].GUID
Second issue: you will need to add a row to an array and use ListDisplay() Depends what the content of the 2nd looper is regarding the best way to do this.
Do not think it is a bug - just not 10 x faster |
| |
| |
| | | |
|
| | |
| |
| Publicado el 10,febrero 2015 - 05:35 |
Hi Michael
As you mentioned the combo inside the looper always returns the row selected and not the storedvalue.
Don't know if this is the best way but I have a duplicate of the combo sitting outside the looper and make it invisible.
Then, upon selection of the combo inside the looper, I do a listselectplus on my second combo the number of the row selected in the first combo and then get the ..storedvalue from that selection.
Regards
Ericus Steyn |
| |
| |
| | | |
|
| | | | |
| | |
|