Jack A. Rider Rank: Jedi Knight Posts: 134 Join Date: 7/16/11 Recent Posts | Hola Juanjo,
There are no special relations with Liferay tables, if you want to make validations in a XMLPF generated portlet, with one of the tables of Liferay portal, you have to touch source code.
There is an aproach, that maybe helps you, but its just an idea and I dont know if it would work. Think of this scenario:
1.- You have a portlet that needs a validation against liferay Users_ table. 2.- As there is no direct validation to tables, not defined in the xml, you can make a definition like this:
table: Myusers fields: myuserId name etc.
3.- Generate portlets, deploy ... this will create Myusers table in the database. 4.- Replace this file with a view of Liferay Users_ file, observing Myusers table structure. 5.- Try and tell us if it worked.
If this aproach works, will solve validations, and frees you of programing but remember views are Read Only "tables".
With this working, maybe a more "usable" aproach us to use triggers to add,update,delete rows a Myusers table from Users_ . But this requires a higher knowledge of databases.
Saludos, Jack. |
Please sign in to flag this as inappropriate. |