Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Macro "Call A Rad Routine"

Macro "Call A Rad Routine"

Macro "Call A Rad Routine"

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.



RE: Macro "Call A Rad Routine"

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?

RE: Macro "Call A Rad Routine"

I have just found out.....

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



RE: Macro "Call A Rad Routine"

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close