Jump to content
Server Maintenance This Week. ×

Troi Activator Plug-In Question


presley

This topic is 6360 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi,

I have Troi activator plug-in. I am using the simple "daily activate a script".....in the demo. I have transferred all fields/script steps etc into the file and machine that will be activating the script. All buttons/fields/ etc seem to be working normally except the script does not execute.

I am wondering if I have a file path problem in the "Schedule It" script .....maybe some help please

The tutorial has: Get(FileName); "triggerscript";

"123", "abc"

I have entered:

"filename.fp7; "NAME OF SCRIPT"; "123"; "ABC"

and it does not work

I have tried:

"path applications/path FM Server 8/path FM Server 8 data/ path FM server 8 Databases/filename.fp7"; "NAME OF SCRIPT"; "123"; "ABC"

and it does not work

Should I be using the Get(FileName) function?...or is it the path?...or?....have anything to do with FM Server 8?..any help would be appreciated

Jim E

Link to comment
Share on other sites

Hi Jim;

That function in Activator needs a few options passed to it.

The syntax is:

Actr_ScheduleEvent(

"-addSingleEvent" ;

Timestamp(Get(CurrentDate) ;

Get(CurrentTime) + 3 ) ;

Get(FileName);

"Trigger Script 1";

1214232 ;

"blahblah"

)

The meaning of each line is as follows:

"-addSingleEvent" queue an event

Timestamp(Get(CurrentDate) ; On what day will it run

Get(CurrentTime) + 3 ) ; at what time will it run

Get(FileName); From which file will it run

"Trigger Script 1"; Which script in that file will it run

1214232 ; This is a unique id to ident the event

"blahblah" This can be any text

)

The parameter for filename was a lot more important in the old days when Filemaker used seperate files to store tables. You would use this feature to tell Troi which file you were going to execute the script in. For most of what people do these days though, its all performed in one file.

The important thing is; the plugin wants to know the name of the file that filemaker currently has opened. Therefore; the parameter you want to pass should either be the name of the file itself OR you can use the get(filename) function to return it automatically.

Ive used This plugin a lot in my life; so I'm happy to help out with it if you get stuck.

If you're comfortable with posting your file up here i can have a look at it for you.

Cheers

Edited by Guest
Link to comment
Share on other sites

Steve,

Thanks for your offer for help, this thing is driving me nutty! It still is not

working. Most of what you said I had already figured out and tried, but let me

explain what I have got here and maybe you can point me in the right direction

The installs:

- I have Filemaker Server Advanced 8.04 with a DB named Employees.fp7 being

served

- On the same puter I have a client version of Filemaker 8.5 Advanced

- I have the Troi Activator installed, configured, and working in the Filemaker

Advanced 8.5 folder

Troi Activator

- I am using the Troi Activator "everyday example" that comes with the Troi

Activator package

- I have tried EVERY file path/name permutation known in the universe and it

does nothing

- I transferred all of the "everyday example" code into my Employees.fp7 file

and just tried the following combination

Get(Employees.fp7) ........."IMPORT NEW RECORDS" (name of the script)

I also cleared out all past events, scheduled a new event, with date and time

......nothing happens!

- All aspects of the Troi Plug-In are working---except it does not TRIGGER A

SCRIPT

My Questions:

- Do I need the Troi activator plug-in installed into the FILEMAKER SERVER

folder on the puter?

- I have tried installing it into the Server folder ---I see it in Filemaker

Server Admin Plug-Ins tab ----bit it is giving me

a "not loaded" message even tho I have loaded it and checked the "loaded"

check-box

- I have Troi installed in the Filemaker ADVANCED 8.5 CLIENT ----that should

work--right?

I mean if I fire -up client advanced and then go to the remote Employees.fp7

file....the plug-in should work ...right?

- Is there something in the way I have PATH configured that is still possibly

wrong.... should I use Employees instead of Employees.fp7 ?

arrrggghhhhh...this is driving me nuts...should be working

CODE:

I do not change any code except for the exaple below .....

In the "schedule it" script (part of the Troi Activator- everyday script

example) I have:

Set Field [this::gErrorCode; Actr_ScheduleEvent("-addSingleEvent";

Timestamp(this::gNextDate ; this::gDailyTriggerTime) ; "Get(Employees.fp7)";

"IMPORT NEW RECORDS" ; "" ; "";)]

Jim E

Hi Jim;

That function in Activator needs a few options passed to it.

The syntax is:

Actr_ScheduleEvent(

"-addSingleEvent" ;

T

Timestamp(Get(CurrentDate ) ;

Get(CurrentTime) + 3 ) ;

Get(FileName);

"Trigger Script 1";

1214232 ;

"blahblah"

)

The meaning of each line is as follows:

adSingleEvent" queue an event

Timestamp(Get(CurrentDate ) ; On what day will it run

Get(CurrentTime) + 3 ) ; at what time will it run

Get(FileName); From which file will it run

"Trigger Script 1"; Which script in that file will it run

1214232 ; This is a unique id to ident the event

"blahblah" This can be any text

)

The parameter for filename was a lot more important in the old days when

Filemaker used seperate files to store tables. You would use this

feature to tell Troi which file you were going to execute the script in. For

most of what people do these days though, its all performed in one file

Link to comment
Share on other sites

This topic is 6360 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.