Page 1 of 1
Posted:
Mon Jun 11, 2007 5:43 pm
by roginald
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.
Posted:
Mon Jun 11, 2007 5:46 pm
by roginald
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.
Posted:
Mon Jun 11, 2007 7:37 pm
by roginald
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.
Posted:
Tue Jun 12, 2007 12:32 pm
by shannah
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