Hi @pehrs,
I don't think you can propagate the file name from the writer to the FeatureTypeImporter. What you can do is recommend that the user link both parameter to the same User Parameter, so they only need to choose the file once to have it applied to both.
This is a common step for some translations. For example, when doing a DWG -> DWG conversion, the template file for the writer is often link to the same parameter as the source file.
Is there an example in FME Desktop 2021 for this issue (using the same parameter in both) or do you have an example for DWG?
What I have tried so far is to use the metafiles.
I have one metafile called s-101_gui.fmi that contains:
DEFAULT_VALUE FEATCAT_FILE $(FME_HOME)runtime\\nautilus\\Products\\FeatCats\\S-10110.xml
GUI FILENAME_MUSTEXIST FEATCAT_FILE Feature_Catalog_Files(*.xml)|*.xml Feature Catalogue
And two other metafiles s-101-writer.fmf and s-101FeatureTypeImporter.fmf
My idea was to use the same gui and variable from s-101_gui.fmi in both meta files.
I have included the s-101_gui.fmi in s-101-writer.fmf on the position where the gui is used and also for the s-101FeatureTypeImporter.fmf.
In s-101FeatureTypeImporter I have the line
DEFAULT_VALUE DATASET $$FEATCAT_FILE]
But this does not work so far (The writer has the value for FEATCAT_FILE but it is not available in s-101FeatureTypeImporter).
Is this a possible solution and if yes what is missing/ wrong here?
This is solved now.
We decided to add a user parameter to select the file by the user if he wants another then the default