writing view.xsl outside of infopath

R

Richard

Infopath generates the view.xsl code,
Is there documentation to be able to write this outside of infopath ?

Also, if I have already an XSL that works, why should I not be able to use
it in infopath ?
 
G

Greg Collins [InfoPath MVP]

A little known featuer allows you to do what you are wanting: <xsf:view designMode="protected">. This will require a manual update to your manifest.xsf file.

This is from the IP help file:

You can create a custom view for a form template by creating an XSL Transformation (XSLT) (*.xsl) file that contains constructs that are not supported in design mode in InfoPath. To ensure that a view can't be opened in design mode (and to prevent data loss), set the designMode attribute in the form definition file (.xsf) to "protected". Protected views are shown in all views lists and users can be fill them out like all forms, but they cannot be opened in design mode. If the designMode attribute is specified as "normal" or is not specified, the view can be opened in design mode.


Example
The following is an example of the designMode attribute as it is used in the view element:

<xsf:view name="View" caption="View" designMode="protected">
<xsf:mainpane transform="view1.xsl"/>
...
</xsf:view>
--
Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com


Infopath generates the view.xsl code,
Is there documentation to be able to write this outside of infopath ?

Also, if I have already an XSL that works, why should I not be able to use
it in infopath ?
 
R

Richard

Greg,

thanks very much , that is what I was looking for...

now I want to be able to put some standard or custom controls on this view ?
I am thinking that I should do this before I turn the view to protected. ?
but my problem is that I need to place the controls in midst of my xsl code
! .
 
G

Greg Collins [InfoPath MVP]

Generate the controls in a temp view and then copy the XSL from that view into your protected view. There might be instances where this doesn't work... but in general you will probably never hit those.

--
Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com


Greg,

thanks very much , that is what I was looking for...

now I want to be able to put some standard or custom controls on this view ?
I am thinking that I should do this before I turn the view to protected. ?
but my problem is that I need to place the controls in midst of my xsl code
! .
 

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