Welcome! Log In Create A New Profile

Advanced

Wait window AND TableFilter

Posted by ICI 
ICI
Wait window AND TableFilter
January 13, 2009 12:21PM
Regards !
I have two questions

1. How to create "Wait Window" until another window is not opened and then close this window.

2. Into analysis I have Composite Key GRUPA_SIF+ART_SIF
How to filter table on this key (GRUPA_SIF is Numeric, ART_SIF is numeric)
I pass parameters (gKojaGrupa, gKojaSifra)

And on TableDisplay or On Initialization Table write:
Table..filter = gKojaGrupa+gKojaSifra
But without efect. Maybe I'm wrong somewhere.

All combinations for filters are not good explained into Help file, I think.
'Couse only simple filters are explained.

Thank you !
Fabrice Harari
Re: Wait window AND TableFilter
January 13, 2009 02:19PM
Hi ICI...

1. use Openchild to open the wait window (you can use the aboveall param to always display it... Then open the main window and when the opening of the main window is done, in it's code, do a close of the wait window

2. In the table init code, do a hfilter on the composite key... Something like:
<CODE>
hfilter (FileName, CompositeKeyName, [MinValue1, MinValue2],[MaxValue1, MAxValue2])
</CODE>
in which minvalue and maxvalue are the same if you want only ONE value

And don't forget the hdeactivatefilter(FileName) in the closing of the window (or perhaps before, depending on your code)

Best regards


ICI
Re: Wait window AND TableFilter
January 13, 2009 11:07PM
YES, Mr. Fabrice. Thank you a lot.
Your both answers are help me, but just one question on this.

Your answer number 2.

2. Hfilter() work correct if I put TABLE.COLUMN..VALUE not with TABLE.COLUMN
Is that right ?
Fabrice Harari
Re: Wait window AND TableFilter
January 14, 2009 12:05PM
Hi...

I'm not sure I understand your question this time...

In the hFilter, there should be no reference to the table whatsoever, as what you want to do is filter what WILL be display in the table... Your filter is on the file, not the table, and the table will display the content of the file filtered by your filter

so it should be something like (gKojaGrupa, gKojaSifra)
<CODE>
hfilter (FileName, CompositeKeyName, [gKojaGrupa, gKojaSifra],[gKojaGrupa, gKojaSifra])
</CODE>

Best regards
christoph
Re: Wait window AND TableFilter
January 14, 2009 12:47PM
Hi ICI,

for composite key there is a command HBuildKeyValue. I think for composite keys with numeric values - you must use this.

I work with WD8 - maybe something changed in the next version von Windev.

Christoph

ICI
Re: Wait window AND TableFilter
January 14, 2009 01:34PM
Christoph!
Fabrice is right . HFilter() is OK command but mistake was mine.
HFilter() work correct if correct parameters are passed. :spos:
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: