Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7501 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Is there a website or something that will help me design a calculator type search. I want to create a page that looks just like a basic calculator. However, the only difference is that this program will do finds instead of calculations. I'm sending a beginning file. My first step is to have my numbers apear in the cal view window when I press any one of the number keys. Yes I can do this on the keyboard but I want to do it by my mouse. Oh, why can't I double click on my number box so that the specify box option appears again?

Laptop.fp5.zip

Posted

You can option-double click a field to bring up options, or use cmd-opt-f on a Mac for field options.

As for your calculator, what are your questions? Let's take them one at a time.

Posted

First question is how able to insert a collection of number into my top viewing field. I've tried the number 0 and then the number 1 but it gets earse as soon as I press either number. I have the clr and the quit button to work properly. I'm trying to have a number, example 84735. That's a collection of numbers. But I get single numbers. My goal is to use the mouse and click the buttons rather than using the keyboard keys.

PS. Here is my latest file color coded.

PSS. I'm using Mac OS 10.3

Laptop.fp5.zip

Posted

Take the 'select' option off Insert Text. That selects the entire field and overwrites what's there.

Posted

A few suggestions:

1. Align the number field to the right.

2. Set the number formatting to "format as decimal." This will prevent confusing-looking inputs such as 01 or 00.

3. Don't allow entry into the field, you don't want people typing "qwerty" or something.

4. Don't use Insert, because that allows entry into the field. Instead, use:

Set Field(Cal_View, Cal_View & 0)

Set Field(Cal_View, Cal_View & 1)

etc.

(Notice I spelled "View" differently than you, I can't help it, it was bugging me.)

For Clear, use Set Field(Cal_View, 0). Most calculators are never blank, they start with 0.

Posted

Hi Fitch,

I think I mislead some people. My goal here is to insert a series of number,including 0s,so I can FIND a record. This calculator design is NOT to do calculations. See, I'm thinking about buying a Laptop, hence the name of my file,well a tablet laptop. And with it I will be using point pen I think they are call stylus pens, not sure though. So with these file I can take it to a meeting and just click here and there and then CLICK on the button Search and it will bring up the record for that job number. These is my first goal.

My second goal is once I have that job number record up then I'll have my record file for that certain job up and it to will have alot of point and clicking with different options for each job. Then I'll have two more buttons that will either QUIT the program or RETURN back to my Calculator DESIGN file so I can do another search for a different job.

I hope I didn't confuse anybody with my plans for my project.

OH, I do like your suggestions on number 1,3 and 4,as well as set field() format. Good job! I'll work on it.

Any other suggestion from people will be appreciated.

Posted

Ok Fitch and Queue,

I want to thank you all guys for all your help. I'm sending you all my latest work on my project. The only thing is, "Is there a way just to limit a certain amount of numbers entered. I've tried the one in the Define Fields under options but it will still let me enter more numbers then my limit. Is there another way of restricting only 6 or 7 numbers in my View field?

Well, now that this is done, I'll be working on my SEARCh button.

Laptop.fp5.zip

Posted

Just because it uses numbers doesn't mean it should be a number field. E.g., zip code, phone, social security -- these are generally best as text fields, NOT numbers. If your job numbers indeed use leading zeros, then your field should be a text field, not a number field. Number fields ignore leading zeros. This will affect your search results. E.g. when you search a number field for 10 it will find only exact matches, whereas a text field would find any string that starts with 10 such as 100, 1024 etc. A text field will also allow the "maximum characters" validation option to work. However, if you want to use a number field for some reason, you could validate it with a calc:

Cal_View < 9999999

Posted

E.g. when you search a number field for 10 it will find only exact matches, whereas a text field would find any string that starts with 10 such as 100, 1024 etc

This is a very good point. Thanks! I did change the number to text field in the Define field section.

Posted

"E.g. when you search a number field for 10 it will find only exact matches, whereas a text field would find any string that starts with 10 such as 100, 1024 etc"

This is a very good point. Thanks! I did change the number to text field in the Define field section.

Posted

You can create a script to test the length of the field and call it before each Set Field in the other scripts.

If [Length(Cal_View) = 6] {replace 6 with your desired maximum length}

Show Message ["The number is too big."]

Halt Script

End If

Then, for example, Num_0 would be

Perform Script [test Length]

Set Field [Cal_View, Cal_View & 0]

Posted

Can someone tell what is wrong with my script. I'm trying to give the user an option. Either click OK and do nothing or click RESEST and have Cal_View clear.

Code:

Set Error Capture [On]

If ["Length(Cal_View)=5]

Show Message ["You are limited to only five numbers!!!"]

If ["Status (CurrentMessageChoice) =2"]

Perform Script ["Clr"]

End if

Halt Script

End if

Posted

It looks fine to me. How is it not working?

I don't think you need the Error Capture step, by the way.

Posted

Ok, that worked. Thanks Ugo DI LUCA!!!

I'm sorry guys but I'm a new beeie to this program. But I do have a little bit of AppleScript experience.

Thanks for all you all help

This topic is 7501 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.