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 ?
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.
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.
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]