on 03-21-2016 1:55 AM
During my transmit I have a call to an oData service that returns a set of readings that need to be collected on the mobile client. Each reading returned from the oData service contains a set of meta data that will be used by my app to determine how to collect the data for the reading (min/max values, validation rules, etc). The meta data for each reading will be placed in a collection called "ReadingTemplatesCollection" and this collection will contain an object called "ReadingTemplate". One of the fields in the meta data is a string that contains the values to display in a drop down list. The field that contains the drop down choices is in format: choice1;choice2;choice3. I'm assuming that since I need to place choice1, choice2, and choice3 in a drop down I'll need to put them in a nested collection within ReadingTemplate. My question is, within an action step of my transmit, how can I parse the list of choices and then place the choices in a collection within the ReadingTemplate object?
Thanks
Tim
I was able to accomplish this by creating additional subaction steps in my transmit to loop over the meta data once for each choice in the list. I found from the user that there will be at most two choices in the list, so I loop over the meta data two additional times and add the first choice in the first loop and the second choice in the second loop using an add transaction for each.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please mark this Discussion with a Correct Answer (closes, but does not lock the Discussion) and Helpful Answer where appropriate. See http://scn.sap.com/community/support/blog/2013/04/03/how-to-close-a-discussion-and-why Even if you discovered the solution without any outside contributions, it helps others to understand what the solution turned out to be.
Do not use Assumed Answered as it confuses anyone looking for the specific answer. If you dig into the Getting Started link (top right of each SCN page), you are only instructed to mark Helpful or Correct Answers to Discussion responses.
Thanks, Mike (Moderator)
SAP Technology RIG
Hi Tim,
You have to do the following:
Agentry:
Java?:
This last Java part is a bit complicated to understand if you didn't do it before, the best is to check Java source of a SAP standard product if you have access.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tim,
Hi. I may see if any other consultant in SAP has done this type of project.
In Theory:
Agentry:
MainObject
|__ReadingTemplate Collection
ReadingTemplate Object
FETCH
Transmit
|___FETCH - (Collection)
|___JAVA (create objects + Stephandler)
|_______Odata
Regards,
SAP Mobile Support Team
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.