Lookup add function not working

When I try the sample-use-navigation solution to test the new add function (part of the lookupWindow) i get an error in svy_nav_fr_lookup_base.js (line 58) because the vars are undefined.

Thanks for reporting this bug, there is a fix now see:
viewtopic.php?f=57&t=16568

This does indeed remove the error, however is it the desired result?
When I use the lookup function to search a record and select the correct one those variables make sure that the selected record is in my original form (the correct category is selected in the product form in the sample use navigation). I would expect the add function to behave in a similar way, after I finish creating the new record, that record should be the selected record and returned in the desired field.

Thanks to the code you send me, this will be solved in the next version.

Hi,
I´m having problems with this functionality. The lookup windows appear but when i select an item nothing appears on my related variable and servoy give me no error in the console.
Using debbuger i see that the params (_element, _returnForm, and the rest) have correct values but the variable isn´t changed
What could be the problem?
I will appreciate any helps, regards

Do you mean this function?

function svy_nav_showLookupWindow(_event, _returnField, _program, _afterInsertMethodName, _methodToAddFoundsetFilters, _params, _svy_nav_fr_recursivecall, _fieldkey, _allowInBrowse) {

Are you sure that _returnField has the right value?

Regards Sanneke