Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
3
Erster Beitrag:
vor 3 Jahren, 5 Monaten
Letzter Beitrag:
vor 3 Jahren, 5 Monaten
Beteiligte Autoren:
Ericus, Bart VDE

[WB18]Combo in Looper

Startbeitrag von Ericus am 10.06.2014 10:00

Hallo

I am trying to get a combo box working inside my looper.

The Looper is a Classic looper linked to a variable array as demonstrated by Andy Stapleton and Pete ??? through their classes.

My combo box is also linked to a variable array.

My data contains a supplier ID and when I display my looper I want to show the supplier NAME in the combo and allow the user to select a different supplier.

First problem is that the combo does not display the supplier name for the row. The drop-down contains all the suppliers to select from but does not display the supplier name for the product in the relevant looper row. If I use a edt box instead the name is displayed

Second problem is when I select a supplier from the drop-down the row number of the selection is returned and not the name.

I will appreciate any feedback on how to get this working.

Thanks in advance.



Ericus Steyn

Antworten:

Re: [WB18]Combo in Looper - Sorted

I have managed to get a solution but there might be some other better options. What I did was:

Place a edit control over the combo.
Update the edit control with the supplier name when the looper is created.
When a selection is made in the combo, get the numbered item, find that number in another hidden combo and get the supplier name.
Update my database table.
Update the looper array with the new value of the supplier.

Long winded but it works.

von Ericus - am 10.06.2014 12:20
Hi Ericus,

You could try by putting "ListDisplay(YourCombo)" in the global declarations of your window, to solve your problems.

Regards,
Bart

von Bart VDE - am 11.06.2014 09:30
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.