在未先保存的情况下使用 'send' 操作会导致有关数据丢失的警告。我怎样才能关闭这个警告?
Using the 'send' action without saving first causes a warning about data loss. How can I turn this warning off?
使用 'send' 操作而不先使用保存操作时,用户会收到警告 "You may lose some unsaved changes." 如何关闭此警告?
示例流程和按钮:
<property as="xs:string" name="oxf.fr.detail.process.send-to-myservice.*.*">
send(
uri="http://localhost:80/myservice",
content="xml",
replace="none"
)
then success-message(message="Save Successful")
recover error-message(message="Save Failed")
</property>
<property as="xs:string" name="oxf.fr.detail.buttons.*.*">
send-to-myservice
</property>
使用set-data-status(status="safe")
。下面的例子。 Docs are here.
<property as="xs:string" name="oxf.fr.detail.process.send-to-myservice.*.*">
set-data-status(status="safe")
then send(
uri="http://localhost:80/myservice",
content="xml",
replace="none"
)
then success-message(message="Save Successful")
recover error-message(message="Save Failed")
</property>
<property as="xs:string" name="oxf.fr.detail.buttons.*.*">
send-to-myservice
</property>
使用 'send' 操作而不先使用保存操作时,用户会收到警告 "You may lose some unsaved changes." 如何关闭此警告?
示例流程和按钮:
<property as="xs:string" name="oxf.fr.detail.process.send-to-myservice.*.*">
send(
uri="http://localhost:80/myservice",
content="xml",
replace="none"
)
then success-message(message="Save Successful")
recover error-message(message="Save Failed")
</property>
<property as="xs:string" name="oxf.fr.detail.buttons.*.*">
send-to-myservice
</property>
使用set-data-status(status="safe")
。下面的例子。 Docs are here.
<property as="xs:string" name="oxf.fr.detail.process.send-to-myservice.*.*">
set-data-status(status="safe")
then send(
uri="http://localhost:80/myservice",
content="xml",
replace="none"
)
then success-message(message="Save Successful")
recover error-message(message="Save Failed")
</property>
<property as="xs:string" name="oxf.fr.detail.buttons.*.*">
send-to-myservice
</property>