Skip to main content
Solved

Is it possible to have a pick list in the attribute creator transformer


jurgenmack
Contributor
Forum|alt.badge.img+9

I am using an attribute creator to inject metadata into a workflow and i would like to provide pick lists to simplify data entry.

Best answer by hollyatsafe

Hi @jurgenmack,

I would recommend creating a User Parameter Type = Choice or Choice (Multiple) for each of these picklists and then you can create a new attribute that pulls through this parameter value either in the AttributeCreator or ParameterFetcher transformer.

Once this parameter is configured the author will be presented with a 'Translation Parameter Values' wizard where they can select which values from the list they want to parse into the translation.

View original
Did this help you find an answer to your question?

5 replies

Forum|alt.badge.img+2
  • Best Answer
  • June 4, 2019

Hi @jurgenmack,

I would recommend creating a User Parameter Type = Choice or Choice (Multiple) for each of these picklists and then you can create a new attribute that pulls through this parameter value either in the AttributeCreator or ParameterFetcher transformer.

Once this parameter is configured the author will be presented with a 'Translation Parameter Values' wizard where they can select which values from the list they want to parse into the translation.


jurgenmack
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • June 6, 2019
hollyatsafe wrote:

Hi @jurgenmack,

I would recommend creating a User Parameter Type = Choice or Choice (Multiple) for each of these picklists and then you can create a new attribute that pulls through this parameter value either in the AttributeCreator or ParameterFetcher transformer.

Once this parameter is configured the author will be presented with a 'Translation Parameter Values' wizard where they can select which values from the list they want to parse into the translation.

Hi Holly

Thanks. My attribute creator is part of a custom transfomer. Prior to running the transformation the operator modifies the metadata fields to the source material. When i run it with the Choice (multiple) parameter simply loads the default i have set. It does not give the operator to set the values from the list.


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • June 6, 2019

@jurgenmack @hollyatsafe

 

Not directly no.

But indirectly, yes.

Create a custom transformer with only the attribute creator in it.

Create the pichlist parameter in this custom.

Call the parameter in the attribute creator.

Now u have a "custom"attribute creator with picklist!

 

The custom's insides:

 

 

The custom AttributeCreator (don't bother with the name I just quickly entered it.)


Forum|alt.badge.img+2
jurgenmack wrote:

Hi Holly

Thanks. My attribute creator is part of a custom transfomer. Prior to running the transformation the operator modifies the metadata fields to the source material. When i run it with the Choice (multiple) parameter simply loads the default i have set. It does not give the operator to set the values from the list.

Hi @jurgenmack,

For the user to be prompted at runtime there must be a published parameter on the main page of your canvas:

1. Create the parameter in your custom transformer.

2. Return to the main canvas and open the Parameter Editor of your custom transformer - it will now list the choice parameter you just created.

3. Select the drop down arrow > User Parameter > Create User Parameter and it will pick up the configuration from the parameter inside the Custom transformer but will now also be available on the main canvas so you will be prompted to choose a value when you select run. (Example .fmw attached)

 

picklist.fmw


jurgenmack
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • June 11, 2019
hollyatsafe wrote:

Hi @jurgenmack,

For the user to be prompted at runtime there must be a published parameter on the main page of your canvas:

1. Create the parameter in your custom transformer.

2. Return to the main canvas and open the Parameter Editor of your custom transformer - it will now list the choice parameter you just created.

3. Select the drop down arrow > User Parameter > Create User Parameter and it will pick up the configuration from the parameter inside the Custom transformer but will now also be available on the main canvas so you will be prompted to choose a value when you select run. (Example .fmw attached)

 

picklist.fmw

@holllyatsafe Thanks that seams to be working.


Reply


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