Monday, February 4, 2013

Displaying image on page

PeopleBooks suggest that you will have to use ImageReference type for your Image control for the field on derived/ work record. Here is the procedure:

To associate an image definition with a field at runtime, the field has to be of type ImageReference. An example of this is referencing a red, yellow, or green light on a page, depending on the context.

To change the image value of an ImageReference field:

1.Create a field of type ImageReference.
2.Create the images you want to use.
These images must be saved in PeopleSoft Application Designer as image definitions.
3.Add the field to a record that will be accessed by the page.
4.Add an image control to the page and associate the image control with the ImageReference field.
5.Assign the field value.

Use the keyword Image to assign a value to the field. For example:

MyRec.MyImageField.Value = Image.IMAGE;

1 comment:

  1. Use the InsertImage function (Thinktime function).
    Make sure that PSIMAGEVER field is also on the same record as the image field being updated.

    ReplyDelete