I played with something similar that never made it to production. Here is a
snippet from the HTML template that was stored in the AR System Resource
form and was calling an image that was also stored in the AR System
Resource form.

<img src="sharedresources/image/${IMAGE}" width="75" height="50" border=/>

This code is for a Tooltip template and there is a Set Fields action before
this template is called that associates ${IMAGE} with the AR System
Resource record name.  I think it may work with showing the HTML template
in a View Field instead of as a Tooltip in a Message action.

Jason

On Wed, Dec 7, 2011 at 5:26 AM, Andrew Hicox <[email protected]> wrote:

> **
> Hi Jason,
>
> thanks for the response. that is indeed, exactly what I'm trying to do.
> However, though I can create both HTML templates and Images in the AR
> System Resource Definitions form, I don't seem to be able to figure out how
> to use one of those images in the HTML template.
>
> So I need to be able to create an HTML template with image references in
> it.
>
> -Andy
>
> On Dec 6, 2011, at 5:39 PM, Jason Miller wrote:
>
> ** Hi Andrew,
>
> What about putting the HTML file in the "AR System Resource Definitions"
> form?  A record in here and a little workflow to do a Set Fields to your
> View Field should do the trick.
>
> Bullet two has a little bit of info in the 7.6.04 "Form and Application
> Objects Guide" on page 380 and some more on 388 (the feature was introduced
> in 7.5 so you have it in 7.6.03).
> *
> *
> **********************************************
> *View fields*
> A view field is a display-only field that displays any type of content
> that a typical browser can display, including the following:
>
> * Views of AR System forms.
>
> * HTML templates registered in AR System Resource Definitions with
> parameters or embedded field references. These can be full HTML documents,
> or HTML fragments that are included in the main page.
>
> * Attachment field contents, such as HTML files, image files, and
> Microsoft Word documents.
>
> The common use of view field is to embed multiple forms on the view fields
> that are present on a container form. Embedded forms can share the user
> interface and workflow. You can load AR System forms as Inline forms. For
> more information, see “Inline Forms” on page 150.
>
> You set the initial value of a view field by setting its Text property to
> bind a URL or a template name. You can also set the initial value using a
> Set Fields active link action, optionally using theTEMPLATE() function. For
> more information, see “Creating view fields.”
> **********************************************
>
> Let me know if that works.
> Jason
>
> On Mon, Dec 5, 2011 at 2:48 PM, Andrew Hicox <[email protected]> wrote:
>
>> Hi everyone,
>>
>> I have a pretty odd set up, where hostnames of our mid-tier servers are
>> not static. Which is to say, from one network segment in the company it's
>> "hostname 1", and from another it's "hostname 2", and from still others
>> there is no DNS at all, and it's just an IP address (and at that --
>> sometimes not even the same IP, sometimes it's the IP of a proxy). There
>> are also load balancers involved across multiple mid-tiers as well.
>>
>> I have a form, and in that form, I have a view field. In that view field,
>> I want to load up an HTML template full of help text. I'd just love to
>> include some graphics (screenshots will be helpful here). The only problem
>> is that since the template is not being served from any discernible
>> document root (it's loaded up in an active link set-fields template()
>> action), there is no relative path for image files.
>>
>> I can bypass this by putting in an fully qualified URL to the image
>> files, but the problem is that I can't actually KNOW what the hostname is
>> going to be. It might have bounced through a proxy, into a nat translation,
>> or what have you.
>>
>> I'd *really* like to be able to include references to BMC image objects
>> in my template. Intuitively, it seems like this would be the "right" way to
>> handle it anyhow.
>>
>> I don't see a way to do that in the documentation (though admittedly, I
>> may have missed it).
>> We're on 7.6.03.
>>
>> Anyone ever do something like this?
>>
>> -Andy
>>
>> _______________________________________________________________________________
>> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
>> attend wwrug12 www.wwrug12.com ARSList: "Where the Answers Are"
>>
>
> _attend WWRUG12 www.wwrug.com ARSlist: "Where the Answers Are"_
>
>
> _attend WWRUG12 www.wwrug.com ARSlist: "Where the Answers Are"_

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
attend wwrug12 www.wwrug12.com ARSList: "Where the Answers Are"

Reply via email to