Skip to Content
author's profile photo Former Member
Former Member

Pass value from iView to anoher

Hi all,

I create two iView: the first is used for insert a value in the input field, the second iView show the value insert in the first iView. I used the EPCF with the EVENT API but my work don't work! How can pass the value in the JavaScript function to the variable in PortalComponent?

Anyone can help me?

Thanks in advance

Stefano

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Dec 29, 2004 at 03:54 PM

    Stefano

    One method you could use would be to do the following

    1) The first iView raises the event

    2) The second iview receives the event and then gets the value of the event object

    3) Once you have the value from the event object then you can simply change the 'location.search' to include a parameter value pair, i.e. location.search='?myparam=paramvalue'

    4) This will trigger the receiving iview to refresh, at which point it can then retrieve the parameter from the request and populate the input field

    The other method would be to use a Drag and Drop scenario, where you could drag the value from one iView to another. This is documented in the PDK documentation

    I hope this helps

    Thanks

    D

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.