For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 4 replies, 2 voices, and was last updated 13 years, 8 months ago by
support-octavio.
-
AuthorPosts
-
mreadeMemberSupport,
I am currently using the 15-day trial version of MobiOne. I have created a few .mobi screens (forms) such as frmMain.mobi, frmList.mobi for iOS app, and I am able to move between these screens.
I am currently trying to build a math-related app. I found a sample file called sum.mobi though a link on your web site. I’ve made a few changes to this file, and I am able to run the file in the Test Center. The math seems to work when i run the file all by itself. So, I renamed the sum.mobi to frmCalc.mobi via Save As, then on my frmList.mobi form, and I have added a Form Action to show the frmCalc.mobi form when I select a specific list item on the mrmList.mobi form. The frmCalc.mobi form does show, but the form does not calculate any results.
I should also point out that I am completely NEW – AKA – Beginner – to JavaScript. I do have a little experience with VB6 but that’s as far as it goes.
Please offer any suggestions with respect to this issue.
Thanks in advance
November 21, 2012 at 10:37 am #332541
support-octavioMemberHi mereade,
Please see this explanation for a similar question: http://www.genuitec.com/support-genuitec/viewtopic.php?p=6485#p6485
In a nutshell you should move/copy your javascript code from your math_custom.js to main_custom.js (I don’t know that is your main screen). Let me know how it goes for you.
November 22, 2012 at 9:06 am #332564
mreadeMemberGood Morning Support,
Well, i have tried moving the code from the calc.mobi form to the main.mobi screen and I am still unable to get the calculation to work when the run the app from the main.mobi form.
If I run the app from the calc.mobi only form, all seems well.
Where exactly would I need to insert the code from calc.mobi into main.mobi.
Like trying to learn any new programming language, there is bound to be a fews glitches along the way.
Thanks for your patience.
November 23, 2012 at 6:50 am #332600
mreadeMemberSupport,
While waiting to hear back from you, I continued work play with the coding to get my form to calculate the results. In doing so, I realized that I had not modified the following code:
Var arg1 = parseFloat($(‘#m1-sum-arg1Field’).val (), 10);
The change was to replace “sum” with the name of the form (ie: “calc”) so the code in the main.mobi form would calculate the results on the calc.mobi form.
So for now, all is well, I am winding down the 15 day trial period and it looks promising that I will purchase Mobione at the end of the trial period.
I must say, although this seemed very intimidating at first, it is just a matter of following a few procedures to get things to work. And, the Mobione Design/Test Centers is a excellent platform to WYSIWYG platform for creating apps. Kudos!
Mike
November 23, 2012 at 2:13 pm #332612
support-octavioMemberHi Mike,
Thanks for following up with us sharing that you solved this problem. Marking thread as closed.
-
AuthorPosts
