Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Ausschluss von Listboxwerten

Hallo,

ich habe eine Listbox in welcher verschiedene Projekte ausgewählt werden können. In einem Tabellendiagramm sind neben diesen Projekten noch weitere andere Aufträge enthalten. Ich möchte nun einen Button erstellen welcher mir in dem Tabellendiagramm alle Aufträge anzeigt. Es sollen also die Projekte aus dem Tabellendiagramm ausgeschlossen werden.

Viele Grüße

10 Replies
Not applicable
Author

Ich versuch etwas genau zu werden.

Es gibt eine Tabelle in der verschiedene Aufträge enthalten sind. Diese Auftrage sind geknüpft an Projekte. Die Projekte sind in einer Listbox auswählbar. In der Tabelle gibt es aber auch Aufträge ohne Projekte. Was muss ich in der Tabelle tun damit das Tabellenfeld Projekte ausgeschlossen wird?

Not applicable
Author

Ich habe ein Beispiel angefügt. Hier gibt es Projekt die Aufträge enthalten und Aufträge ohne Projekte. Unter der Tabelle ist ein Button der nur die Aufträge ohne Projekte anzeigen soll. Also den Auftrag 4 und 5. Dies ist nur ein Beispiel und deshalb natürlich viel kleiner vom Volumen her. Wie könnte man das gestalten?

VIele Grüße

fred_s
Partner - Creator III
Partner - Creator III

Hi Thomas,

See attachment (script)..

I've created a new field called 'Projektart'.

Grtz. Fred

Not applicable
Author

Okay that works. But in this example i doesn't work...

PRPS_temp:
LOAD ...
     if(Index(PRPS.POSKI, '.', 2) <> 0, left(PRPS.POSKI,Index(PRPS.POSKI, '.', 2)+2)) as Projekt,
     ...
FROM
XYZ.qvd
(qvd);

PRPS:
LOAD *,
if(exists(Projekt), 'Projekt', 'OhneProj') as Projektart
Resident PRPS_temp;

Drop table PRPS_temp;

The field Projekt existts with both Projekt and OhneProj! But for object which must be 'OhneProj' there is only '-'.

???

fred_s
Partner - Creator III
Partner - Creator III

Hi Thomas,

Is your file top secret or can you share it with us?

Or send me the tables you use separate (as Excel/CSV) and I will build your script.

Grtz. Fred

Not applicable
Author

It´s not possible to share. But here you can see what´s happend in the table

fred_s
Partner - Creator III
Partner - Creator III

Could you send us

- your script

- a screenshot of your tables (Ctrl-T)

- a screenshot of some content in the tables (Ctrl-T, Rightclick on table, Preview)

Not applicable
Author

It´s not my script. So i can´t send it to you...

Not applicable
Author

When i Feld is empty is this correct ... Field1 =, ??ß or Field1= '', or Field1 = 0; ???