<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic @Suggestions(&amp;quot;loadModules&amp;quot;) ,how to generates dynamic values using this annotation in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Suggestions-quot-loadModules-quot-how-to-generates-dynamic/m-p/2247508#M149202</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt; 
&lt;P&gt;Hope every one doing well,I trying to generates list of module list&amp;nbsp; like salesforceinput components using talend component kit starter.But i am facing null point exception error because getter() methods are giving null values.Is any way to get parameters directly in this method which are passing through a talend configuration tab.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;@Suggestions("loadModules")&lt;BR /&gt;public static SuggestionValues loadModules(@Option("datastore") VtigercrmComponentsDataStore datastore )&lt;BR /&gt;{&lt;BR /&gt;WSClient client= new WSClient(datastore.getUsername());&lt;BR /&gt;boolean result = client.doLogin(datastore.getUsername(),datastore.getAccessKey());&lt;BR /&gt;ArrayList&amp;lt;Item&amp;gt; a2=new ArrayList&amp;lt;&amp;gt;();&lt;BR /&gt;if(result == false) {&lt;BR /&gt;System.out.println("Login failed!");&lt;BR /&gt;System.out.println(client.lastError());&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;&lt;BR /&gt;Map types = client.doListTypes();&lt;BR /&gt;Iterator iterator = types.keySet().iterator();&lt;BR /&gt;while(iterator.hasNext()) {&lt;BR /&gt;Object key = iterator.next();&lt;BR /&gt;Map moduleInfo = (Map) types.get(key);&lt;BR /&gt;String s1= moduleInfo.get("name").toString();&lt;BR /&gt;a2.add(new Item(s1,s1));&lt;BR /&gt;System.out.println("result "+s1);&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;return new SuggestionValues(false,a2);&lt;BR /&gt;}&lt;BR /&gt;thanks,&lt;/P&gt; 
&lt;P&gt;venkat.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jan 2026 14:45:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2026-01-02T14:45:42Z</dc:date>
    <item>
      <title>@Suggestions("loadModules") ,how to generates dynamic values using this annotation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Suggestions-quot-loadModules-quot-how-to-generates-dynamic/m-p/2247508#M149202</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt; 
&lt;P&gt;Hope every one doing well,I trying to generates list of module list&amp;nbsp; like salesforceinput components using talend component kit starter.But i am facing null point exception error because getter() methods are giving null values.Is any way to get parameters directly in this method which are passing through a talend configuration tab.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;@Suggestions("loadModules")&lt;BR /&gt;public static SuggestionValues loadModules(@Option("datastore") VtigercrmComponentsDataStore datastore )&lt;BR /&gt;{&lt;BR /&gt;WSClient client= new WSClient(datastore.getUsername());&lt;BR /&gt;boolean result = client.doLogin(datastore.getUsername(),datastore.getAccessKey());&lt;BR /&gt;ArrayList&amp;lt;Item&amp;gt; a2=new ArrayList&amp;lt;&amp;gt;();&lt;BR /&gt;if(result == false) {&lt;BR /&gt;System.out.println("Login failed!");&lt;BR /&gt;System.out.println(client.lastError());&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;&lt;BR /&gt;Map types = client.doListTypes();&lt;BR /&gt;Iterator iterator = types.keySet().iterator();&lt;BR /&gt;while(iterator.hasNext()) {&lt;BR /&gt;Object key = iterator.next();&lt;BR /&gt;Map moduleInfo = (Map) types.get(key);&lt;BR /&gt;String s1= moduleInfo.get("name").toString();&lt;BR /&gt;a2.add(new Item(s1,s1));&lt;BR /&gt;System.out.println("result "+s1);&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;return new SuggestionValues(false,a2);&lt;BR /&gt;}&lt;BR /&gt;thanks,&lt;/P&gt; 
&lt;P&gt;venkat.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 14:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Suggestions-quot-loadModules-quot-how-to-generates-dynamic/m-p/2247508#M149202</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2026-01-02T14:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: @Suggestions("loadModules") ,how to generates dynamic values using this annotation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Suggestions-quot-loadModules-quot-how-to-generates-dynamic/m-p/2247509#M149203</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I think your not setting the parameters value of your suggestable annotation.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;Here is how suggestions works :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;&lt;SPAN&gt;class &lt;/SPAN&gt;MyConfigClass {&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;private &lt;/SPAN&gt;VtigercrmComponentsDataStore &lt;SPAN&gt;datastore&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;// you need to set the params here that point to your datastore config&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;@Suggestable&lt;/SPAN&gt;(value = &lt;SPAN&gt;"loadModules"&lt;/SPAN&gt;, parameters = { &lt;SPAN&gt;"datastore" &lt;/SPAN&gt;}) &lt;BR /&gt;    &lt;SPAN&gt;private &lt;/SPAN&gt;String &lt;SPAN&gt;module&lt;/SPAN&gt;;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;@Service&lt;BR /&gt;&lt;SPAN&gt;class &lt;/SPAN&gt;MyService {&lt;BR /&gt;    @Suggestions(&lt;SPAN&gt;"loadModules"&lt;/SPAN&gt;)&lt;BR /&gt;    &lt;SPAN&gt;public static &lt;/SPAN&gt;SuggestionValues loadModules(&lt;SPAN&gt;@Option &lt;/SPAN&gt;VtigercrmComponentsDataStore datastore) {&lt;BR /&gt;        &lt;SPAN&gt;// your logic here ...&lt;BR /&gt;&lt;/SPAN&gt;    }&lt;BR /&gt;}&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 14:20:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Suggestions-quot-loadModules-quot-how-to-generates-dynamic/m-p/2247509#M149203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-12T14:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: @Suggestions("loadModules") ,how to generates dynamic values using this annotation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Suggestions-quot-loadModules-quot-how-to-generates-dynamic/m-p/2247510#M149204</link>
      <description>&lt;P&gt;Hi Anas,&lt;/P&gt; 
&lt;P&gt;thanks reply for my post,exactly correct what you saying,I have set the parameters values as like your post.&lt;/P&gt; 
&lt;P&gt;now its working.But its not showing error message when I will enter wrong credentials,its showing blank text pop up message.I need to show show exception message and also I am facing one more problem.Do you know how to create schema creation?? If you have code ,help me out.I am new in custom component creation.&lt;/P&gt; 
&lt;P&gt;thanks,&lt;/P&gt; 
&lt;P&gt;venkat&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 14:09:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Suggestions-quot-loadModules-quot-how-to-generates-dynamic/m-p/2247510#M149204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-13T14:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: @Suggestions("loadModules") ,how to generates dynamic values using this annotation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Suggestions-quot-loadModules-quot-how-to-generates-dynamic/m-p/2247511#M149205</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I suggest you to check this component example. it's a real component used at Talend and developed by the Component kit framework. You can checkout the project from &lt;A href="https://github.com/Talend/connectors-se/tree/master/jdbc" target="_self" rel="nofollow noopener noreferrer"&gt;https://github.com/Talend/connectors-se/tree/master/jdbc&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For credentials verification you can use the healtch check action. Here is an example that you can rely on.&lt;BR /&gt;check this service and it's binding with the Datastore class configuration&lt;BR /&gt;&lt;A href="https://github.com/Talend/connectors-se/blob/master/jdbc/src/main/java/org/talend/components/jdbc/service/UIActionService.java#L113" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Talend/connectors-se/blob/master/jdbc/src/main/java/org/talend/components/jdbc/service/UIActionService.java#L113&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/Talend/connectors-se/blob/master/jdbc/src/main/java/org/talend/components/jdbc/datastore/JdbcConnection.java#L40" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Talend/connectors-se/blob/master/jdbc/src/main/java/org/talend/components/jdbc/datastore/JdbcConnection.java#L40&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The schema is automatically filled from the guess schema button available on Input component for example&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 14:54:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Suggestions-quot-loadModules-quot-how-to-generates-dynamic/m-p/2247511#M149205</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-13T14:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: @Suggestions("loadModules") ,how to generates dynamic values using this annotation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Suggestions-quot-loadModules-quot-how-to-generates-dynamic/m-p/2247512#M149206</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;thanks for reply ,I have written like in my service class,any thing we need to write in dataset or other classes.still I am not able to get columns names and type for module.its showing log error when i am clicking on guess schema button.According to your code which one you have shared me,they not used any&amp;nbsp;@DiscoverSchema&amp;nbsp; annotation.please send me any code for create schema for module with using parameters.Please check my code.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;thanks,&lt;/P&gt; 
&lt;P&gt;venkat.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;@DiscoverSchema("module_fields")&lt;BR /&gt;public Schema guessSchema(@Option("dataset") final VtigercrmComponentsDataSet dataset ,final RecordBuilderFactory factory)&lt;BR /&gt;{&lt;BR /&gt;final Schema.Entry.Builder entryBuilder = factory.newEntryBuilder();&lt;BR /&gt;final Schema.Builder schemaBuilder = factory.newSchemaBuilder(org.talend.sdk.component.api.record.Schema.Type.RECORD);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Schema.Type type = Schema.Type.STRING;&lt;BR /&gt;return (Schema) schemaBuilder.withEntry(entryBuilder.withName("name").withType(type).withNullable(true).build());&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 09:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Suggestions-quot-loadModules-quot-how-to-generates-dynamic/m-p/2247512#M149206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-14T09:42:58Z</dc:date>
    </item>
  </channel>
</rss>

