I have 2 databases: CUSTOMERS and CUSTOMER_PRODUCTS
CUSTOMERS contain the customer header records such as customer_name, address etc.
CUSTOMER_PRODUCTS contains images and descriptions of the products that each customer sells.
Both databases contain a unique value for CUSTOMER_ID that logically links the 2 databases together.
So:
On each screen, I want to display 1 customer record from the CUSTOMERS database followed by a gallery of images of that customers products from the CUSTOMER_PRODUCTS database.
Help! Is this possible? I dont find any docs on linking databases together?
It is possible. You will need two datasets, one for each collection.
On the dataset for customers, set an onReady event. In this event code, ready the customer ID of the current customer using the getCurrentItem() API. Then set a filter to the second dataset, filtering it by the customer ID.
Let me know if this works out for you, will be able to add code snippets only later (working from mobile)