Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Trouble getting Update Rest Service to work

Steven,

You can see all the settings in our docs:
http://docs.appery.io/documentation/b...

ssquire
Posts: 0
Joined: Tue Feb 12, 2013 4:36 am

Trouble getting Update Rest Service to work

I do have a cosmetic issue Katya. When I enter data in the input boxes and then press the "Add Game Data" button, the game data added remains in the input box. I tried adding javascript and running it after the new game is created that would reinitialize the input boxes to blanks, but it doesn't seem to work. It is below:

var blank = " ";
localStorage.setItem("localInputDefault", blank);
Appery('gameNameTextInput').text(localInputDefault);

Any ideas?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Trouble getting Update Rest Service to work

Hello! Use codeAppery('gameNameTextInput').val(localInputDefault);/code instead of codeAppery('gameNameTextInput').text(localInputDefault);/code

ssquire
Posts: 0
Joined: Tue Feb 12, 2013 4:36 am

Trouble getting Update Rest Service to work

Marina,
I changed the statements above as you indicated and still can't get the input components to re-initialize to blank. 1st I attached them to javascript that was executed after the "add game data" button was pressed & the new entry was created in the database. Since the input component was retaining the last entry I wanted to reinitialize it to blank or null. Then I tried associating that javascript with a swipe left event - which doesn't seem to be working either. Do you have any ideas why?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Trouble getting Update Rest Service to work

Hello! Try this codeAppery('gameNameTextInput').val("");/code

ssquire
Posts: 0
Joined: Tue Feb 12, 2013 4:36 am

Trouble getting Update Rest Service to work

so where do I put them? I have read documentation and experimented for hours and still can't figure this out. Please help! "

Return to “Issues”