Trigger script from delete action on scrollable list

8 views
Skip to first unread message

orbeonnoob

unread,
Jun 18, 2020, 11:53:35 AM6/18/20
to Orbeon Forms
What I am trying to accomplish, I have a scrollable list and currently on value change it is executing a refresh script. Is it possible that when a record is deleted that I can also call the refresh script? 

Below is the current code.

<xh:td>
    <xf:select1 id="VENDOR_ONBOARDING_FUND_NUMBER-control" appearance="compact"
                bind="VENDOR_ONBOARDING_FUND_NUMBER-bind">
        <xf:label ref="$form-resources/VENDOR_ONBOARDING_FUND_NUMBER/label"/>
        <xf:hint ref="$form-resources/VENDOR_ONBOARDING_FUND_NUMBER/hint"/>
        <xf:alert ref="$fr-resources/detail/labels/alert"/>
        <xf:itemset ref="$form-resources/VENDOR_ONBOARDING_FUND_NUMBER/item">
            <xf:label ref="label"/>
            <xf:value ref="value"/>
        </xf:itemset>
        <xf:action ev:event="xforms-value-changed">
            <xxf:script>callJQueryRefresh()</xxf:script>
        </xf:action>
    </xf:select1>
</xh:td>
<xh:td/>

Alessandro Vernet

unread,
Jun 19, 2020, 9:09:18 PM6/19/20
to orb...@googlegroups.com
Hi,

What do you mean exactly by "when a record is deleted"? The list of vendors
seems to come from your resources. Are you saying that this list can change
after the form is loaded? I am wondering it you're maybe looking for some
`xxforms-itemset-changed` event, which doesn't exist yet.

‑Alex

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

Alessandro Vernet

unread,
Jun 30, 2020, 2:09:22 AM6/30/20
to orb...@googlegroups.com
Hi orbeonnoob, if you got a chance to get back to this one, have found how to
deal with removed items, or have more information to share about use case
per my previous message?
Reply all
Reply to author
Forward
0 new messages