<?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>Custom table Column value Site wise auto increment by 1</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118724270" />
  <subtitle>Custom table Column value Site wise auto increment by 1</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118724270</id>
  <updated>2026-04-04T02:33:47Z</updated>
  <dc:date>2026-04-04T02:33:47Z</dc:date>
  <entry>
    <title>RE: Custom table Column value Site wise auto increment by 1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118736413" />
    <author>
      <name>srini vasulu</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118736413</id>
    <updated>2020-03-13T15:05:02Z</updated>
    <published>2020-03-13T15:05:02Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Thank you it's worked perfectly what i am expected.&lt;div class="quote-title"&gt;Mohammed Yasin:&lt;/div&gt;&lt;blockquote&gt;&lt;br&gt;Hi ,You can use Liferay CounterLocalserviceUtil and do increment by 1 .&amp;nbsp;&lt;br&gt;&lt;pre&gt;&lt;code&gt;CounterLocalserviceUtil.increament("SITEA", 1)/CounterLocalserviceUtil.increament("SITEB, 1);
&lt;/code&gt;&lt;/pre&gt;You need to set in portal.properties also&lt;pre&gt;&lt;code&gt;counter.increment.SITEA=1
&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;counter.increment.SITEB=1&lt;/code&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>srini vasulu</dc:creator>
    <dc:date>2020-03-13T15:05:02Z</dc:date>
  </entry>
  <entry>
    <title>RE: Custom table Column value Site wise auto increment by 1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118739567" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118739567</id>
    <updated>2020-03-13T09:38:55Z</updated>
    <published>2020-03-13T09:38:55Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi ,You can use Liferay CounterLocalserviceUtil and do increment by 1 .&amp;nbsp;&lt;br&gt;&lt;pre&gt;&lt;code&gt;CounterLocalserviceUtil.increament("SITEA", 1)/CounterLocalserviceUtil.increament("SITEB, 1);
&lt;/code&gt;&lt;/pre&gt;You need to set in portal.properties also&lt;pre&gt;&lt;code&gt;counter.increment.SITEA=1
&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;counter.increment.SITEB=1&lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2020-03-13T09:38:55Z</dc:date>
  </entry>
  <entry>
    <title>Custom table Column value Site wise auto increment by 1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118724269" />
    <author>
      <name>srini vasulu</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118724269</id>
    <updated>2020-03-12T18:53:06Z</updated>
    <published>2020-03-12T18:53:06Z</published>
    <summary type="html">Hi All,&lt;br /&gt;I have a requirement custom table Column value Site wise auto increment by 1.&lt;br /&gt;for example table name Example and Column A . now i have site A,B when adding the Record in site A for every row Column A to increse by 1 like 1,2,3,4... Ect. same scenario for site B it want to stat again from 1,2,3,4 ...ect.&lt;br /&gt;Thanks in Advance&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Srini</summary>
    <dc:creator>srini vasulu</dc:creator>
    <dc:date>2020-03-12T18:53:06Z</dc:date>
  </entry>
</feed>
