get image from folder

Hi!

i created a cdt with an imageID then in an interface i designed a file upload with the target pointing to a documents folder and a save into and value of ri!product.imageId, now on an approval interface i want to display those images, i tried this:  a!documentImage(todocument(tointeger(ri!product.imageId))).document but i get this as an error: Interface Definition: Expression evaluation error at function a!imageField [line 77]: An image gallery component [label="Item's Pictures"] has an invalid value for "images" at index 1. None of the values in "images" can be null. 

Is it because i didnt save to the database yet or another problem?

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to pedrob0002

    "then i click refresh go to the user input task to validate the item all the information is showed except the pictures because i keep getting into error when designing the validate form"

    What does "click refresh" mean?

    So your problem is that you are not able to create the second form because of the error.

    As I mentioned, you need to make sure that the image field only shows when there are some images. Then, designer is happy.

Children