Skip to content

Liferay 6.1 : Dynamic Data Lists

October 3, 2011

Liferay 6.1: Dynamic Data Lists 

Liferay 6.1 is coming with Dynamic data lists, where in business users can create custom data lists on the fly without any coding required. Here is the steps detailing to achieve the above.

A) Login as Admin

B) Click on Go to > Control Panel in Top Dock bar.

C) Select Dynamic Data List from Portlet listed on left hand sidebar in Control Panel.

This will lead you to landing page for Dynamic Data List.(DDL) Portlet . In this Blog we will create a Sample Birthday Invitation List.

Following are the major steps involved.

  1. Create Data Definitions for Invitation Data.
  2. Create a new List using the above data definition.
  3. Add Data to Birthday Invitation List.
  4. Display the Birthday Invitation List  data in Dynamic Data List Display portlet on a Portal Page.

1. Create Data Definitions for Invitation Data

  • Click on Manage Data Definitions button on DDL landing Page. This will open a Popup to create data definitions.
  • Click on Add button in Pop Up to add a new definition.

  • You will see similar window as when you define WCM Structure in Liferay 6. Its drag and drop UI, you can define the field’s, field’s type for the Definition.
  • Create a new definition with name, Birthday Invitation List. Once done Click Save. Close the Pop Up

2. Create a new List using the above data definition

  • On DDL Landing Page Click on Add Button to add a new list.
  • Fill the Name (John Doe Birthday Invitation), Description in the form. In Data Definition Select  Popup, Select the newly created Data Definition in Step 1 Birthday Invitation List .
    
  • Click Save.  You will see this list on DDL landing Page.

3. Add Data to Birthday Invitation List.

  • Click on John Doe Birthday Invitation List
  • You will see Add Record Button.Click on this button. Next screen will provide you the form based on definitions data created in Step 1(Birthday Invitation List). Fill the form to populate the List.
 

 

4. Display the Birthday Invitation List  data in Dynamic Data List Display portlet on a Portal Page

  • Go to a Portal Page.
  • Click Add > More from Top Dock Bar.
  • Search for Dynamic Data List Display Portlet.
  • Add the Portlet to the Page.
  • Configure the Portlet to display John Doe’s Birthday Invitation List.
There are much more capabilities involved with this portlet. Will post information as i get chance to work on discovering more.
Thanks,
Arvind
About these ads
8 Comments leave one →
  1. Yves permalink
    October 10, 2012 8:50 am

    Hello!
    I already have a contact list, and I’d like to bind it directly to the DB to not enter it one by one again.
    What is the table name?

    • October 19, 2012 6:46 am

      Contacts go to contact_ table with contact Id mapped in User_ table.
      Contact address goes to address table.

  2. January 11, 2013 12:43 pm

    Very nice blog post. I definitely love this website. Stick with it!

  3. loki permalink
    January 21, 2013 10:03 am

    Hello,
    Can we have instead of the calendar “date” I want to add hours, minutes and seconds in the format of “hh:mm:ss” ?

    thanks

    • January 21, 2013 10:16 am

      Out of box, no. There is option of writing templates in DDL but i have not tried it and not sure if that will suffice your need.

      Thanks
      Arvind

  4. Saket George permalink
    March 20, 2013 3:39 am

    i want to add captcha in my DDLform and
    add script in DDL data definition.
    please help me ASAP.

Trackbacks

  1. RE: DDL - Forums - Liferay.com

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: