This website uses cookies to ensure you get the best experience on our website.

Skip to content
LOGO
  • Company

    About IGNEK

    Learn about our story and our mission.

    Careers

    We're hiring!

    We always looking for talented peoples. Join our team!

    Blogs

    The latest industry news, updates and info.

    Case Studies

    Take a closer look at the projects we've delivered

    Webinar

    Watch our latest organized webinar

    Get in touch with our HR team

    • hr@ignek.com
    • +91 93284 95160
    • Ahmedabad, Gujarat, India – 382470
  • Services

    Enterprise Portal Development

    Custom Enterprise Portal Development for flawless Solutions

    Dedicated Development Team

    Expand Teams, Optimize Development with Our Expertise

    Back-end Development

    Empowering your digital presence with robust backend development expertise

    Front-end Development

    Crafting engaging user experiences through expert frontend development

    Digital Transformation

    Embrace digital transformation by modernizing process

    SaaS Development

    Transform your business with SaaS Innovative Solutions

    Technologies

    Liferay Services

    Development & Customization

    Theme

    Upgradation

    Migration

    Proof of Concept

    Performance Tunning

    Architecture

    Support & Maintenance

    E-commerce

    Expert Advice

    React Services

    Enterprise Development

    Custom Application

    Single Page Application

    Architecture

    API Integration

    Migration

    Consulting

    Maintenance & Support

    Spring Boot Services

    Web Service

    MVC Web Development

    API Integration

    Security

    Migration

    Microservices

    Support & Maintenance

    AEM Services

    Consulting Service

    Site Development

    Migration & Upgradation

    Integration

    Maintenance & Support

    Custom Solutions

    Content Management

    Team Augementation

  • Solution

    Ready for digital excellence

    In our rapidly evolving world, businesses are always on the lookout for fresh ways to improve their operations and connect with their audiences.

    Contact US

    Solutions

    SaaS : Software As A Service

    Transforming industries through cutting edge SaaS solutions.

    Customer Portal : Boost Business Productivity

    Streamline operations and enhance productivity with our Customer Portal solution.

    Liferay Based Intranet Portal

    Internal portal for company communication, collaboration and resources

    Integration

    Matomo Integration with Liferay

    Integrate Matomo to enable user interactions seamlessly.

    Microsoft Teams integration with Liferay

    Integrate to enable seamless collaboration, messaging within your portal.

    Jira Integration With Liferay

    Optimizes business operations by integrating with Jira.

  • Hire Us

    Liferay

    Get expert Liferay developers for seamless portal solutions.

    React JS

    Get expert ReactJS developers for dynamic web solutions.

    Web Developer

    Get custom web solutions from IGNEK's expert developers.

    Spring Boot

    Get top-notch Spring Boot developers for your project success!

    Healthcare

    Get top Healthcare Developers for cutting-edge medical software.

    MERN Stack

    Get expert MERN developers from IGNEK for custom, innovative project solutions.

    Why Hire Developers From IGNEK ?

    • Certified Developer
    • Transparent Communication
    • Flexible Hiring Modals
    • Fully Signed NDA
    • Cost Effective
    • Easy Exit Policy

    Get in touch with our Sales team

    • sales@ignek.com
    • +91 6351576580
    • info@ignek.com
    • Ahmedabad, Gujarat, India – 382470
SCHEDULE CALL
  • COMPANY
    • About
    • Case Studies
    • Blogs
    • Career
    • Webinar
  • SERVICES
    • Enterprise Portal Development
    • Dedicated Development Team
    • Back-end Development
    • Front-end Development
    • Digital Transformation
    • SaaS Development
  • SOLUTION
    • Customer Portal:  Boost Business Productivity
    • SaaS : Software as a Service
    • Liferay Based Employee Intranet Portal
  • TECHNOLOGY
    • Liferay Services
      • Liferay Development and Customization
      • Liferay Theme Development Service
      • Liferay DXP 7.4 Upgrade
      • Liferay Migration
      • Liferay Proof Of Concept
      • Liferay Performance Tuning
      • Liferay Architecture Design Service
      • Liferay Support And Maintenance Service
      • Liferay Ecommerce Development
      • Liferay Expert Advice
    • ReactJS Services
      • ReactJS Enterprise Application Development
      • ReactJS Custom Application Development
      • ReactJS Single Page Application Development (SPA)
      • ReactJS Applications Architecture
      • ReactJS API Integration
      • ReactJS Migration
      • ReactJS Consulting
      • ReactJS Maintenance and Support
    • Spring Boot Services
      • Spring Boot Web Development Service
      • Spring MVC Web Development
      • Spring Boot API Integration Service
      • Spring Boot Security
      • Spring Boot Migration Service
      • Spring Boot Microservices
      • Spring Boot Support & Maintenance Service
    • AEM Development Services
      • AEM Consulting Services
      • AEM Site Development
      • AEM Migration & Upgradation
      • AEM Integration Services
      • AEM Maintenance & Support
      • AEM Content Management
      • Custom AEM Solutions
      • AEM Team Augmentation
  • INTEGRATION
  • HIRE US
    • Hire Liferay Developer
    • Hire ReactJS Developer
    • Hire Spring Boot Developer
    • Hire Healthcare Developer
    • Hire Web Developer
    • Hire MERN Stack Developer
  • CONTACT US
  • Company

    About IGNEK

    Careers

    We're hiring!

    Blogs

    Case Studies

    Webinar

    Get in touch with our HR team

    • hr@ignek.com
    • +91 93284 95160
    • Ahmedabad, Gujarat, India – 382470
  • Services

    Enterprise Portal Development

    Dedicated Development Team

    Back-end Development

    Front-end Development

    Digital Transformation

    SaaS Development

    Technologies

    Liferay Liferay Services
    • Development & Customization
    • Theme
    • Upgradation
    • Migration
    • Proof of Concept
    • Performance Tuning
    • Architecture
    • Support & Maintenance
    • E-commerce
    • Expert Advice
    React React Services
    • Enterprise Development
    • Custom Application
    • Single Page Application
    • Architecture
    • API Integration
    • Migration
    • Consulting
    • Maintenance & Support
    Spring Boot Spring Boot Services
    • Web Service
    • MVC Web Development
    • API Integration
    • Security
    • Migration
    • Microservices
    • Support & Maintenance
    AEM AEM Services
    • Consulting Service
    • Site Development
    • Migration & Upgradation
    • Integration
    • Maintenance & Support
    • Custom Solutions
    • Content Management
    • Team Augmentation
  • Solution

    Ready for digital excellence

    In our rapidly evolving world, businesses are always on the lookout for fresh ways to improve their operations and connect with their audiences.

    Contact US

    Solutions

    SaaS : Software As A Service

    Customer Portal : Boost Business Productivity

    Liferay Based Intranet Portal

    Integration

    Matomo Integration with Liferay

    Microsoft Teams integration with Liferay

    Jira Integration With Liferay

  • Hire Us

    Liferay

    React JS

    Web Developer

    Spring Boot

    Healthcare

    MERN Stack

    Why Hire Developers From IGNEK ?

    • Certified Developer
    • Transparent Communication
    • Flexible Hiring Modals
    • Fully Signed NDA
    • Cost Effective
    • Easy Exit Policy

    Get in touch with our Sales team

    • sales@ignek.com
    • +91 6351576580
    • IGNEK
    • Ahmedabad, Gujarat, India – 382470
  • SCHEDULE CALL

Objects in Liferay 7.4

  • Liferay
  • August 1, 2022

Share On :

Introduction

Liferay 7.4 came with a new feature Object. With the help of Object, you can build an application without writing a single line of code or deploying a module.

Prerequisites
  • Liferay DXP/Portal  7.4+
  • Basic knowledge of Liferay
Environment Requirements 
  • Liferay Portal or DXP

1) Create Object

Follow these steps to create an Object:

  1. Click On the Admin Control Menu, go to the Control Panel tab, and click on Objects. Here You can see all created Objects.
  2. To create objects click on the add button (╋) and add your object details.
    1. Label: Add label name for the Identity of an object in terms of object portlet and supported application (e.g., Workflow, Display Page Templates, Forms).
    2. Plural Label: Add a plural label to Display the name of your Object in the Portal UI.
    3. Object Name: Determines the Object’s definition. name. It cannot be changed once you publish the Object.
  3. Click on Save.
  4. Once Your object is successfully saved, A new object draft is created without any fields, relationships, layouts, actions, or a defined scope. Once you complete the creation process, you must edit the object and publish it.

Note: Once you publish an Object you can’t change the name, entry display, and scope of an object

Creating new custom object with basic details

2) Editing Object Drafts

Follow these steps to edit the Object draft:

  1. In the Object section, click on your newly created object draft. This redirects you to the edit Object tab. If you want to modify the Object Name, Label, and Plural Labels, you can do it here.
  2. Select a Panel Category Key to determine where the Object appears in the Liferay UI.
  3. Select the Object’s scope. This decides where the Object’s data is stored and published. Here Liferay provided two options.
    1. Company: When scoped by Company, the Object’s data is stored per Liferay instance. Liferay by default selects a company. If you select Object is scoped by Company, you can see it in the Global Menu (📅).
    2. Site: When you select scoped by Site, the Object’s data is stored per Site. If the Object is scoped by the Site, you can see it in the Site Menu (◧).
Editing sotred object data

3) Adding Fields in Objects

Follow these steps to add field in Object:

  1. Click on the Fields tab in your object and click on the Add button (╋).
  2. Enter a Label and Field Name.
    1. Label: This value identifies the field in the Objects UI. you can be localized after the field is created.
    2. Field Name: This value determines the field’s name in the back-end(Database) and uses a camel case. Once a field is published, this value cannot be changed.
  3. Select a Field Type according to your required DataType.
  4. Select whether the field is mandatory.
  5. Click on Save.
  • Once you’ve added an all field to an Object, you can go to the Object Details tab and select an Entry Title. This determines the field used as the title for an Object’s entries.
List of all fields in a object

4) Relationships in Object

Adding New Relationships in Object

Follow these steps for adding relationship in Object:

  1. Click on the Relationships tab in your object, and click on the Add button (╋).
  2. Enter a Label and Relationship Name.
    1. Label: It identifies the relationship in the Objects UI and can be localized after the relationship is created.
    2. Relationship Name: Determines the relationship’s name in the back-end and uses camel case. Once the relationship is published, this value cannot be changed.
  3. Select a relationship Type: Objects provide two types of relationships.
    1. One to Many: You can relate one of the current Object entities to multiple entities of another Object. When selected one to many, a new field is added to entities on the child side of the relationship.
    2. Many to Many: You can relate multiple entities from the current Object to multiple entities in another Object.
Adding new relationship in a object

Delete Relationships in Objects

In the Liferay versions 7.4 U26+ and GA26+, You can remove relationships from both draft and published objects. Removing a relationship permanently deletes its field from the related object.

For published object, this can affect many records.

Follow these steps to remove a relationship from an object:

  1. Go to the desired object for which you want to remove the relationship and click on the Relationship tab.
  2. Click the Actions button (⁝) for the desired relationship and select Delete.
  3. In the dialog window, enter the relationship’s name and click on the Delete button.
Deleting a relationship in a object
5) Designing Object Layouts for our object

An Object layout decides how its fields and relationships are displayed when the user creates or edits an entry. This layout has a single tab that displays all Object fields in alphabetical order.

Note: The automatically generated layout does not display Object relationships. To display relationships, you must create a custom layout with a dedicated relationship tab.

Follow these steps for adding Object Layouts:

  1. Adding Object Entry Layout
    1. Click the Layout tab and select the Add button (╋).
    2. Enter a Name and click on Save.

    Once saved, a new blank layout is created. Click on the newly created layout and now add tabs to your custom layout and determine how the Object’s fields and relationships are organized for entry creation and editing.

  2. Adding Layout Tabs
    1. Object elements can be organized into two types of tabs:
      1. Fields: Displays Object entry fields.
      2. Relationships: Displays relationship tables and must be used for showing the parent side of One to Many relationships and both sides of Many to Many relationships.

    The first tab in a layout cannot contain relationships, and a Relationships tab can only be added to a layout after it has a Fields tab.

    1. Fields Tabs
      1. Click on the desired layout and go to the Layout tab.
      2. Click on Add Tab, enter a Label, select the Fields, and click on Save. The Label value determines the tab’s display name in the Liferay UI.
      3. Click on Add Block, enter a Label, and click on Save.

           Fields cannot be added directly to a tab; they must be organized into blocks.

      1. Click Add field, select the desired field, determine if the field is displayed in one, two, or three columns and click save.
      2. Click Add Field to add more fields to the block, or click Add Block to add a new block to the tab for additional fields.
      3. Use the toggle switch to determine whether the block is collapsible.
    1. Relationships Tabs
      1. Select the desired layout and go to the Layout tab.
      2. Click on Add Tab, enter a Label. This value determines the tab’s display name in the Liferay UI.
      3. Click on Relationships and then select from available, One to Many or Many to Many relationships.
      4. Choose relation in available options and click on save.
    2. Set Default Layout
      1. Click on the created layout.
      2. In the Basic Details tab, check the Default box.
      3. Click on Save.
    3. The layout is now used when creating and editing the Object’s entries.
Exploring object layout

6) Defining Object Actions:

 you can define actions that are triggered under specified conditions. When an action is active, Liferay listens for when an Object’s data is added, deleted, or removed and then performs the set action.
Follow these steps to define actions for an Object:

  1. Click on the Actions tab and click the Add button (Add Button).
  2. Enter a name.
  3. For When you perform the actions trigger.
TriggerDescription
On After AddWhen an Object entry is added
On After DeleteWhen an Object entry is deleted
On After UpdateWhen an Object entry is updated
  1. Then, select Webhook. This determines the type of action performed.
  2. Enter a URL for the webhook.
  3. Click Save.

7) Publishing Object:

Publishing an Object creates and activates your new application. When activated, users can access it in the Portal UI according to its scope and panel category key.

  1. Before publishing your Object, review the following information to understand the consequences of publishing a draft.
    1. A database table is created for the Object.
    2. A new Headless API is automatically created for CRUD operations.
    3. A Collection Provider is created for displaying the Object’s entries.
    4. A Page widget is created for the Object.
    5. The Object is integrated with the Info framework, so you can select the Object as a content type for a Display Page Template
    6. The Object is integrated with the Permissions framework, so you can manage permissions for the object and its resources.
    7. The Object is integrated with the Workflow framework, so you can configure a custom workflow for the Object.
    8. The Object is integrated with Forms, so you can select the Object as a data storage option.
  2. Configuration Restrictions for Published Objects
    1. To prevent data loss and system conflicts, some configuration options are removed for Objects, fields, and relationships after they are published.
    2. Published Objects cannot be deleted or unpublished.
    3. The name and scope of a published Object cannot be changed.
    4. Any fields or relationships included in an Object at the time of publishing cannot be removed.
    5. Most configuration options for published fields and relationships cannot be changed
Editing a entry details of a object

8) Delete Objects

Note: Delete object option is only available on Liferay 7.4 U26+ and GA26+. In the previous Liferay versions 7.4 U25 and GA25, the user could not delete a published object or remove the relationships contained in the object.

You can delete both draft and published Object at any time. Deleting an Object removes all associated data. This includes all stored entries for published Object.
If your object has active relationships, you must remove all relationships before you can delete the object. for more information see Removing Relationships at the upper side of this blog.

Delete drafts and published objects easily

When you delete all relationships from an object, then follow these steps to delete the custom Object.

  1. Click On the Admin Control Menu, go to the Control Panel tab, and click on Objects
  2. Click the Actions button (⁝) for the desired Object you want to delete and select Delete.
  3. In the dialog window, enter the name of the Object and click on delete Button
Delete object relationships

9) Object APIs

Object Headless APIs

  1. Once you have published an object, Liferay has automatically generated your object headless API for CRUD operation.
  2. Follow these steps for using object headless API
    1. Open Liferay Headless API, Hit this URL (“https://<liferay-host>:<port>/o/api”)
    2. Click on the REST Applications and find and select your object API.
    3. Inside this page, you can see your object APIs click and use it.
Liferay auto-generates object headless API

Object GraphQL APIs

  1. Once you have published an object, Liferay has automatically generated your object GraphQL API for CRUD operation. With the GraphQL APIs, you can both query and mutate Object data.
  2. Follow these steps for using object headless API
    1. Open Liferay Headless API, Hit this URL (“https://<liferay-host>:<port>/o/api”)
    2. Click on the GraphQL.
    3. Here you can perform your object work with GraphQL
Liferay automates object GraphQL API generation

Explore Our Services

Discover how we can help your business thrive, whether you’re running a small startup, an SME, or a large enterprise. We’re here to understand your unique needs and goals, offering the expertise and resources to support your journey to success.

Stay informed about our Liferay services and updates by subscribing to our newsletter—just fill in the details below to subscribe.

Loading
Loading...

Related Blogs

December 29, 2022
Liferay Objects with Liferay forms Cover Image
Liferay Objects with Liferay forms
November 10, 2023
Bulk data upload for Liferay objects using CSV cover image
Bulk data upload for Liferay objects using CSV
December 1, 2023
Liferay object With Message Bus
Liferay Objects with Message bus
Loading...

Digital Solutions for Your Business with IGNEK

4.9

5.0

5.0

5.0

LOGO

Making the world a better place through constructing elegant hierarchies

COMPANY

  • About
  • Career
  • Case Study
  • Blogs

SERVICES

  • Enterprise Portal Development
  • Dedicated Development Team
  • Back-end Development
  • Front-end Development
  • Digital Transformation
  • SaaS Development

HIRE US

  • Liferay
  • Spring Boot
  • ReactJS
  • Healthcare
  • MERN Stack
  • AEM

CONTACT

  • info@ignek.com
  • info@ignek.com
SALES
  • sales@ignek.com
  • (+91) 635 157 6580
CAREER
  • hr@ignek.com
  • (+91) 932 849 5160
  • E 910-912, Ganesh Glory 11, Jagatpur Road, SG Highway, Ahmedabad, Gujarat - 382470

© 2018-2025 IGNEK, Inc. All rights reserved

Linkedin Facebook X-twitter Instagram