cancel
Showing results for 
Search instead for 
Did you mean: 

image control in VC7.0

Former Member
0 Kudos

Hi all,

I'm using VC7.0 SP17. Got a few questions that i find it difficult to find info on the net. Hope u could help to solve them.

1. I was about to add an image on my view as a banner/logo. According to the tutorial steps: click on layout tab > drag the image control on the compose task panel into my storyboard. but i dont see any image control on the compose task panel even my compiler is set to flash, flash (flex 2), nor web dynpro.

However, im able to add an image in my form view whereby i create a new field which is of type image. but that is not what i want.

is the image control available only VC7.1?

2. my model

[input form] --- [data service1] --- [chart view] --- [data service 2] --- [table view]

once i submit the input parameters in my input form, it calls data service1 n generate a chart view. but before i click on the chart view, it immediately load the data into the table view. is there anyway i can control the loading of data into the table view??

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Image control is not available in VC 7.0. You have to use it in the form only. But you can do one addition thing, in the visibility of the form make it 'Transparent'. So that you will not see that form in the run time & you can adjust the view of the image so that you can get what you want?

I hope this will solve your problem. You said you dont want to use it inside form view, is there any reason? please tell me

Regards

Sandeep

Former Member
0 Kudos

Oh its not available in VC7.0...haha

the reason i dont want it to be used in form view is because, client dont want to see the from in run time.

thanks, shd have set the form to transparent

Former Member
0 Kudos

Oh another question, are we able to assign an event on the image? like onClick? to trigger a process when the image is click.

Thanks

Former Member
0 Kudos

Yes you can assign an event to the image. for this you need to define the action in the action tab for the properties of image..

for example: if you want to navigate to a different layer when you click on the image, you can define a custom action goto_layer and use that action as an event.

regards,

Rk.

Former Member
0 Kudos

Hi

If you want to trigger a event from image it is possible. Follow the steps -

1. Right click on image control & go to the properties.

2. in that go to the 'Action' tab & select system actions.

3. Select action 'Hyperlink' from the list of actions.

4. Now it will ask for hyperlink of the event, for this deploy the event separately & paste that link in this 'Hyperlink' action.

5. After doing this, at run time when you click on the image you will get that event triggered in separate window.

I hope this is what you are looking for.

Regards

Sandeep

Former Member
0 Kudos

hi sandeep,

i put the hyperlink url as 'www.yahoo.com'. when i click it at run time, it opens a new windows with the address 'http://<myServer><myPortNumber>/irj/servlet/prt/portal/prtroot/www.yahoo.com'.

is that the way it suppose to be?? something i did wrong??

Former Member
0 Kudos

hi,

Add http:// to your address, 'http://www.yahoo.com' should work in your case.

Regards,

Rk.

Former Member
0 Kudos

Hi

The message you have given is required only if you are using hyperlink of another VC model. If you want to give link of website then just use 'http://' & then web id it will work. If still you are getting any error then tell me.

Regards

Sandeep

Former Member
0 Kudos

hi Rk,

thanks for the reply.

apart from navigate to another layer. what other actions an image can handle??

possible to change the value of a variable when it is clicked?? like changing a boolean value from true to false.

Regards,

kityein

Former Member
0 Kudos

Thanks rk and sandeep,

yea adding 'http://' in front and it works!

Cheers!

Former Member
0 Kudos

yes, you can do that with the help of some custom actions and datastore.

let me give you an example of disabling and input field when you click on image: feed the datastore with 'false' whenever you click on the image (this is done through custom action), and use this value in data store in the conditional operator to disable the input field.

hope this clarifies your doubt.

Regards,

Rk.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Regarding your second question, you can put a guard condition in the connection between chart view and data service 2.

try these steps.

1. connect a data store to chart view and pass the value that you are sending to data service to the data store also.

2. in the guard condition write a formula such that the value will be passed only when the value in the data store is not null. (i.e. the data service 2 will be triggered only when there is a value in the data store.)

hope this helps.

Regards,

Rk.

Former Member
0 Kudos

Hi Rk,

Thanks for the answer, it helps. but when i try to create another data store, the new data store has been prefixed with fields which are the same as the 1st data store. the same goes to the 3rd data store.

is that means that, an iview can have only one type of data store which the fields are all same no matter how many new data store i create?

one more question is that..where can i find some guidelines on writing dynamic expression and guided conditions in VC?

Thanks

Former Member
0 Kudos

yes you are right, no matter how many data stores you create, each data store will have all the fields.

for guidelines on writing dynamic expressions you can visit the following link , you will some examples in modeller's gude, wiki and forums also.

regards,

Rk.

Former Member
0 Kudos

Hy, you can create a toolbar on chart and a button that generate a custom action/event.

Then you can attribute this event at the line connection between the the chart and the data service.

Regards,

Andrea