Hi, I call this function for open a LookUp and when I will check it, it’s wrong
All the time the function calls the first column of foundset, don’t matter if I has seted the primary key or not.
In my opinion the line fails in the 299
forms[_editForm].foundset.loadRecords(globals.svy_nav_fr_solutionModelObject.pk)
Am i doing something wrong, or doesn’t work correctly?
Thanks in advance!!!
omar
2
Ehm, does your database have a record with a PK of 299? ![Wink :wink:]()
omar
3
You may also want add some validation code around you global solutionModel object. Or put a try-catch around it for the least.
I’m Sorry, it’s possible I not explained well, line 299 is the line of code in svy_nav_lookup_windows/globals.js that I think fails.
And, yes I have a Pk with the number that I pass.