hi,
I Have a Form with TableBox who i put Rows after Mark them and use Markedonly(True).
The first Time when execute the Form it's okay, only Marked Rows appears.
But if try change Filter , i have one Row that is not marked , it appears under the marked rows, if i go to this row, then it asks me if i would rename the datarow, i say no, then it disappears and only marked rows are visible , so it must.
What Can I Do so this last row don't appears after change Filter?
I Have put TableBox to Editable = No, but doesn't help
Understand what i mean? :-k
Thanks.
(Oo)=*=(oO)
0
Comments
When you say "change the filter" what do you mean?
I have had the same problem with a matrix box, where I was placing filters in the onValidate routine of a checkbox of a custom variable.
I changed the code so I would call with a button and everything worked.
I have also had the the matrixbox hide before the operation and show after the operation.
Maybe you could cancel all the filters before placing new ones.
Arhontis
https://forum.mibuso.com/search
Hmm. You have right , i tried change Filter in OnValidate Trigger of Texbox,
Now i have placed a Button and change Filter with the text box values in OnPush Trigger.
Now it works.
#-o :-k
I have tried to figure out the mulfunction with the OnValidate but came up with nothing. I don't know why this happens.
The other forms that use similar functionality, like analysis by dimensions, have the code in the OnValidate routine and in the OnAfterValidate of the sames Textbox have:
Could you try it and tell me if it worked?
Arhontis
https://forum.mibuso.com/search
hmm.
When i call in OnValidate my Filter Function, and in OnAfterValidate i try CurrForm.UpdateControls;
Then i have same problem wich first, it appears a datarow that isn't marked.
:-k
I leave it now with the Extra Button before i became headache to think about this
Thanks for you Tips Arhontis. =D>
Can someone post some Code / Triggers to modify?
I tried to achive the same functionality on different ways.
I get the records marked correctly. However, when i set MARKEDONLY to true, still all the records are shown?!
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.