BBjAppConfig::getLoadImage
Description
In BBj 14.0 and higher, this method returns a BBjResourceUrl representing the application's load image.
Syntax
Return Value |
Method |
---|---|
getLoadImage() |
Parameters
None.
Return Values
Returns a BBjResourceUrl for the application's load image, or null
if this application does not have a custom load image.
Remarks
None.
Example
Click here to download a zip file containing the required files to run this sample
rem ' BBjAppConfig::getLoadImage app$ = "buisample" admin! = bbjapi().getAdmin("admin","admin123") appServer! = admin!.getWebAppServer() appConfig! = appServer!.makeEmptyAppConfig() image! = fnStaticResource!(dsk("")+dir("")+app$+".jpg","image/jpeg") appConfig!.setLoadImage(image!) print "getLoadImage: ",appConfig!.getLoadImage() stop def fnStaticResource!(filename$,mimetype$) iterator! = appServer!.getStaticResources().iterator() while iterator!.hasNext() resource! = iterator!.next() if resource!.getSourceFileName()<>filename$ then continue if resource!.getMimeType()<>mimetype$ then continue resource!.setSourceFileName(filename$) return resource! wend return appServer!.addStaticResource(filename$,mimetype$) fnend |
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.