Field.RESET; Field.SETRANGE(TableNo,"Export Table No."); Field.FIND('-'); IF FORM.RUNMODAL(FORM::Fields,Field) = ACTION::LookupOK THEN BEGIN "Export Table Field No." := Field."No."; END;Result (nothing): I can choose a record from the filtered(!) Field table, but after OK button do nothing, the value is stay in the "Export Table Field No." field...
Field.No. WHERE (TableNo=FIELD(Export Table No.)):shock:
Comments
Anywhay, the code looks good. What I can think of that maybe Field is a reserved word in some way - try it as Fld.
or maybe the FORM.RUNMODAL(0,Field)
I put these lines to the OnLookup Trigger: If the COMMIT is mistake the value is not in to the field! But if I use the COMMIT, the choosen Field."No." value is INto the field value. So, the COMMIT was the clue... this is a mistake for me 8-[
Thanks for everyone!
A
But yes!
Do you know some? And their places where it can be find them? :?:
In the downloads.
http://mibuso.com/dlinfo.asp?FileID=583
http://mibuso.com/dlinfo.asp?FileID=543
http://mibuso.com/dlinfo.asp?FileID=360
http://mibuso.com/dlinfo.asp?FileID=350
http://mibuso.com/dlinfo.asp?FileID=348
http://mibuso.com/dlinfo.asp?FileID=285
http://mibuso.com/dlinfo.asp?FileID=207
http://mibuso.com/dlinfo.asp?FileID=100
Seems this idea occured to others as well
[/quote]
I would handle with by calling the form through a variable.
as you´ve done
and then
where you must add to the Variables
FieldForm Type Form (7702)
This is the way I do it
Hope I was able to help
MM
And thanks for all! :!:
Thanks Miklós, these are great help for me
this is a Nav 4.x bug. Lookups don't works if you runing table, but it works runing from form.