• gaurav.agrawal91.3963408275063662E12
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 3
    Replies
Hello Everyone,

I was working on Pageblocktable whose data is getting changed (rerender) on the command link.
For sorting and filtering i have used jquery plugin but when i am calling jquery method oncomplete in action support my searchfilter and pagination is getting loaded twice.

<apex:page controller="MDMLandingPageController" sidebar="false" showheader="false" action="{!intialize}" > 
        
        
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"/>
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"/>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/ui-lightness/jquery-ui.css" type="text/css" media="all" />
<apex:includeScript value="{!URLFOR($Resource.tablesorter, 'jquery.tablesorter.min.js')}"/>
<apex:includescript value="//code.jquery.com/jquery-1.11.1.min.js" / >
        <apex:includescript value="//cdn.datatables.net/1.10.4/js/jquery.dataTables.min.js" />
        <apex:stylesheet value="//cdn.datatables.net/1.10.4/css/jquery.dataTables.css" />

<script type="text/javascript">
    $j = jQuery.noConflict();    
    $j(document).ready(function () {
    alert("Inside tablesorter");
    alert("end of script 1");
    var contactTable1 = $j("[id$=pg]").DataTable();
    alert("end of script");
    });
     
     function highlight()
     {
        <!-- $.removeData(j);--> 
       $j = jQuery.noConflict();
       $j(document).ready(function () { 
        var contactTable = $j("[id$=pg]").DataTable({
        "destroy": true
        });
       alert("inside highlisght");
        });
     }
    </script>
    

 <head>
        <title>Master Data Management</title>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        
    </head>
    
        <apex:stylesheet value="{!URLFOR($Resource.OEDoctor, 'styles/style_updated.css')}" />
 <link rel="stylesheet"
        href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css" />
    
    <apex:includeScript value="{!URLFOR($Resource.jQuery, 'JQueryFiles/js/jquery-1.10.2.js')}" />
   <!--   <apex:includeScript value="{!URLFOR($Resource.mdmentry, 'js/mdm.js')}" />-->
    <apex:includeScript value="{!URLFOR($Resource.jQuery, 'JQueryFiles/js/jquery-ui.js')}" />  
     <apex:includeScript value="{!URLFOR($Resource.BVStaticResource, 'js/jquery.dataTables.js')}" />
     <apex:stylesheet value="{!URLFOR($Resource.BVStaticResource, 'css/jquery.dataTables.css')}" />
    

<apex:form id="TheForm">
   <apex:pageBlock id="pg1">
       <table width="1020px" borde-style="outset" border-color="#00A4E3" align="center" id="mytab" class="display">
                <tr>
                    <td style="width: 13em; vertical-align: baseline;" id="left_panel">
                     <div id="leftPanel" style="width: 13em;">
  <apex:pageBlockSection title="Master Data Management" collapsible="false" columns="1">
  <apex:repeat var="objMapEntity" value="{!mapEntityRecordType}">
  <apex:outputLink title="abc" value="#" >
  {!objMapEntity}
  <apex:actionSupport action="{!sObjectList}" reRender="pg" event="onclick"  status="counterStatus" oncomplete="highlight();"  >
    <apex:param name="X" value="{!objMapEntity}" />
    </apex:actionSupport>
    <apex:actionStatus id="counterStatus" >
    <apex:facet name="start">
                <div class="waitingSearchDiv" id="el_loading" style="background-color: #DCD6D6;
                       height: 100%;opacity:0.65;width:100%;"> 
                    <div class="waitingHolder" style="top: 74.2px; width: 91px;">
                        <img class="waitingImage" src="/img/loading.gif" title="Please Wait..." />
                        <span class="waitingDescription">Loading...</span>
                    </div>
                </div>
            </apex:facet>
   </apex:actionStatus>
 </apex:outputLink>
   </apex:repeat>
   </apex:pageBlockSection>
              </div>
                    </td>  
                    
                   
            <td>
           
                
               
<apex:pageBlockTable value="{!sObjectList}" var="res" id="pg" title="Click Column Header for Sorting"  >
        <apex:column headerValue="Action">
            <apex:outputPanel >
              <apex:commandLink action="{!getedit}">
              Edit<apex:param name="Y" value="{!res['id']}"/>
              </apex:commandLink>
              <apex:commandLink action="{!getview}">
              /View<apex:param name="Y" value="{!res['id']}"/>
              </apex:commandLink>
            </apex:outputPanel>
         </apex:column>
    <apex:repeat value="{!objectFields}" var="field"  >
        <apex:column value="{!res[field]}" >
         </apex:column>
     
    </apex:repeat>
  
    </apex:pageBlockTable>
    
   <apex:pageBlockButtons >
       <apex:commandButton action="{!add}" value="Add"/>
  </apex:pageBlockButtons>
        </td>
            </tr>
 </table>
             
            
</apex:pageBlock>

<apex:messages />
</apex:form>
</apex:page>

Can anyone help me on this
Can anyone help in below code where i have used the output link under repeat block but its not showing the link.


   <apex:pageBlockTable value="{!sObjectList}" var="res" id="pg">
                <apex:repeat value="{!objectFields}" var="field">
<apex:outputLink title="xyz" value="/apex/payer">
link
</apex:outputLink>
                    <apex:column value="{!res[field]}"/>
                </apex:repeat>
            </apex:pageBlockTable>
Hi,

I am trying to consume web service that I have created in Salesforce from a different org of Salesforce. And am getting the following Exception
System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session faultcode=sf:INVALID_SESSION_ID faultactor=:
Hello Everyone,

I was working on Pageblocktable whose data is getting changed (rerender) on the command link.
For sorting and filtering i have used jquery plugin but when i am calling jquery method oncomplete in action support my searchfilter and pagination is getting loaded twice.

<apex:page controller="MDMLandingPageController" sidebar="false" showheader="false" action="{!intialize}" > 
        
        
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"/>
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"/>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/ui-lightness/jquery-ui.css" type="text/css" media="all" />
<apex:includeScript value="{!URLFOR($Resource.tablesorter, 'jquery.tablesorter.min.js')}"/>
<apex:includescript value="//code.jquery.com/jquery-1.11.1.min.js" / >
        <apex:includescript value="//cdn.datatables.net/1.10.4/js/jquery.dataTables.min.js" />
        <apex:stylesheet value="//cdn.datatables.net/1.10.4/css/jquery.dataTables.css" />

<script type="text/javascript">
    $j = jQuery.noConflict();    
    $j(document).ready(function () {
    alert("Inside tablesorter");
    alert("end of script 1");
    var contactTable1 = $j("[id$=pg]").DataTable();
    alert("end of script");
    });
     
     function highlight()
     {
        <!-- $.removeData(j);--> 
       $j = jQuery.noConflict();
       $j(document).ready(function () { 
        var contactTable = $j("[id$=pg]").DataTable({
        "destroy": true
        });
       alert("inside highlisght");
        });
     }
    </script>
    

 <head>
        <title>Master Data Management</title>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        
    </head>
    
        <apex:stylesheet value="{!URLFOR($Resource.OEDoctor, 'styles/style_updated.css')}" />
 <link rel="stylesheet"
        href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css" />
    
    <apex:includeScript value="{!URLFOR($Resource.jQuery, 'JQueryFiles/js/jquery-1.10.2.js')}" />
   <!--   <apex:includeScript value="{!URLFOR($Resource.mdmentry, 'js/mdm.js')}" />-->
    <apex:includeScript value="{!URLFOR($Resource.jQuery, 'JQueryFiles/js/jquery-ui.js')}" />  
     <apex:includeScript value="{!URLFOR($Resource.BVStaticResource, 'js/jquery.dataTables.js')}" />
     <apex:stylesheet value="{!URLFOR($Resource.BVStaticResource, 'css/jquery.dataTables.css')}" />
    

<apex:form id="TheForm">
   <apex:pageBlock id="pg1">
       <table width="1020px" borde-style="outset" border-color="#00A4E3" align="center" id="mytab" class="display">
                <tr>
                    <td style="width: 13em; vertical-align: baseline;" id="left_panel">
                     <div id="leftPanel" style="width: 13em;">
  <apex:pageBlockSection title="Master Data Management" collapsible="false" columns="1">
  <apex:repeat var="objMapEntity" value="{!mapEntityRecordType}">
  <apex:outputLink title="abc" value="#" >
  {!objMapEntity}
  <apex:actionSupport action="{!sObjectList}" reRender="pg" event="onclick"  status="counterStatus" oncomplete="highlight();"  >
    <apex:param name="X" value="{!objMapEntity}" />
    </apex:actionSupport>
    <apex:actionStatus id="counterStatus" >
    <apex:facet name="start">
                <div class="waitingSearchDiv" id="el_loading" style="background-color: #DCD6D6;
                       height: 100%;opacity:0.65;width:100%;"> 
                    <div class="waitingHolder" style="top: 74.2px; width: 91px;">
                        <img class="waitingImage" src="/img/loading.gif" title="Please Wait..." />
                        <span class="waitingDescription">Loading...</span>
                    </div>
                </div>
            </apex:facet>
   </apex:actionStatus>
 </apex:outputLink>
   </apex:repeat>
   </apex:pageBlockSection>
              </div>
                    </td>  
                    
                   
            <td>
           
                
               
<apex:pageBlockTable value="{!sObjectList}" var="res" id="pg" title="Click Column Header for Sorting"  >
        <apex:column headerValue="Action">
            <apex:outputPanel >
              <apex:commandLink action="{!getedit}">
              Edit<apex:param name="Y" value="{!res['id']}"/>
              </apex:commandLink>
              <apex:commandLink action="{!getview}">
              /View<apex:param name="Y" value="{!res['id']}"/>
              </apex:commandLink>
            </apex:outputPanel>
         </apex:column>
    <apex:repeat value="{!objectFields}" var="field"  >
        <apex:column value="{!res[field]}" >
         </apex:column>
     
    </apex:repeat>
  
    </apex:pageBlockTable>
    
   <apex:pageBlockButtons >
       <apex:commandButton action="{!add}" value="Add"/>
  </apex:pageBlockButtons>
        </td>
            </tr>
 </table>
             
            
</apex:pageBlock>

<apex:messages />
</apex:form>
</apex:page>

Can anyone help me on this
Hi,

I am trying to consume web service that I have created in Salesforce from a different org of Salesforce. And am getting the following Exception
System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session faultcode=sf:INVALID_SESSION_ID faultactor=:

I developed  simple soap api from one of my org and consumed it in another one ....

 

When i am calling it from another org ....it gives me the below error

First error: Web service callout failed: WebService returned a SOAP Fault: INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session faultcode=sf:INVALID_SESSION_ID faultactor=

 

public class LogInfo {
public String category;
public String level;
private String[] category_type_info = new String[]{'category','http://soap.sforce.com/schemas/class/MyWebService','LogCategory','1','1','false'};
private String[] level_type_info = new String[]{'level','http://soap.sforce.com/schemas/class/MyWebService','LogCategoryLevel','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/schemas/class/MyWebService','true','false'};
private String[] field_order_type_info = new String[]{'category','level'};

 

public class LoginHistory {
public String ApiType;
public String ApiVersion;
public String Application;
public String Browser;
public String ClientVersion;
public DateTime LoginTime;
public String LoginType;
public String LoginUrl;
public String Platform;
public String SourceIp;
public String Status;
public String UserId;
private String[] ApiType_type_info = new String[]{'ApiType','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] ApiVersion_type_info = new String[]{'ApiVersion','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] Application_type_info = new String[]{'Application','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] Browser_type_info = new String[]{'Browser','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] ClientVersion_type_info = new String[]{'ClientVersion','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] LoginTime_type_info = new String[]{'LoginTime','http://www.w3.org/2001/XMLSchema','dateTime','0','1','true'};
private String[] LoginType_type_info = new String[]{'LoginType','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] LoginUrl_type_info = new String[]{'LoginUrl','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] Platform_type_info = new String[]{'Platform','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] SourceIp_type_info = new String[]{'SourceIp','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] Status_type_info = new String[]{'Status','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] UserId_type_info = new String[]{'UserId','http://soap.sforce.com/schemas/class/MyWebService','ID','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/schemas/class/MyWebService','true','false'};
private String[] field_order_type_info = new String[]{'ApiType','ApiVersion','Application','Browser','ClientVersion','LoginTime','LoginType','LoginUrl','Platform','SourceIp','Status','UserId'};
}

 

 

public class LoginIp {
public DateTime ChallengeSentDate;
public DateTime CreatedDate;
public Boolean IsAuthenticated;
public String SourceIp;
public MYWebservice34.User_x Users;
public String UsersId;
private String[] ChallengeSentDate_type_info = new String[]{'ChallengeSentDate','http://www.w3.org/2001/XMLSchema','dateTime','0','1','true'};
private String[] CreatedDate_type_info = new String[]{'CreatedDate','http://www.w3.org/2001/XMLSchema','dateTime','0','1','true'};
private String[] IsAuthenticated_type_info = new String[]{'IsAuthenticated','http://www.w3.org/2001/XMLSchema','boolean','0','1','true'};
private String[] SourceIp_type_info = new String[]{'SourceIp','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] Users_type_info = new String[]{'Users','http://soap.sforce.com/schemas/class/MyWebService','User','0','1','true'};
private String[] UsersId_type_info = new String[]{'UsersId','http://soap.sforce.com/schemas/class/MyWebService','ID','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/schemas/class/MyWebService','true','false'};
private String[] field_order_type_info = new String[]{'ChallengeSentDate','CreatedDate','IsAuthenticated','SourceIp','Users','UsersId'};
}

 

 

how to rectify the error?????

THanks