Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 321
  • Last Modified:

Cancelling an Edited Document

The Document is being edited, on press of "Cancel" button, the document should be closed without popping the message "Do you want to save changes to the Document", .
In R5. the command is FIELD SaveOptions := 0, but i want to know an equivalent command in R4.6, b'coz the above syntax is not supported.
0
chikkon
Asked:
chikkon
  • 2
  • 2
  • 2
  • +3
1 Solution
 
sloeberCommented:
Why not ?
SaveOptions exist also in R4.6
Just make a hidden text field called SaveOptions with Default Value "0"
The  0 must be written between "".
or Field SaveOptions := "0"

That's all
Try it

Greets,
Sloeber

0
 
chikkonAuthor Commented:
The above answer has been tried but still the problem persists.

Greets,
Chikkon
0
 
chikkonAuthor Commented:
Mr.Sloeber, plz create a dummy form in 4.6 with 1 filed and on button called cancel. when the document is run, enter some text in the field and then press CAncel. The code in the Cancel button is as follows:
FIELD SaveOptions := 0;
@Command([FileCloseWindow])

But still i receive a Lotus message called "Do u want to save the Document".
I do not wish to see this message, after editing the Docuemnt & then pressing Cancel.
B'coz the purpose of Cancel is to abort the process.

Chikkon
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
sloeberCommented:
you must wright "0" and not 0
and don't do a command but do a postcommand
this is the solution

FIELD SaveOptions := "0";
@PostedCommand([FileCloseWindow])


Greets,
Sloeber
0
 
snocrossCommented:
Listening...

You could also use:

FIELD SaveOptions := SaveOptions;
@SetField("SaveOptions";"0");
@PostedCommand([FileCloseWindow])


0
 
Jean Marie GeeraertsCommented:
If you use the close-method in LotusScript this will also prevent the "Do you want to save the document" message.
0
 
ArunkumarCommented:
hey guys are you around ?
0
 
snocrossCommented:
What's up?
0
 
Jean Marie GeeraertsCommented:
Just got back from a short holliday. So what's up ?
Have you tried the doc.close method ?
0
 
ZvonkoSystems architectCommented:
chikkon,
No comment has been added lately (929 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to sloeber http:#6194701
Please leave any comments here within 4 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

Zvonko
EE Cleanup Volunteer
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!

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