Saveing without closing form

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
robleer
Posts: 285
Joined: Wed Jul 14, 2010 7:01 pm

Saveing without closing form

Post by robleer »

Hi,

I have a process which creates a large new object. I want to make it possible to save the data now and then, but in a process the save button directly saves AND closes the form. I understand why, but is it possible to save the data another way now and then without closing the form?
In fact I want a 'Save' button and a 'Save and Close' button.

TIA

Rob
Using 8.7 Professional 3025 on MySQL/Windows
BenHayat
Posts: 2749
Joined: Thu Dec 23, 2010 5:48 am
Location: Fla, USA
Contact:

Re: Saveing without closing form

Post by BenHayat »

robleer wrote: In fact I want a 'Save' button and a 'Save and Close' button.

TIA

Rob
This would be a great addition to Aware to have these two choices of Save buttons.
ACDC
Posts: 1142
Joined: Sat Jun 30, 2007 5:03 pm
Location: California, USA

Re: Saveing without closing form

Post by ACDC »

You can do this right now :

1. In the button setup of the form click "Show Close Button" and then rename it to "Save and Close"
2. On the "Other Settings" button click "Save the form Automatically when it is closed or abandoned"

and that's it, you get three buttons on the form
Save
Save and Close
Cancel
Attachments
close.PNG
close.PNG (31.24 KiB) Viewed 15024 times
save and close.PNG
save and close.PNG (61.34 KiB) Viewed 15024 times
BenHayat
Posts: 2749
Joined: Thu Dec 23, 2010 5:48 am
Location: Fla, USA
Contact:

Re: Saveing without closing form

Post by BenHayat »

ACDC wrote:You can do this right now :

1. In the button setup of the form click "Show Close Button" and then rename it to "Save and Close"
2. On the "Other Settings" button click "Save the form Automatically when it is closed or abandoned"

and that's it, you get three buttons on the form
Save
Save and Close
Cancel
How do you get "Save & Close" and "Cancel" on the same form, since they can be either or.
ACDC
Posts: 1142
Joined: Sat Jun 30, 2007 5:03 pm
Location: California, USA

Re: Saveing without closing form

Post by ACDC »

okay I will spell it out :

The SAVE behaves like a normal SAVE -- the form stays open
The Save and Close button , the form is saved by the form closing event activated by the save on close setting under other settings

and the CANCEL button just closes the FORM and abandons

Does that make sense ? I use this on all my forms and it works like a charm
ACDC
Posts: 1142
Joined: Sat Jun 30, 2007 5:03 pm
Location: California, USA

Re: Saveing without closing form

Post by ACDC »

I forgot to say, when you set it up like this the cancel button will appear on the form
robleer
Posts: 285
Joined: Wed Jul 14, 2010 7:01 pm

Re: Saveing without closing form

Post by robleer »

OK ! Thanks and I will try it!

Rob
Using 8.7 Professional 3025 on MySQL/Windows
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Re: Saveing without closing form

Post by tford »

Sweet! Never knew this combination of buttons could be created. The flexibility of AwareIM never ceases to amaze me!

Sample BSV:
AButtons.zip
(33.46 KiB) Downloaded 504 times
Save Buttons.png
Save Buttons.png (8.52 KiB) Viewed 15013 times
Tom - V8.8 build 3137 - MySql / PostGres
BenHayat
Posts: 2749
Joined: Thu Dec 23, 2010 5:48 am
Location: Fla, USA
Contact:

Re: Saveing without closing form

Post by BenHayat »

tford wrote:Sweet! Never knew this combination of buttons could be created. The flexibility of AwareIM never ceases to amaze me!

Sample BSV:
AButtons.zip
Save Buttons.png
Thanks Tony & Tom;
So, the trick is in the "Other settings" page "Save the form automatically" in order for Aware to display "Cancel", since I never used this option and wouldn't see it. In fact you won't even see it n "Preview".

And this what I always wanted on forms, 3 buttons.
Thank you again Tony & T (TT)
robleer
Posts: 285
Joined: Wed Jul 14, 2010 7:01 pm

Re: Saveing without closing form

Post by robleer »

Hello guys,

I tried, but I do NOT get those three buttons.

My object is used and shown in a process, would that be the reason that it does not work??

Does it only work if not used in a process??

Rob
Using 8.7 Professional 3025 on MySQL/Windows
robleer
Posts: 285
Joined: Wed Jul 14, 2010 7:01 pm

Re: Saveing without closing form

Post by robleer »

Did some testing with the sample provided by tford:

- in the sample the three buttons do indeed show up
- when the object is showed by a process, the buttons do NOT show up

Of course I need it to show up in a process.... :( :( :(

Rob
Using 8.7 Professional 3025 on MySQL/Windows
BenHayat
Posts: 2749
Joined: Thu Dec 23, 2010 5:48 am
Location: Fla, USA
Contact:

Re: Saveing without closing form

Post by BenHayat »

robleer wrote:Did some testing with the sample provided by tford:

- in the sample the three buttons do indeed show up
- when the object is showed by a process, the buttons do NOT show up

Of course I need it to show up in a process.... :( :( :(

Rob
Rob, I got the same issue. Most vital forms are shown from process and I don't get 3 buttons either. And certainly you don't get them in Mobile either.
hpl123
Posts: 2594
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Saveing without closing form

Post by hpl123 »

Nice,
Too bad it´s not working for all forms/form opens. This functionality can probably be created using the AwareApp functions though, see the userguide.
Henrik (V8 Developer Ed. - Windows)
ACDC
Posts: 1142
Joined: Sat Jun 30, 2007 5:03 pm
Location: California, USA

Re: Saveing without closing form

Post by ACDC »

Rob
Try and engineer your process to go into a VIEW mode, I am sure that will do the trick
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Re: Saveing without closing form

Post by tford »

Yes, you can indeed use VIEW in a process and have all three buttons appear. You just can't display them in a pop-up (or modal) form. If you direct the output to New Tab, all three buttons will appear.

See Example BSV:
AButtons.zip
(35.49 KiB) Downloaded 515 times
Tom - V8.8 build 3137 - MySql / PostGres
Post Reply