Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The second time the PUIDNLEXIT program is called is after the download occurs, in which case timingFlag = 1. This is where you will want to delete the file from the IFS. To do this, we used the “unlink()” API. This API is simply used to delete a link. You can find more detailed information about this API here.

 

Using pui.downloadURL()

...

The display file that we used for this example is quite simple. Below you can see how this is set up in the Visual Designer:

 

We placed an image widget onto the screen and changed the "visibility" property of this image to "hidden", since we don’t want to see the default image. The “Download” button is where we use the pui.downloadURL() API. In the onclick event of this button, we have the following:

...