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
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