Page 1 of 2

Error in mapping to REST service. Label text values are mapped as empty.

Posted: Fri Jun 12, 2015 12:41 pm
by Austin7584860

I have a REST service where I use a GET method to populate label values contained in a collapsible set. These values are mapped successfully and display the correct values. After this, I would like to use a POST method which uses label texts as input. When I try to map the label text during the 'Before Send' event, all the text values are empty.

Console.log(value) displays nothing even though I can see the text on the page.

Any clue what my issue might be?


Error in mapping to REST service. Label text values are mapped as empty.

Posted: Fri Jun 12, 2015 9:45 pm
by Alena Prykhodko

Hello,

Please specify your question.
Show us your service settings and mapping screen shots.


Error in mapping to REST service. Label text values are mapped as empty.

Posted: Mon Jun 15, 2015 2:08 pm
by Austin7584860

Error in mapping to REST service. Label text values are mapped as empty.

Posted: Mon Jun 15, 2015 2:10 pm
by Austin7584860

To specify,

I have tested the mapped values and they map correctly during my initial mapping service. When I try to map those values from the page to a different service, they map as empty values.


Error in mapping to REST service. Label text values are mapped as empty.

Posted: Mon Jun 15, 2015 7:52 pm
by Serhii Kulibaba

Hello Austin,

Mapping "Before Send" writes data from UI elements to request parameters. If you need write data from service response to UI, use success event.


Error in mapping to REST service. Label text values are mapped as empty.

Posted: Tue Jun 16, 2015 3:32 pm
by Austin7584860

Hi Sergiy,

I apologize if I haven't been clear. This is a screenshot of my second mapping. I used an initial mapping to map to UI elements and now I would like to use those UI component values for a different mapping service. When I map to my second service, these values are empty when they are passed to the service.


Error in mapping to REST service. Label text values are mapped as empty.

Posted: Thu Jun 18, 2015 7:43 pm
by Serhii Kulibaba

Where do you run your second service? On complete event of the first service? Could you show it? It would be better to use storage variables for mapping data between services.


Error in mapping to REST service. Label text values are mapped as empty.

Posted: Tue Jan 26, 2016 11:10 pm
by EJLD

Hi There, I am using this thread not to open a new one even though it is a different issue.
pls check screenshots below and you may understand.

Image

where could that token "a" be located ?
any advice ?
thk you
Eric


Error in mapping to REST service. Label text values are mapped as empty.

Posted: Wed Jan 27, 2016 7:57 pm
by Serhii Kulibaba

Hello,
I am not sure this issue is related to JS code you've sent. Please look at this link: https://devcenter.appery.io/documenta...


Error in mapping to REST service. Label text values are mapped as empty.

Posted: Wed Jan 27, 2016 10:51 pm
by EJLD

thk for your reply.
what I know is that when the link bringing the value to the grid/visible is removed, no error are thrown.
what I want to do is hide/show a grid depending on the incoming value but that grid is inside a item list.
i found the way to do it for buttons but they are out of the grid directly placed in the list item.
the error comes when trying to apply the same code as for buttons to grids.

how would you do ?