HI
So i want to make a simple alteration to the current Google Analytics Connector.
I added a line to the GUI.html to add an additional choice in the Preset Date Range.
<alteryx-option uiobject='XMSG("Auto Date")'>autodate</alteryx-option>I then added a corresponding line in the Google Analytics macro in the formula tool that does the calc for which date should be inserted.
// startDatePicker logic based on predefined date dropdown
// ToDate selections end on the previous day
// Sunday is start of week
IF [preDefDropDown]="today" THEN DateTimeToday()
ELSEIF [preDefDropDown]="yesterday" THEN DateTimeAdd(DateTimeToday(),-1,'days')
//My Line added here
ELSEIF [preDefDropDown]="autodate" THEN do something
Save both files, click out of the connector and back in.
The choice appears in the gui, i select it and click out. When i come back to the connector, i am unable to change selection, and the next and previous buttons don't work.
*Update* - if i edit the xml of the tool and change the preDefDropDown back to one of the original values, then full functionality is restored.
There must be some loop or check in place for the gui against those preset values, but can't seem to find it.
Any Ideas?
Thanks