• Anonymous
  • Login
  • Register
Bildr - Feature Request: Avoid API Calls - Solution


I have mmodified the FileDialog function in (ImportPicture) Agent to avoid the use of API. The used API is for Windows only. Therefore you cannot import pictures on Linux or Mac.

The modified function uses pure Lotusscript and is platform independent

Function FileDialog(path As String) As Variant
Dim filename As Variant
'added 03-Mar-2010, Ulrich Krause
'No API used so the code will be platform independent
Dim filter As string
Dim workspace As New NotesUIWorkspace
filter = "All Files|*.*|JPG|*.JPG|"
filename = workspace.OpenFileDialog( True ,"Select files" , filter )
'replace original code
'FileName = FileOpenDialog(path, "", "JPEG-Files|*.jpg;*.jpeg;*.jpe", "", "Choose the pictures to import")
FileDialog = FileName
End Function



Taken Actions by Owners

No actions have been taken yet.


In this field you can enter the actual request.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.
In this field owners can describe what they have done or want to do.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.