Announcement

Collapse
No announcement yet.

[SOLVED]SC_BLOCK_DISPLAY() is not working under ONLOAD form event

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

  • [SOLVED]SC_BLOCK_DISPLAY() is not working under ONLOAD form event

    I'm trying to make work this piece of code on a FORM (single record form)
    under ONLOAD event:

    //// facturacion libre?

    if ({facturacion_libre} == 1) {

    sc_block_display (facturacion_libre,'on');
    //sc_error_message("facturacion libre on");
    //sc_error_exit();

    } else {

    sc_block_display (facturacion_libre,'off');
    //sc_error_message("facturacion libre off");
    //sc_error_exit();
    }

    If I enable sc_error_messages, I get "facturacion libre off", how ever
    script case server not hide the block.


    I use a similar code under onClick ajax event, and sc_block_display
    work perfect.

    I think this is a Bug.
    I'm using last SC version 6.00.0033

    thank you
    andres.
    --
    Doing my first steps with ScriptCase.
    What a wonderful tool...!

  • #2
    Hello,

    I have reported this issue to our bugs team for further testing.

    regards,
    Bernhard Bernsmann

    Comment


    • #3
      See the scope of the macro in our documentation, the onload event is not available for this macro.

      http://downloads.scriptcase.com.br/d..._block_display
      Best Regards,
      John L. Santos

      Bug Tracker Team
      NetMake - IT Solutions

      Comment

      Working...
      X