We are updating the requirements for Community registration. As of 7/21/21 all users will be required to register a phone number with their My Alteryx accounts. If you have already registered, you will be prompted on your next login to add your phone number.

Dev Space

Customize & extend the power of Alteryx. SDKs, APIs, custom tools, and more!

HTML SDK - accessing field information for more than one input anchor

amks
5 - Atom

Adding drop down lists to the HTML UI that allow you to select dynamically from the list of fields in an input can be done using Alteryx.Gui.Manager.getIncomingFields(). For example the below will generate a array of fields from the first input defined in the XXXConfig.xml

 

fieldNames = window.Alteryx.Gui.Manager.getIncomingFields().map(function (field) {return field.strName})
 
I'm however unable to find a way to get field information from the other inputs defined in XXXConfig.xml. Does anyone know a way to access this information?
 
Thanks in advance.
2 REPLIES 2
joshuaburkhow
14 - Magnetar
14 - Magnetar

Have you dug into these a bit? https://help.alteryx.com/developer/current/HTML/Examples.htm?tocpath=SDKs%7CBuild%20Custom%20Tools%7...

 

They have answered everything I've needed so far. I also often use the Python examples as well which are here: https://help.alteryx.com/developer/current/Python/Examples.htm?tocpath=SDKs%7CBuild%20Custom%20Tools...

 

For you I would look at how the example "Python - Multiple Inputs" is working. I think that is very clear

 

Hope that helps!

Joshua Burkhow - Alteryx Ace | Global Alteryx Architect @PwC | Blogger @ AlterTricks
amks
5 - Atom

Hi Joshua,

Thank you for your response.

 

I agree to the value of the examples that you link to. I have used them extensively when starting to develop plugins for Alteryx and recommend them to anyone starting.

 

However, with regards to accessing field information on incoming anchors, the examples seem to fall short, or at least I have not seen it done in the examples.