Subject: | |
From: | |
Reply To: | |
Date: | Tue, 15 Feb 2011 13:23:09 +1100 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Thanks Corn,
The "data:text..." was exactly what I was looking for. Interesting example you've given too.
Cheers...
David.
On 15/02/2011, at 3:13 AM, Corn Walker wrote:
> On Feb 14, 2011, at 10:33 AM, David Thorp wrote:
>
>> But what if i have a field with a bunch of html in it, perhaps the source from a web page, and i want to render that in the web viewer? Is that possible?
>
> Use the "data" URI. For example, here's a calculation to display the record count in a webviewer:
>
> Let ( [
> __rn = Get ( RecordNumber );
> __fc = Get ( FoundCount );
> __trc = Get ( TotalRecordCount );
> __showtrc = Case (
> Get ( WindowMode ) = 1; " Find Requests"; __fc < __trc; " (" & __trc & ") Records" ) ];
>
> "data:text/html,
> <html>
> <head></head>
> <body bgcolor=\"rgb(45, 63, 83)\">
> <p style=\"text-align: left; padding: 0px; font-family: arial; font-size: 10pt; color: white; background-color: rgb(45, 63, 83)\">" & __rn & " / " & __fc & __showtrc & "</p>
> </body>
> </html>"
> )
>
>
> Cheers,
> -corn
>
>
> Cornelius Walker
> Hatfield, MA
|
|
|