Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

script/calculations

Featured Replies

i need to know how to do something. right now the database has a few fields, Fristname, Lastname, OS, Memory, and userid. i set up a calc field that takes all those fields and list them in a string. so what i need now is a calc that will look throught the database records and find records that have like 2 things in common. like as you fill in the fields on a record you have a field that is showing the record numbers that have the same string info..

does that make any since?

What you are doing makes sense to me but I can't understand why you would want to do. Can you define it more clearly? For example what combiantions are likely to be the same?

  • Author

ok, like the memory and the os might be the same. the purpose for this is that if a person calls and is having problems with software then someone can enter in some of the computer specs and the problem discription and get a list of other records that have the some of the same characteristics, thus making solving the problem easier. most of the fiels will be drop down menues so that the values will be excatly the same.

so like can i have something that will look through all the records and list the ones where 2 or more fields are the same as those fields in the current record.

How about having a sixth calculated field that combines all the data from the five fields:

Calculated field = Firstname & " " & Lastname & " "& OS & " " & Memory & " " & userid

That way you would only have to do a search on the one field. Would this help?

  • Author

yea, i thought of that... ummmm

i have that calc field and it looks like this

fields = firstname, lastname, os, memory, processer, problem, userid

"John Doe Win98 64mg 550mhz crashes 12"

i just need a way to like have a button that says find like records or something. and it will find records where..

os = win 98 AND memory = 64mg

OR

os = win 98 AND problem = crashes

OR

os = win 98 AND processer = 550mhz

OR

memory = 64mg AND problem = crashes

OR

memory = 64mg AND processer = 550mhz

OR

processer = 550mhz AND problem = crashes

so it will find records where 2 of the fields match. but i dont want the end user to have to enter anything, i just want them to press that button.

  • Author

ok, i kinda have what i want now.. its a script that looks like this..

global = a global field

test = a global field

string = a calc field

userid = a calc field

----------------------------------------

Clear[select, "test"]

Copy[select, "string"]

Paste[select, "global"]

Go to Record/Request/Page [First]

Loop

IF ["LeftWords( global , 1 ) & LeftWords( global , 2 ) = LeftWords( string , 1 ) & LeftWords( string , 2 )"]

Copy[select, "User ID"]

Paste[select, "test"]

Insert Text["test", " "]

End If

Go to Record/Request/Page [Exit after last, Next]

End Loop

[This message has been edited by MadHatter (edited February 20, 2001).]

  • Author

ok, i did it, well most of it... let me share:

fields:

global = a global field

test = a global field

string = a calc field

userid = a calc field

the string field looks like this..

virtual memory, os, yes/no, firstname, lastname, item, userid

"On Win98 no 24 John Doe Black Pen A24MB"

-----------------------------------------

Clear[select, "test"]

Copy[select, "string"]

Paste[select, "global"]

Go to Record/Request/Page [First]

Loop

If["LeftWords( global , 2 ) = LeftWords( string , 2 ) or LeftWords( string , 1 ) & " " & MiddleWords( string , 3 , 1 ) = LeftWords( global , 1 ) & " " & MiddleWords( global , 3 , 1 )"]

Copy[select, "User ID"]

Paste[select, "test"]

Insert Text["test", " "]

End If

Go to Record/Request/Page [Exit after last, Next]

End Loop

-----------------------------------------

[This message has been edited by MadHatter (edited February 20, 2001).]

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.