What does mode attribute do?

R

ridawg

I'm trying to create a form that works similar to the Asset template but
works with a database. So far I almost have it working but have had to
extract my template files in order to make some changes.

As I was comparing my files to the files I extracted from the Asset template
I stumbled across an attribute called mode. It is in the manifest.xsf and is
located in the <xsf:fileProperties> for all the views and is set to 5 for all
of them. It is also in view_1.xsl and view_3.xsl files but not the
view_2.xsl. In both the view_1 & view_3 files it is set to _5 in the
<xsl:apply-templates select="at:assets" mode="_5" /> and <xsl:template
match="at:assets" mode="_5"> . I know the mode attributes need to match in
order to work but I have no idea what mode 5 or _5 is.

I'm having some minor problems with my views so that's why I'm asking.
Basically my view 1 is a Search page against the database and it returns a
list of records (but only 5 fields & a Details button that links to "Details
View") that match the search criteria. No problems with this.

The problem I'm having is when I click the Details button I go to the Detail
view (all the fields are displayed correctly) but my tempActiveKey is visible
but shouldn't be and instead of displaying just the record I selected it
displays all the records in the Database. So I'm trying to figure out why and
thought this mode attribute might have something to do with it.

Any help is greatly appreciated!
 
R

ridawg

Greg,

Thanks for the info. I thought that was what it was doing but wasn't sure.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top