Save as draft: Draft column not showing in summary

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Save as draft: Draft column not showing in summary

Neenu Jacob
Hi Alex

   For achieving 'Save as Draft' functionality, I set the property as

<property as="xs:string" name="oxf.fr.detail.buttons.*.*" value="save-draft
save-final"/>

After clicking on save draft button the message is showing as "Draft saved
Successfully ".  But in summary page there is no column named draft and when
editing the form no alert message is showing like 'start from scratch'. Also
database is not updating(Draft field not changing from 'N' to 'Y'). Please
clarify how can I achieve the real functionality?

Regards,
Neenu Jacob


--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Save as draft: Draft column not showing in summary

Alessandro  Vernet
Administrator
Hi Neenu,

Yes, this is a bit confusing! The `save-draft` button/process doesn't have
anything to do with the autosave functionality. It is a regular save, but
without performing validation. This is useful for cases where you have a
"save" and a "submit" button, you want the data to be valid on submit, but
not necessarily on save, which is used to save work in progress by
authenticated users, before they submit the data. So I don't think that
`save-draft` is what you're looking for.

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Save as draft: Draft column not showing in summary

Neenu Jacob
Hi,

So you are telling that only for 'autosave' functionality these features are
available. I need to know whether these features (as shown in the picture)
available for 'save-draft' too. Both 'autosave' and 'save-draft' is needed
in our application.


<http://discuss.orbeon.com/file/t375510/Capture.png>

Regards,
Neenu Jacob

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Save as draft: Draft column not showing in summary

Alessandro  Vernet
Administrator
Hi Neenu,

I am not following: what feature are you talking about? What are you trying
to do?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Save as draft: Draft column not showing in summary

Neenu Jacob
Hi Alex,
   
I am doing save as draft functionality. I saved a form as draft and then I
go to summary page there is no column is showing it as draft. Also when I
open that form for edit, there is no message shown as  'Open Saved Draft'.
Please help.

Regards,
Neenu Jacob

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Save as draft: Draft column not showing in summary

Alessandro  Vernet
Administrator
Hi Neenu,

To clarify this situation, we are thinking of making the following changes:

1. In the summary page, instead of using the label "Draft", use "Autosaved".
2. In the dialog you mentioned, in the button, instead of "auto-saved
draft", use "autosaved document"; in the title, instead of "Found draft" use
"Found autosaved document".

Do things make more sense with those changes in mind? The autosave
functionality is completely different, and has nothing to do with the "save
draft" button. The latter only saves without performing validation.

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Save as draft: Draft column not showing in summary

Alessandro  Vernet
Administrator
Hi Neenu,

Also, out-of-the-box the `save-draft` process is defined as follows:

<property as="xs:string"  name="oxf.fr.detail.process.save-draft.*.*">
    save
    then new-to-edit
    then success-message("save-draft-success")
    recover error-message("database-error")
</property>

If you want it to mark the document in the database as "draft" (i.e. like
autosave does), you can add override this property as follows:

<property as="xs:string"  name="oxf.fr.detail.process.save-draft.*.*">
    save(draft = "true")
    then new-to-edit
    then success-message("save-draft-success")
    recover error-message("database-error")
</property>

For more on the `save` action, see:
https://doc.orbeon.com/form-runner/advanced/buttons-and-processes/actions-form-runner.html#save

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet