Article Details
Id:18743
Product:finPOWER Connect
Type:NEW
Version:3.04.02
Opened:28/10/2021
Closed:01/11/2021
Released:02/12/2021
Job: J027663

HTML Widgets; New widget.UI.SelectResource method

A new widget.UI.SelectResource method has been added.

This is used internally in the upcoming FileUpload control to allow the User to select from a list of Resources.

This method takes the following parameters:

  • options
    • includeAll (false)
    • includeAllowAsEmailAttachment (true)
  • callback
    • This is passed 3 parameters:
      • ResourceId
      • Description
      • ResourceType

NOTE: By default, only Resources that are flagged "Allow use as Email Attachment" are included.

widget.UI.SelectResource({}, 
  function (resourceId, description, resourceType, sizeBytes) {
    window.alert(resourceId);
  }
);