Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
3
Erster Beitrag:
vor 9 Jahren, 4 Monaten
Letzter Beitrag:
vor 9 Jahren, 4 Monaten
Beteiligte Autoren:
DarrenF, Piet van Zanten

[WD12] Value from related file in a table control

Startbeitrag von DarrenF am 05.03.2009 23:46

Hi,

This could be a simple answer, but I can't for the life of me find out how to do it - here goes:

I have a Product file and a related Category file. I'm listing the product info. in a Table control (nothing too fancy there), except the value that relates across to the Category file is numeric (foreign key), but I want to display the Description of the Category file and not the numeric value held on the Product file - how is this done?

I've managed to get the Table control to display the Category Description by changing the Category column to type Combo box but it looks strange having a combo box as the table is read only. If I set the Category column back to type Text, I can't link across to the Category table and the Content tab is disabled.

Am I missing something or is this just not possible without using a Combo box?

I hope you understand my problem... thanks in advance...

Antworten:

Hi Darren,

You can disable the arrow button on the combo by checking display "no button" on the details tab of the column. Another option is the multifile option on the link tab. Choose the option multifile, click the double arrow and choose the file, the key and the displayed item from the linked file.

Regards,
Piet

von Piet van Zanten - am 06.03.2009 00:24
Hi Piet,

Ah, yes... I'm not at my PC at the moment - but I can visualise it :-)

I'll try that later :spos:


von DarrenF - am 06.03.2009 13:53
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.