Multiple views for People without infopath?

P

Patrick

Hello,
I have a form that I need to send to a few people who do not have infopath.
In that form I have 2 views. I have followed the MS suggested method for
making my form avalible in internet explorer and I have specified the
view1.xsl file in the template, but how do I add the second view? I dont want
the user to be able to change views of anything, I just want the the form to
show the view that it was saved as. Any suggestions?
 
K

Kalyan Reddy

Hi Patrick

Please use these methods to switch views on Save and also read the InfoPath
SDK documentaion for more Information.

<xsd:element name="switchViewAction">
<xsd:complexType>
<xsd:attribute name="view" type="xsf:xdViewName" use="required"/>
</xsd:complexType>
<xsd:keyref name="switchViewAction_view_keyref" refer="xsf:view_name_key">
<xsd:selector xpath="." />
<xsd:field xpath="@view"/>
</xsd:keyref>
</xsd:element>

<xsd:element name="closeDocumentAction">
<xsd:complexType>
<xsd:attribute name="promptToSaveChanges" type="xsf:xdYesNo"
use="required"></xsd:attribute>
</xsd:complexType>
</xsd:element>

I hope this is what you are looking for.
 
P

Patrick

Wow. Thanks for the response. Unfotunately I'm pretty new to infopath, and
I have only played around with template, manifest and the view files, so I'm
a little lost at this point. I did some reading of the sdk after I got your
post but I still need a little help as far as where to put your suggestion.
Can you elaborate a little as far as where it goes.
 

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