Announcement

Collapse
No announcement yet.

dinamic sc_field_display params

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

  • dinamic sc_field_display params

    Hi dear scriptcase users:

    When i want to hide a field in a grid, i use the next code in onScriptIni event and work ok:

    sc_field_display('field_name', 'off');



    But, when i want use a var in place of direct string, the function dont work correctly (do nothing)

    Ex:

    $arr_privilegios = array('field_name');

    foreach($arr_privilegios as $priv)
    sc_field_display($priv, 'off');


    This is a bug??

    Thank all people and sorry about my primitive english.

  • #2
    Hello,

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

    regards,
    Bernhard Bernsmann

    Comment


    • #3
      I believe I had a similar problem and moving the code to OnLoad / OnAppInit worked...

      Comment


      • #4
        This still doesn't work 4 years later...

        Comment

        Working...
        X