Foren

Dynamic Data List: Configuring custom datasource for Select Data Definition

thumbnail
Prakash Khanchandani, geändert vor 9 Jahren.

Dynamic Data List: Configuring custom datasource for Select Data Definition

Expert Beiträge: 329 Beitrittsdatum: 10.02.11 Neueste Beiträge
It is possible to specify or configure a custom datasource to load the select-options for a particular Data definition for Dynamic Data list?

The following image might clarify what I need to do:



It is possible to specify or configure a custom datasource to load the select-options for a particular Data definition for Dynamic Data list?

The following image might clarify what I need to do: Dynamic Data List Data definition screen

Will it be possible that when the Dynamic Data form is shown to the User the values come from any of the liferay tables like User_, Group_ etc or from any custom plugin portlet's DB table etc.

Thanks

PS: Also posted on stackoverflow: http://stackoverflow.com/q/29026307/468763
thumbnail
Prakash Khanchandani, geändert vor 9 Jahren.

RE: Dynamic Data List: Configuring custom datasource for Select Data Defini

Expert Beiträge: 329 Beitrittsdatum: 10.02.11 Neueste Beiträge
Anyone ?
Any ideas?
thumbnail
Miroslav Ligas, geändert vor 9 Jahren.

RE: Dynamic Data List: Configuring custom datasource for Select Data Defini

Regular Member Beiträge: 152 Beitrittsdatum: 29.07.14 Neueste Beiträge
It should be possible. I would try to introduce a new element in the selection. That element would contain the connection to the data source. The functionality is mainly contained in JSP and JS so it should be possible to extend it with a hook.
Thinks to do:
Create a graphical representation in the new element for the DDL builder
Create a actual HTML element that will be rendered in the form (this par may get messy)
Firoza Saiyed, geändert vor 8 Jahren.

RE: Dynamic Data List: Configuring custom datasource for Select Data Defini

New Member Beiträge: 2 Beitrittsdatum: 22.07.13 Neueste Beiträge
Hi,
I am using liferay 6.2 and having the similar requirement whereI need to populate the values of the select box from database. Ie user_ and other custom tables created using service builder of liferay
Any solution for such requirement. Any pointers/inputs would be helpful.

Firoza
thumbnail
Steffen Schuler, geändert vor 8 Jahren.

RE: Dynamic Data List: Configuring custom datasource for Select Data Defini

Regular Member Beiträge: 137 Beitrittsdatum: 12.05.08 Neueste Beiträge
Have you found a workaround? Patch?
thumbnail
Steffen Schuler, geändert vor 8 Jahren.

RE: Dynamic Data List: Configuring custom datasource for Select Data Defini

Regular Member Beiträge: 137 Beitrittsdatum: 12.05.08 Neueste Beiträge
I stumbled into the same issue (LF6.2GA1SP14). To me it is a bug, because we can explicit mark it as indexable.

The same seems to be true for Date, Status, and maybe some other fields... but hey - it's liferay - isn't that the normal behavior: 80% implemented ;)
thumbnail
David H Nebinger, geändert vor 8 Jahren.

RE: Dynamic Data List: Configuring custom datasource for Select Data Defini

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
It wasn't part of the design for 6.2.

But it is part of LR7. Have you tested the betas yet?
thumbnail
Steffen Schuler, geändert vor 8 Jahren.

RE: Dynamic Data List: Configuring custom datasource for Select Data Defini

Regular Member Beiträge: 137 Beitrittsdatum: 12.05.08 Neueste Beiträge
We are upgrading to 6.2 - no way we will use 7.x.

Still, if you can mark something as indexable, it should be indexed.

Otherwise every bug could be "explained" like "... the expected behavior wasn't part of the design ..." emoticon

Anyway, thanks for the fast response!
thumbnail
Steffen Schuler, geändert vor 8 Jahren.

RE: Dynamic Data List: Configuring custom datasource for Select Data Defini

Regular Member Beiträge: 137 Beitrittsdatum: 12.05.08 Neueste Beiträge
Sorry. This time I was doing something wrong... of course, the selection is displaying e.g. option1, but within the index the value is stored like value1. Therefore it works, when searching for value emoticon