travis hatch7514059
Posts: 0
Joined: Sat May 02, 2015 1:15 am

Why wont this table update??

when the page loads, it performs a get list service. it shows info from a collection:instructorname, date, score

you can change the information and then i have a save button that is supposed to update the collection information. i dont know if i have it mapped wrong or what im doing but im going to cry. someone help me please.

I thought i knew what i was doing and i have to get this done tonight.

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Why wont this table update??

Travis,

I'd like to try to help. How about a shot of the mapping event success when you read the data, a shot of your UI , and a shot of the mapping event before ... For the update service ?

You're saving the key during the read event to local storage ... Or saving it to local storage when the user selects it for update, and then mapping it to the key in the update event ???

Best,
Bruce

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

Why wont this table update??

Hello Travis,

Try to use page show event to update table.

travis hatch7514059
Posts: 0
Joined: Sat May 02, 2015 1:15 am

Why wont this table update??

Bruce,
heres what im workin with Image Image Image Image

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Why wont this table update??

Travis,

In the top service you show - I don't see you showing how you are mapping the data from the UI to the collection in order to move the data from the UI to the datastore.

I'm likely missing something... so just show me where that's happenning.

In the bottom UI - when you read the data - I don't see where you are saving the _id field from the source table - to where you can read it back upon selection by the user - and set it to the value you are moving in the top UI...

does that make any sense?

The general flow should be

  1. Read the data - and save the key from the table you are reading - somewhere on the UI in a hidden manner. (or visible if you like for testing). Move the data from the service - to the UI (which you are doing - I just don't see where you are saving the key to get back to that row in the collection when you do the update)

  2. Update the data on the UI (user does this)

  3. Move the saved key from the hidden place on the UI to the query field in the update service - query column. (before mapping)

  4. Move the data from the UI to the data service in the before mapping/

    Best,

    Bruce

Return to “Issues”