Page 1 of 1

Displaying fields without values on View page of a record

PostPosted: Mon Apr 16, 2012 5:26 am
by hhkilis
Hi,

I want some fields always be displayed on View page of a record (action=view) whether those fields have been set values or not.

What may be the solution?

Re: Displaying fields without values on View page of a recor

PostPosted: Mon Apr 16, 2012 11:51 am
by shannah
The default view page (as you noticed) only shows fields that have a value. Unfortunately there isn't currently a directive to override this. A workaround would be to implement the fieldname__htmlValue() method in the delegate class to return some string value. As long as this is nonempty, the value will be displayed.


-Steve

Re: Displaying fields without values on View page of a recor

PostPosted: Wed Apr 18, 2012 6:18 am
by hhkilis
Thanks.