Hi,
I want to display an image from an external API call. Currently, I can achieve this on the interface using a button, but it is not ideal. The user wants to load this image from the API on interface/page load without the need to click on the button. Is it possible? Below is the current call I use for the button. thank you.
a!buttonArrayLayout( buttons: { a!buttonWidget( label: "View API Image", saveInto: rule!GI_APIExternal_itemImage( imageNumber: Local!ImageNumber, onSuccess: { a!save(local!FTNICallresult, fv!result), a!save( local!AppianInternalDocumentID, rule!LCP_GetNumberOutOfText(local!Callresult.body.imageData) ) }, onError: { a!save( local!CallErrorMessage, fv!error.message ) } ), size: "STANDARD", style: "NORMAL" ) }, align: "START" )
Discussion posts and replies are publicly visible
The API would have to return a URL to the image for that to work.
oh ok, thank you, yeah it returns a base64 encoded string of an image, which is why I need to use saveInto so it converts to an image for display back, etc...