Message Boards

Get value of Data Dynamic List

Steve Diarrassouba, modified 6 Years ago.

Get value of Data Dynamic List

New Member Posts: 9 Join Date: 11/2/17 Recent Posts
Hello !

I has created a Data Dynamic List named SATA and i add values in this list . I specify , i has created that manually directly on site.
But i want get my data values in Eclipse and i don't know where data is stock . I think it's DDMContent but i don't know how i have to do ?

Thanks in advance !

Cordially
thumbnail
Andrew Jardine, modified 6 Years ago.

RE: Get value of Data Dynamic List

Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Hey Steve,

Dynamic Data List stuff can be accessed using the DDL* services from the API. Have a look in your database at the tables that are prefixed with DDL* and then you can (generally speaking) use the name as a prefix for the service. So a record on a data list is usually stored in the DDLRecord table and can be accessed using the DDLRecordLocalService* classes.

Let me know if that doesn't answer your question oro if you need something else.
thumbnail
Mahammad Ashik A, modified 5 Years ago.

RE: Get value of Data Dynamic List

Junior Member Posts: 77 Join Date: 7/17/17 Recent Posts
Hi,

 I am facing same problem. I have created Data Dynamic List and storing some machine details.

Now i need get all the machine details in my custom portlet. How i can achieve this?

​​​​​​​Thank You
thumbnail
Andrew Jardine, modified 5 Years ago.

RE: Get value of Data Dynamic List

Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Did you try having a look art the DDLRecord* services? You should be able to use them to get what you need. 
thumbnail
Mahammad Ashik A, modified 5 Years ago.

RE: Get value of Data Dynamic List

Junior Member Posts: 77 Join Date: 7/17/17 Recent Posts
Hi  Andrew Jardine,

Thank you for your reply.

I am getting the below Json Vale but how i can get fieldvalues for example here machineName..


{"availableLanguageIds":["en_US"],"defaultLanguageId":"en_US","fieldValues":[{"instanceId":"wzoe","name":"machineName","value":{"en_US":"Honda Machine"}},{"instanceId":"swlk","name":"Text9c60","value":{"en_US":"Honda"}},{"instanceId":"ktjb","name":"CellOrOp","value":{"en_US":"23"}},{"instanceId":"ptnr","name":"ConcentrationLowerLimit","value":{"en_US":"7"}},{"instanceId":"krul","name":"ConcentrationUpperLimit","value":{"en_US":"7"}},{"instanceId":"xsvo","name":"Text5am59","value":{"en_US":"C5"}},{"instanceId":"dbfn","name":"PlaceOnImportSheetc0hk","value":{"en_US":"Maruti"}},{"instanceId":"dvfo","name":"PlaceOnImportSheeti5bz","value":{"en_US":"8"}},{"instanceId":"vpsd","name":"Date58aq","value":{"en_US":"2019-03-26"}},{"instanceId":"eqpn","name":"Integer2317","value":{"en_US":"30"}},{"instanceId":"poog","name":"Numberhe24","value":{"en_US":"80"}},{"instanceId":"fsct","name":"PlaceOnImportSheet19jn","value":{"en_US":"Honda"}}]}




i need output like 
machineName:Honda Machine.

How i can get this values?

Thank You....
thumbnail
Andrew Jardine, modified 5 Years ago.

RE: Get value of Data Dynamic List

Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Mayme I'm missing something, but why don't you convert the JSON String to a JSON object and then traverse the object to get it. If  you are using the JSON WS to get the value, does that mean that you are retrieving the value in a custom javascript based portlet?