• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 780
  • Last Modified:

InfoPath form in SharePoint 2007 library opens as read-only without warning

Hi Experts
We are using MOSS2007 Standard Edition and Office 2007.
I have a SharePoint library containing both Excel Documents and InfoPath forms, which requires check in and check-out.
If a user clicks on the URL of an Excel document without first checking it out, he receives a warning that it is read-only and a check-out button.
If he does the same with an InfoPath 2007 form, it simply opens in Read-only mode without warning (except for the not very visible "[Read-Only]" after the file name at the top of the screen). It is then possible to edit the form, but not to save the edits
Is there any way to make a check-out-and-edit button which is shown when the URL is clicked? Or at least to make a more visible warning that the form is read-only.
I also want to send the URL link in a workflow, but when the recipient clicks on it, it just opens as read-only (Is it possible to make the URL link to check out and edit?)
Thanks
Trevor
0
TRArter
Asked:
TRArter
  • 3
  • 2
1 Solution
 
meindertjanwCommented:
You can make a more visible warning by defining a rule when the InfoPath form opens. The rule fills a field when it detects that the form is read only. It writes a value to a field that is visible on the form only when it contains data.

Style it and you have a more clear status message for the users of the form.
You can also offer the user the option to save the form local. Then they don't have to type all the data in the form again. They only have to upload the form to the document library again.

Good luck!
0
 
meindertjanwCommented:
You can make a more visible warning by defining a rule when the InfoPath form opens. The rule fills a field when it detects that the form is read only. It writes a value to a field that is visible on the form only when it contains data.

Style it and you have a more clear status message for the users of the form.
You can also offer the user the option to save the form local. Then they don't have to type all the data in the form again. They only have to upload the form to the document library again.

Good luck!
0
 
TRArterAuthor Commented:
Good idea, but how do I detect the read-only status or property? As far as I can see, rules can only check field valĂșes
0
 
TRArterAuthor Commented:
Here is the form code to do it (C#)!

public void FormEvents_Loading(object sender, LoadingEventArgs e)
        {
            //MessageBox.Show("Loading form...");
            if (this.ReadOnly)
            {
                MessageBox.Show("Form is read only. Form is not checked out or open by another user");
            }
        }

The URL link can be done by sending a link to start another workflow, which checks out the document

Thanks for your suggestion

Incidently, I still don't see how to do the above using rules as you suggest, but for me it's ok to use code.

Trevor
0
 
TRArterAuthor Commented:
I don't know if it can be done with rules as suggested, but it gave me the idea for the code solution
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now