Can I launch a Macro from an IF statement in a Bus. Rule?

I am trying to write IF logic in a business rule to run a macro based on a Planning form-driven variable. However, my rule will not validate. For example:
IF([variable] == 'Budget')
%MYBUDGETMACRO(parm1, parm2, parm3);
ELSE
%MYOTHERMACRO (parm1, parm2, parm3);
ENDIF
Is it possible to do this? Thank you -

I wrote this used-to-make-sense-but-now-just-tests-a-concept code (coming to a blog post soon, oooh, I know you can hardly wait): <--Sarcasm
FIX("Local", [varGlblYear], [varGlblScenario], [varGlblVersion])
     /*     Call macro to do focused Aggregation     */
     "Local"
          IF(@ISMBR("Local"))
               "Local" = #Missing ;
          ENDIF
ENDFIX /*     FIX("Local", [varGlblYear], [varGlblScenario], [varGlblVersion])     */And it validated just fine.
So I created a one line macro that has this code:
"Local" = Missing ;And then called it in an IF statement:
FIX("Local", [varGlblYear], [varGlblScenario], [varGlblVersion])
     /*     Call macro to do focused Aggregation     */
     "Local"
          IF(@ISMBR("Local"))
               %mcrConsHBRLocalEqualsMissing()
          ENDIF
ENDFIX /*     FIX("Local", [varGlblYear], [varGlblScenario], [varGlblVersion])     */HBR won't even let me validate it but throws an:
Encountered " <MACRO> "%
mcrConsHBREqualsMissing "" at line 19, column
35
blah
blah
blah
If I get rid of the IF statement and just do this:
FIX("Local", [varGlblYear], [varGlblScenario], [varGlblVersion])
     /*     Call macro to do focused Aggregation     */
     "Local"
          %mcrConsHBRLocalEqualsMissing()
ENDFIX /*     FIX("Local", [varGlblYear], [varGlblScenario], [varGlblVersion])     */It still fails.
So then I wrote this:
FIX("Local", [varGlblYear], [varGlblScenario], [varGlblVersion])
     /*     Call macro to do focused Aggregation     */
     %mcrConsHBRLocalEqualsMissing()
ENDFIX /*     FIX("Local", [varGlblYear], [varGlblScenario], [varGlblVersion])     */Sucess!!! Boil in bag! (That's a Network54 joke, btw.)
So the issue isn't the IF statement, it's the calc block. You cannot insert macros into calc block statements. And since a calc block statement is required for using IF, a macro can't be used within an IF.
Regards,
Cameron Lackpour

Similar Messages

  • Can only launch editor once from elements 11, then have to re boot.

    Can only launch editor once from Elements 11, then must re boot.

    Please launch Editor once directly from its exe keeping Ctrl+Alt+Shift keys pressed. Delete the settings file when prompted.
    See if this helps.
    The exe can be located at - C:\Program Files (x86)\Adobe\Photoshop Elements 11\PhotoshopElementsEditor.exe
    Thanks
    Andaleeb

  • After SN install can't launch Disk Utility from external drive

    I recently upgraded 10.5.9 to SN on my white Macbook. First I used Carbon Copy Cloner to clone the old drive onto the replacement drive in an external enclosure. Then I swapped drives so that the new drive is now the internal drive and the old drive is in the enclosure. I then upgraded the OS on the internal drive via SN installer on DVD.
    Now when I start from the external drive in OS X 10.5.9 and try to launch Disk Utility from this drive I get a weird error message that "Disk Utility can't be launched because it's incompatible with this architecture." The only things I can think of is that Snow Leopard installs something that globally effects all perhipherals (like new disk drivers?), or that there is something in the enclosure's USB bridge which is causing this, or that installing Snow Leopard breaks the PRAM for older versions of OS X. Tech support for the enclosure vendor tells me there is nothing in the enclosure's USB that would cause this. Any insights into what's happening appreciated.

    Thanks for response. Ah, that's it. I was trying to launch it from the applications folder I had dragged to the dock, which was done while running Snow Leopard. That's why (duh!) all the application icons were slashed out. : |

  • Can I launch MS Access from labVIEW?

    I would like to programmatically lauch MS Access and compact a database. Or perhaps I could set the table to compact on exit and exit it programmatically through labVIEW. Can I launch and exit a Microsoft application using labVIEW?

    Yes, you can use ActiveX for that, to start, you should place an Automation open in the diagram, select activeX class (Access application) and from there, follow wiring property and invoke nodes to do almost anything with Access.
    Hope this helps

  • [Cinnamon] Can't launch cinnamon-settings from menu.

    Hi all,
    I've just put together a fresh install with gdm and cinnamon, but I can't launch the cinnamon-settings widget from the settings button (on the bottom left)
    From what I've gathered in my forum / wiki / google searches, this isn't too uncommon. However, unlike in those cases, I can launch the settings widget from the console. I can also navigate through it, except it doesn't actually *do* anything when I change settings. This is somewhat annoying, as I want to theme the desktop / set up my multi-head configuration properly / change the background.. you get the picture.
    This is what I have installed:
    [wfaithfull@mjolnir ~]$ pacman -Ss | grep cinnamon
    community/cinnamon 2.4.8-1 [installed]
    community/cinnamon-control-center 2.4.2-3 [installed]
    community/cinnamon-desktop 2.4.2-1 [installed]
    community/cinnamon-menus 2.4.1-1 [installed]
    community/cinnamon-screensaver 2.4.2-1 [installed]
    community/cinnamon-session 2.4.3-2 [installed]
    community/cinnamon-settings-daemon 2.4.3-1 [installed]
    community/cinnamon-translations 2.4.4-1 [installed]
    Can anybody point me in the right direction?
    Last edited by amicable (2015-05-11 14:00:23)

    Wow, this was stupid. I hadn't used cinnamon before - I thought it looked a lot like GNOME.. and guess what, it IS GNOME. that's why the settings don't work. My problem is that GDM picked the wrong session. Jesus.

  • Can I launch a DVD from keynote?

    I'm doing a presentation and as part of the presentation I need to show a video.  The video is on DVD.  Is there a way to launch the video directly from keynote without having to minimize keynote and open DVD player and go through all the steps to start the video?

    Apparently, there's no such option. One reason is, when you launch a DVD, the Keynote presentation will have to give way to another application (DVD Player, or whatever you use to play back DVDs). So, there's no way to seamlessly integrate a DVD videostream into a Keynote slideshow.
    However, you can convert the DVD into a video file using a free converter, for instance HandBrake (http://handbrake.fr/downloads.php). Then you just insert the video inside the Keynote slide, and set it to play back on click.
    There are a few advantages to converting the DVD into a video-file: 1) you can convert only a fragment that is needed; 2) you have full control over the quality and file-size; 3) the video will be integrated into the presentation, so once it is over, you can proceed with the next slide without minimizing Keynote.
    Note: when converting the DVD video with HandBrake, use MP4 as output format and Mpeg4 encoder. An easy way to check if the result is correct is to open the resulting file with QuickTime. If QT plays it back and it's OK, then the file will also be played back in Keynote

  • Can I launch an application from keynote?

    We have a proprietary application that we want to launch directly from our presentation - can't seem to do it from a hyperlink...any other ways to launch?

    Two options for you:
    Make sure the other app is open before you start the Keynote Presentation and then press command-tab to change to it. Then you can command-tab back to your Keynote Presentation.
    In the Keynote Preferences>Slideshow, make sure that you have the Allow Exposé, Dashboard and others to use screen checked and then you can use Exposé to switch apps.

  • Can't launch Photoshop CC from my dock

    Earlier I uploaded a twain plug in from a link I got from the Adobe site. On the site it said that if I had trouble with the plug in to delete it which I did because it didn't work. After that, Photoshop wouldn't launch from the dock. It would only launch if I dragged a Photoshop document onto the icon. I looked on Adobe again to try and fix that problem and it said that signing out of Creative Cloud and signing back in would fix that problem, which I did. I tried it and Photoshop launched that time but when I tried it later it wouldn't open again. Again, only when I drag a photoshop document onto it. How can I fix this?

    Have you tried dragging the PS icon out of the dock and replacing it?

  • Can't launch Photoshop items from the desktop

    After recently upgrading to Tiger, I can't open an item in Photoshop after double-clicking or dragging onto the Photoshop icon in the dock. I have to go into Photoshop first to open it. What a pain!
    I'm sure this is an easy fix, but obviously I don't know it....
    H-E-L-P M-E.......
    G4 desktop   Mac OS X (10.4.8)  

    First off, sounds to me the Photoshop icon in the dock was made from an alias, and not the actual application. If the alias lost its way to the original file at anytime, that can break the connection on the Dock. Remove Photoshop from the Dock while it is closed and reopen the application directly, and click and hold the Photoshop icon in the Dock, and select the menu item in the Dock for Keep in Dock. That at least should fix it so dragging an item to Photoshop will launch it if Photoshop recognizes the file format.
    Note, if your open/save dialog box is open in Photoshop, it won't allow you to open documents from the Finder. Only when a file is already open, or just the application is open with no user clickable dismissable dialogs are open, will files launch from the Finder.
    If none of these applies, you may need to change the Open/With settings by control-mouse clicking the said document and select Open With... Navigate to the Photoshop application itself in the file browser that comes up, and check off the checkbox "Always Open With".

  • Can not launch swing application from Java Web Start 1.6.0_37

    I have a dynamic generated jnlp file from a serlvet. When I used Java Web Start to start the swing application, it failed. The exception showed
    com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://xxxx.xx.com:9080/dilpipweb/Test-1.0-SNAPSHOT.jar
         at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
         at java.util.concurrent.FutureTask.run(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    I used janela to validate the generated jnlp file. It was valid. I also checked the tomcat access log, it showed that the Test-1.0-SNAPSHOT.jar file was accessed correctly (with a 200 return code).
    Can anyone help me what was the problem?
    Thanks,

    Hi.
    I got a different problem. My Corba application works in JRE 1.6, but doesn't works in JRE 1.5.X. I got an unexpected error and my console shows:
    getSubjectX500Principal NoSuchMethodError: java.lang NoSuchMethodError
    #### Java Web Start Error:
    #### null
    Can you help me?

  • Can you Launch External Applications From Within InDesign Ebook?

    Hi all,
    I was wondering if it is possible to open an external application from within an ebook (created with InDesign) e.g. click on a link and have an external ssh client open up for instance?
    Thanks in advance for any advice.
    Regards,
    RG

    It's possible to include hyperlinks in an InDesign file and export them in an EPUB file. Since I'm not familiar with working with SSH clients (in fact, I just had to Google it to have a clue what you're talking about), is this something that can be invoked in a standard URL format? If so, you could probably include it.
    The next issue is whether the link would work. The link couldn't be used directly in any eBook reader I know of, but at least the iBook on an iPad or iPhone would switch to to Safari to let you follow a URL to its destination. But I don't think that's possible on most eBooks.

  • Can I launch an application from website?

    I am trying to design a website, which I do not want to publish on the web, just on my own computer.  I would like to establish hyperlinks to applications and documents, which when clicked open the applcation or document itself.  Idelly, I would like the website I design to become my desktop, giving me customised access to applications and files plus a splash of humour and widgetry.  I doubt that os x is going to let me use a webpage as a desktop, but, if I run safari on opening, is there a way that I can achieve my ambition?  All thoughts and suggestions welcome.  Best. John Whiteman

    Funny, alot of Lion users would like to go the other way. Launchpad is an iOSesk application launcher built into lion.
    to go about coding such a monstrosity is over my head

  • Can't launch system preferences from apple menu

    Hello,
    My System Preferences opens from the dock and from Finder, but not from the Apple menu.
    Here's the read out from Console:
    Mar 8 17:14:01 david-cains-computer crashdump[10475]: System Preferences crashed
    Mar 8 17:14:01 david-cains-computer crashdump[10475]: crash report written to: /Users/davidcain/Library/Logs/CrashReporter/System Preferences.crash.log
    I tried erasing com.apple.systempreferences.plist and relaunching Sys Pref from the Apple menu but without success.
    My spouse has a second account on the computer. Everything works on her side.
    Many thanks
    David
    null

    HI David,
    *"I tried erasing com.apple.systempreferences.plist and relaunching Sys Pref from the Apple menu but without success."*
    I'm not sure what you mean by "erasing" .. did you drag that .plist file to the Trash, empty the Trash and reboot?
    Quit System Preferences.
    /Users/YourName/Library/Caches*. Drag this file to the Trash. com.apple.preferencepanes.cache* empty the Trash and reboot your Mac. See if you can access System Preferences from your Apple Menu now.
    If that didn't help, check out this thread. http://discussions.apple.com/thread.jspa?threadID=551561
    Carolyn

  • My Dock is gone and I can not launch an application from my desktop.

    I need to recover my dock and be able to launch files from my desktop. What happened and how do I restore it.
    Also, when I attach my power cord the light turns orange and the battery icon shows that it is not chargine.
    This all happened when I opened my screen this morning. I tried shutting down and it does not fix it.

    Hi.
    To recover your Dock, try this: From the Finder Menu bar, Go/Home/Library/Preferences and move com.apple.dock.plist to the Desktop
    Then, from he Finder window go to Macintosh HD (or whatever your startup disk is named)/System/Library/CoreServices and doble click the Dock application.
    Good Luck.
    MacMini G4 1.25GHz 1GB   Mac OS X (10.4.9)  

  • Can't open INDD files from Bridge or Windows Explorer

    I upgraded from CS2 to CS4 in Jan 2009, but didn't uninstall CS2 until yesterday because the program file sizes seemed weird: CS4 was listed as less than 6Mb in the Add/Remove Programs list, while CS2 was shown to be many times that size (gigabytes?). I called support within the first month and was told it would be okay to uninstall CS2, but the tech could not explain the difference in program sizes, so I left it in place until yesterday. Now, neither Bridge nor Windows Explorer recognizes InDesign files. I can still launch the program from the Start menu and Desktop shortcut, and I can open files from within the program. But Bridge says the default  for opening an INDD file is Acrobat...or Photoshop, Firefox or IE. Windows says the same. The INDD icon is no longer displayed in Windows Explorer either. It seems to have vanished from my system. I have tried to re-associate InDesign files with the program through Windows Explorer numerous times to no avail. Operating System: Windows XP Professional on a Dell GX270.
    Is the only solution here to uninstall & reinstall InDesign? Any comments or suggestions are appreciated.

    Hi,
    I'm having the same problem, with two exceptions:
    1. A previous version of InDesign has never been installed on this PC before we got CS4.
    2. It tries to open the files in Acrobat (7.0), and then this message pops up:
    Acrobat could not open "....INDD" because it is either not a supported file type or because it has been damaged...  To create a PDF document go to the ...
    This is incredibly frustrating.  The only way I can open files is to go through the InDesign "open file" command inside the program.  I cannot open any Bridge files at all (same problem, opens in Acrobat).
    I cannot chose the file type from the file association list as it does not show up on the list no matter how many times I search and choose it from my drive to associate.
    ... Is this a registry problem, maybe?

Maybe you are looking for