I'm trying to use the Kargas dialog plugin in my scripting but i do not know how it works
Does anyone has experience with this plugin and can tell me how it works
The example file is a little confusing, but if you take the time to work through the sample scripts you should pick it up.
You don't use the native "Show Custom Dialog" script step at all. You need some way of calling the plugin functions, which could be by using a 'Set Field' step, or a 'Set Variable' step, or any other method that will give you access to the calculation engine. Look in the 'External Functions' for the functions available (they start with "Dialog_").
Here's a basic example from the sample file:
Dialog_Dialog( noresize width=500 height=300 ; "Delete Record" ; "This will delete the following record." & "¶" & "Are you sure you want to continue?" ; "Yes" ; "No" ; "" ; "Cancel" )
The above command will show a dialog with width 500 pixels, height 300 pixels, that cannot be resized. The title is "Delete Record", the message is as shown above. There are three buttons, "Yes", "No", and "Cancel". (The extra "" is to leave a space where the 'third' button would normally appear).
Because this is not a native function you cannot use Get (LastMessageChoice) to find out which button was pressed by the user. Instead, the result of the calculation will be a number corresponding to the button. E.G Set Variable [$result; Dialog_Dialog( noresize width=500 height=300 ; "Delete Record" ; "This will delete the following record." & "¶" & "Are you sure you want to continue?" ; "Yes" ; "No" ; "" ; "Cancel" ) ] will give a value of 2 if the "No" button is pressed.
Attached is a sample file that shows how to create a dialog with a pop up menu. You can set the title of the dialog, the message shown, the label for the pop-up menu and the items that appear in the list. You can also set a 'default' value for the pop-up menu. The option chosen is recorded in the 'Result' field. Take a look at the script to see how it works.
Hope this helps.
I would recommend the SD Dialog from 24u. Very capable and programmable dialogs.
agnes b. riley
filemaker and web development
TWO-TIME MAD DOG AWARD WINNER
FileMaker Certified in 10 and 11
Member, FileMaker Business Alliance
T: 877 917-9079 . C: 917-660-7221
Is there a trial version
Verstuurd vanaf mijn iPhone
Op 26 jan. 2013 om 15:34 heeft "Agnes Riley" <email@example.com<mailto:firstname.lastname@example.org>> het volgende geschreven:
created by Agnes Riley<https://fmdev.filemaker.com/people/ariley> in Scripting and Calculations - View the full discussion<https://fmdev.filemaker.com/message/105857#105857
Yes, there is.
+1 for the 24U Dialog, use it all the time!
Ruben van den Boogaard
I've used both the Kargas Dialog plugin and the 24U SimpleDialog plugin. The 24U plugin has more features, but the Kargas plugin is pretty good considering it is free! Have you looked at the sample file? Find an example that is the same or similar to what you want to do, then examine the associated script to see how it is done.
Hope this helps.
Thanks for the advise
I try ro use the kargas plugin first because as you say, it'a free.
I'have over 25 clients so that saves money
The problem however is that even with the example file i have no idea how to script it.
How should I script to open a new dialog box
Should i include the native open dialog scriptstep too or should i only us the custom scriptssteps provided by the plugin
If so, how should i start
Set field? Set variable? Should i use If-else?
I really appreciate if you can provide me a small example file with a simple script to show me how it works
Verstuurd vanaf mijn iPad
Op 28 jan. 2013 om 11:27 heeft "Kantala" <email@example.com<mailto:firstname.lastname@example.org>> het volgende geschreven:
created by Kantala<https://fmdev.filemaker.com/people/Kantala> in Scripting and Calculations - View the full discussion<https://fmdev.filemaker.com/message/105967#105967
This is the support I was waiting for.
I’m sure I will manage to improve my solution.
Van: Kantala email@example.com
Verzonden: dinsdag 29 januari 2013 11:11
Aan: Kees Hoornweg
Onderwerp: Re: Dialog plugin kargas
created by Kantala<https://fmdev.filemaker.com/people/Kantala> in Scripting and Calculations - View the full discussion<https://fmdev.filemaker.com/message/106058#106058
Retrieving data ...