View with two data sources

  • 18 July 2013
  • 1 reply
  • 2 views

Badge +3

Scenario: Build a smartform view that allows users to search for orders against a data source (SmartObject). Within search results users can select one or more orders and save them into another data source (SmartObject). 


Question: What are some of the better implementation patterns for this scenario? 


Some options that come to mind are following but I want to make sure there isn't already a better (and easier) way to accomplish this. 


Option 1 >


Create a view with the data source to be searched. When user makes the selection within search results in a view, smartform rules are used to call the Save method of the SmartObject representing the second data source. 


Option 2 > 


Create a view with the data source where orders need to be saved. Add a rule to call the List method on the SmartObject belonging to the data source where search is run. 


Option 3 > 


Create one view with a subview with each view having SmartObjects of each data source, respectively. Use Data Transfer action to exchange data between forms and save. 


Thanks.


Adnan


 


1 reply

Badge +3

Just checking in here to see if anyone had a chance to review this. Hopefully, my situation is not that unique. 

Reply