Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro "Call A Rad Routine"

Status
Not open for further replies.

ChrisWalker90

Programmer
Sep 16, 2003
10
0
0
US
Hi Guys

I'm running SC 5.0.3 on Win2000 mapped to SQL2000.

We are trying to auto escalate incidents to 2nd line when an alert stage 3 is reached.

To do this I want to run a macro that calls a post.fc rad routine that creates an eventin record (pmu) this updates the incident record and runs the correct formatctrl etc (instead of directly from expressions in a macro which does not).

However I can't seem to get the macro to run correctly, I know it's not the link record etc as I've run the post.fc in the formatctrl subroutines and it works perfectly.

The Error Is....

Cannot evaluate expression (post.fc,start.1)
Bad arg(2) oper = (post.fc,start.1)
Cannot evaluate expression (post.fc,start.1)
Unrecoverable error in application: macro.execute on panel exit.error while
running macro id 164
Unrecoverable error in application: macro.runner on panel decide.exit

Name - Auto Escalate To 2nd Level
Applies When - Incidents are Saved
Macro Type - Call A RAD Routine
Macro Condition - true (for testing purposes)

Set Parameters

Application to Call - post.fc

Parameters - file, name, prompt
Values - $file, dod.auto.2nd.level, number

Can you actually run a post.fc app from a macro?? If so do you have any idea what I'm doing wrong.

Thanks

Chris
 
I thibnk that maybe the record is still locked when the macro kick in with his update of the same record.
You could check whether this lock exist and them may delay your post.

Dit you try it through the Document Engine?
 
I have just found out.....

You cant call some RAD apps from macros....
post.fc is one of them.

Cheers

Chris
 
You can use a Macro to call a Script. The Script can call the Rad Routine.

If the Macro that you are calling the Rad Routine updates the incident directly then it will usually cause a lock and the ticket will not save. A way around that is to run a schedule that calls a script.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top