PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD20] Glink on Table Column Combo Box [SOLVED]
[WD20] Glink on Table Column Combo Box [SOLVED]
Iniciado por guest, 13,nov. 2015 17:36 - 1 respuesta
Publicado el 13,noviembre 2015 - 17:36
This isn't possible is it? I was able to add items to the combo with a gLink value, but I see no way to retrieve it. There is no ..StoredValue property for the column combo.

ListAdd(COL_SeucurityLevel,dsResult.Title + gLink(dsResult.SecurityLevelID))
EDIT: I found an option on the Details tab for the column 'Returns the value specified by glink'. This should work well enough. If I need the displayed value I should be able to use ..DisplayedValue.
Publicado el 13,noviembre 2015 - 20:22
Even better IMHO

Store your values in an array - based on a file or a structure.

In the combo set the content and the returned value to the array

Declare a variable in the window - MyVariable is MyArray

In the combo selection code use MyVariable = MyCombo

Now all of the values from the array are available using MyVariable.Whatever

You can also send MyVariable as a parameter to other windows etc.

Same thing in principle also works for tables