Finishing the Image component data service

Once you have obtained the JSON code required to call the IDM-based image file, you must get that code into the data service for the Image component and finish configuring the data service.

To get the code into the data service and finish configuring it, use this procedure:

Note: This procedure assumes that you are using Infor Ming.le as your primary working environment.
  1. From the Infor Ming.le menu, select App Builder.
  2. Select your Image component and then click Manage Data Services.
  3. In the Project Data Services dialog box, select the data service you created for the Image component.
  4. On the toolbar, click Edit.
  5. In the Edit Data Service dialog box, select the Output Parameters page.
  6. Click VIEW JSON.
  7. In the JSON Preview dialog box, select the text ("text") inside the Json field.
  8. Paste the Response body code you copied earlier (in Getting the code to call the image file).
  9. Click Save.
    If necessary, also click Close to exit the JSON Preview dialog box.
  10. In the Edit Data Service dialog box, scroll down to the Root Element field.
  11. In the Root Element field, type: $.items.item[0].resrs
  12. Near the bottom of the Output Parameters section, click GENERATE PARAMETERS.
    App Builder generates these parameters:
    • .res[?(@.name=='')].size
    • .res[?(@.name=='Preview')].mimetype
    • .res[?(@.name=='SmallPreview')].mimetype
    • .res[?(@.name=='Thumbnail')].mimetype

    Each of these parameters can have an optional alias, three of which are assigned by default. You can change these aliases as you like.

  13. Change the final elements ("size" and "mimetype") for each of these parameters to: url
  14. Click Next and then Next again.
  15. On the Summary page, click Finish.
  16. In the Project Data Services dialog box, click Close.