No matter what value I enter for the Parameter_Default, the file box on the transformer GUI always initially shows up empty in Form.
Can someone suggest what I’m doing wrong?
Thanks,
Martin
Page 1 / 1
Hi Martian
With user parameters being used in the custom transformer you have, did you assign a parameter type? for example are they all text, or file/folder/url
user parameter types
The type of user parameter will change the UI prompt experience
Secondly the default value you have is using an FME Parameter
your default value for PARAMETER_DEFAULT
These unfortunately don’t return the current directory in the prompt. They only grab that path at run time in the transaction
You will need possible to use python scripted value to derive the directory path to the prompted user
advanced user parameter types
To achieve what you’re after, I asked the AI assistant. It suggested using python
return fme.macroValues['FME_MF_DIR']
But alas I’m not sure this will work..
maybe you can explore using the File configuration options to access Single path and specify the extension filters to only allow the user to pick certain formats
Hi j.botterill - thank you for your detailed reply. My other transformer parameter types are of type LOOKUP_CHOICE, FLOAT, and CHECKBOX. Are your screenshots from the Transformer Designer application?
What I’m puzzled by is even if I replace $(FME_MF_DIR) with just a hard-coded string like “d:\” for the parameter_default, the file edit box is still initially empty. The transformer I built is in a FMX file and backed by a custom C++ factory.
Thanks,
Martin
Oh I was only using Workbench. If you have this custom transformer going through the Transformer Designer, I’m not sure I can help as much as perhaps a Safer?
Yah, I’ll follow up with tech support. Thank you for your answers.