XBL Component

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

XBL Component

Vinod Sherikar

                I am using orbeon 4.6.2 version. I have a custom xbl component which has drop down control with drop down meta data read from the xml file. PFA xbl component.

Is it possible to fire a REST call from XBL code to load the drop down data? Can you help me with the XBL syntax to fire REST call?

 

Thanks,

Vinod S

 

--
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].

ASA-selector.xbl (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

XBL Component

Vinod Sherikar

                I am using orbeon 4.6.2 version. I have a custom xbl component which has drop down control with drop down meta data read from the xml file. PFA xbl component.

Is it possible to fire a REST call from XBL code to load the drop down data? Can you help me with the XBL syntax to fire REST call?

 

Thanks,

Vinod S

 

--
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].

ASA-selector.xbl (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: XBL Component

Erik Bruchez
Administrator
Vinod,

In order to do this, you probably need to add a local model and instance to your XPL component. Then, you can load the instance by using the `src` attribute:

    <xbl:implementation>
        <xf:model>
            <xf:instance id="itemset" src="/path/toservice"/>
        </xf:model>
    </xbl:implementation>

or you can add an `xf:submission` that loads the itemset when the component initializes, upon the `xforms-model-construct-done` event.

Your selection control ken then referred to the itemset:

    <xf:itemset ref="instance()/ASA">
        <xf:label ref="label"/>
        <xf:value ref="value"/>
    </xf:itemset>

-Erik