Hide a filter field

Developers
2010-08-26
2013-04-29
  • Hi Luca,
    I need to disable the visibility of a field. This field is located in a filter mask.
    I tried to do this:
    ObjectContext.getInstance().setFieldFeature(filter, ViewAspect.ASPECT_NAME, "regioneDaProvincia", ViewElementFeatures.VISIBLE, false);
    but it doesn't work.
    Thank you for your help.
    Regards,
    Mario

     
  • Hi Marco,

    the syntax of the command is right (in last versions of Roma you could also use a shorter version like Roma.setFieldFeature… ).
    Maybe you put the instruction in the wrong place (I guess it's in a constructor…): try to implement ViewCallback and put that line of code in the onShow() method

    regards

    Luigi

     
  • ops.. sorry…. Mario :-P