Default Values

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

Postby roginald » Mon Jun 11, 2007 5:43 pm

I have a table set up to deal with items in an online store. Basic set up with fields:

title
description
link
price
quantity
category
...etc

My problem is that for some reason when I go to view an individual record, the 'Current Record' text is defaulting to the 'link' field. Also I am getting the 'link' and 'description' fields above the details listing. So inside the div with class 'dataface-sections-top' I have and

inside of which is the contents of the 'link' field. Right after that is a div with class 'dataface-view-description', with the 'description' field contents inside.

I am just looking around trying to understand the default listing behavior. Is this behavior due to some auto-magic Dataface does based on column titles? I followed the advice from another forum post and added a function to my delegate class:

function titleColumn() {
return "title";
}

which fixed the problem in the select list, but not elsewhere on the view page.

roginald
 
Posts: 24
Joined: Wed Dec 31, 1969 5:00 pm

Postby roginald » Mon Jun 11, 2007 5:46 pm

oops, sorry about that, so there should have been an 'h3' tag after the text:

'So inside the div with class 'dataface-sections-top' I have'

So bascially it should say:

So inside the div with class 'dataface-sections-top' I have an 'h3' tag
inside of which is the contents of the 'link' field.


Hope that makes sense.
roginald
 
Posts: 24
Joined: Wed Dec 31, 1969 5:00 pm

Postby roginald » Mon Jun 11, 2007 7:37 pm

OK, so after searching around I figured out that by adding 'title = 1' in the fields.ini file, I can change the behavior of the current record title in both the 'Current Record' text and the 'h3' tag above the Details listing. I assume that there is a section in the record templage for overriding the content above the 'Details' section, so I'll look into that.
roginald
 
Posts: 24
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Tue Jun 12, 2007 12:32 pm

Hi Roland,

I'm currently working on a How-to document for the View tab that is along the same lines as the recent List Tab How-to document.ÊÊ This will make a lot of things much more clear when it is done.
-Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 30 guests

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