<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to call service class in command class?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112582754" />
  <subtitle>How to call service class in command class?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112582754</id>
  <updated>2026-04-04T10:31:04Z</updated>
  <dc:date>2026-04-04T10:31:04Z</dc:date>
  <entry>
    <title>RE: How to call service class in command class?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112584090" />
    <author>
      <name>Mahammad Ashik A</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112584090</id>
    <updated>2019-03-05T14:59:47Z</updated>
    <published>2019-03-05T14:59:47Z</published>
    <summary type="html">Thanks for your reply.&lt;br /&gt;&lt;br /&gt;Yes, I am going to generate qr code before storing data. Because i need to generate qr code based on custom table Id. &lt;br /&gt;&lt;br /&gt;But i am storing qr code in other custom table. no need to expand ddl table.&lt;br /&gt;&lt;br /&gt;​​​​​​​Thank You</summary>
    <dc:creator>Mahammad Ashik A</dc:creator>
    <dc:date>2019-03-05T14:59:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to call service class in command class?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112583420" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112583420</id>
    <updated>2019-03-05T14:48:41Z</updated>
    <published>2019-03-05T14:48:41Z</published>
    <summary type="html">&lt;blockquote&gt;Mahammad Ashik A&lt;span style="font-family: Arial, Helvetica, sans-serif"&gt;&lt;span style="font-size: 16px;"&gt;&lt;br /&gt;&lt;br /&gt;My requirement is while publishing data in ddl form then i need to generate qr code. So i have overridden BaseMVCActioncommand.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;The whole question sounds like you&amp;#39;re generating the QR code before storing it - shouldn&amp;#39;t you rather be generating it from the available data when you&amp;#39;re showing the data, as the machine readable alternative to the actual data?</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-03-05T14:48:41Z</dc:date>
  </entry>
  <entry>
    <title>How to call service class in command class?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112582753" />
    <author>
      <name>Mahammad Ashik A</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112582753</id>
    <updated>2019-03-05T14:34:30Z</updated>
    <published>2019-03-05T14:34:30Z</published>
    <summary type="html">&lt;span style="font-family: Arial, Helvetica, sans-serif"&gt;&lt;span style="font-size: 16px;"&gt;Hi,&lt;br /&gt;&lt;br /&gt;My requirement is while publishing data in ddl form then i need to generate qr code. So i have overridden BaseMVCActioncommand.&lt;br /&gt;&lt;br /&gt;I have attached my code below&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Component(immediate = true, property = { &amp;#34;javax.portlet.name=&amp;#34; + DDLControllerModulePortletKeys.DYNAMIC_DATA_LISTS,&lt;br /&gt;        &amp;#34;javax.portlet.name=&amp;#34; + DDLControllerModulePortletKeys.DYNAMIC_DATA_LISTS_DISPLAY, &amp;#34;mvc.command.name=addRecord&amp;#34;,&lt;br /&gt;        &amp;#34;service.ranking:Integer=100&amp;#34; &lt;br /&gt;        &lt;br /&gt;        }, service = MVCActionCommand.class)&lt;br /&gt;&lt;br /&gt;public class DDLControllerModulePortlet extends BaseMVCActionCommand {&lt;br /&gt;&lt;br /&gt;    protected void doProcessAction(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//here i am performing some custom actions like qrcode generator&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;now i thiink i need to call ddlservice calss to store ddl data.&lt;br /&gt;for e.g recordidset,companyId,formvalues etc.&lt;br /&gt;&lt;br /&gt;How  i can achieve this???&lt;br /&gt;&lt;br /&gt;Now i am not able to add any record to ddl table........&lt;br /&gt;&lt;br /&gt;I am working liferay 7.1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Please help me..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks in advance&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;</summary>
    <dc:creator>Mahammad Ashik A</dc:creator>
    <dc:date>2019-03-05T14:34:30Z</dc:date>
  </entry>
</feed>
