spacer
cornerspacercorner
0 Kudos

Add OnClick controls for picture field controls

Status: New Idea
by on 10-13-2011 11:13 PM

In today's world of icons controlling flow, illustrating a concept, etc. it would be useful to be able to use pictures to control elements on the form/process.

 

To do this we would need to have something like "When user clicks picture" control, both Visual scripting and also Client side scripting would be handy.

Comments
by Ari Chopra Employee on 10-14-2011 10:54 AM

One easy way to accomplish this in the meantime is to use a Status field type.  You can select any image that you'd like, and it is very easy to configure drill down to URL, open a folder, etc...and you have client side scripting as well.  The only thing it doesn't have is server-side visual scripting.

 

hope that helps.

by on 10-17-2011 01:57 AM

Thanks Ari, that's a reasonable work around. I was using a label and the html image tag with OnClick javascript to accomplish this, at least that removes the pure html in labels element to it.

by on 03-13-2012 02:15 PM

You can also attach a handler to the image using jquery or javascript. That way you can use stock images instead of images on the server with img tags

by Tony Wheeler Employee on 03-13-2012 02:51 PM

If you put your desired server side and/or client side code on a command button and hide it, you can programmatically "click" said command button by attaching a javascript function inline on your handled OnClick() event (or Blur or Changed or whatever...). For example, you can use a calculated label field and set it up to render a literal HTML <IMG> tag and attach a function to the OnClick() that does this:

 

document.getElementById("MyCommandButton").click();

 

Now when you click the IMG, you will be programmatically clicking the invisible command button with whatever server side or client side code you choose. You just need to think about your events as buttons and tie your interface to those buttons.

 

But I agree, having the events exposed as properties on the Image control would be more convenient... or even better yet... extend the Command Button control to have a property that accepts images (button states hover, pressed, etc..) like the Asp.Net ImageButton control class.

 

Announcements
New Phone Numbers and Email Address for Customer Support
US: +1 800-970-5209
International: +1 585-424-2339
BPSSupport@opentext.com

Why and How to Register

How to Be Notified of New Releases

How to Suggest Product Enhancements

Custom Avatars

Metastorm BPM 7.6.4 Hotfix 2 (7.6.4.2) is now available for download in the 'Patches' section of the Knowledge Center here.

Metastorm BPM Widgets Release 2 for OpenText Smart Business Workspace Version 9.1 and Metastorm BPM 9.1.3 is now available for download in the 'Patches' section of the Knowledge Center here. For more information see this post.

Metastorm BPM 9.1 SR3 (9.1.3) is now available for download in the 'Patches' section of the Knowledge Center here. For more information see this post.

Metastorm BPM 9.1.2 Hotfix 2 (9.1.2.2) is now available for download in the 'Patches' section of the Knowledge Center here.

Note: Software and documentation are now in the Knowledge Center (KC) located here.

Have a question about the Community Site? Contact Us

Top Kudoed Authors
line spacer line
spacerFollow Metastorm on:
spacer Twitter YouTube Blog iTunes LinkedIn Metastorm Community Central, MC2
spacer Copyright © 2011 OpenText Corporation. All Rights Reserved.spacer About Metastormspacer Privacyspacer Legalspacer Site Mapspacer RSSspacer Contact Us
Microsoft Gold Certified Partner
Powered by Windows Azure
line spacer line