Austin7584860
Posts: 0
Joined: Fri Jun 12, 2015 12:41 pm

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

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?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

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

Hello,

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

Austin7584860
Posts: 0
Joined: Fri Jun 12, 2015 12:41 pm

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

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.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

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

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.

Austin7584860
Posts: 0
Joined: Fri Jun 12, 2015 12:41 pm

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

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.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

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

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.

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

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

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

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

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...

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

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

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 ?

Return to “Issues”