Skip to main content

Hi,

I have 2 Smart Objects (created from Webservices) -
(1) for fetching Employee data that has - empKey, empName
(2) for fetching Dept data that has - empKey, deptName - this has an association to the Employee Smart Object's empKey field

Now, I need to create a view that will display data - empKey, empName, deptName
For this - I have generated a view from 2nd Smart Object (dept) and defined rule such that  -
1. it populates emp Smart Object data (empKey, empName) by calling serialize and read methods (not deseriallize because I do not have a placeholder for deserialized fields to hold the values - as this view is mapped to 2nd Smart Object)
2. it populates dept Smart Object data (empKey, deptName) by calling serialize, read and deserialize method

But it is unable to bring the empName from the 1st Smart Object to the view.

 

Please help.

Good morning,

 

Have you thought about creating a Composite SmartObject? This configuration would create a "join" of sorts between the two SmartObjects, which would make it much easier to apply in your View.

 

There is an onine tutorial that covers how to create Composite SmartObjects. (http://help.k2.com/onlinetraining/tutorials/default.htm). Open the Advanced Concepts topic, then the Composite SmartObjects topic.

 

I hope this helps,

 

k


Reply