function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mack DsozaMack Dsoza 

Explain me

<apex:selectList value="{!investmentWrapper.selectedAMCName}" multiselect="false" size="1" onchange="schemeJS(this.value,'{!investmentWrapper.index}');" styleClass="requiredField" style="width:100%">

 

Please tell me that onchange attribute is calling to javascript file or it just goes to controller...

 

As i hope that it is calling javascript file but still in confuse so please clerify it...



Shashikant SharmaShashikant Sharma

It is calling java Script function schemeJS which takes two parameters.

Mack DsozaMack Dsoza

Can u give me code to send this 2 values or hint to send this values in URL by javascript ?

Shashikant SharmaShashikant Sharma

These two values are one is value of the select list second is index of item in list , must be iterating in table or repeat.

go to your javascript function 

 

function schemeJS( parameter1 , parameter2)

{

 

 var param1 =parameter1 ;

var param2 =parameter2 ;

 //i have taken parameter1 , parameter2 please change it with yours in above code

location.href = YourURL?parameter1=param1&parameter2=param2;

}

 

 

 

 

 

 

 

Mack DsozaMack Dsoza

I got you Shashikant but still have one big headache that where should i place my other picklist value...

 

I have one picklist field named AMC Name & its options are putted in its object but whenver i select any AMC name then there is probably above 1000 values are there that need to be put side of this picklist as another picklist field named Scheme Name...

 

Have a headache, bcoz i am not getting where should i put my entire scheme list & how to call all appropriate scheme list while selecting AMC Name...

 

Please give me an idea about it....

 

Regards...