Skip to main content
Ricki Smith a posé une question dans #Visualforce
I have 2 visual force page that I need to pass value from each other. First visual force page is for opportunity edit page. In this page I have a picklist field called Type . Value of this field are One, Two, Three.

There is another field called car and its type is lookup on the Opportunity edit visual fource page. When someone clicks on this lookup I am redirecting them to visualforce page called Carlookup . On this Carlookup visualforce page I want the value of Type from previous page which has been selected by user.

In my org I use openPopup() function  and pass paramenters into that like baseURL,Width,Heigh

where Variable baseurl is what I have created for different fileters in that lookup page.

Here is the code for Baseurl

var BaseURL="/apex/Looup?txt=" + txt;

if(Cond.)

    {baseurl = baseurl + "&txt2=" document.getElementbyId(page:form:pbs:carvalue).value;

i have tried adding another condition for type

if(opp.type != null) baseurl = baseurl+"&type=" + document.getElementbyId(page:form:pbs:Type).value; }

I also have tried passign the value through parameters by following way

 baseURL = baseURL + "&type=(page:form:pbs:Type).value";

using above method I do get value on look up visaul force page but that is only "page:form:pbs:Type" I need value of the selected field in picklist.

 
2 réponses
  1. 22 oct. 2015, 12:35

    Hi

    I am not using multi select pick list. It is a drop down list  I am using. is this code good for that ?

0/9000