By Scott Pon
Environment: FM13 with FM13 Server, mix of Windows 7 and 10.
Is there a way to set a script trigger on if this portal row is new? IE, a script to run if this new child/portal record is new.
We have a parent record, and portal to Children records. The children records have 2 fields: Profile Name and Process type. Our user would like to enter a new child record (profile name and process type). if the process type already exists, we will need to archive the existing record (matching the profile type). There is more bI want to start with this first.
I see script triggers to the layout "OnRecordCommit", but no similar script trigger for portals. Any ideas on how to handle this? Or am I going to have to add a button to go to another screen to accomplish this?
Thanks. I hope i gave enough info for you to help me.
I want to create a script trigger which opens a layout based on account name ,create new record and put cursor in first field of the new record
Now, I was able to direct user to specific layout and also created new record using New Record/Request function but somehow it doesn't put cursor in the first field , instead it selects whole record .
Note: I also have script triggers attached to first and second field which runs on exiting the fields. (I don't think they affect anyways , but just mentioned to give idea)
I am currently working on a database, which HR-Managers can access via WebDirect using login-information, to accede or resign their employees.
I have made 6 possible option types for the HR-employees to enter data into, set by an unique ID, but with the use of the same fields.
X fields with option type 1 (Accede)
Y fields with option type 2 (Resign)
Z fields with option type 3 (Maternity leave / leave)
.. Etc. 6 option types in total.
Now, based on my project description, a couple of the fields will have to be validated / not empty, which the HR-manager is prompted to enter before the record can be committed.
Now, I am aware of FileMaker has it's own Field Validation, but I think the built in feature is bonkers..... (Sorry FileMaker..)
Therefore I was thinking of making a script to each of the different fields, which needs validation, and is this even a good solution
Question one; how do I do this, the most easily? Is it possible?
I have 8 required fields for validation, fields are global.
Fields such as; Company Name, HR-manager name, HR-manager e-mail, employee SSN, employee name, employee surname etc.
I don't want the scripts to interfere with the other option types ( X, Y, Z ) which each is set by an unique ID, as well as fields, although the fields used in these option types are from the same table.
Please see attached images of my setup.
Hope you can help me, for the best possible solution.
If you need more information, let me know.
P.S. The language/text on the layout is Danish, although shouldn't be considered an issue for understanding my problem.
Hi - I suspect there is a straightforward way to do this but I can't find it!!
I am creating a solution to store then analyze some of my surgical workload.
I have a table called "Operations" and this is related to another table called "Occupations" via a join table called "OccupationAtOperation".
What I would like to do is have a field in the Operations table that is populated via a pop-up menu that is looked up from the relevant field in the Occupation table.
I can create such a menu using a value-list, but I can't figure out how to add to the list without going to the Occupation table itself.
Is such a thing possible? Can I enter the Occupation field in the Operation table and enter data that also creates a new occupation record in the occupation table?
Also, when I come to putting an occupation in the Operation table this needs to be a constant for the operation and NOT change in the operation table if the patient changes their occupation over time.
I hope that makes sense!!