Page 1 of 1

Why wont this table update??

Posted: Sat May 02, 2015 1:15 am
by travis hatch7514059

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.


Why wont this table update??

Posted: Sat May 02, 2015 2:59 am
by Bruce Stuart

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


Why wont this table update??

Posted: Sat May 02, 2015 3:13 am
by Alena Prykhodko

Hello Travis,

Try to use page show event to update table.


Why wont this table update??

Posted: Sat May 02, 2015 4:12 am
by travis hatch7514059

Bruce,
heres what im workin with Image Image Image Image


Why wont this table update??

Posted: Sat May 02, 2015 4:31 am
by Bruce Stuart

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