cancel
Showing results for 
Search instead for 
Did you mean: 

Client Side Eventing Problem

palani_aravazhi
Participant
0 Kudos

Greetings to all.

I am trying to create couple of simple iviews which uses client side eventing. We run EP6SP2P5.

Here is my model. The goal is to pass a URL from IView 1 to Iview 2 and show as an HTML Page using the VC HTML element

Iview 1.

- Read a custom BAPI and send the output to a List

- Select a line from the List which contains a hidden URL

- This line is moved to the "OUTPUT" port

Iview 2.

- Signal through "INPUT" port

- Show as an HTML page using HTML view element

When I have everything in the same iView it works but if it is in two iviews with eventing it is not working.

Do I have to activate any setting in the Portal for Eventing to work?

I greatly appreciate any input.

Regards,

- PK

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi,

I have seen couple of posts in this forum. People call creating the Virtual field in VC.

I have no idea, what does virutal field mean and where to create and how?

Please suggest me if any body knows?

Thanks and Regards,

Manjunatha.T.S

Former Member
0 Kudos

Hi,

When you are focused on an element that has fields (or can have fields) like a table, form, output port etc.

you can defined your fields on it (in the fields task panel). Any field you add yourself is considered to be a "virtual" field, as opposed to a "real" field which is a field that was discovered with the data source you're using.

Other than that, "real" and "virtual" fields are the same and behave the same.

There is one more type of field - a "static" field. This is a field that is not bound to a data, e.g. a button, a label, etc.

Hope this helps,

Lior

0 Kudos

Hi Lior,

why i asked this question was, actually i am confused with the variables that starts with the symbol '@'.(ex @MESSAGE, @RESULT that we can write in the expression editor)

I am still bit confused about the things like.... the coding part of VC. I have seen some place in documentation where we can write statements like "IF", "FOR", "DO" and etc., If these features are provided, then it would be really great.

After a long time i found a place where i can write the if statement........That is none other than the expression editor. My experience here would be example like " If the field returned from the RFC is blank, then we can show some success message or failure message by writing the IF statement in the expression editor.

SO, i am still curious to see other statements like "for", "do" and etc., in VC......

Please let me know once you come across these things....

Thanks and regards,

Manjunatha.T.S

Former Member
0 Kudos

Hi,

The '@' symbol is used to refer to other fields in the same data set, in order to write expressions.

The kind of coding you're referring to is not supported. I know it appears in the documentation, please disregard that appendix. You can write dynamic expressions (which will be a lot richer in future versions), but that's about it. The goal of VC is not to move the coding from the Java to some other language (VC), the purpose is to MODEL the application. Although dynamic expressions are used extensively, and they have great expressive power, they are still not considered a programming language and are limited in their scope. They serve the purpose of providing you with field attributes (and sometimes field values) that depend dynamically on data, but not more than that.

Thanks,

Lior

Lisi
Advisor
Advisor
0 Kudos

Hi PK Aravazhi,

There are a few things you need to do in order to have the client side eventing working:

1. The input and output port of the iViews should be named exactly the same.

2. The name space (EPCM event) should also be identical in the in and out port

3. You have got to have in the input port exactly the same field names as in the output port.

In your case, you can add a virtual field to your list and name it "url" (like the input field in the HTML view). using the Expressions Editor, set its value to be the value of the field containing the url, and map this field to the url field in the HTML view.

Regards,

Lisi