Trigger script from delete action on scrollable list

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

Trigger script from delete action on scrollable list

orbeonnoob
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/>

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/f69affc5-1e5f-401c-b4b6-92eea8ebd53bo%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Trigger script from delete action on scrollable list

Alessandro  Vernet
Administrator
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/

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1592615356205-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Trigger script from delete action on scrollable list

Alessandro  Vernet
Administrator
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?

‑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 view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1593497360240-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet