Message Boards

DXP 7.1 Forms: Populating text field via datasource REST api

Gopal Prasad Satapathy, modified 3 Years ago.

DXP 7.1 Forms: Populating text field via datasource REST api

Junior Member Posts: 51 Join Date: 3/29/18 Recent Posts
Hello,

Can anyone help on how to configure text fields  in form so that they can be populated from the data source?

Thanks,
Gopal
thumbnail
Eric D, modified 3 Years ago.

RE: DXP 7.1 Forms: Populating text field via datasource REST api

Junior Member Posts: 55 Join Date: 3/25/16 Recent Posts
Hello,

You have to use data providers :

https://help.liferay.com/hc/en-us/articles/360017894712-Data-Providers

We have done this last year in 7.1 with no problem.

Tips : if you call an /api/jsonws webservice use "localhost:8080/api/jsonws" and not "www.mywebsite.com/api/jsonws".
The call is not done by the browser but by the server. 

Eric.
Gopal Prasad Satapathy, modified 3 Years ago.

RE: DXP 7.1 Forms: Populating text field via datasource REST api

Junior Member Posts: 51 Join Date: 3/29/18 Recent Posts
Hello Eric,
Thanks for your responsei am able to populate the data when i use the datasource output type as List and in the form the field as "Select from List". But when the datasource output type is Text and the form field is a "Text Field" it does not work.
Thanks,
Gopal