Skip to main content
Solved

Can I define a parameter input box without menu button for a custom transformer?


takashi
Influencer
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

Best answer by tdavis

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
View original
Did this help you find an answer to your question?
<strong>This post is closed to further activity.</strong><br /> It may be a question with a best answer, an implemented idea, or just a post needing no comment.<br /> If you have a follow-up or related question, please <a href="https://community.safe.com/topic/new">post a new question or idea</a>.<br /> If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

Forum|alt.badge.img
  • Best Answer
  • July 22, 2014
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

Forum|alt.badge.img
  • July 22, 2014
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

takashi
Influencer
  • Author
  • July 22, 2014
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

endest
Contributor
Forum|alt.badge.img+1
  • Contributor
  • July 23, 2014
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.

takashi
Influencer
  • Author
  • July 23, 2014
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

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings