- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Notify Moderator
Adding Example Links in Macro Descriptions
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Notify Moderator
As seen in This Discussion Post, the idea here is to be able to add a link to example workflows in macro descriptions - like the ones seen in native tools.
Filter Tool
Many thanks to @jdunkerley79 for demonstrating how this can be done by manually editing the macro's XML - specifically by adding a child element to the <MetaInfo> section, like so:
<Example> <Description>Open Example</Description> <File>\\aSERVER\aRootDir\path\to\Alteryx\Macros\Date Wizard\Date Wizard Examples.yxmd</File> </Example>
One small caveat is that it doesn't support truly relative paths. @PaulN explained in the discussion post that a relative reference here would search in the sample folders.
"Alteryx default behavior is to look for examples under .\Alteryx\Samples\02 One-Tool Examples or Alteryx\Samples\02 One-Tool Examples (or .\Alteryx\Samples\en\02 One-Tool Examples)."
Having said that, trying to reference a macro example in the same folder (using a relative reference) will throw an error given the following situation:
Package Structure:
Date Wizard.yxmc XML edits:
<Example> <Description>Open Example</Description> <!-- THIS WORKS --> <File>\\aSERVER\aRootDir\path\to\Alteryx\Macros\Date Wizard\Date Wizard Examples.yxmd</File> <!-- THIS DOESNT <File>Date Wizard Examples.yxmd</File> <File>.\Date Wizard Examples.yxmd</File> <File>./Date Wizard Examples.yxmd</File> --> </Example>
This shows a link in the Macro description but yields an error (shown below) when it is clicked.
Example Link Shows
Error
Once again, this works fine with an absolute file path reference.
Here is ultimately what I am suggesting: Can we add an option to the Interface Designer (that updates the XML) and have it allow relative paths? Allowing relative paths would obviously be essentially to maintaining the macro's ability to be "lift-and-shift" when packaged/moved/uploaded to servers/galleries etc.
I'm assuming the option could look something like this, similar to the "Help" file -only it would show link in the macro description...
Interface Designer Suggestion
In conclusion, this would be very useful in providing links to example workflows for custom macros that may be complex and/or not self-explanatory.
Cheers,
Taylor Cox
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.