cancel
Showing results for 
Search instead for 
Did you mean: 

clicking on Image

Former Member
0 Kudos

Hi,

I am developing one application. It contains two views. First view contains different UI elements and an image elemnt. When I click the image it goest to next view. Then how to do this? Have to write separate action? Please suggest me.

Regards,

Mastan.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member485701
Active Participant
0 Kudos

Hi Mastan

(1)First you have to paste your required image in the component.

(2)In the navigator Tab in your project Go to src->mime->Components-> componentFolder Paste your image here by ext. .png.

(3)Insert either LinkToActionUIElement or Button UIElement

and define the action for it.

(4)Now in the property of UI Element as the name of your image, or you can browse it to your component image and select the name.

(5)And in the test property give one space otherwise the action name will appear on the UI.

(6)If your outbound plug from First view is named as "ToSecondView"

Then call following line in the action.

wdThis.wdFirePlugToSecondView();

Warm Regards

Praveen

Former Member
0 Kudos

Hi Mastan

1) Copy the Images into "<project>\src\mimes\Components\<package>"

2) Createa <b>LinkToActionUIElement</b>

3) Under <b>imageSource </b>property of LinkToActionUIElement mention the name of the image

PLEASE NOTE A POINT HERE.THE NAME MUST BE CASE SENSITIVE AND MENTION EXTENSION ALSO [ex: india.gif ]

4) Now onAction() methond use

wdThis.wdFirePlug<second view's plug>();

Best Regards

Chaitanya.A