Group:  Other Microsoft Office Products ยป microsoft.public.infopath
Thread: Save At Open

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Save At Open
JR 10.07.2006 20:37:02

basically, i want a form to be saved every time it is opened.

my first reaction was to go to:
tools -> form options -> open and save
but the option to save is not under the open behavior rules (nor is the
option to write your own code).

any ideas ??

thanks!
JR










RE: Save At Open
Ray 10.07.2006 21:56:02
Apologies if this is a silly question, but isn't the form already saved when
it's first opened? i.e. no changes have been made to the original document.
If you're running scripts when the file is opened, can't you just add a
savefile command to the end of the last of these to run?

I'm sure there is more to this, but if you can say what that is, you're more
likely to get a helpful answer.

Ray

"JR" wrote:

[Quoted Text]
>
> basically, i want a form to be saved every time it is opened.
>
> my first reaction was to go to:
> tools -> form options -> open and save
> but the option to save is not under the open behavior rules (nor is the
> option to write your own code).
>
> any ideas ??
>
> thanks!
> JR
>
>
>
>
>
>
>
>
>
>
RE: Save At Open
JR 11.07.2006 18:30:01

Ray, sorry, i suppose i should have been more specific.

i have a field, called "Popularity," that increments whenever the form is
opened...therefore, if the user does not save that form, the new value is
lost.

how would i be able to run scripts when the form is open?? do you know !?

i appreciate your response, Ray.

JR



"Ray" wrote:

[Quoted Text]
> Apologies if this is a silly question, but isn't the form already saved when
> it's first opened? i.e. no changes have been made to the original document.
> If you're running scripts when the file is opened, can't you just add a
> savefile command to the end of the last of these to run?
>
> I'm sure there is more to this, but if you can say what that is, you're more
> likely to get a helpful answer.
>
> Ray
>
> "JR" wrote:
>
> >
> > basically, i want a form to be saved every time it is opened.
> >
> > my first reaction was to go to:
> > tools -> form options -> open and save
> > but the option to save is not under the open behavior rules (nor is the
> > option to write your own code).
> >
> > any ideas ??
> >
> > thanks!
> > JR
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
RE: Save At Open
Ray 17.07.2006 10:05:02
I think what you're looking for is under Tools -> Programming -> On Load
Event...

You'll need to write a short script to save the document and I'm afraid I'm
no expert on JScript, though I suspect there is a single command that can be
used. I hope this isn't too late, I've just been away for a short hoiday!

Ray

"JR" wrote:

[Quoted Text]
>
> Ray, sorry, i suppose i should have been more specific.
>
> i have a field, called "Popularity," that increments whenever the form is
> opened...therefore, if the user does not save that form, the new value is
> lost.
>
> how would i be able to run scripts when the form is open?? do you know !?
>
> i appreciate your response, Ray.
>
> JR
>
>
>
> "Ray" wrote:
>
> > Apologies if this is a silly question, but isn't the form already saved when
> > it's first opened? i.e. no changes have been made to the original document.
> > If you're running scripts when the file is opened, can't you just add a
> > savefile command to the end of the last of these to run?
> >
> > I'm sure there is more to this, but if you can say what that is, you're more
> > likely to get a helpful answer.
> >
> > Ray
> >
> > "JR" wrote:
> >
> > >
> > > basically, i want a form to be saved every time it is opened.
> > >
> > > my first reaction was to go to:
> > > tools -> form options -> open and save
> > > but the option to save is not under the open behavior rules (nor is the
> > > option to write your own code).
> > >
> > > any ideas ??
> > >
> > > thanks!
> > > JR
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net