![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I tried using zippscript, and cannot get it to work. I have a field with several radio button choices. I set one radio button and hit a button nearby to run a script that selects a layout based on the radio button choice. I want to use zippscript, so changing the radio button then runs the script without another mouse click. I treid a claculation to set a field with zippscript using the zippScript_PerformScript choice, naming the FileName, correctly, and the script I want to run, correctly. I get an error message saying it can't find the table. Any clues to what I am doing wrong? Is there a tutorial how to use this plugin? The info that comes from the author is very sparse. Thanks. |
#3
| |||
| |||
|
|
David Robins, MD wrote: I tried using zippscript, and cannot get it to work. I have a field with several radio button choices. I set one radio button and hit a button nearby to run a script that selects a layout based on the radio button choice. I want to use zippscript, so changing the radio button then runs the script without another mouse click. I treid a claculation to set a field with zippscript using the zippScript_PerformScript choice, naming the FileName, correctly, and the script I want to run, correctly. I get an error message saying it can't find the table. Any clues to what I am doing wrong? Is there a tutorial how to use this plugin? The info that comes from the author is very sparse. Thanks. It appears that one of his optional elements is not really optional. Using his demo file, I created a new trigger field and script to trigger. Starting with the trigger calc copied directly from his working example, I replaced the elements with my own, one by one. Replacing the field name then the script name worked. Replacing the ScriptParameter with "" worked. Replacing the ScriptControl with "" crapped out. Putting "0" in there worked. Matt |
#4
| |||
| |||
|
|
Matt Wills wrote: David Robins, MD wrote: I tried using zippscript, and cannot get it to work. I have a field with several radio button choices. I set one radio button and hit a button nearby to run a script that selects a layout based on the radio button choice. I want to use zippscript, so changing the radio button then runs the script without another mouse click. I treid a claculation to set a field with zippscript using the zippScript_PerformScript choice, naming the FileName, correctly, and the script I want to run, correctly. I get an error message saying it can't find the table. Any clues to what I am doing wrong? Is there a tutorial how to use this plugin? The info that comes from the author is very sparse. Thanks. It appears that one of his optional elements is not really optional. Using his demo file, I created a new trigger field and script to trigger. Starting with the trigger calc copied directly from his working example, I replaced the elements with my own, one by one. Replacing the field name then the script name worked. Replacing the ScriptParameter with "" worked. Replacing the ScriptControl with "" crapped out. Putting "0" in there worked. Matt I should have provided an example. This should work for you: YourField & zippScript_PerformScript ( Get ( FileName ) ; "ScriptName" ; "" ; "0" ) Matt |
|
"" ; "0" ) ] |
#5
| |||
| |||
|
|
On 7/27/05 4:53 AM, in article GAKFe.9864$ab2.9015@trndny07, "Matt Wills" I'm (AT) Witz (DOT) end> wrote: Matt Wills wrote: David Robins, MD wrote: I tried using zippscript, and cannot get it to work. I have a field with several radio button choices. I set one radio button and hit a button nearby to run a script that selects a layout based on the radio button choice. I want to use zippscript, so changing the radio button then runs the script without another mouse click. I treid a claculation to set a field with zippscript using the zippScript_PerformScript choice, naming the FileName, correctly, and the script I want to run, correctly. I get an error message saying it can't find the table. Any clues to what I am doing wrong? Is there a tutorial how to use this plugin? The info that comes from the author is very sparse. Thanks. It appears that one of his optional elements is not really optional. Using his demo file, I created a new trigger field and script to trigger. Starting with the trigger calc copied directly from his working example, I replaced the elements with my own, one by one. Replacing the field name then the script name worked. Replacing the ScriptParameter with "" worked. Replacing the ScriptControl with "" crapped out. Putting "0" in there worked. Matt I should have provided an example. This should work for you: YourField & zippScript_PerformScript ( Get ( FileName ) ; "ScriptName" ; "" ; "0" ) Matt So, If I have a trigger field, (ie a radio-button field), what kind of script step do I use to put the [ YourField & zippScript_PerformScript ( Get ( FileName ) ; "ScriptName" ; "" ; "0" ) ] calculation into? |
|
How does concatenating the trigger field with the zippScript do anything? |
#6
| |||
| |||
|
|
David Robins, MD wrote: On 7/27/05 4:53 AM, in article GAKFe.9864$ab2.9015@trndny07, "Matt Wills" I'm (AT) Witz (DOT) end> wrote: Matt Wills wrote: David Robins, MD wrote: I tried using zippscript, and cannot get it to work. I have a field with several radio button choices. I set one radio button and hit a button nearby to run a script that selects a layout based on the radio button choice. I want to use zippscript, so changing the radio button then runs the script without another mouse click. I treid a claculation to set a field with zippscript using the zippScript_PerformScript choice, naming the FileName, correctly, and the script I want to run, correctly. I get an error message saying it can't find the table. Any clues to what I am doing wrong? Is there a tutorial how to use this plugin? The info that comes from the author is very sparse. Thanks. It appears that one of his optional elements is not really optional. Using his demo file, I created a new trigger field and script to trigger. Starting with the trigger calc copied directly from his working example, I replaced the elements with my own, one by one. Replacing the field name then the script name worked. Replacing the ScriptParameter with "" worked. Replacing the ScriptControl with "" crapped out. Putting "0" in there worked. Matt I should have provided an example. This should work for you: YourField & zippScript_PerformScript ( Get ( FileName ) ; "ScriptName" ; "" ; "0" ) Matt So, If I have a trigger field, (ie a radio-button field), what kind of script step do I use to put the [ YourField & zippScript_PerformScript ( Get ( FileName ) ; "ScriptName" ; "" ; "0" ) ] calculation into? Not a script step. The field has to be set up to auto-enter the calculation. Open field definitions, select the field, and click Options. Under the Auto-Enter tab, click "Calculated Value". Enter the calculation in the "Specify Calculation" dialog. Click "OK". Before you close the Options dialog, UNCHECK "Do Not Replace Existing Value For Field" (you WANT it replaced). (See AutoEnteredField in the zippScript demo as an example.) How does concatenating the trigger field with the zippScript do anything? The way these things (zippScript and the far more powerful EventScript)work is to tack the trigger function onto the value of the field and re-populate the field with the concatenated value. If the field name is left out, the script will trigger, but the value you selected for the field is gone. There's no harm in leaving the field name out if you don't need to retain the value. Which brings up the question: if you are taking up a fixed amount of space with radio buttons AND if you don't retain the field value, why bother with a script trigger at all? You could simply place a group of regular buttons, each defined to do what you want, and be done with it. Instead of radio buttons, I use a dropdown menu with a default value for the field showing as the menu "name". Uses less space, but it does require a couple of extra steps in the script that's triggered. At the end of the triggered script, I set the field value back to the menu name I want to show. Because doing this triggers the script again, there has to be a trap at the beginning of the script to exit if the field value equals the menu name. Works like a charm, and I can put as many different menu selections as I need in the space of one button. Using Custom Values in the value list allows me to insert dividing lines if I want. Matt |
#7
| |||
| |||
|
|
David Robins, MD wrote: On 7/27/05 4:53 AM, in article GAKFe.9864$ab2.9015@trndny07, "Matt Wills" I'm (AT) Witz (DOT) end> wrote: Matt Wills wrote: David Robins, MD wrote: I tried using zippscript, and cannot get it to work. I have a field with several radio button choices. I set one radio button and hit a button nearby to run a script that selects a layout based on the radio button choice. I want to use zippscript, so changing the radio button then runs the script without another mouse click. I treid a claculation to set a field with zippscript using the zippScript_PerformScript choice, naming the FileName, correctly, and the script I want to run, correctly. I get an error message saying it can't find the table. Any clues to what I am doing wrong? Is there a tutorial how to use this plugin? The info that comes from the author is very sparse. Thanks. It appears that one of his optional elements is not really optional. Using his demo file, I created a new trigger field and script to trigger. Starting with the trigger calc copied directly from his working example, I replaced the elements with my own, one by one. Replacing the field name then the script name worked. Replacing the ScriptParameter with "" worked. Replacing the ScriptControl with "" crapped out. Putting "0" in there worked. Matt I should have provided an example. This should work for you: YourField & zippScript_PerformScript ( Get ( FileName ) ; "ScriptName" ; "" ; "0" ) Matt So, If I have a trigger field, (ie a radio-button field), what kind of script step do I use to put the [ YourField & zippScript_PerformScript ( Get ( FileName ) ; "ScriptName" ; "" ; "0" ) ] calculation into? Not a script step. The field has to be set up to auto-enter the calculation. Open field definitions, select the field, and click Options. Under the Auto-Enter tab, click "Calculated Value". Enter the calculation in the "Specify Calculation" dialog. Click "OK". Before you close the Options dialog, UNCHECK "Do Not Replace Existing Value For Field" (you WANT it replaced). (See AutoEnteredField in the zippScript demo as an example.) How does concatenating the trigger field with the zippScript do anything? The way these things (zippScript and the far more powerful EventScript)work is to tack the trigger function onto the value of the field and re-populate the field with the concatenated value. If the field name is left out, the script will trigger, but the value you selected for the field is gone. There's no harm in leaving the field name out if you don't need to retain the value. Which brings up the question: if you are taking up a fixed amount of space with radio buttons AND if you don't retain the field value, why bother with a script trigger at all? You could simply place a group of regular buttons, each defined to do what you want, and be done with it. Instead of radio buttons, I use a dropdown menu with a default value for the field showing as the menu "name". Uses less space, but it does require a couple of extra steps in the script that's triggered. At the end of the triggered script, I set the field value back to the menu name I want to show. Because doing this triggers the script again, there has to be a trap at the beginning of the script to exit if the field value equals the menu name. Works like a charm, and I can put as many different menu selections as I need in the space of one button. Using Custom Values in the value list allows me to insert dividing lines if I want. Matt |
#8
| |||
| |||
|
|
Which brings up the question: if you are taking up a fixed amount of space with radio buttons AND if you don't retain the field value, why bother with a script trigger at all? You could simply place a group of regular buttons, each defined to do what you want, and be done with it. Instead of radio buttons, I use a dropdown menu with a default value for the field showing as the menu "name". Uses less space, but it does require a couple of extra steps in the script that's triggered. Ahhh - I use the radio buttons because I place that field in a portal to |
#9
| |||
| |||
|
|
BTW, I did get zippscript to work for me last night, but then it stopped owrking and I can't get it going again. It isn't the plugin, because the demo works. I should look into EventScript. I have the plugin, just didn't know what is did. |
![]() |
| Thread Tools | |
| Display Modes | |
| |