The "User Setup" table (number 91) has a field called "User ID". The lookup code runs through codeunit 418, which gives you database logins as well as windows logins. When you run the form (119), the code runs, and it correctly populates the field when you select a user. So far so good.
Here's the weird part.... when you add the User Setup table as a dataitem to a report, and you want to set a filter on user ID, it does not populate the field when you select a user. It gets even weirder.... when you run the table directly from the object designer, it also does not populate the field. It runs through the same code, but it just will not populate the field when you select something form the list...
Has anyone run across this? Any ideas on how to make it properly populate that field? This happens in standard 2009SP1, 2009, 50SP1 and even 40SP3. I am stumped, I just can't figure out why it's not working.
0
Comments
User ID is the primary key, so that must be populated.
RIS Plus, LLC
If you run table directly from object designer, every assignment which has been done in onlookup trigger is rollbacked when exiting onlookup trigger.
If you run table within a form, everything is normal.
Really? :-k
For me it works as DenSter described (just tried in 4.00 SP3 build 23305)
Ah you mean't the look up doesn't work, I thought you mean the field was not populating.
Yes this is normal behavior Navision has always worked like this.
The problem comes in when you select one of them. When you select a record from that list, and you click the OK button, it populate the field only when you do it from a form, but not from the table itself or when filtering on a dataitem.
The lookup works, populating the field when selecting a record does not. I think we're talking about the same thing, but you are calling it something else.
RIS Plus, LLC
Thanks a lot.....
yes i have faced this problem also and put it on mibuso earlier but nobody has mind. :oops: :oops:
even what was the reaction on it............ may be i was not able to understand it properly..
http://www.mibuso.com/forum/viewtopic.php?f=23&t=42075
Now the problem is when i want to lookup "USER ID" field of User Setup table through TableRelation property (that table(set in table relation) has LookupFormID ) then i am not able to do. i have remove code from onlookup trigger.
what can be mistake?