dbTalk Databases Forums  

execute script on entering layout

comp.databases.filemaker comp.databases.filemaker


Discuss execute script on entering layout in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
aditsu@gmail.com
 
Posts: n/a

Default execute script on entering layout - 06-13-2005 , 04:06 AM






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


Reply With Quote
  #2  
Old   
aditsu@gmail.com
 
Posts: n/a

Default Re: execute script on entering layout - 06-13-2005 , 04:33 AM






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), so I suppose I would need to use an if for each one
- not much better than writing separate scripts. Besides, I may forget
about the script and just set a "go to layout" or "go to related
record" for one of the n buttons that go to that layout (or even worse:
I already have n buttons in various places, that go to that layout
without a script, and I need to add scripts for each one of them).

Adrian


Reply With Quote
  #3  
Old   
Remi-Noel Menegaux
 
Posts: n/a

Default Re: execute script on entering layout - 06-13-2005 , 05:53 AM



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.
Remi-Noel

------------ Original messge ---------------
<aditsu (AT) gmail (DOT) com> a écrit :
Quote:
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




Reply With Quote
  #4  
Old   
aditsu@gmail.com
 
Posts: n/a

Default Re: execute script on entering layout - 06-13-2005 , 06:20 AM



Remi-Noel Menegaux wrote:
Quote:
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.

Quote:
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

Quote:
For technical advices on writing FM plugin, you may see the Troi lists
at http://www.troi.com/lists/index.html.
Thanks, I'll check it out

Adrian



Reply With Quote
  #5  
Old   
Howard Schlossberg
 
Posts: n/a

Default Re: execute script on entering layout - 06-13-2005 , 09:54 AM



The free scripting plug-in for FM6 is CallScript, available from
costello_ryan.tripod.com. There is not much in the way of examples with
CallScript, but you do get examples with EventScript.

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.

aditsu (AT) gmail (DOT) com wrote:
Quote:
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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Pro Solutions Los Angeles, California

FileMaker 7 Certified Developer
Associate Member, FileMaker Solutions Alliance


Reply With Quote
  #6  
Old   
42
 
Posts: n/a

Default Re: execute script on entering layout - 06-13-2005 , 12:50 PM



In article <1118655224.225672.188920 (AT) g14g2000cwa (DOT) googlegroups.com>,
aditsu (AT) gmail (DOT) com says...
Quote:
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),
Um... the relationship you go to dictates the table occurrence. You
can't go to a related record in one table occurence but have it display
in another.


Reply With Quote
  #7  
Old   
aditsu@gmail.com
 
Posts: n/a

Default Re: execute script on entering layout - 06-13-2005 , 01:29 PM



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.

Adrian


Reply With Quote
  #8  
Old   
aditsu@gmail.com
 
Posts: n/a

Default Re: execute script on entering layout - 06-13-2005 , 01:31 PM



Howard Schlossberg wrote:
Quote:
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.
That means cluttering the database with even more "programming"
fields.. but if it actually works, then I think it's definitely worth
it! I'll try it, thanks for the explanation.

Adrian



Reply With Quote
  #9  
Old   
42
 
Posts: n/a

Default Re: execute script on entering layout - 06-13-2005 , 02:50 PM



In article <1118687346.486529.248270 (AT) g47g2000cwa (DOT) googlegroups.com>,
aditsu (AT) gmail (DOT) com says...
Quote:
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.
Ok... you meant layout (you originally said Table Occurence). Yeah, that
works, and makes sense.


Reply With Quote
  #10  
Old   
aditsu@gmail.com
 
Posts: n/a

Default Re: execute script on entering layout - 06-14-2005 , 01:44 AM



Well, I go to the same layout from various table occurences, that's why
I said that.

Adrian


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.