- This topic has 2 replies, 3 voices, and was last updated 12 years, 3 months ago by support-michael.
-
AuthorPosts
-
mgjacksonMemberHi,
I’ve previously written a native simple Android App that access’s FogBugz (an online project bug ticket management and time tracking tool).
To prove MobiOne, I’m trying to re-write the same program.
All my app does is log on to fogbugz and then return the ticket number currently being worked on and some details and out put them onto the display.
However, I seem to be tripping up on the first hurdle – My signon screen is based on the example found in the forum, however MobiOne has moved on since that was written and although it sort of works, am having trouble.
First thing is that I need to pass an extra parameter to the server – ie my url needs to be
http://companyname.fogbugz.com/api.asp?cmd=login&email=xxxxx&password=yyyyy
So I’ve set up in the Design Center the Form Action URL as http://companyname.fogbugz.com/api.asp
How do I add the ?cmd=login bit – Do I in the function
phoneui.preSubmitForm….= function(form) add something likeform.action = “http://companyname.fogbugz.com/api.asp?cmd=login”
and just override the form action.What happens to the parameter fields – ie the email and the password – are they appended by MobiOne or do I have to do that manually?
Many Thanks,
Matthew Jackson
support-octavioMemberHi Matthew,
Our team is working on some tutorials now. We hope to begin publishing them next week to provide a framework for creating an app that uses remote data. They will appear on the MobiOne Learning Center and I will notify you on this thread. The custom logic will entail programming in JavaScript with several open source JavaScript libraries.
support-michaelKeymasterOne approach for adding your cmd=login parameter is to use a hidden input field. To do this:
1) drag-drop an html widget on your form
2) add your html code to create a hidden field<input type="hidden" name="cmd" value="login">
Here is the resulting GET request when the form is submitted:
http://myservice.com/?cmd=login&id=wayne&password=foobar
See attachment hidden-input-field.png
Attachments:
You must be logged in to view attached files. -
AuthorPosts