Announcement

Collapse
No announcement yet.

sc_link not working with variables

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

  • sc_link not working with variables

    Hello,

    Using 7.01.0002, after the update I'm unable to use sc_link macro with a variable. Here's my code:

    sc_link(link,$request_type,,"Save Parts" ,"modal", $height, $width);

    Modal window opens showing the following error:
    The requested URL /scriptcase7/app/ILCM/$request_type/save_part.php was not found on this server.

    The correct link should be:
    /scriptcase7/app/ILCM/save_part/save_part.php


    These code was working before the update, please fix asap.



    Regards,
    Misael.
    Last edited by Misael; 08-05-2013, 08:42 PM.

  • #2
    Try:
    Code:
    
    [request_type] = 'save_part';
    sc_link(link, [request_type], , "Save Parts", "modal", $height, $width);
    (With request_type as global variable, not as local ... See the documentation for sc_link)
    Best regards: - Reinhard -

    I use ScriptCase 8 Enterprise Edition, Version 8.(latest)

    Comment


    • #3
      Read in the documentation is really nonsense ... Since I made ​​a mistake. But, it works for me with a link to a .pdf file only if I pass the file name including the path to a global variable.

      Code:
      [sURL] = "/myPath/myFilename.pdf";
      sc_link (Status, [sURL], , $sBeleg, "_blank");
      This is not working:

      Code:
      $sURL = "/myPath/myFilename.pdf";
      sc_link (Status, $sURL, , $sBeleg, "_blank");
      I think, this is a bug ...
      Best regards: - Reinhard -

      I use ScriptCase 8 Enterprise Edition, Version 8.(latest)

      Comment


      • #4
        I just tried using a global variables and didn't work. I can deal with bugs in new features, but this is not the case.

        Comment


        • #5
          Hello,

          Issue reported to our bugs team.

          regards,
          Bernhard Bernsmann

          Comment

          Working...
          X