NetTalk Central

Author Topic: hide field in browse  (Read 3250 times)

mark

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • Email
hide field in browse
« on: February 22, 2012, 06:23:59 AM »
Dear,
How can I hide fields in a Browse? The user manual does not has the same interface as the Nettalk 6 interface. (We are using Clarion 8)
Kind regards,
Kristof

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
Re: hide field in browse
« Reply #1 on: February 22, 2012, 06:36:06 AM »
The browse field template has conditions for include and hide. These both control the entire column.
If all you need to do is hide the field, you can do this with some conditional css on the condition use the class "nt-hidden" that uses display:none
For the row conditions, remember that INCLUDE controls whether the HTML is generated for the page and HIDE merely sets a style to hide the contents from the user.

HTH
Chris
Real programmers use copy con newapp.exe

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: hide field in browse
« Reply #2 on: February 23, 2012, 12:35:28 AM »
Hi Kristof,

Can you expand on your question a bit please.
Are you wanting to remove the whole column, or just some cells inside the column?

For example, in some situations it's good to remove a whole column, say the employee's "salary" column because the user doesn't have rights to it.

In other cases, some rows might display the contents of a cell or not. For example, temporary employees have a blank salary cell, but permanent employees have their salary on the row.

Which one are you trying to do?

cheers
Bruce


mark

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • Email
Re: hide field in browse
« Reply #3 on: February 23, 2012, 12:45:46 AM »
Hi,
Depending on the customer they want to show the 'actual stock' or not.  This is a parameter in an ini-file.
The whole column is displayed or not. It is not on cell-level.
Kind regards,
Kristof

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: hide field in browse
« Reply #4 on: February 23, 2012, 05:43:17 AM »
Each column has a "column condition" setting in the template.
If you set something here, that will determine if the column is included or not.

cheers
Bruce