Question
RABO BANK
NL
Last activity: 29 Feb 2016 10:05 EST
Embed HTML in Section Layout
Hi All,
Can you please help me on the following thing.
We have a grid on a screen displaying a list of items. When user selects an item, we need to fetch corresponding html file from a file server and display it below the grid in the same screen.
We are able to display static html content below the grid. However when we try to embed html dynamically, it does not display the contents of the html file.
Thanks
Suresh Chella
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Hi\
Can you please elaborate how you are trying to display it dynamically ? Perhaps via some screenshot may be ?
Pegasystems Inc.
US
You might want to display a property in the HTML.
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
RABO BANK
NL
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.
JPMC
IN
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...
Pegasystems Inc.
US
I like Ashish Agrawal idea. Suresh, can you use the rich text editor in read-only mode to display the property that contains the file contents ?
RABO BANK
NL
Thanks Ashish Agrawal Krithigassree Sambamurthy
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
Suresh Chella
Pegasystems Inc.
US
Hi Suresh
I am not sure what you can use to display a gif image.
May be depending on the type of file, you can use a visible when either to display the HTML using the RTE or the image via a image tag with the URL supplied via property ?
I do not know about the Java byte array, may be other community members can shed some light.
RABO BANK
NL
Hi,
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.
Any help would be appreciated.
Thanks
Suresh Chella
Pegasystems Inc.
US
Hi Suresh
The original issue that started the thread has been addressed.
It might be prudent to start a new thread, with the appropriate heading so that you can get more eyes / experts in that area to comment.
If the new issue is to display a file from an external source post a new thread on the community.
~Krithiga
RABO BANK
NL
hi Krithi,
Am getting RTE display in a limited window, can you plz suggest me how to make it expandable or sizable.
Thanks
Suresh Chella
Pegasystems Inc.
US
RABO BANK
NL
Thanks for the reply,
I have make RTE read only, not getting custom options for Read-only