Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Dev Space

Customize and extend the power of Alteryx with 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
ACE Emeritus
ACE Emeritus

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.