I tried 2 things:
-global.field=“media:///picture.gif” (field is mediatype)
-a label with the text %%global.field%% (field is text type) and global.field=“media:///picture.gif”
Becoz I want some users to see the image and other users don’t get to see the image…due to their priviliges…
For example a trash-ikon…
Some users can view the ikon and use it…and some can’t.
And I don’t want to use the security of Servoy becoz I want my client to be able to make and edit users…without using Developer. So I make my own table of users and groups and priviliges.
If I’d use elements.myImage.setImageURL(‘media:///test.gif’) than all users would see the the test.gif (toch?)
It seems you are mixing up things:
You NEVER can modify the repository objects descriptions(solution,form,field,etc.) from within JavaScript.
The thing you modify in JavaScript are the runtime object created from reposictory object descriptions, those runtime object are created in the application when a user loads a solution.
Changes done in javascript are application/user specific as a result ALL javascript changes on elements are not seen by other users!
The first can be found in the media dialog and is assigned to elements via the properties in designer or via scripting for example: elements..setImageURL(‘media:///logo.gif’)
The second one is database blobs and are set via dataproviders
in scripting: globals.logo = mydb_blob
on a form: you can have a field(type media) with dataprovider mydb_blob (column) displaying database blobs as part of a records (and is changed when other record is displayed)