Hi noirabys,
thank you very much for your solution.
Works fine so far, but I have a problem with that kind of solution:
The code would depend on knowledge of the data model it normally should not have.
So e.g. the first information is about the name of the property "type", the second is about the name of the lookup list to use (types).
Using this solution would mean I would have to modify the mappingOptions every time the structure of the viewModel changes.
The only item "connecting" the type property and the types observableArray is the select tag and its binding.
Any idea how else this could be solved?
I also thought about having some "metadata" on the type property telling the importing code where to look for the list, but I never saw anything like that performed with knockout.js.
Thanks
Andreas