- This topic has 5 replies, 3 voices, and was last updated 12 years, 1 month ago by support-michael.
-
AuthorPosts
-
txarlyMemberhi everybody,
I´m trying to create a local database looking the examples and methods from the forum but the testcenter freezes usually and i´m not able to make it work.
Could anybody post a bit of code on how to do that?I want to create a database,table and enter 2 or 3 fields(id,firstname,lastname for example) from 1 page and a button in that page too, that links to another page with a list populated dinamically with the database data at the moment the page get focus.
Hope you can help me and excuse my english
thank you in advance
nvtsMemberHello
I have been looking for any help with this also. I have had no help from the moderators. This is my last day of the trial and I want to purchase, but I want make sure that it does first.
I have been able to use a database with 4 text fields and have it save new records and clear the text fields for entries.
I am trying to now be able to call that record id and edit and save the changes back to the table.
I wanted to use a datagrid with popup for add new, update and so on. I am trying a few, but no success so far.
Cheers…
Howard
txarlyMemberi attach a file with code.I´ve modified custom-list from here and added some buttons that create a database,table and add records well, but still can´t populate the list with the entered data.Please feel free to post the code if you know it at the custom.js included to make it work.
Hope anybody can do it
thank you
Attachments:
You must be logged in to view attached files.
support-michaelKeymaster>This is my last day of the trial and I want to purchase, but I want make sure that it does first.
Please send a request for a MobiOne trial extension to sales at genuitec dot com. They will assist you.
txarlyMemberno answers so must be impossible to do that.Well.
-I ‘m trying to work with localstorage to do the same.
I want to insert records to local generating an auto increasing ID to the group of fields but doesn´t store anything.my code
function AddLine() { var lastID = localStorage.getItem( 'lastID' ); if ( lastID == null ) { location.reload(true); localStorage.setItem( 'lastID',0 ); } var uniqueID = lastID; var fname =$('m1-emplead-textField1').val(); var lname = $('m1-emplead-textField2').val(); var phone = $('m1-emplead-textField3').val(); var email = $('m1-emplead-textField4').val(); var notas= $('m1-emplead-textArea1').val(); // convert the ID to a string so it can be used as a key var formSaveID = uniqueID.toString(); // assign everything to an object for local storage var newFormSave = {}; newFormSave.id = uniqueID; newFormSave.fname =fname; newFormSave.lname = lname; newFormSave.phone = phone; newFormSave.email = email; newFormSave.notas = nota; // turn data into JSON string localStorage.setItem( formSaveID, JSON.stringify( newFormSave )); // reload history with new entry; see below loadHistory(uniqueID); // increment the ID uniqueID++; // save next available ID (note: bugs/features in iOS demand // the key be removed first, and then reset; a straight // overwrite using the same key does not work) localStorage.removeItem( 'lastID' ); localStorage.setItem( 'lastID', uniqueID ); }
hope this time get some help , i´m feeling i´ve bought a licence for nothing 🙁
thanks again
support-michaelKeymaster>i´m feeling i´ve bought a licence for nothing 🙁
Please understand that debugging code from others can be extremely time consuming. We get more and more “what’s wrong with my code” questions daily. The user understands the intent of his code; but we don’t. Some cases are easy; some must go in a queue as they are not quick and may take an hour or more to debug. Many are just plain old bad cut/paste/hack attempts that we have to work thru – not your’s of course 😉
What we typically do is if we receive a full project we load it up and inspect it in the debugger. That identifies most syntax problems immediately – problem solved. Then we run it and step thru the code looking for semantic or logic errors. Sometimes we find a bug in mobione generated code or some complex interaction that needs improvement. Sometimes we find bugs in user’s code.
In the end it all takes time. That is a long way of saying, “your issue is in the queue and we will follow up asap” …
-
AuthorPosts