Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / January 2006

Tip: Looking for answers? Try searching our database.

writing view.xsl outside of infopath

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Richard - 16 Jan 2006 18:31 GMT
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 ?
Greg Collins [InfoPath MVP] - 17 Jan 2006 00:55 GMT
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>
Signature

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 ?
Richard - 17 Jan 2006 20:11 GMT
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  
! .

> 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.
>
[quoted text clipped - 14 lines]
> Also, if I have already an XSL that works, why should I not be able to use
> it in infopath ?
Greg Collins [InfoPath MVP] - 18 Jan 2006 00:52 GMT
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.

Signature

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  
! .

"Greg Collins [InfoPath MVP]" wrote:

> 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.
>
[quoted text clipped - 9 lines]
>       ...
> </xsf:view>
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.