I have a Grid with a Tab Control called BACKGROUND_REQUESTS. On that grid I would like to allow the user to add a customer from the customer table or add a new customer to the customer table and pull that data back into the Request table.
I am thinking of placing an Action Button that will bring up a customer search dialog with an embedded grid. The dialog has first and last name controls with clear and submit buttons. The submit button links to the embedded grid and filters the grid by first and last. Once the grid is filtered/linked if the customer is not in the grid they can click on New Customer and get a detail grid. If the customer is found in the search then the user can double click the customer and get a popup detail view of the selected customer.
When that new customer detail grid or edited customer detail grid is submitted and saved I would like to set variables that will pass all customer fields to the original Background Request grid/table.
I am thinking that I need to set session variables for each field in the detail view when my "Add Customer" Action Button is clicked. I am thinking of adding this to the OnDetailViewSubmit section:
varFirst = {javascript}function(CustFirst) { return {grid.object}.getValue('D','Firstname'); }(CustFirst)
varLast = {javascript}function(CustLast) { return {grid.object}.getValue('D','Lastname'); }(CustLast)
Any ideas?
I am thinking of placing an Action Button that will bring up a customer search dialog with an embedded grid. The dialog has first and last name controls with clear and submit buttons. The submit button links to the embedded grid and filters the grid by first and last. Once the grid is filtered/linked if the customer is not in the grid they can click on New Customer and get a detail grid. If the customer is found in the search then the user can double click the customer and get a popup detail view of the selected customer.
When that new customer detail grid or edited customer detail grid is submitted and saved I would like to set variables that will pass all customer fields to the original Background Request grid/table.
I am thinking that I need to set session variables for each field in the detail view when my "Add Customer" Action Button is clicked. I am thinking of adding this to the OnDetailViewSubmit section:
varFirst = {javascript}function(CustFirst) { return {grid.object}.getValue('D','Firstname'); }(CustFirst)
varLast = {javascript}function(CustLast) { return {grid.object}.getValue('D','Lastname'); }(CustLast)
Any ideas?