on 04-16-2014 2:21 PM
Hi,
I have developed an application with List tile screens. In my application I have Main object, customer object, order object.
customer object is a collection in main object and order is a collection in customer object.
For displaying customers in list tile is it working fine as below screen.
1. Show customers List Tile
2. Show customers List Tile Selected
Up to here fine. Now I want to display the orders for the particular customer.
For this scenario I have tried the following ways:
1. created a filed in the list tile selected:
field name: orders
with edit types: List selection, List View, Tile Edit etc.
But I couldn't succeeded.
2. Created a filed on List tile screen, there also i couldn't get any result.
Is scenario is possible? If possible what is the process
If it will not work in this way is there any other way??
Suggest me.
Thanks,
Swaroopa.
Swaroopa,
Yes, very easy. Create any kind of list that uses a collection target as the source: List View, List Tile View, etc... For the target, use the object browser to browse to your first Tile List where the customers are displayed and point to the selected object -> Orders collection
CustomerList Screen Set -> Current Detail Screen -> CustomerTile Field -> Currently Selected Customer Object -> Orders Collection
The above will target the orders for the customer selected on the first list and display them in your 2nd list.
Jason Latko - Senior Product Developer at SAP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jason,
Thanks for the reply. I tried the way you posted. But the data for orders are not retrieved.
I wrote the step to retrieve the orders and i mapped that step to the customer object "Read" steps.
Please find the below screens.
1. Main screen set.
ShowCustomersListTile_Detail_PPC---->shows the customers collection
ShowCustomersListTile_Detail_PPC---->Shows the Orders collection
2. Customers List Tile View field.
3. Orders List View field.
4. Orders Collection for selected customer.
5. Columns are:
These are all the definitions I modified. Tested in ATE.
I selected one customer
Orders tab I couldn't get the data.
Please suggest what is the mistake i have made.
Thanks,
Swaroopa.
Swaroopa,
That is strange. Everything looks correct to me. Try setting the Orders collection source like this as a test:
Main Object -> Customer Collection -> First Object -> Orders Property
This should point at the first customer in the collection. Do you get any orders this way? This is assuming that the first customer has orders in their collection.
Jason Latko - Senior Product Developer at SAP
Jason,
Thanks for the reply.
I tried the way you told. I have put the collection as follows:
Main Object -> Customer Collection -> First Object -> Orders Property
It is giving the orders of first customer in the collection. Every customer is getting that first customer orders only.
In my example, All customers in the collection are getting the below orders only.
Please find below screen:
I tried in other way also that is:
:>"Customers" Property>(All :>"Orders" Property)
With this entire orders collection is retrieved irrespective of the customer selected.
Please find below screen:
This behavior is OK because i am displaying the customer ID in orders from this I can identity Which orders are belong to which customer.
I want to try some other better way like if I select any particular customer, that particular customer orders only i want to see in orders tab.
Is this scenario is possible in any other way? Suggest me.
Thanks,
Swaroopa.
Swaroopa,
OK good, so the orders collection is populated and your screen is targetting correctly. Something must be wrong with the way you were targetting the selected customer in your first attempt. The correct way to handle this interface is to not have both tabs on the same screen. Start with just customers, then have an action button or double-click action on your first list that navigates to a second screen set that holds your orders tab. Pass the selected customer object as the target to the navigate action that opens the orders tab screen set. Then just point the orders list to "Customer object -> Orders Collection". The customer that was passed in to the screen will be used.
Jason Latko - Senior Product Developer at SAP
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.