TonyS
Posts: 0
Joined: Thu Jun 11, 2015 12:11 pm

Mapping maddness

This should be simple and for most of you it probably is:)

I want to update a record.

I'm using the update service Appery creates.

This is how I would expect it to work...

In the before send event I would map the fields in my form to the service request based on the locally stored id.

This is then amended by the user and the update service is evoked on submission.

But it doesn't doesn't it work?

Pavel Zarudniy
Posts: 0
Joined: Mon Jul 06, 2015 8:56 am

Mapping maddness

Hi TonyS,
Unfortunately it is not clear enough.
Could you please provide more details, screen shots would also help.

TonyS
Posts: 0
Joined: Thu Jun 11, 2015 12:11 pm

Mapping maddness

OK details...

Before send event

  • local_storage - id is mapped to - service request - id

  • page - first_name is mapped to - service request - first_name

    User changes their first name and evokes service.

TonyS
Posts: 0
Joined: Thu Jun 11, 2015 12:11 pm

Mapping maddness

Okay here's my simple flow of how it works.

  1. Getting the record details is one service.

    In the Before Send event you map the locally stored id to the service request .

    Then in the Success event you map your input boxes to the fields in service request.

  2. Updating the record is another service.

    Map the locally stored id to the service request id than map the input fields to the fields in the service request. There's no Success mapping

    Evoke the second service via a click and the record is updated.

    Knew it would be simple.:)

Return to “Issues”