Announcement

Collapse
No announcement yet.

how to specify width and height for sc_redir in modal mode

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

  • how to specify width and height for sc_redir in modal mode

    Hi,

    I would like to use sc_redir(...,"_modal") and specify dimension of modal window
    how to do that ??

    I found this but doesn't work : sc_redir(control_app1,"","_modal","","400","220");

    Somebody know all parameters for sc_redir ???

    Thanks
    Nac

  • #2
    sc_redir(control_app1,glo_var1 = {somefield};glo_var2 = 'Something','modal',400,220);
    If you don't need parameters, it's just

    sc_redir(control_app1,,'modal',400,220);


    That's it.

    jsb

    Comment


    • #3
      Hi jsb

      I try it but didn't work !!!

      sc_redir(control_app1,,'modal',400,220) ----> doesn't open control_app1 but execute it automatically ??
      sc_redir(control_app1,,'_modal',400,220) ----> open control_app1 in a new tab


      I call the control_app from a blank_app, maybe it's why it doesn't work

      Thanks

      Comment


      • #4
        I call the control_app from a blank_app, maybe it's why it doesn't work
        No, should work. There must be something else in your code.

        jsb

        Comment


        • #5
          Originally posted by jsbinca View Post

          No, should work. There must be something else in your code.

          jsb
          i have a similar problem. in my case redirection with parameters works and opens a modal but the value for the width does not affect the result. The modal window does not change dimension in width.
          i am using this:

          if ({field} == 'value')
          {
          sc_redir(app_to_call, idpaziente={idpaziente}, 'modal',1200,600);
          }

          only the value 600 affects in height the result. The width remian always the same

          Thanks

          Comment

          Working...
          X