![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
I found that it would be really useful to have a way to execute a script automatically every time I enter a layout. FM doesn't seem to have this feature. I am already using buttons to go to layouts, but the problem is I can have many occurences of the same table and I don't want to write a script for each one (go to related object from that occurence and execute my desired script). I looked for some plugins to do that, and I only found one ("Events 4.0", http://www.wmotion.com/s.nl/sc.2/cat...2/it.I/id.8/.f , $129/user). Does anybody know of a free plugin that provides this feature? If not, then I would like to write one. I know C++ very well, I have FMD7, and if I can write this plugin, I will provide it free of charge (with a donate option). I just need some directions/guidelines as to how to write this kind of plugin or where to find documentation. Thanks Adrian |
#4
| |||
| |||
|
|
For FM7 there is a free plugin named "EventScript" and available at www.softs4humans.com. |
|
We miss it (free) for FMP6 and below. If you were ready to go on and write one, many people would be grateful, including me. |

|
For technical advices on writing FM plugin, you may see the Troi lists at http://www.troi.com/lists/index.html. |
#5
| |||
| |||
|
|
Remi-Noel Menegaux wrote: For FM7 there is a free plugin named "EventScript" and available at www.softs4humans.com. Yes.. but it doesn't seem to do what I need. It only performs scripts triggered by calculations. We miss it (free) for FMP6 and below. If you were ready to go on and write one, many people would be grateful, including me. I'm not sure what it takes to write FM6 (or older) -compatible plugins. If I find out, I'll try ![]() For technical advices on writing FM plugin, you may see the Troi lists at http://www.troi.com/lists/index.html. |
#6
| |||
| |||
|
|
That's not a solution, just a workaround. The "go to related record" script step doesn't even allow me to use a calculation to specify the table (occurence), |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
In short, you will need to take advantage of the fact that these plug-ins are triggered by calculations. Unstored calculations want to refresh themselves whenever they need to display. Put one on a layout and you will find that it wants to update itself whenever you switch records or layouts. |
#9
| |||
| |||
|
|
Actually, I can. I select the table occurence and FM is giving me a list of layouts for all occurences of that table. I select a layout for another occurence and it works. |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |