My datasources are two sharepoint lists: Customers and Orders. Orders are linked to Customers (lookup column).
I have one screen where the user can select a customer from a gallery. In this screen the user can click "Details" to navigate to the orders screen.
The orders screen lists the orders (in a gallery) for the selected customer and a form details the orders when the user makes a selection in this gallery. The user can then add/edit/delete orders from this screen. Edit and delete works great.
The issue I'm having is when the user wants to add an item (NewForm() is called and all fields are reset) - the Customer dropdown should of course have the default value of the previously selected customer (in the previous screen).
I've unlocked the Customer lookup datacard and tried to override the default value by doing a lookup to the Customer list, but the dropdown is empty.
What are the steps necessary to make this work? Is there some syntax or steps that I've overlooked?