I’m able to add a JPG picture to shared image resources, then put that filename in a text field and display it as an “icon” in a view. But how can I display that picture in the document also?
Subject: can display picture in view, but not in document
Just use the menu item Create - Image Resource… and pick the image resource. For example, the following image is an image resource added just this way (from the Notes client):
Subject: RE: can display picture in view, but not in document
So I as the designer can do it at the form level, but is there a way for the user to do it in a document? So he could select different pictures in different docs with the same form.We don’t want to give the user designer rights.
Subject: RE: can display picture in view, but not in document
After you insert a shared image on a form, you have the option in the properties box to specify the image resource name with a formula. The formula can refer to a field on the form. The formula will recalculate when the form is refreshed.
There might be a problem in some versions, if the image whose name you calculate is not the same dimensions as the one you originally inserted – it will be rescaled. This doesn’t seem to be a problem in 8.0 but I’m not sure how long before that.
Otherwise, the user can manually insert an image resource in a rich text field using Create / Image Resource menu. Automatically tying this to a value entered in a field, however, may be a challenge.
Subject: RE: can display picture in view, but not in document
“Otherwise, the user can manually insert an image resource in a rich text field using Create / Image Resource menu.”
Oops, I was overlooking the obvious here. A RichText Lite field might be even better suited in this case. But of course, this cannot even be computed, so I wouldn’t bet on some automated way, either.
Subject: *See Andre’s answer
Subject: RE: can display picture in view, but not in document
Shared images are design elements and as such intended to be used by the designer when building the application. To display them in views is actually a bit of hackery already.
In your case, you might be better of with a number of configuration documents from which users could pick a graphic. Requires a bit of programming, though.
Subject: RE: can display picture in view, but not in document
I ended up just displaying the picture in a Rich Text Lite field in the document and punting on the picture in the view. Thanks!