Topic
  • 3 replies
  • Latest Post - ‏2013-06-24T08:19:42Z by PangSMS
PangSMS
PangSMS
24 Posts

Pinned topic Why HATS screen show Input field with non-display attribute

‏2013-06-22T12:25:36Z |

i got a subfile screen which contain some non-display row.

the problem is, input field with non-display attribute showed on the screen.

so how can i hidden it

thanks in advance.

 

  • GerardoMG
    GerardoMG
    33 Posts

    Re: Why HATS screen show Input field with non-display attribute

    ‏2013-06-24T06:45:02Z  

    Try something like:

    <%
    HostScreen hs =((TransformInfo)request.getAttribute(CommonConstants.REQ_TRANSFORMINFO)).getHostScreen();
    boolean isDisplay =hs.isDisplay(hs.ConvertRowColToPos(row, col));
     
    if(isDisplay){ %>
         <!-- Your field here -->
    <%}%>

    (Edit: Changed is isProtected to isDisplay. For obvious reasons.)

    /G

    Updated on 2013-07-01T07:33:59Z at 2013-07-01T07:33:59Z by GerardoMG
  • GerardoMG
    GerardoMG
    33 Posts

    Re: Why HATS screen show Input field with non-display attribute

    ‏2013-06-24T07:02:21Z  
    • GerardoMG
    • ‏2013-06-24T06:45:02Z

    Try something like:

    <%
    HostScreen hs =((TransformInfo)request.getAttribute(CommonConstants.REQ_TRANSFORMINFO)).getHostScreen();
    boolean isDisplay =hs.isDisplay(hs.ConvertRowColToPos(row, col));
     
    if(isDisplay){ %>
         <!-- Your field here -->
    <%}%>

    (Edit: Changed is isProtected to isDisplay. For obvious reasons.)

    /G

    Oh, ok. On a subfile...
    Then I don't know.

    I have my own subfile component. It sets a style and replaces all data with bullets on protected fields. You could try to override the subfile component and remove the data from the generated HTML based on the screen attributes. Doesn't seem very elegant thought.

    Sorry.
    /G

    Updated on 2013-06-24T07:08:38Z at 2013-06-24T07:08:38Z by GerardoMG
  • PangSMS
    PangSMS
    24 Posts

    Re: Why HATS screen show Input field with non-display attribute

    ‏2013-06-24T08:19:42Z  
    • GerardoMG
    • ‏2013-06-24T07:02:21Z

    Oh, ok. On a subfile...
    Then I don't know.

    I have my own subfile component. It sets a style and replaces all data with bullets on protected fields. You could try to override the subfile component and remove the data from the generated HTML based on the screen attributes. Doesn't seem very elegant thought.

    Sorry.
    /G

    Dear GerardoMG

       Thanks anyway, at least I know how to identify the field attribute which solve me another screen.