I have two tabs, one for Customers [registration form] and the other for Orders [Contain a customer ID field]
i use the Tab application.
In the Orders SQL i put this code: customer_id = [var_customer]
In the global variables session selected and the type is : IN
In the Customer [on load event] i put this code: [var_customer] = {customer_id};
In the global variables session selected and the type is : OUT
- Note: in both applications the Customer ID field is: customer_id
I successfully run the application and when i select a Customer i got it’s orders but the problem when i want to add a new order the customer ID change so i have to select my customer again manually and what i want is to use the session not only for filtering [witch is working perfectly] but also to add a new orders related to a customer that i already select before.