cancel
Showing results for 
Search instead for 
Did you mean: 

Navigation from List Tile selected Screen?

former_member197782
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

jason_latko
Advisor
Advisor
0 Kudos

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

former_member197782
Participant
0 Kudos

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.

jason_latko
Advisor
Advisor
0 Kudos

Swaroopa,

Are you sure the Order objects are coming down to the client?  Verify this using the ATE (Agentry Test Environment) by inspecting the Customer objects and looking at the Order collection.

What backend are you using, SQL?

Jason Latko - Senior Product Developer at SAP

former_member197782
Participant
0 Kudos

Jason,

     Thanks for the reply. I am using MSSQL back end.

     As you said I checked the order collection in ATE by inspecting the objects.

     Please check the below screen shot.

Please guide me.

Thanks,

Swaroopa.

jason_latko
Advisor
Advisor
0 Kudos

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

former_member197782
Participant
0 Kudos

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.

jason_latko
Advisor
Advisor
0 Kudos

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