Page 1 of 1

Getting 'hidden' service response data

Posted: Tue Oct 22, 2013 3:47 pm
by Sean Kelley

Hi
I would like to get some data from my service response that does not get fully defined when generated graphically. The response looks like this:
code
<ItemSpecifics>
<NameValueList>
<Name>Brand<&#47;Name>
<Value>Karl Niedersuss<&#47;Value>
<&#47;NameValueList>
<NameValueList>
<Name>Saddle Type<&#47;Name>
<Value>Dressage<&#47;Value>
<&#47;NameValueList>
<&#47;ItemSpecifics>
/code
I want to get the Brand value. How do I go about doing this? My thought was to create a javascript variable in mapping then get the brand from that and set the related screen label text to it's value from the variable js. Would this be the best way?

If so, how do I go about referencing brand value? What might the js look like?

Image

Also, I want to be able to access the other mapped var PictureURL[1], PictureURL[2], etc. would I use JS variable for this in similar fashion?


Getting 'hidden' service response data

Posted: Tue Oct 22, 2013 4:26 pm
by Kateryna Grynko

Hi Sean,

Do you want to obtain only the first value from tag Name ("Brand") or do you need to get all the array of values?


Getting 'hidden' service response data

Posted: Tue Oct 22, 2013 4:58 pm
by Sean Kelley

I would like some of them. I shortened the sample list but I want to be able to set
Brand, Saddle Size, Saddle Type, and Model
code
<ItemSpecifics>
<NameValueList>
<Name>All returns accepted<&#47;Name>
<Value>ReturnsNotAccepted<&#47;Value>
<&#47;NameValueList>
<NameValueList>
<Name>Color<&#47;Name>
<Value>Black<&#47;Value>
<&#47;NameValueList>
<NameValueList>
<Name>Saddle Size<&#47;Name>
<Value>17&#46;5<&#47;Value>
<&#47;NameValueList>
<NameValueList>
<Name>Brand<&#47;Name>
<Value>Karl Niedersuss<&#47;Value>
<&#47;NameValueList>
<NameValueList>
<Name>Saddle Type<&#47;Name>
<Value>Dressage<&#47;Value>
<&#47;NameValueList>
<NameValueList>
<Name>Model<&#47;Name>
<Value>Symphony<&#47;Value>
<&#47;NameValueList>
<&#47;ItemSpecifics>
/code

On the PictureURL I want to get all available then map to screen photos. I am not sure if this is useful but example response looks like:

code <PictureURL>http:&#47;&#47;i&#46;ebayimg&#46;com&#47;00&#47;s&#47;NzY0WDEwMjQ=&#47;z&#47;eysAAOxy1RZSYpIA&#47;$T2eC16F,
!zUFIclWd0(6BSYpI!PDg!60_1&#46;JPG?set_id=8800005007<&#47;PictureURL>
<PictureURL>http:&#47;&#47;i&#46;ebayimg&#46;com&#47;00&#47;s&#47;NzY0WDEwMjQ=&#47;z&#47;cykAAOxyONBSYpIR&#47;$(KGrHqF,
!rcFI3gQU+J)BSYpIRIIJw60_1&#46;JPG?set_id=8800005007<&#47;PictureURL>
<PictureURL>http:&#47;&#47;i&#46;ebayimg&#46;com&#47;00&#47;s&#47;NzY0WDEwMjQ=&#47;z&#47;XUAAOxyffZSYpIh&#47;$(KGrHqN,
!oEFJNRDQdK!BSYpIg8NCg60_1&#46;JPG?set_id=8800005007<&#47;PictureURL>
<PictureURL>http:&#47;&#47;i&#46;ebayimg&#46;com&#47;00&#47;s&#47;NzY0WDEwMjQ=&#47;z&#47;dGIAAOxyONBSYpI0&#47;$T2eC16N,
!y0FI,
yBI0fSBSYpIzdZkw60_1&#46;JPG?set_id=8800005007<&#47;PictureURL>
<PictureURL>http:&#47;&#47;i&#46;ebayimg&#46;com&#47;00&#47;s&#47;NDgwWDY0MA==&#47;z&#47;GeIAAOxyEoFSYpgP&#47;$T2eC16hHJGEFFmWe52!IBSYpgPQgcw60_1&#46;JPG?set_id=8800005007<&#47;PictureURL>
<PictureURL>http:&#47;&#47;i&#46;ebayimg&#46;com&#47;00&#47;s&#47;NDgwWDY0MA==&#47;z&#47;DMAAOxyGqZSYpgb&#47;$(KGrHqIOKpkFGclBq+0uBSYpgbemtg60_1&#46;JPG?set_id=8800005007<&#47;PictureURL>
<PictureURL>http:&#47;&#47;i&#46;ebayimg&#46;com&#47;00&#47;s&#47;NDgwWDY0MA==&#47;z&#47;sTkAAOxy1RZSYpgs&#47;$(KGrHqNHJE!FJbw+EveyBSYpgqs6J!60_1&#46;JPG?set_id=8800005007<&#47;PictureURL>
<PictureURL>http:&#47;&#47;i&#46;ebayimg&#46;com&#47;00&#47;s&#47;NDgwWDY0MA==&#47;z&#47;3BQAAOxyHntSYphA&#47;$(KGrHqRHJFUFJ,
qQzUQyBSYph!g!sg60_1&#46;JPG?set_id=8800005007<&#47;PictureURL>
<PictureURL>http:&#47;&#47;i&#46;ebayimg&#46;com&#47;00&#47;s&#47;NDgwWDY0MA==&#47;z&#47;LCwAAOxydINSYphN&#47;$T2eC16FHJGYFFk1COp)LBSYphNBggQ~60_1&#46;JPG?set_id=8800005007<&#47;PictureURL>

/code


Getting 'hidden' service response data

Posted: Tue Oct 22, 2013 5:32 pm
by Kateryna Grynko

Sean,

Please take a look at here: http://docs.appery.io/documentation/u...

You should only map Name to a needed Label and NameValueList to a Grid.