Displaying fields without values on View page of a record

A place for users and developers of the Xataface to discuss and receive support.

Displaying fields without values on View page of a record

Postby hhkilis » Mon Apr 16, 2012 5:26 am

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?
hhkilis
 
Posts: 15
Joined: Mon Feb 27, 2012 5:49 am

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

Postby shannah » Mon Apr 16, 2012 11:51 am

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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

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

Postby hhkilis » Wed Apr 18, 2012 6:18 am

Thanks.
hhkilis
 
Posts: 15
Joined: Mon Feb 27, 2012 5:49 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 2 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved