Announcement

Collapse
No announcement yet.

[SOLVED] sc_redir()

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

  • [SOLVED] sc_redir()

    Is this supposed to display the application being called?
    The GuiGuy
    ... from Down Under

  • #2
    Re: sc_redir()

    sc_redir (apl, parm1; parm2; ..., target,error)


    Macro to redirect the processing to other application or URL.
    If the redirecting application uses parameters, these must be passed in the following format:
    1) After the name of the application, use the comma delimiter (,) then
    2) = (equal sign) .
    3) More than one parameter, must be separated by semicolon (
    4) The target determine which application is opened (default=_self): _self, _parent or _blank.
    5) Optional parameter to set error messages redirection in the application: "F" redirects if there is error in the application (default value) and "E" does not redirect.



    Ex1: Application without parameters nor target
    if ([glo_usr] == "test")
    {
    sc_redir(aplx.php);
    }

    Ex2: Application with parameters and without target.
    if ([glo_usr] == "test")
    {
    sc_redir(aplx.php, parm1={var_test}; parm2="xxx");
    }

    Ex3: Application without parameters and with target
    if ([glo_usr] == "test")
    {
    sc_redir(aplx.php, "", "_parent");
    }

    Ex4: Application with parameter and target.
    if ([glo_usr] == "test")
    {
    sc_redir(aplx.php, parm1={var_test}; parm2="xxx", "_blank");
    }

    Ex5: URL
    if ([glo_usr] == "test")
    {
    sc_redir(http://www.my_page.com);
    }

    Comment


    • #3
      Re: sc_redir()

      You can read about macros in Webhelp>>Appendix>>Programming>>Scriptcase Macros

      Best Regards,

      Vítor Jamil

      Comment


      • #4
        Re: sc_redir()

        Thanks for the replies, guys.

        However, I do read the instructions before posting for help.

        What was happening was sc_redir(myapp.php) wasn't taking me anywhere.

        I re-installed everything for the umpteenth time. It now works.

        I have to confess, there are a couple of things in SC that are driving me crazy.

        Thanks

        The GuiGuy
        ... from Down Under

        Comment


        • #5
          Re: [SOLVED] sc_redir()

          [quote author=GuiGuy link=topic=1403.msg4310#msg4310 date=1269631244]
          Is this supposed to display the application being called?
          [/quote]

          Thank You for your post guiguy.
          and to all who replies.
          much appriciated.
          Regards,
          Ghulma

          Comment

          Working...
          X