Later when you click on the grid item, configure an activity to copy the contents of the file to this property and refresh the screen. This should help you change the contents every time you click on the row
We tried this already but its not working. The problem is we have a HTML which should display another HTML as part of it. We tried doing it through iFrames. However, that does not display anything. We tried out the HTML separately and it works. But when we plug it into pega, somehow it stops functioning.
We also tried out the approach with the property holding the file to be displayed. But, when we put it on the screen, it just displays the file contents as a string and not as a html.
The screen below is what it should look like. The grid will contain the file details. The section below will display the actual html file associated with the record.
Just to note, the file displayed is an complete HTML file and not just the body.
Hi Suresh, As per your approach with the property holding the file to be displayed. You mentioned it just displayed the file contents as a string and not as a html. In that case, you can show the conent of the property in a ritchtexteditor in readonly mode (with toolbar disabled ). So that it will display the content of the property...
The rich text editor work very good. However, there is one more requirement. Sometimes instead of HTML file we have to display an gif image. The image also comes from the same location as the HTML file. Can we use something similar for displaying the image.
On an added note, which pega property should we use for holding the byte array we got for the image. We are currently using property of type Java Object to hold the byte array. Is that the right way of doing it?
Thanks for the reply. Let me explain the problem in a bit more detail. The gif or HTML file are present in either an external file location or the database. We cannot create Rule-File-Binary for them as the number is huge and constantly changing. Also putting it into a work object is not feasible. So we have the files in external file location and in an external db. The trouble is fetching the files and displaying them to the user at run time.