Skip to main content
Hi,

 

 

If I define a published parameter for a custom transformer, a menu button always appears in side of the parameter input box.

 

 

 

I want to hide or disable the menu button; the interface like Copy Number Attribute of the Cloner is what I want.

 

 

 

Is there a way?

 

Thanks in advance.

 

 

Takashi
Yes, but there is a trick.

 

 

Since the functionality exist in an existing transformer parameter, then you can use that to create your input parameter.

 

 

So in your case, add a cloner to the custom transformer even though you may not use it. Now, go off to the navigator window, open transformers and the cloner and right click on the "copy number attribute" and create a user parameter.

 

 

 

Once you have done that, you will have a user parameter that does .appears in your custom transformer how you want it.

 

 

I had the same issue last week, when I was trying to pass lists into a custom transformer

 

 

Cheers,

 

Todd
Hi Takashi,

 

Can I ask why you need this to occur? Is it being presented to a user somewhere, who wouldn't know about this, or do you just not need to see that?

 

 

If I know the reason why then I can make a suggestion to our developers.

 

 

Regards

 

 

Mark
Hi Todd,

 

Thanks for the trick. I was able to create a parameter input box without menu button :)

 

 

 

Hi Mark,

 

I was looking for a way  to allow the user to specify name of a list which will be created in a custom transformer.

 

I found a way. That is, to rename internally created list name with a parameter, like this.

 

 

It works fine if the user specify the list name as a literal, e.g.  "_list", "_result" etc.. However, when the user set a User Parameter like $(PARAM), it doesn't work unfortunately.

 

The menu button allows the user to select a User Parameter. It's not preferable in this case. 

 

That is why I want to hide or disable the menu button.

 

 

Takashi
This GUI type is "NEW_ATTR".

 

You can find the GUI help at:

 

http://docs.safe.com/fme/2014/html/FME_GuiType/index.html

 

 

There are many GUI types you can't use in workbench, only edit the fmx or fmw file manually.
Hi Endest, thanks for the information.

 

I remember that the GUI help was written in fmesuite.fmx file in old days FME versions.

 

I didn't know that it is here now!

 

Yes, NEW_ATTR or NEW_LIST_ATTR is what I need.

 

I hope that those parameter types can be also defined with Workbench.

 

Takashi

Reply