Skip to main content
Solved

SchemaMapper - source file as parameter?


lazarlubomir
Contributor
Forum|alt.badge.img+7

Hello everybody,

I´m trying to find a way, how user can define source file for SchemaMapper. It´s all about editing source file for SchemaMapper on user side and then he will run a workspace.

But, my main question - is there any way, how user can edit mapping file (with adding of new columns) and then incoming features will be automacally mapped? And is there any way, how can user choose a mapping file? I checked that at choosing mapping file, there is no possibility to set source mapping file as parameter. Do You have any idea, how to dynamically change SchemaMapper transformer?

Thank You so much!

Lubo

Best answer by takashi

As well as dataset for a reader/writer, You can create a User Parameter linked to the source dataset or link the source dataset to an existing User Parameter, on the Navigator window.

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

4 replies

takashi
Influencer
  • Best Answer
  • May 13, 2019

As well as dataset for a reader/writer, You can create a User Parameter linked to the source dataset or link the source dataset to an existing User Parameter, on the Navigator window.


lazarlubomir
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • May 14, 2019
takashi wrote:

As well as dataset for a reader/writer, You can create a User Parameter linked to the source dataset or link the source dataset to an existing User Parameter, on the Navigator window.

Hello @takashi, @david_r,

yes, thank You so much! Unfortunately, it is only one part of my problem. Yes, I can define schemamapper source file via User parameter. Anyway, please just imagine situation, when user modified source file for schemamapper (adding some columns for filtering, adding some columns for new attributes). Is there any way, how to dynamically change Filter conditions, New attribute condition etc. based on modified source file? I checked that e.g. Map attrs parameter in SchemaMapper transformer is not able to be linked to User parameter.

Thanks a lot!

Lubo


david_r
Celebrity
  • May 14, 2019
lazarlubomir wrote:

Hello @takashi, @david_r,

yes, thank You so much! Unfortunately, it is only one part of my problem. Yes, I can define schemamapper source file via User parameter. Anyway, please just imagine situation, when user modified source file for schemamapper (adding some columns for filtering, adding some columns for new attributes). Is there any way, how to dynamically change Filter conditions, New attribute condition etc. based on modified source file? I checked that e.g. Map attrs parameter in SchemaMapper transformer is not able to be linked to User parameter.

Thanks a lot!

Lubo

As far as I know, that is unfortunately not possible. I do not think you can parametrize much else than what is visible in the Navigator tree.


lazarlubomir
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • May 15, 2019
david_r wrote:

As far as I know, that is unfortunately not possible. I do not think you can parametrize much else than what is visible in the Navigator tree.

@david_r, thank you for confirmation!


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