Created compound with search popup, where user can search for a string ( this is REST external service response)

Hi Guys,

Created compound with search popup, where user can search for a string ( this is REST external service response).

We should allow user to select that String and save to document type.

we tried using ExternalDocumentServiceFacade.java, but looks this is for image type.
same way, do we have any api to show list of search string in search popup ?

thanks & regards
Ganesh

Hi,

the ExternalDocumentServiceFacade can be used to list a a set of plain String. You can have a look at this example [1], please ignore the description and image link fields/methods.

[1] https://github.com/bloomreach-forge/external-document-picker/blob/master/demo/cms/src/main/java/org/onehippo/forge/exdocpicker/demo/field/ExampleExternalDocumentServiceFacade.java

Hi Goacomolm,

thanks for quick reply, i will try…

regards
Ganesh

HI Giacomolm,

I tried i am getting data with some default image option, even though am returning empty string in getDocumentIconLink() method. please let me know what i have to do to remove that default image.

thanks in advance

see:
https://github.com/bloomreach-forge/external-document-picker/blob/develop/fieldpicker/src/main/resources/org/onehippo/forge/exdocpicker/impl/field/no-icon.jpg

Thanks for your quick reply, i don’t want to show any image at all only check box and title.

regards
Ganesh

Maybe you can hide the icon using the icon.style property, as described here [1]

BR,

[1] https://bloomreach-forge.github.io/external-document-picker/field/dev-howto-listview.html

Hi Ganesh,

You can try with a simple configuration. e.g, icon.style: "WIDTH: 1px; HEIGHT: 1px" [1]
You can also tweak the CSS for the dialog in the classpath: org/onehippo/forge/exdocpicker/impl/field/ExternalDocumentFieldBrowserDialog.css. [2]

Regards,

Woonsan

[1] https://bloomreach-forge.github.io/external-document-picker/field/dev-howto-listview.html
[2] https://github.com/bloomreach-forge/external-document-picker/blob/develop/fieldpicker/src/main/resources/org/onehippo/forge/exdocpicker/impl/field/ExternalDocumentFieldBrowserDialog.css

Hi Woonsan,

thanks for your time and quick reply i will try and update.

regards
Ganesh