Answered

Display picture on form

Hi

I would like to display a picture on a form to help provide guidance to the user on how to fill in the form for a particular activity/step. I've searched the forum and found similar questions, but none of the answers seem to fit.

To clarify, I do not want to add an image control that is bound to case data. I want to be able to display an image that is part of the display of the form, not part of the case data.

Is this possible? If so, can you please provide guidance as to how I can get this to work?

Kind thanks in advance.

Best Answer
photo

Dear Sam,

In order to show an image in your form, you need to follow these steps:

  • Create a parameter entity and set at least two attributes: description (String control) and picture (image control).
  • Create a relationship from the new parameter entity to your process entity
  • Add the picture attribute to your form. You need to set it as Editable=NO.
  • Using the work portal, add a value to the parameter entity. normally the id of the value is 1.
  • After that, create an expression on enter of the task (Activity Action) in order to set as default the value of the entity.
  • After those steps, you will be able to see the picture as no editable and already set.

Best Regards

Comments (10)

photo
0

Dear Sam,

In order to show an image in your form, you need to follow these steps:

  • Create a parameter entity and set at least two attributes: description (String control) and picture (image control).
  • Create a relationship from the new parameter entity to your process entity
  • Add the picture attribute to your form. You need to set it as Editable=NO.
  • Using the work portal, add a value to the parameter entity. normally the id of the value is 1.
  • After that, create an expression on enter of the task (Activity Action) in order to set as default the value of the entity.
  • After those steps, you will be able to see the picture as no editable and already set.

Best Regards

photo
1

Hello!

How can I do this

  • After that, create an expression on enter of the task (Activity Action) in order to set as default the value of the entity .

set as default the value of the entity, this is the part that I don't know how to do it, can you help me please?

thanks.

photo
1

Hello ,

  • After that, create an expression on enter of the task (Activity Action) in order to set as default the value of the entity.

at this step how i can set the default image , what the following expressions is correct?

1) Me.setXPath ("myProcess.myImage.picture.Data" , Me.getXPath("entity-list('myImage','idmyimage = 1')")[0].getXPath("picture").getXPath("Data"));

2) Me.setXPath ("myProcess.myImage.picture" , Me.getXPath("entity-list('myImage','idmyimage = 1')")[0].getXPath("picture"));

3) or another ....

none of above options was not work for me , and image does not display,

please help , whats wrong?

photo
photo
1

Hi Juan,

We did as mentioned but still image is not displayed on form, kindly help us.

  • Create a parameter entity and set at least two attributes: description (String control) and picture (image control).
  • Create a relationship from the new parameter entity to your process entity
  • Add the picture attribute to your form. You need to set it as Editable=NO.
  • Using the work portal, add a value to the parameter entity.
  • After that, create an expression on enter of the task (Activity Action) in order to set as default the value of the entity.
  • After those steps, you will be able to see the picture as no editable and already set.
  • Thanks,

    KK

    photo
    1

    hi Team,

    Bizagi 11 version

    Implemented as mentioned earlier in one of the ticket but image is not displayed on form, please suggest.

    1) Created parametric entity with one of the attribute as image type and one with code

    2)Added values with images from work portal

    3)Created expression to set default image

    Thanks,

    KK

    photo
    1

    Dear kktech,

    Please send us the steps that you have done through some screenshots.

    We look forward to hearing from you

    photo
    1

    Hi Juan,

    Could you please help on sharing how to create the (on enter ) expression for setting the default value?

    Regards

    Shwetha

    photo
    1

    Dear Team,

    I am unable to show the image on the screen in my work portal.

    As answered previously for some other questions. I added a parameter entity and added the image part of it to the form and made it Editable=NO.

    Went to work portal and uploaded an image to the parameter entity.

    But I am not sure how to set the (ON ENTER) Event expression for displaying the image.

    Could you please help me?

    Another thing. Why is it showing false in the work portal even though I have uploaded the image. I have attached the screenshots, please let me know if you need more information.

    photo
    1

    Hi team ,

    please explain more detailed for those steps , that was not work for me too.

    Thanks.

    photo
    photo
    1

    Dear all,

    Please refer to the end of this topic for details on the On Enter expression.

    http://feedback.bizagi.com/suite/en/topic/adding-image-to-a-form

    Regards.