-
Posts
6,872 -
Joined
-
Last visited
-
Days Won
80
Community Answers
-
bcooney's post in Looping Problem was marked as the answer
Crest a new window and then do the find for the account. Close when done.
-
bcooney's post in Update of all script instances through database was marked as the answer
Yes, DDR is the answer. Take it farther and use a tool that imports or reads the XML version of the ddr. Such as BaseElements, Inspector Pro or FMPerception. I work with FMPerception open as I develop to answer questions such as this immediately.
-
bcooney's post in PSOS ExecuteSQL query of FileMaker_Fields not returning related file fields was marked as the answer
Are the credentials cascading to the second file? Is the second file open on the client when you call the psos script?
-
bcooney's post in Deleting Layout and Tables was marked as the answer
Why are you creating a new TABLE for each import? Why not new records in a temp table.
And, no, you cannot script the deletion of tables or layouts.
-
bcooney's post in Changing the main layout for my database was marked as the answer
The typical approach to this is to create a script that navigates to the layout that you want and assign it to the File Options perform script. Also, add a Close Script and have it navigate to the layout that you wish to view upon open.
-
bcooney's post in anyway to test if.. another log user is in a record? was marked as the answer
Perhaps assign records to users (ownerID) and use rla view calcs?
-
bcooney's post in Changing Field Values in related records Based on Field Entry was marked as the answer
Majit, there are several problems with your solution.
Here is a revised version. All you really need to do is store the foreign key for the primary address ID in Contacts.
ContactAddress2.fmp12.zip
-
bcooney's post in Do a Find when user switches to the layout was marked as the answer
Try OnLayoutLoad. Hmm. I'd throw a dialog to ask if they want to add a new record.
If (get(foundcount)=0
Show Dialog, "Add New?", "Yes", "No"
If get(lastmessagechoice) = 1
Perform Script "Add New"
Else
go to original layout
endif
-
bcooney's post in 'Either Or' instead of 'And' was marked as the answer
You need a join table Products>ProdFabrics<Fabrics.
Each record in the join table would store the unique combo of Product and Fabric to resolve what is called a many-to-many relationship.
-
bcooney's post in Script Execution was marked as the answer
@Anand - Yeah, get the terminology straight. Amazing you passed the FM10 certification without knowing the difference between the client and the server.
-
bcooney's post in Is it possible to combine a single field from all records? was marked as the answer
List ( ) with a self-join. But, where are you going with this?
-
bcooney's post in Better alternative to a find then get(foundcount) process? was marked as the answer
I usual create a flag field calc that contains the logic I need for the "state" of a record, if possible. I use this flag in counts and finds. If I often need a find, and this calc is unstored, I create a stored version of this calc, and set it in a transactional script.