Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Mohammad Azharuddin
EXT:service.xml
May 9, 2013 8:38 AM
Answer

Mohammad Azharuddin

Rank: Expert

Posts: 471

Join Date: September 17, 2012

Recent Posts

HI

Can we create new table via EXT


Thank You
azhar
Prakash Khanchandani
RE: EXT:service.xml
May 9, 2013 8:39 AM
Answer

Prakash Khanchandani

Rank: Expert

Posts: 329

Join Date: February 10, 2011

Recent Posts

Why would you want to do that? and as far as I know we can't.
David H Nebinger
RE: EXT:service.xml
May 9, 2013 9:31 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 11046

Join Date: September 1, 2006

Recent Posts

Support for using service builder in an EXT plugin is deprecated and could go away at any time.

Prakash is kinda right, though, in that you shouldn't do it anyway...

EXT plugins should be exclusively used to override default Liferay behavior. While you might think that accessing your own table within the Liferay core qualifies as overriding default behavior, it really is not.

I guarantee that whatever you have in mind is best handled in some other less intrusive way...
Mohammad Azharuddin
RE: EXT:service.xml
May 22, 2013 4:17 AM
Answer

Mohammad Azharuddin

Rank: Expert

Posts: 471

Join Date: September 17, 2012

Recent Posts

David H Nebinger:
Support for using service builder in an EXT plugin is deprecated and could go away at any time.

Prakash is kinda right, though, in that you shouldn't do it anyway...

EXT plugins should be exclusively used to override default Liferay behavior. While you might think that accessing your own table within the Liferay core qualifies as overriding default behavior, it really is not.

I guarantee that whatever you have in mind is best handled in some other less intrusive way...



Hi David

I'm overridding liferay OOB portlet action class via EXT.Based on some condition i want add 10 column values.So i created one custom portlet and service layer.

And my requirnment is,In EXT i want to add new entry in database table created by custom portlet. so i followed this approach


Is this proper way to do so..............?
Zuber Ahmed Khalpa
RE: EXT:service.xml
May 22, 2013 6:09 AM
Answer

Zuber Ahmed Khalpa

Rank: New Member

Posts: 6

Join Date: May 3, 2012

Recent Posts

Hi azaruddin
Your requiement is to extend liferay tables column, it is easy to use liferay expandobrige which extend your table field.
Mohammad Azharuddin
RE: EXT:service.xml
May 22, 2013 10:08 PM
Answer

Mohammad Azharuddin

Rank: Expert

Posts: 471

Join Date: September 17, 2012

Recent Posts

HI zuber khalpa

I want to maintain seperate table and which i ll update occationally baased on some condition.

HTH
Raja Nagendra Kumar
RE: EXT:service.xml
May 23, 2013 1:12 AM
Answer

Raja Nagendra Kumar

Rank: Expert

Posts: 484

Join Date: March 1, 2006

Recent Posts

I would recommend multiple db approach for all custom data,

http://pampanasatyanarayana.wordpress.com/2012/06/23/multiple-database-connection-in-hibernate/

though Liferay approach is Expando way

This can ease migration better.

Regards
Raja Nagendra Kumar,
www.tejasoft.com
-Java Code Quality Engineering
Zuber Ahmed Khalpa
RE: EXT:service.xml
May 23, 2013 4:34 AM
Answer

Zuber Ahmed Khalpa

Rank: New Member

Posts: 6

Join Date: May 3, 2012

Recent Posts

Hi
Solution 1: You have to need separate table then create your custom portlet and use liferay api for your condition.
Another Solution :
Create hook and add service.xml file for your custom table and change action file.
In Liferay 6.x allow to change struts action file.
More information see liferay 6.1 documentation .