Skip to main content
Solved

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

  • June 4, 2019
  • 5 replies
  • 59 views

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
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+2
  • 719 replies
  • 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
  • 32 replies
  • June 6, 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.

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
  • 2252 replies
  • 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
  • 719 replies
  • June 6, 2019

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
  • 32 replies
  • June 11, 2019

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.