首次使用“发送”操作而不使用保存操作时,会警告用户“您可能会丢失一些未保存的更改”。如何关闭此警告?
示例流程和按钮:
<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>
答案 0 :(得分:2)
使用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>