Control Containers and Relative Filepaths
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Having issues with a relative file path within control containers and nested standard macros. Workflow images and a yxzp are attached for reference.
Directory structure:
- \top
|- \macros
|- main.yxmc (parent macro)
|- \utils
|- getter.yxmc (child macro)
|- \source
|- source.xlsx
As a stand alone, the getter works just fine with a relative file path of "..\..\source\source.xlsx". However, when the getter is called from main the input tool errors due to a relative path of "..\source\source.xlsx" as if it was called from the parent macro.
Using absolute references produces the expected results so, I guess this isolates the problem to how relative file paths work within control containers and nested macros.
Any advice or am I just using control containers the wrong way?
Solved! Go to Solution.
- Labels:
- Developer Tools
- Input
- Macros
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Answering my own question.
It seems that the input tool should be placed outside of the control container in the child macro. Would still love to have everyone's thoughts/advice.
