Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Safus
Creator
Creator

How to access user modified Schema in @Producer method of input Component

Hi all,

I know that accessing schema when it's a processor component is quite simple because schema is in the Record Object parameter.

But I am developing an input component and I have implemented a @DiscoverSchema method which works fine, and it retrieves the schema.

In my @Producer method of my source class. I have to retrieve the schema set by the user (it can me modified after he clicks "Guess Schema" )

I am thinking about this scenario :

1- User clicks 'Guess Schema" and the @DiscoverSchema method is triggered so "Default" schema is fixed.

2- User chooses to modify this schema before executing component

My Question is where is the Schema structure stored ? How to access it ? Is it possible to access it in my service or source classes ? Is it possible to detect schema that was modified by user before executing component ?

I know that the @DiscoverSchema has a return type of Schema and calling it my source class would only retrieve the default schema and not the modified one.

Best regards,

Safus

Labels (2)
1 Solution

Accepted Solutions
undx
Creator
Creator

Hi @safouane BEN MANSOUR​ 

Please, have a look at https://talend.github.io/component-runtime/main/1.31.0/studio-schema.html#_accessing_columns_metadata

for accessing to designed schema.

 

Best regards.

 

--

Emmanuel

View solution in original post

2 Replies
undx
Creator
Creator

Hi @safouane BEN MANSOUR​ 

Please, have a look at https://talend.github.io/component-runtime/main/1.31.0/studio-schema.html#_accessing_columns_metadata

for accessing to designed schema.

 

Best regards.

 

--

Emmanuel

Safus
Creator
Creator
Author

Hi @Emmanuel GALLOIS​,

 

It works like a charm 😄

 

Best Regars,

Safus