• Niket
  • NEWBIE
  • 415 Points
  • Member since 2011
  • Amazon Web Services

  • Chatter
    Feed
  • 16
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 76
    Replies

Hello,

 

I have an object with a lot of fields, and i wanted to know if it is possible to create a multi step record creation.

For example, the section Information in a first screen, then a button "next" with a new screen with another section.

 

Thx.

Hi,

 

i am trying to validate the credintials but its giving error

Below is the my login controller let me know where i am wrong

 

 


public class LoginController {

public list<Candidate__c> listCandidates{get;set;}
    public string searchString {get;set;}
    public boolean showmsg{get;set;}
    public LoginController(ApexPages.StandardController controller)
    {
        listCandidates=new list<Candidate__c>();
        showmsg=false;
    }
    public pagereference ValidateUserName()
    {
        String AccountQuery = 'select UserName__c, PassWord__c from Candidate__c';
        
        if(searchString != '' && searchString != null)
            AccountQuery = AccountQuery +
            ' where name  =: ' + 'searchString' ;

 

so when i tried to login,i am getting below error i have entered user name as 'jakson'

 

System.QueryException: Variable does not exist: jakson

 

Error is in expression '{!ValidateUserName}' in component <apex:page> in page candidate_login_page

 

 

Class.LoginController.ValidateUserName: line 18, column 1          

 

 

Can anyone help me in this issue,

Thanks & Regards,

Bharath

I'm missing something fundamental - I need to get the Owner, Number of Leads, and the role description of the lead owners on a single  SOQL statement.  I'm trying the following:

 

SELECT Lead.Owner.Alias,Owner.Id, Lead.Owner.UserRoleId,
Lead.Owner.UserRoleId.Name,  Count(Id)
 FROM Lead  
 WHERE Lead.Owner.IsActive = TRUE
 AND IsUnreadByOwner = True
 GROUP BY Lead.Owner.Alias, Lead.Owner.Id, Lead.Owner.UserRoleId, Lead.Owner.UserRoleId.Name
 HAVING Count(Id) < 25
 ORDER BY Lead.Owner.Alias ASC
LIMIT 45

 ...but I get

INVALID_FIELD:
ERROR at Row:2:Column:1 Didn't understand relationship 'UserRoleId' in field path.

 If I don't try to return "Lead.Owner.UserRoleId.Name" it works fine... which I'm thinking is because I'm mixing child-to-parent and parent-to-child, but I thought that since I already grabbed Lead.Owner.UserRoleId successfully I could also get the name.

 Is there any way to do this?

Thanks in advance

 KC64


Hi all,

 

I'm missing something fundamental - I need to get the Owner, Number of Leads, and the role description of the lead owners on an SOQL statement.  I'm trying the following:

 

SELECT Lead.Owner.Alias,Owner.Id, Lead.Owner.UserRoleId,
Lead.Owner.UserRoleId.Name,  Count(Id)
 FROM Lead  
 WHERE Lead.Owner.IsActive = TRUE
 AND IsUnreadByOwner = True
 GROUP BY Lead.Owner.Alias, Lead.Owner.Id, Lead.Owner.UserRoleId, Lead.Owner.UserRoleId.Name
 HAVING Count(Id) < 25
 ORDER BY Lead.Owner.Alias ASC
LIMIT 45

 

...but I get

INVALID_FIELD:
ERROR at Row:2:Column:1 Didn't understand relationship 'UserRoleId' in field path.

 

If I don't try to return "Lead.Owner.UserRoleId.Name" it works fine... which I'm thinking is because I'm mixing child-to-parent and parent-to-child, but I thought that since I already grabbed Lead.Owner.UserRoleId successfully I could also get the name.

 

Is there any way to do this?

 

Thanks in advance

 

KC64

 

Hello,

 

I have created a popup to update the contact's information on contact's info page. Here is the code.

 

<script>

function popup(page)
{
window.open(page,'items','scrollbars=1,width=1000,height=500,resizable=1');
}
</script>

<apex:commandLink onclick="javascript&colon;popup('apex/ContactPage?Id={!Contact.Id}')" value="{!Contact.Name}">

 

1. After updating information on this "ContactPage" when I click the "Submit" button that popup remains open with my new redirected url. I want to close that popup after submit and redirect to my site.

 

2.Also I want to lock the original site when popup is open i.e. no one able to open new popup or click on another link.

 

Can anyone help me to get rid of it.

 

Thanks in advance.

 

Pratty

  • February 15, 2012
  • Like
  • 0

I was wondering what tools you guys have used to migrate assets from your current site to Siteforce.  Is Data Loader the recommended tool?  I found another tool on Developerforce.com that made mention to a tool called HTTrack that could be used.  Has anybody used this tool?  Did it work well for you?  What are some other tools available?

 

Thanks!

  • February 08, 2012
  • Like
  • 0

Hello!

I am trying to launch a new VF page from a detail page button on an Account record in Winter 12 but the menu option is not showing me list of VF pages? Any ideas as to what could be the reason? Attached is a screenshot of the same. 

 

Screenshot from Winter 12 Settings page

 

Screenshot

 

Appreciate any help in regards to this issue.

I am getting an error when saving, am I declaring the method wrong? Can I use an extension class?

 

ErrorError: action="{!savepackage}": Unknown method 'Packages__cStandardController.savepackage()' 

 

relevant code:

 

global class packageextensions {
    private final Packages__c PackageObj;
    public packageextensions (ApexPages.StandardController controller) {
        this.PackageObj= (Packages__c)controller.getSubject();
    }
    
    global static Boolean getAddDisposition(List<Product2> pproducts) {
        
        return false;
    }

 

The code that is erroring:

 

<apex:page standardController="Packages__c" extensions="packageextensions">
<apex:form >

     <apex:commandButton action="{!savepackage}" value="Save Package"/>

</apex:form>

 

 

 

Hi Firends,

In the below given code I am getting an error message variable r.opporunityid not found .I understand and why this error has been coming.I am not able to rectify.Can somebody please help me.The variable r belongs to the the loop which has been highlighted below with blue color and when I try to acces it limes which are in red ,it gives an error meesage variable r does not exists as it is local to the for loop ,hence not accessible to the lines in Red.

 

 

Can somebody please help ?

 

trigger Quote1 on QuoteLineItem (after update) {

static Double d=0;
Map<id,double> i=new map<id,double>();
//list<quotelineitem>l=new list<quotelineitem>();>
list<quotelineitem>l=[select id,quoteid,totalprice from quotelineitem where id in:Trigger.newmap.keyset()];
for(quotelineitem d1:l)
{
d=d+d1.totalprice;
i.put(d1.quoteid,d);
System.debug('The value in the map variable of type mao is'+i.get(d1.quoteid));
}
Map<id,double>sat=new Map<id,double>();
list<quote> s=[select id,opportunityid,Totalprice from quote where id in:i.keyset()];


Double temp=0;
for(quote r:s)
{

temp=i.get(r.id);
temp=temp+r.totalprice;
sat.put(r.opportunityid,temp);

}

//list<opportunity>opp1=[Select Amount, (Select TotalPrice From Quotes) From Opportunity where id in:sat.keyset()];

//for(opportunity soal:opp.quotes)
//{

 

//}
list<opportunity> lap=[select id,amount from opportunity where id in:sat.keyset()];
list<opportunity> crop;
for(opportunity opp:lap)
{


opp.amount=sat.get(r.opportunityid);

//System.debug('The value in the
crop.add(opp);
}
update crop;
}

 

Thanks,

Trick.

 

 

  • February 03, 2012
  • Like
  • 0

Hi,

 


I tried to execute a test class I had this error!

"

Visualforce Error


java.lang.reflect.InvocationTargetException

 

"

 

before  today my class exectute well!

 

please , is salesforce problem or is to my class test?

 

thanks.

I, I'm new to developerforce and would like to have a look at some demo sites to see what the end result can look like of other peoples apps.

Does anyone know where to go to view other people's finished/ semi finished demos?

 

Thanks

Hi,

 

I have to find the browser type which I am using. 

 

Is there is any method in apex to do this.

 

Thanks in advance.

 

Regards,

 

Pratty

  • January 20, 2012
  • Like
  • 0

Hi,

 

Do we have to write test classes for all the triggers present in the instance?

 

 

 Can anybody elaborate the steps to integrate  salesforce to salesforce .My  question is do we require wsdl files to use this,if it is so enterprise wsdl ,partner wsdl or apex wsdl?.

 

Thanks in Advance.

All I want to do is close the popup window and refresh the parent when my save is complete and nothing happens on this.  Can anyone help?

 

Page

<apex:page id="orderpage1" standardController="Order_Item_Junction__c" extensions="oitemController" sidebar="false" showheader="false" >
<script language="JavaScript" type="text/javascript">
function closeAndRefresh()
{
    window.close();
    window.opener.location.reload();
}
</script>
    <apex:form id="form1">
        <apex:pageBlock title="Add Order Items" id="order">
            <apex:pageBlockButtons location="top">
                <apex:commandButton value="Save" action="{!saveitems}" oncomplete="CloseAndRefresh()" />
                <apex:commandButton value="Cancel" action="CloseAndRefresh()" />
            </apex:pageBlockButtons>
                <apex:pageBlockSection id="pbsbundle" title="Available Product Bundles" rendered="true" columns="1">
                    <apex:pageBlockTable id="pbtbundles" value="{!lstoitem}" var="l" width="100%">
                        <apex:column headerValue="Order" value="{!l.Order__c}" width="40%"/>
                        <apex:column headervalue="Product Bundle Name" value="{!l.Product_Bundle__c}" width="40%"/>
                        <apex:column headerValue="Quantity" id="iqty" width="20%">
                            <apex:inputField value="{!l.Quantity__c}"/>
                        </apex:column>
                    </apex:pageBlockTable>
                </apex:pageBlockSection>
            <apex:pageBlockButtons location="bottom">
                <apex:commandButton value="Save" action="{!saveitems}" oncomplete="CloseAndRefresh()" />
                <apex:commandButton value="Cancel" action="CloseAndRefresh()" />
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 

  • January 14, 2012
  • Like
  • 0

Hello People,

 

I have the class:

 

global class Parcelamento {

     Webservice static String Parcela(String idOpp){
          return Parcelamento.ExecutarParcelamento(idOpp);
      }

      public static String ExecutarParcelamento(String idOpp){ 

           //operations

      }

 } 

and my class test is:

 

private class testParcelamento {

     static testMethod void myUnitTest() {
         Parcelamento.ExecutarParcelamento([Select id from Opportunity limit 1].id);
     }
}

And my error is:  Save error: Method does not exist or incorrect signature: Parcelamento.ExecutarParcelamento(Id)

 

Help me.

 

Thank you 

 

 

I am trying to create folder inside content library. Though, it is mentioned here (https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_contentfolder.htm" target="_blank) that I can do that, but when I am trying to set library id as ParentContentFolderId, I am getting error 

FIELD_INTEGRITY_EXCEPTION, Parent Content Folder ID: id value of incorrect type: 058M00000009eY0IAI: [ParentContentFolderId]

Here 058M00000009eY0IAI is the id of existing library. 

Have anyone implemented this yet ? I appreciate any help.
  • December 09, 2015
  • Like
  • 0

Hi All ,

 

I have a managed package installed in sandbox. I have also developed some custom code there. Now when I am trying to uninstall the package, I am not able to do so. It says "This extension depends on the package you are trying to uninstall."

 

I have checked that I am not using any reference of that managed package in my code. However, in eclipse I realized that meta.xml files of my apex classes are using the name space of that managed package. When I try to remove namespace from my meta.xml files it reverts my changes automatically.

 

I want to uninstall that managed package urgently.

 

Any help would be apreciated !!

  • May 16, 2013
  • Like
  • 0

Hi All ,

I've done some customization(created new fields, page layout, custom button) on an object that is a part of managed package. I want to deploy this customization from sandbox to production.

Is there any way to achieve this ? I've already tried ANT, eclipse .

Please suggest .

  • June 22, 2012
  • Like
  • 0

Hi All ,

I've done some customization(created new fields, page layout, custom button) on an object that is a part of managed package. I want to deploy this customization from sandbox to production.

Is there any way to achieve this ? I've already tried ANT, eclipse .

Please suggest .

  • June 22, 2012
  • Like
  • 0
I have completed the Lightning Process builder step and i have verified that it is working correctly ( the battle Station record has been changed to complete and it has post a message to chatter, but when I click the Verify Step button I get this error message:

"Step Not yet complete... here's what's wrong:
An update to a Battle Station record with Weapon Status of 'Fully Operational' failed to post a Chatter message to the record. Make sure that the process is configured correctly and that it is activated.
Note: you may run into errors if you've skipped previous steps."

As per release winter 16 release notes: http://releasenotes.docs.salesforce.com/en-us/winter16/release-notes/salesforce_release_notes.htm
 

REQUIRESCRIPT no longer executes JavaScript on Page Load.

We use the REQUIRESCRIPT function in several custom buttons on our lead page.  When the Winter 16 features were released into our sandbox, our buttons started returning an error Reference $ Undefined.

I reached out to salesforce support, and they told me to use the code in the following article which removed the REQUIRESCRIPT function and instead, creates a custom java function.

https://help.salesforce.com/apex/HTViewSolution?urlname=Receiving-error-sforce-apex-is-null-or-not-an-object-1327108329858&language=en_US

I've been messing with the code above to fit it into my button.  I'm stepping through the code through alerts, it stepped all the way through but at the end I get an Object error.  Any help would be appreciated.

function loadScript(url) 

    var request; 
    if (window.XMLHttpRequest) 
    { 
        request = new XMLHttpRequest(); 
    }     
    else if (window.ActiveXObject) 
    { 
        request = new ActiveXObject("Msxml2.XMLHTTP"); 
        if (!request) 
        { 
            request = new ActiveXObject("Microsoft.XMLHTTP"); 
        } 
    
    } 


    var se = document.createElement('script'); 
    se.type = "text/javascript"; 
    //alert("before Request undefined\n");
    request.open("GET", url, false); 
    request.send(null); 
    se.text = request.responseText; 
    document.getElementsByTagName('head')[0].appendChild(se); 
    //alert("end of loadScript\n");


loadScript("/soap/ajax/30.0/connection.js"); 
loadScript("/soap/ajax/30.0/apex.js"); 
loadScript("/resource/jQuery/jquery-1.8.2.min.js"); 
loadScript("/resource/jQuery/ui/jquery-ui-1.9.1.custom.min.js");
loadScript("/resource/jQuery/postmessage/jquery.ba-postmessage.js");
loadScript("/resource/jQuery/bbq/jquery.ba-bbq.min.js");
loadScript("/resource/buttonjs");

try 

    var j$ = jQuery.noConflict(); 
    var newurl= sforce.apex.execute("RegisterMerchant", "getPricingArticleID",{leadID : "{!Lead.Id}"}); 
    newurl1 = String(newurl); 
    alert('Lead ArticleID '+newurl1); 
    if(newurl1.indexOf('error')>-1 ) 

    alert(newurl); 
    document.location.reload(true); 

else 

    alert('Start of Else Statement')
    var strQuery="Select l.of_Pin_Pads__c,l.Id, l.Article_ID__c, l.Processing_Origin__c, l.Company, l.Strategic__c, l.Gift_Only__c, l.Dealer__r.Name, l.Developer__c, l.DLR_Sales__c, l.Name, l.OwnerId from Lead l where Id= '" +'{!Lead.Id}'+"'"; 
    var accFields = sforce.connection.query(strQuery); 
    var records = accFields.getArray("records"); 

    var owner = records[0].OwnerId; 
    var ContactName = records[0].Name; 

    var leadId = records[0].ID; 
    var Dealer = records[0].Dealer__r.Name; 
    var devID = records[0].Developer__c; 
    var Developer = null; 
    var DealerSalesperson = null; 
    if (devID!=null) 
    alert('Developer Record')
    

    var strQuery3 = "SELECT Name from Account where ID='" +devID+"'"; 
    var devField = sforce.connection.query(strQuery3); 
    var devRecord = devField.getArray("records"); 
    Developer = devRecord[0].Name; 
    


var ds = records[0].DLR_Sales__c; 
//if (ds!= null) 
    alert('DLR sales Record1')
//{ 
var strQuery6 = "Select Name from Contact where id = '" +ds+"'"; 
var dlrSalesField = sforce.connection.query(strQuery6); 
var dlrSalesRecord = dlrSalesField.getArray("records"); 
DealerSalesperson = dlrSalesRecord[0].Name; 
//}
alert('Dlr sales Record2') 

var NumberOfPinpads = 0; 
//if(records[0].of_Pin_Pads__c!=null) 
//{ 
NumberOfPinpads = parseInt(records[0].of_Pin_Pads__c); 
//}
alert('Pin Pads') 
var ArticleId = records[0].Article_ID__c; 
var ProcessingOrigin = records[0].Processing_Origin__c; 
var CompanyName = records[0].Company; 
var StrategicAccount= records[0].Strategic__c; 
var GiftOnly = records[0].Gift_Only__c; 
alert('Other stuff') 


// if diff is null, continue, if user clicked cancel, allow them to chg processing origin 
console.log('leadId '+leadId+'--'+Dealer+'--'+Developer+'--'+ArticleId+'--'+DealerSalesperson); 
// next section stolen from Josh, thanks for doing my typing buddy! 
var $articleId = $('<input>', { name: 'ArticleId', type: 'hidden', value: ArticleId }); 
var $processingOrigin = $('<input>', { name: 'ProcessingOrigin', type: 'hidden', value: ProcessingOrigin }); 
var $companyName = $('<input>', { name: 'CompanyName', type: 'hidden', value: CompanyName }); 
var $strategicAccount = $('<input>', { name: 'StrategicAccount', type: 'hidden', value: StrategicAccount }); 
var $giftOnly = $('<input>', { name: 'GiftOnly', type: 'hidden', value: GiftOnly }); 
var $contactName = $('<input>', { name: 'ContactName', type: 'hidden', value: ContactName }); 
var $dealer = $('<input>', { name: 'Dealer', type: 'hidden', value: Dealer }); 
var $developer = $('<input>', { name: 'Developer', type: 'hidden', value: Developer }); 
var $dealerSalesperson = $('<input>', { name: 'DealerSalesperson', type: 'hidden', value: DealerSalesperson }); 
var $numberOfPinpads = $('<input>', { name: 'NumberOfPinpads', type: 'hidden', value: NumberOfPinpads }); 

//alert($articleId.html()); 
var $form = $('<form>', { 
'action': '{!$Label.pricingUI}Invoke', 
'method': 'post', 
'target':'_blank' 
}); 

$form.append($articleId); 
$form.append($processingOrigin); 
$form.append($companyName); 
$form.append($strategicAccount); 
$form.append($giftOnly); 
$form.append($contactName); 
$form.append($dealer); 
$form.append($developer); 
$form.append($dealerSalesperson); 
$form.append($numberOfPinpads); 

$(document.body).append($form); 

$form.submit(); 
// alert('done by me'); 


catch(er) 

alert(er); 
}
 

Hi,

I have a trigger written as:
 
trigger UpdateLeadFunnelStage on CampaignMember (after insert)
{
    Set<Id> LeadIds = new Set<ID>();
    for(CampaignMember cm : Trigger.New) {
        LeadIds.add(cm.LeadId);
    }

    List<Lead> leads = [ SELECT Id, Lead_Funnel_Stage__c FROM Lead WHERE Id IN :LeadIds];
    List<Lead> leadsToUpdate = new List<Lead>();

    for(Lead l : leads) 
    {
        if(l.Lead_Funnel_Stage__c == null || l.Lead_Funnel_Stage__c == '')
        {
            l.Lead_Funnel_Stage__c = 'Inquiry';
            leadsToUpdate.add(l);
        }
    }

    Update leadsToUpdate;
}

I am receiving 'Too Many SOQL queries: 101' exceptions. I don't see how that's possible as this is bulkified and should only make one SOQL query per batch. Any ideas?
Hi,

I am having a use case like this:

When user clicks on a button,based on some criteria lead which is in queue is puled and displayed to user to work.
I am saving queue name in a custom field.
I have a workflow which will b fired if status is changed to 'no answer' and updates a checkbox to true.

Now i want a trigger which will be fired after workflow field update.
it should check if checkbox is checked,if checked then assign  it back to queue  for example to testqueue.
and then has to uncheck checkbox.

this is what i did but failed.please help!!!!!


trigger Changetoleadqueue on Lead (after update) {
     List<Lead> l = [SELECT Id,checkbox,,ownerid,lastqueue FROM Lead WHERE Id IN: Trigger.newMap.keySet() limit 1];

     List<QueueSobject> queueID =[Select Queue.Id from QueueSobject where Queue.Name =:queueName limit 1];
    
        for( Lead lId : l)
        {
             if(Trigger.isUpdate && Trigger.isAfter){
             if(lid.checkbox==true)
             {
system.debug('>............enters o if..........');      //it is entered
             LId.Ownerid='03gL0000001889IAQ';  //hardcoded to check ifit works but no luck
       
             lid.checkbx=false;
             }
             } 

         }
}

Hi

 

I want to check the email field and display the error message if the email already exists in my system.

i used the salesforce code but its giving me this error:-

Review all error messages below to correct your data.
Apex trigger Lead_Emailduplicate_preventonLead caused an unexpected exception, contact your administrator: Lead_Emailduplicate_preventonLead: execution of BeforeInsert caused by: System.QueryException: Non-selective query against large object type (more than 100000 rows). Consider an indexed filter or contact salesforce.com about custom indexing. Even if a field is indexed a filter might still not be selective when: 1. The filter value includes null (for instance binding with a list that contains null) 2. Data skew exists whereby the number of matching rows is very large (for instance, filtering for a particular foreign key value that occurs many times):-

 

trigger leadDuplicatePreventer on Lead
                               (before insert, before update) {

    Map<String, Lead> leadMap = new Map<String, Lead>();
    for (Lead lead : System.Trigger.new) {
        
        // Make sure we don't treat an email address that  
    
        // isn't changing during an update as a duplicate.  
    
        if ((lead.Email != null) &&
                (System.Trigger.isInsert ||
                (lead.Email !=
                    System.Trigger.oldMap.get(lead.Id).Email))) {
        
            // Make sure another new lead isn't also a duplicate  
    
            if (leadMap.containsKey(lead.Email)) {
                lead.Email.addError('Another new lead has the '
                                    + 'same email address.');
            } else {
                leadMap.put(lead.Email, lead);
            }
       }
    }
    
    // Using a single database query, find all the leads in  
    
    // the database that have the same email address as any  
    
    // of the leads being inserted or updated.  
    
    for (Lead lead : [SELECT Email FROM Lead
                      WHERE Email IN :leadMap.KeySet()]) {
        Lead newLead = leadMap.get(lead.Email);
        newLead.Email.addError('A lead with this email '
                               + 'address already exists.');
    }
}

 

 

 

Hello,

 

I have an object with a lot of fields, and i wanted to know if it is possible to create a multi step record creation.

For example, the section Information in a first screen, then a button "next" with a new screen with another section.

 

Thx.

My question is that i have two vf pages and one common class. If i declair static variable frin vf1 and try to access it from vf2 then its not there. how to access that?

  • September 18, 2012
  • Like
  • 0

 

I am getting the following error when redirecting to a page from my inlive vf button.

 

Error: " the value of a parameter contains a character that is not  allowed or the value exceeds the max allowed length. Remove the character from  the parameter value or reduce the value length and resubmit."

 

suggestions needed pls.

 

 

Thanks in advance.

Hi,

 

i am trying to validate the credintials but its giving error

Below is the my login controller let me know where i am wrong

 

 


public class LoginController {

public list<Candidate__c> listCandidates{get;set;}
    public string searchString {get;set;}
    public boolean showmsg{get;set;}
    public LoginController(ApexPages.StandardController controller)
    {
        listCandidates=new list<Candidate__c>();
        showmsg=false;
    }
    public pagereference ValidateUserName()
    {
        String AccountQuery = 'select UserName__c, PassWord__c from Candidate__c';
        
        if(searchString != '' && searchString != null)
            AccountQuery = AccountQuery +
            ' where name  =: ' + 'searchString' ;

 

so when i tried to login,i am getting below error i have entered user name as 'jakson'

 

System.QueryException: Variable does not exist: jakson

 

Error is in expression '{!ValidateUserName}' in component <apex:page> in page candidate_login_page

 

 

Class.LoginController.ValidateUserName: line 18, column 1          

 

 

Can anyone help me in this issue,

Thanks & Regards,

Bharath

Is it possible to write a validation rule on FORMULA field, will it work

  • September 06, 2012
  • Like
  • 0
I want a JS validation on my Visualforce page before i call ActionSupport, but it seems this is not possible below is the snippet, can someone point out if I am doing something incorrect here.
 

<apex:selectList id="PeriodOptions" value="{!PeriodOptions}" size="1" onclick="return ValidateShowAll();">

<apex:selectOption itemValue="1" itemLabel="This Month" />

<apex:selectOption itemValue="2" itemLabel="Last Month" />

<apex:selectOption itemValue="3" itemLabel="Last Year" />

<apex:actionSupport action="{!FilterCampaigns}" event="onchange" rerender="MainPanel">

</apex:actionSupport>

 

If I remove my javascript my action support functions good, but I need to validate my page before invoking this. Other possibility could have been if i can use AJAX call from javascriot but i need to rebind my panel with updated data.

Can some some one help me out.

 

Thanks

Siddharth