Publishing/saving single view?

L

~Lenny

I have a form with multiple views. The user is prompted to select a "view" to
fill out. I want to be able to publish/save just the view they filled out &
igrnore the others. Any ideas or samples? Thanks!
 
A

Andrew Watt [MVP - InfoPath]

I have a form with multiple views. The user is prompted to select a "view" to
fill out. I want to be able to publish/save just the view they filled out &
igrnore the others. Any ideas or samples? Thanks!

Lenny,

I am finding it difficult to understand what you want to do - whether
it is the data or the design related to the view that interests you.

If you want to save just the data from one view that may or may not be
possible depending on the form template design.

If you want to copy the design of a view then simply use Ctrl+A to
select all the controls in a view and then paste to a new view in a
new form template. That captures the look but very likely doesn't
capture the functionality. You would need to hook up a new data source
and possibly make other changes.

Or simply open the form template and delete all the other views and
re-save the form template might be closer to what you want. That is
likely to keep the design and (at least some of the) functionality but
if the form template functionality depends on other views (why else
would they be there?) then something may not work as before.

Can you help me better understand what it is you want to save/publish
and why?

Andrew Watt
MVP - InfoPath
 
L

~Lenny

Sorry. Here's the usage scenario:

(1) user opens "master" form from SharePoint
(2) user has option to fill in 1 of 3 views
(3) user only enters data for "view 2" and selects to save form data
(3) using the OnSubmitRequest even or OnClick event for form button, I would
like to save the view data ("view 2" only) to SharePoint (and possibly a
database)

So my question: Is there a way to just publish/save the data from a single
view as a new form?
 
A

Andrew Watt [MVP - InfoPath]

Sorry. Here's the usage scenario:

(1) user opens "master" form from SharePoint
(2) user has option to fill in 1 of 3 views
(3) user only enters data for "view 2" and selects to save form data
(3) using the OnSubmitRequest even or OnClick event for form button, I would
like to save the view data ("view 2" only) to SharePoint (and possibly a
database)

So my question: Is there a way to just publish/save the data from a single
view as a new form?

I wonder whether you might be better offering the user a choice of the
three forms from a SharePoint Form Library.

Andrew Watt
MVP - InfoPath
 
L

~Lenny

That is the direction I am heading (using 3 different forms)... the client
has it stuck in their head that it *has* to be 1 form with a selection
process inside the form to a view, but they also do not want to spend the
money or time to write custom code. I can not see a solution inside of
InfoPath without writing code to accomplish the task of publishing data from
a single view.

Thanks for your help.
 
A

Andrew Watt [MVP - InfoPath]

It is *possible*, depending on the design of the form template, to
submit after filling in only 1 view of 3 but it very often won't be
wise. The effect will, I think, depend on what default values are or
are not set in the different views and whether any database columns
will choke if they get null values.

Of course the reliability of default/empty values is another
consideration depending on what data is to be collected. It could
cause problems of reliability in reports further down the track too.

Andrew Watt
MVP - InfoPath
 

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