I've a problem in my report.
When I get the request form and do a lookup to get a filter and return back to my request form. The filter isn't filled in.
Only when I put the focus on the next line and return back to the line with my lookup, the filter will be filled in.
How can I resolve this?
0
Comments
As I read your text your field is already filled but you have to
focus again on that field to update is. Maybe you can solve it
bij placing a CurrForm.UPDATE on te validate trigger of that field,
or after resolving the filter in your code (if the code is on your Form)
And I can't write it in a form because it is in my request form
[-o< [-o< [-o<
That is simply the way that Navision filters work, you can't make it behave differently. First you look something up, and then you validate it.
RIS Plus, LLC
If I lookup the value for my filter. The filter isn't filled in right away when I press OK.
I need to put the focus on the next field and then back to the first field before the value that I looked up is filled in.
I just need to UPDATE my request form in some way!!!
CLEAR(lookupform);
...
lookupform.SETTABLEVIEW(..);
lookupform.LOOKUPMODE(TRUE);
IF lookupform.RUNMODAL = ACTION::LookupOK THEN BEGIN
SETFILTER(Klachtnummer, lookupform.GetFilter());
END
CurrForm.SETSELECTIONFILTER(..);
txtFilter := ..
...
GetFilter() p_filter : Text[260]
p_filter := txtFilter;
RIS Plus, LLC
You shouldn't need any code at all.
When you say "look up field", do you mean a textbox on the
option tab of the request form?
In that case,
set the source property of the textbox to "table name"."table field"
example: MyItem."No."
Set the TableRelation property of the textbox to the table name of the
table you want to look up in. Note: the "real" table name, not the name
of your defined variable. Example: Item
No code!
Done. //Pelle
//Pelle
I just filled in the following property of my dataitem:
ReqFilterFields
And this field is a lookup field.
Try to remove the code. //Pelle
Therefor I put this code.