This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Customize & extend the power of Alteryx. SDKs, APIs, custom tools, and more!
General Discussions has some can't miss conversations going on right now! From conversations about automation to sharing your favorite Alteryx memes, there's something for everyone. Make it part of your community routine!
My custom tool requires a numeric input for which I'd like to use a NumericSpinner UI element. It worked just fine with the ConstrainedInt Data Item, and I'm using a min, max, and step values to control the user interaction nicely.
Is there a way to do this? Would I have to set the min to my default value, then run an AfterLoad function to set the min back to the true min?
This was one of those issues that I should have just pressed on a little bit more ... because as soon as I posted my question, I switched over to the Console tab of the CEF I found the 'getDataItem()' of the manager and saw that I could invoke the setValue() method from there.
My final solution that work is below, where the 'LogicalRecordLength' string was the name of the new AlteryxDataItems.ConstrainedInt():
Do you know how to set it's value in afterLoad function? Because I am using a drop down and based on a specific value selected in drop-down it unhides 2 numberspinners. But it is throwing error saying dataitemcontainers are not allowed in macro mode. As Engine of this tool is macro only.
Please let me know if you have any suggestion here. Thanks in advance!