Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Dynaic Dropdown from another form

20 views
Skip to first unread message

timo nisula

unread,
Nov 15, 2024, 12:23:07 PM11/15/24
to Orbeon Forms
Hi,

I try to get data from another form using Dynamic Dropdown but I didn't get to work.

I have made simple "modules" form which have just two fields
Screenshot 2024-11-14 110212.png

Then I try get serial number form that form to another form but what I need to define?
Screenshot 2024-11-14 110550.png

If I create HTTP Service I get all data fetched (response is below)
====
<documents search-total="2">
    <document created="2024-11-13T13:17:45.101Z" last-modified="2024-11-13T13:17:45.101Z"
              name="50fceaf6d6c4a203e71c8f8177155034b1b10f1b"
              draft="false"
              operations="*">
        <details>
            <detail path="section-1/type">type2</detail>
            <detail path="section-1/serial">54321</detail>
        </details>
    </document>
    <document created="2024-11-13T13:17:25.610Z" last-modified="2024-11-13T13:17:25.610Z"
              name="579c21d07b37d5d7be3e368bf9a69012b2dfaed5"
              draft="false"
              operations="*">
        <details>
            <detail path="section-1/type">type1</detail>
            <detail path="section-1/serial">12345</detail>
        </details>
    </document>
</documents>
===

Alessandro Vernet

unread,
Nov 19, 2024, 12:06:35 AM11/19/24
to orb...@googlegroups.com
Hi Timo,

The search API expects a POST, not a GET, so you need to use a service and an action. The service would look like this, testing with the Bookshelf demo form:

Screenshot 2024-11-18 at 9.02.10 PM.png

And the action:

Screenshot 2024-11-18 at 9.02.46 PM.png

You'll let me know if this works for you!

-Alex

--
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 orbeon+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/orbeon/6ce31575-dc16-484d-944e-d27c0e649d8dn%40googlegroups.com.

timo nisula

unread,
Nov 20, 2024, 11:58:32 AM11/20/24
to Orbeon Forms
Thanks, this will work for me.

Alessandro Vernet

unread,
Nov 20, 2024, 12:50:16 PM11/20/24
to orb...@googlegroups.com
Perfect Timo, and thank you for the confirmation!

-Alex
Reply all
Reply to author
Forward
0 new messages