Message Boards

« Back to 2.- Usage ( From Xml file to CRUD Portlet)

How can we add some more actions in Actions button.

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Hi Everyone,

How can we add some more actions in Actions button.
Also How can i navigate to Detail portlet from Master portlet on a click of actions.

i,e. only on click of actions on Master Portlets, the correspoding detail portlet as to appear below the Masters.
Please see the diagram below which explains you my question.

Pls help me out in doing this kind of User Interface.
Attachment

Attachment

Attachments: addStudentsToCourses.JPG (32.1k), addSubjectsToCourses.JPG (31.7k)

RE: How can we add some more actions in Actions button.
Answer
12/10/11 5:47 PM as a reply to chethan dhananjaya.
Hello Chethan,

Very nice explanation, this way is very easy to understand what you mean. You and other users (including me) have the same requirements. For that I just made a wiki entry, with a small tutorial explaining how to get this kind or interface. Hope you like it.

http://www.xmlportletfactory.org/wiki/-/wiki/Main/How+to+make+Master+detail-s+portlet+look+and+work+like+one+with+tabs

And come back to tell us if this is what you were looking for. Remember to mark post as Solved if so.

Saludos, Jack.
Like it? +1 this page.

Solved: How can we add some more actions in Actions button.
Answer
12/14/11 1:53 PM as a reply to Jack A. Rider.
Hi Jack,

Thanks !!. This is what i needed. Which solves my problem in different & good approach i suppose.

Thanks & Regards,
Chethan

RE: How can we add some more actions in Actions button.
Answer
4/19/12 2:30 PM as a reply to Jack A. Rider.
Hi Jack Rider
I have a question. Need your help!
Assume that, the School portal have three types of users: guest, student and manager.
In Student portlet, how can I hide delete & add & edit function to guest & student and enable edit function for his own profile ?
thank & regards!

RE: How can we add some more actions in Actions button.
Answer
4/19/12 7:19 PM as a reply to Nguyen Cuong.
Hello Nguyen,

Lets see if I can help you, first let me tell you that you probebly will need to touch code if with regular permissions is not enough.

For the [ADD Students] button in the Students portlet you have to go StudentsPortlet.java --> showViewDefault function and control there if user has or doesnt have permision to add. You have to touch here if you want to change the behavior.

For the edit and delete options you have to go to JSPs/students/edit_actions.jsp and control there, there is a icon-menu with the two option, controled by permissionChecker. You have to touch here if you want to change the behaviour

In the both cases you can go through liferay permisions for ADD_STUDENT, UPDATE and DELETE. See in control panel --> portal --> Roles (select one) --> define permisisions --> add permissions (locate students)

In a few days a version of XMLPortlefFactory with workflows enabled will be posted, maybe this can be of help because you can control which rows are inserted.

Did it help?

Saludos, Jack.

RE: How can we add some more actions in Actions button.
Answer
4/20/12 2:55 AM as a reply to Jack A. Rider.
oh so great!
I am also considering to integrate registration courses workflow into School courses portlet. And have some problem about combine workflow process with portlet.
Hope XMLPF with this feature soon be released emoticon
Thanks you very very much !

RE: How can we add some more actions in Actions button.
Answer
4/21/12 10:12 AM as a reply to Jack A. Rider.

I think, beside Delete & Edit functions, we should add more "View Detail function" for big records that have a lot of columns.
I hope in the next version, it will have this useful function.
Thanks and regards!