?
Solved

Save Updated field in OpenDocument

Posted on 2005-05-05
4
Medium Priority
?
330 Views
Last Modified: 2013-12-18
This is my problem.  I have an embedded view (web by the way) that displays current applicants for our company.  Clicking their name opens their application.  The link is the id + ?OpenDocument.  I would like to have the ability to change a field on their application easily.  There is a status field, contains some options for their application.  I can change the value easily enough, but I cannot save the form once its changed.  I get this error:

HTTP Web Server: Lotus Notes Exception - @Function is not valid in this context

So I take it to mean I can't use @Command([FileSave]) in this situation.  Is there a way around it without opening it with ?EditDocument  ?
0
Comment
Question by:DawG25
  • 2
  • 2
4 Comments
 
LVL 13

Expert Comment

by:CRAK
ID: 13940253
You make it sound as if you are opening the document in read-mode ("?opendocument"), not edit-mode ("?editdocument").
In readmode @Command([FileSave]) isn't a valid command.
But I can't see how you get to edit fields in readmode!?
0
 

Author Comment

by:DawG25
ID: 14191629
Maybe it doesn't actually get changed.  Is there a way I can change it.  And yes. I use ?OpenDocument.
0
 
LVL 13

Accepted Solution

by:
CRAK earned 500 total points
ID: 14192117
Sorry, I have overread your "?opendocument" statement in the question itself.
That means your document is in read-mode, where @Command([FileSave]) doesn't apply. Designer help says it all:
"A document must be open in edit mode"

How did you set this status field in editmode? Did you simply generate it in HTML? Bear in mind that Domino is not expecting you to send data in this situation!

Now to get around this issue, I can think of a few approaches. Forcing the document in edit-mode is the most common one of course.

Second, you could try @SetDocField to write the field to the doc's back-end, based on its unique id.

Either way, you'd need at least author access to the document.

As an alternative, you might trigger an agent (through URL). That way -if I remember well- it's not YOU applying the change, but the agent's signer (thus the one requiring author acdcess to the doc).

If that's causing trouble, you could decide to go for a dirty appoach: generate responses to the documents and have a scheduled agent to move some of the fields from the response to its parent and delete the response.

In fact all you need is to understand why an error occurs and be creative in finding a way around.
0
 

Author Comment

by:DawG25
ID: 14192425
@SetDocField worked great.  Thank you.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
Integration Management Part 2
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question