Announcement

Collapse
No announcement yet.

Stopping further execution of system modules in chain

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Stopping further execution of system modules in chain

    I have a form with action like this
    HTML Code:
    <input type="hidden" name="Action" value="ACTION1,ACTION2">
    Also, I have two corresponding system module handling these 2 actions.

    how can I stop further processing of actions in action chain from the module for ACTION1?

    According to merchant.mv in LSK, it looks like I can stop it by returning -1 from system module.
    HTML Code:
    <MvFUNCTIONRETURN VALUE = -1>
    But it does not work.

    It's been confirmed that:
    • ACTION1 is processed before ACTION2 is processed
    • <MvFUCTIONRETURN> statement is executed.

    How can I stop it?

    Thank you.
    Daniel Kim, Compu-Mate
    Developer

    #2
    One, why use Action1,Action2 for a single input? Second, returning -1 from a system module just exits That module. If you want a subsequent module (your own hopefully) just set g.Action to something your second module will understand and can use in a conditional.
    Bruce Golub
    Phosphor Media - "Your Success is our Business"

    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
    phosphormedia.com

    Comment


      #3
      You are right. It only exits that module.
      That solves the problem.

      Thank you.
      Daniel Kim, Compu-Mate
      Developer

      Comment

      Working...
      X