Page 1 of 3

Simple Calculation Script

Posted: Sun Jan 01, 2012 5:46 pm
by wv.wilson75

Brand new to all of this (not a coder) . . . I have built a cool little app for my industry, but would like to add a feature and have no clue where to start. A walkthrough would be greatly appreciated.

I have a input field (number) that the user will enter a digit, then they would select a multiplier with a pick down list . . . then with a button click, the app will make the calculation.

Here is a screenshot of what I am trying to do:

Image


Simple Calculation Script

Posted: Sun Jan 01, 2012 7:21 pm
by maxkatz

This can be easily done with JavaScript. In general, the steps would be:

On button click:
1) Read the value from the input field
2) Read the value from Unit Type list
3) Read the value from The Multiplier list
4) Calculate the result.

Here is how to read values using JavaScript: http://help.gotiggr.com/documentation...

Let me know if this helps...I'll be happy to provide more details. If you would like, please share the project with a href="mailto:support@gotiggr.com" rel="nofollow"support@gotiggr.com/a and I will help you on the actual project.


Simple Calculation Script

Posted: Sun Jan 01, 2012 8:39 pm
by wv.wilson75

I am going to read the documentation you sent. The project has been shared.

Thanks for the quick reply.


Simple Calculation Script

Posted: Sun Jan 01, 2012 8:52 pm
by wv.wilson75

I applied the quick tutorial you provided with success and I understand a bit more about the relationship with input fields to actions.

I think I will need help implementing the function I am needing.


Simple Calculation Script

Posted: Sun Jan 01, 2012 10:06 pm
by maxkatz

Sure.. on what specific part do you need help?


Simple Calculation Script

Posted: Sun Jan 01, 2012 10:14 pm
by wv.wilson75

I need to see things to learn . . . can you make it work for one or two sets of data (you can make up the multipliers, etc) . . . so I can go in and see what is done to make the four steps you listed above work?

Hands down awesome support so far...it is definitely what is going to keep me with TIGGR.


Simple Calculation Script

Posted: Sun Jan 01, 2012 10:54 pm
by maxkatz

I opened the app, can you give me sample input and what should be the result?


Simple Calculation Script

Posted: Sun Jan 01, 2012 11:48 pm
by wv.wilson75

Just for a simple scenerio:

input = 1
type 1 =foot
type 2 =inch
RESULT: 1 foot Equals 12 Inches


Simple Calculation Script

Posted: Sun Jan 01, 2012 11:49 pm
by wv.wilson75

Sorry I was away for a few . . . I am in front of my computer now for a while, so if you are able to help again, I will watch for you in chat.


Simple Calculation Script

Posted: Sun Jan 01, 2012 11:56 pm
by wv.wilson75

Logistically, I am not positive this is the best setup . . . let's say the next set is

input = 1
type 1 = yard
type 2 = feet
RESULT: 1 yard Equals 3 feet