cancel
Showing results for 
Search instead for 
Did you mean: 

List view in agentry

Former Member
0 Kudos

Hi,

I have a requirement where on click of a button there should be a screen which displays list of values. On selecting any of the value and clicking on Ok button this value should be stored. Now on click of an other button a transaction will be triggered which should get the stored value and send to backend.

I used the following approach:

An edit transaction screen which displays list view. On selecting a value im unable to store this value.

Can someone suggest me a solution.

Accepted Solutions (1)

Accepted Solutions (1)

jason_latko
Advisor
Advisor
0 Kudos

Madhuri,

Don't use a list view on a transaction, instead just navigate to a screenset, either a detail screen with a list view or list tile view, or a traditional list screen.  Display your data on the list and add a button on the buttons tab for the screen.  The target for the button will be "Currently selected WHatever object" if on a list screen, or you will need to point to the screen field itself if using a list view or list tile view: "Current screenset -> Current Screen -> List View Control -> Currently Selected Whatever object".  Tie an action to that button that accepts a Whatever object as the type and runs an edit transaction with no screen.  Set the target of the action's transaction step to Main Object.  The transaction should edit the main object.  Add a string property or multiple properties in the main object and the transaction to store the temporary data from the selected row.  Initial value for any properties in the transaction should be "From other object", then other object will then be "Whatever object -> Whatever property".  Set each property individually to point at the correct property in your Whatever object.  The Whatever object you have selected on the list will be used since we passed it to this action.  Then remember to Apply the data at the bottom of your action.  Pressing the button will now store the temporary data in the main object.  If you want another button to send the data to the backend, create another action and transaction that again edits the main object.  Include all the properties you want to send up in the transaction, then attach an update step to the transaction that will process things on the backend.  There is a check-box on the transaction called "Discard Null - Discard transaction if data has not changed".  You will need to uncheck this or the transaction will not get saved, since we didn't change any data here.  Again, don't forget to apply the data with an apply step.

Jason Latko - Senior Product Developer at SAP

Former Member
0 Kudos

Thanks for the reply Jason. It worked.

Answers (0)