• vickySFDC
  • NEWBIE
  • 14 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 5
    Likes Received
  • 0
    Likes Given
  • 53
    Questions
  • 35
    Replies
Hi All,
  In my Vf page i want ot use lightning stylesheet in table but it is not supported in my page.Please help needed.
Below my page.

  <apex:page standardController="test__c" extensions="taskcontroller" showHeader="false" sidebar="false" lightningStylesheets="true">
    <apex:form id="fid">
    <apex:pageMessages ></apex:pageMessages>
    
        <apex:outputpanel >
        <!-- The loading image when the User selects a list view -->
        <apex:actionstatus id="savestatus">
            <apex:facet name="start">
                <div class="waitingSearchDiv" id="test" style="background-color: #fbfbfb;
                       height: 100%;filter:alpha(opacity=60);width:100%;"> 
                    <div class="waitingHolder">
                        <img class="waitingImage" src="/img/loading.gif" title="Please Wait..." />
                        <span class="waitingDescription">Loading...</span>
                    </div>
                </div>
            </apex:facet>
        </apex:actionstatus>
        </apex:outputpanel>
        <apex:actionFunction name="refreshOnDelete" action="{!deleteRow}" reRender="cptAdd"/>
        <apex:pageBlock id="cptAdd" >
            <apex:pageBlockSection title="Project Plan Information Details" collapsible="false" columns="1">
                <apex:commandLink value="Add Row" action="{!addPlanRow}" reRender="cptAdd" status="savestatus"/>
                <apex:pageBlockTable value="{!lstprojectwrapper}" var="cpt">
                    <apex:column headerValue="Action">
                        <apex:commandlink value="Edit" reRender="cptAdd" rendered="{!cpt.Pplan.id!=rId}" style="color:blue" action="{!cpt.enableEditMode}" status="savestatus"/><apex:outputText value=" | " rendered="{!cpt.Pplan.id!=rId}"></apex:outputText>
                       
                    </apex:column>                   
                    <apex:column headerValue="Name">
                        <apex:outputField value="{!cpt.Pplan.Name}" rendered="{!NOT(cpt.isEditMode)}"/>
                        <apex:inputField value="{!cpt.Pplan.Name}" rendered="{!cpt.isEditMode}"/>
                    </apex:column>                  
                   
                </apex:pageBlockTable>
            </apex:pageBlockSection>
            <apex:pageBlockButtons location="bottom">
                <apex:commandButton value="Save" action="{!Saveplan}" rerender="opId,fid" status="savestatus"/>
               
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>
                 

Thanks,
Vicky
Hi All,

 I have requirement need connect Salesforce to Oracle when any update in Salesforce object like Account or Opportunity (Name,Stage ..etc) that values need to update in Oracle system.Please guide me Steps and Sample code .How to write Web services class for this integration? Please its very urgent help needded.
Thanks,
Vicky
HI All,

  I have requirement in Saleforce , I want to store Credit Card info in encryption format.Then this data is push into other system(SQL).How this encrypted data read by other system.Please help me.

Thanks,
Vicky
Hi All,

  I have 8 checkbox field in my object pagelayout.I want to count selected checkbox value and display in column.How to implement this requirement using formula function in salesforce?Please do the needful help.

Thanks,
Vicky
 
Hi All,

    I have requirement to display picklist in excel while downloading template clicking custom link and after download template user will enter multiple records and adding picklist value in the template then upload  to SF.But I dont have idea on include picklist value in excel template using VF page.Please need urgent help.

Thanks,
vicky
Hi All,

  I have requirement for Inactive account  if there is no activity like(task,event) assigned for last 30 days for that account.Anyone help on this scenario.Give some sample code.How to implement.

Thanks,
vicky
 
Hi All ,
   I have requirement to displaying Rel.event  and rel.contact records  in repeat table.using map collection displaying information.
   Now I have to user able to do inline edit on the Rel.event records and save record.
   But record is not updated in the object and it showing only old values.Pls nedded urgent help on this requirement.
   
   Apex class:
   
   public class Projectmanagment7forbgcolr
{

 // NEW Map collection for display RelationshipEvent and RelationshipContact info
    public Boolean isbtnsave{get;set;}
    public Map<Relationship_Event__c, List<Relationship_Contact__c>> mapEventsAndContacts {get;set;}
    public FTP_Project__c pr{get;set;}
    public list<Relationship_Event__c> lstRelationshipEvents{get;set;}
    
    public list<Relationship_Contact__c> lstRelationshipContacts{get;set;} 
    public string strPriority{get;set;}
    public string searchstring{get;set;}
    public string strNDAStatus{get;set;}
    public string strEvalStatus{get;set;}
    public string strItemsProvided{get;set;}
    public string prjeEmail{get;set;}
    public string prjecoordinator{get;set;}
    public string prjeProjectManager{get;set;}
    public string prjeFTPIntel{get;set;}    
    public decimal prjeContacts{get;set;}  
    public decimal prjActiveEvents{get;set;}
    public decimal prjclosedRelEvents{get;set;}
    public string prcompanyname{get;set;} 
    public string prjename{get;set;}
    public string prjstatus{get;set;}
    public string prcloseddate{get;set;} 
    public string prstartdate{get;set;}
    public FTP_Project__c pr2{get;set;}
    public Relationship_Event__c relev{get;set;} 
    public string strImmediateNextSteps{get;set;}
    public string subCategory{get;set;}
        string pid = apexpages.currentpage().getparameters().get('id');
    public Projectmanagment7forbgcolr()
    {
       
        lstRelationshipEvents=new list<Relationship_Event__c>();
        pr=[select id,Name,Account__r.name,Project_Status__c,Project_Email__c,Project_Start_Date__c,Project_Close_Date__c,FTP_Intelligence__r.name,Closed_Rel_Events__c,Active_Rel_Events2NotApex__c,Contacts__c,Coordinator_and_Manager__c from FTP_Project__c where id=:pid];         
        prjecoordinator=pr.Coordinator_and_Manager__c;
        prjeProjectManager=pr.Coordinator_and_Manager__c;
        prjeFTPIntel=pr.FTP_Intelligence__r.name;
        prjeEmail=pr.Project_Email__c;
        prjclosedRelEvents=pr.Closed_Rel_Events__c;
        prjActiveEvents=pr.Active_Rel_Events2NotApex__c;
        prjeContacts=pr.Contacts__c;   
        string soql='select id, name,B_NDA_Sent_Date__c,ImmediateNextSteps__c,Status_Notes_Next_Steps_External_B__c,T_Initial_Date_Shared__c,B_Follow_Up_Date__c,Strategic_Rationale__c ,B_Due_Diligence_Status__c,Status_Notes_Next_Steps_Internal__c,Potential_Buyer_Investor__r.name,Buyer_Sector__c,Buyers_Investors_Priority__c,Buyer_Evaluation_Status__c,Buyer_Items_Provided__c,Buyer_NDA_Status__c,Buyer_Data_Room__c,Status_Notes_Next_Steps_Internal_B__c,Buyer_Rationale_For_Final_Status__c,B_Scheduled_Meeting_Date__c,B_NDA_Completed_Date__c from Relationship_Event__c where Project__c=: pid ';        
        
         // NEW Map collection for display RelationshipEvent and RelationshipContact info       
          mapEventsAndContacts = new Map<Relationship_Event__c, List<Relationship_Contact__c>>();
          // Query Relationship Event
          List<Relationship_Event__c> lstRelationshipEvents = [select id, name,B_NDA_Sent_Date__c,ImmediateNextSteps__c,Status_Notes_Next_Steps_External_B__c,T_Initial_Date_Shared__c,B_Follow_Up_Date__c,Strategic_Rationale__c ,B_Due_Diligence_Status__c,Status_Notes_Next_Steps_Internal__c,Potential_Buyer_Investor__r.name,Buyer_Sector__c,Buyers_Investors_Priority__c,Buyer_Evaluation_Status__c,Buyer_Items_Provided__c,Buyer_NDA_Status__c,Buyer_Data_Room__c,Status_Notes_Next_Steps_Internal_B__c,Buyer_Rationale_For_Final_Status__c,B_Scheduled_Meeting_Date__c,B_NDA_Completed_Date__c from Relationship_Event__c where Project__c=: pid];
          
          Set<Id> relEventIDs = new Set<Id>();
          
          for(Relationship_Event__c rEvent: lstRelationshipEvents){
              relEventIDs.add(rEvent.Id);
          }
          
          // Query Relationship Contacts 
          List<Relationship_Contact__c> lstRelationshipContacts = [select id,Name,Title__c,Contact__r.name, Phone__c,Email__c,Key_Contact__c, Relationship_Event__c from Relationship_Contact__c where Relationship_Event__c IN : relEventIDs];
          
          for(Relationship_Event__c rEvent: lstRelationshipEvents){
              List<Relationship_Contact__c> tempContacts = new List<Relationship_Contact__c>();
              for(Relationship_Contact__c rContact: lstRelationshipContacts){
                  if(rContact.Relationship_Event__c == rEvent.Id){
                      tempContacts.add(rContact);
                  }
              }
              mapEventsAndContacts.put(rEvent, tempContacts);
          }
          
        pr2=[select  id, name,SetDefault__c,Buyers_Investors_Priority__c,Buyer_Evaluation_Status__c,Buyer_Items_Provided__c,Buyer_NDA_Status__c,FollowSample__c,ImmediateNextSteps__c from FTP_Project__c where id=:pid limit 1]; 
        if(pr2.SetDefault__c == false)
        {
            pr2.ImmediateNextSteps__c=null;
            pr2.Buyers_Investors_Priority__c=null;
            pr2.Buyer_Evaluation_Status__c=null;
            pr2.Buyer_Items_Provided__c=null;
            pr2.Buyer_NDA_Status__c=null;
            pr2.FollowSample__c=null;   
            search();      
        }
    }     
         
    public PageReference search()
    { 
        system.debug('i am inside searchqry');
        string  Mutltipicklistvalues='';
        string pid = apexpages.currentpage().getparameters().get('id');
        string soql = 'Select Id, Name,Potential_Buyer_Investor__r.name,Status_Notes_Next_Steps_External_B__c,B_NDA_Sent_Date__c,ImmediateNextSteps__c,Status_Notes_Next_Steps_External__c,B_Follow_Up_Date__c,T_Initial_Date_Shared__c,B_Due_Diligence_Status__c,Status_Notes_Next_Steps_Internal__c ,Strategic_Rationale__c ,Buyer_Sector__c,Buyers_Investors_Priority__c,Buyer_NDA_Status__c ,Buyer_Data_Room__c,Status_Notes_Next_Steps_Internal_B__c,Buyer_Evaluation_Status__c,Buyer_Rationale_For_Final_Status__c,B_Scheduled_Meeting_Date__c ,Buyer_Items_Provided__c,B_NDA_Completed_Date__c from Relationship_Event__c' ;
        if (!pid.equals(''))
        soql += ' Where  Project__c  =\'' + pid  + '\' ';           
          
        string strImmediateNextSteps = pr2.ImmediateNextSteps__c;                                 
        if(strImmediateNextSteps!=null && strImmediateNextSteps !='' )
        {
            system.debug('$$$$$$$$strImmediateNextSteps'+strImmediateNextSteps);
            soql  =soql  +'and ImmediateNextSteps__c LIKE \'%'+strImmediateNextSteps+'%\'';
            system.debug('$$$$$$$$strImmediateNextSteps1'+ soql); 
        } 
       
        system.debug('pr2.Buyer_Evaluation_Status__c' + pr2.Buyer_Evaluation_Status__c);   
        if(pr2.Buyer_Evaluation_Status__c !='None' && pr2.Buyer_Evaluation_Status__c != null && pr2.Buyer_Evaluation_Status__c != '[]')
        {    
            string temp=pr2.Buyer_Evaluation_Status__c.replace(',','\',\'');
            system.debug('I am inside pr2.Buyer_Evaluation_Status__c' + temp);
            temp= '\''+ temp + '\'';
            string temp1=temp.replace('[','');
            string value=temp1.replace(']','');
            string trimmedValue=value.replace('\' ','\'');
            system.debug('I am inside type' + trimmedValue);
            soql  += ' and Buyer_Evaluation_Status__c IN ( '+ trimmedValue+ ')';          
        }
          
        system.debug('pr2.Buyer_NDA_Status__c' + pr2.Buyer_NDA_Status__c);
        if(pr2.Buyer_NDA_Status__c !='None' && pr2.Buyer_NDA_Status__c != null && pr2.Buyer_NDA_Status__c != '[]')
        {    
            string temp=pr2.Buyer_NDA_Status__c.replace(',','\',\'');
            system.debug('I am inside pr2.Buyer_NDA_Status__c' + temp);
            temp= '\''+ temp + '\'';
            string temp1=temp.replace('[','');
            string value=temp1.replace(']','');
            string trimmedValue=value.replace('\' ','\'');
            system.debug('I am inside type' + trimmedValue);
            soql  += ' and Buyer_NDA_Status__c IN ( '+ trimmedValue+ ')';          
        }
          
        system.debug('pr2.Buyers_Investors_Priority__c' + pr2.Buyers_Investors_Priority__c);
        if(pr2.Buyers_Investors_Priority__c !='None' && pr2.Buyers_Investors_Priority__c != null && pr2.Buyers_Investors_Priority__c != '[]')
        {    
             string temp=pr2.Buyers_Investors_Priority__c.replace(',','\',\'');
             system.debug('I am inside pr2.Buyers_Investors_Priority__c' + temp);
             temp= '\''+ temp + '\'';
             string temp1=temp.replace('[','');
             string value=temp1.replace(']','');
             string trimmedValue=value.replace('\' ','\'');
             system.debug('I am inside type' + trimmedValue);
             soql  += ' and Buyers_Investors_Priority__c IN ( '+ trimmedValue+ ')';           
        }
           
        system.debug('pr2.Buyer_Items_Provided__c' + pr2.Buyer_Items_Provided__c);
        if(pr2.Buyer_Items_Provided__c != 'None' && pr2.Buyer_Items_Provided__c != null && pr2.Buyer_Items_Provided__c != '[]')  
        {   
            List<String> setString=pr2.Buyer_Items_Provided__c.split(',');
            if(setString.size() > 0 )
                {
                string s='';
                integer i=0;
                for(String val: setString)
                {
                    if(i == setstring.size() -1)
                    {
                      s+='\''+val+'\'';
                    }
                    else
                    {
                     s+='\''+val+'\',';
                    }
                    i++;
                }       
                system.debug('ssssssssssssssssss'+s);
                String [] values = s.split(',');
                String param='(';
                for(integer j=0;j<values.size();j++)
                {  
                    if(values.size()-1 == j)
                        {
                            param += values[j];      
                        }
                        else
                        {
                               param += values[j]+',';
                         
                         }
                }   
                    param +=')';
                    param = param.remove('[');
                    param = param.remove(']');       
                    Mutltipicklistvalues=param ;
                    system.debug('param::::::'+Mutltipicklistvalues);
                }
    
                  if (!Mutltipicklistvalues.equals(''))
                  {                                                     
                    soql += ' and Buyer_Items_Provided__c includes    ' + Mutltipicklistvalues  + '';
                  }
                      system.debug('soql______'+soql);    
            }
            List<Relationship_Event__c> lstRelationshipEvents = Database.query(soql);
            
            // NEW Map collection for display RelationshipEvent and RelationshipContact info       
            mapEventsAndContacts = new Map<Relationship_Event__c, List<Relationship_Contact__c>>();
          
            Set<Id> relEventIDs = new Set<Id>();
          
            for(Relationship_Event__c rEvent: lstRelationshipEvents){
                relEventIDs.add(rEvent.Id);
            }       
            // Query Relationship Contacts 
            List<Relationship_Contact__c> lstRelationshipContacts = [select id,Name,Title__c,Contact__r.name, Phone__c,Email__c,Key_Contact__c, Relationship_Event__c from Relationship_Contact__c where Relationship_Event__c IN : relEventIDs];
            
            for(Relationship_Event__c rEvent: lstRelationshipEvents){
              List<Relationship_Contact__c> tempContacts = new List<Relationship_Contact__c>();
              for(Relationship_Contact__c rContact: lstRelationshipContacts){
                  if(rContact.Relationship_Event__c == rEvent.Id){
                      tempContacts.add(rContact);
                  }
              }
              mapEventsAndContacts.put(rEvent, tempContacts);
            } 
            system.debug('search ends'+ Mutltipicklistvalues);   
            return null;
    }
    //Inline edit method
    public PageReference btnsave() {
        List<Relationship_Event__c> lstEvents_Update = new List<Relationship_Event__c>();
        // Need to check all updated values from MAP collection
        for(Relationship_Event__c rEvents : mapEventsAndContacts.keySet()){
            lstEvents_Update.add(rEvents);
            system.Debug(' Changes ==>'+rEvents.Buyers_Investors_Priority__c);
        }
        //isbtnsave=true; //????
        update lstEvents_Update;
        //System.debug('@@@@@@'+lstEvents_Update);
        System.debug('########'+lstEvents_Update.size());
        return null;
    }
    }
    
Page:
<apex:pageBlock>
<table>
<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!btnsave}" id="savebtn" />        
</apex:pageBlockButtons>
<apex:repeat value="{!mapEventsAndContacts}" var="rel" >
<apex:inlineEditSupport event="ondblclick" showOnEdit="savebtn"
changedStyleClass="myBoldClass"/>                               
<!--Expansion and collaspse of a particular row starts here -->
<tr  class="Capital1 exapnding odd even" style="margin-top: 0px;text-align:left; font-family:arial; margin-bottom:0px;border-bottom: 3px solid black;">
<td id="tid" onclick="toggle(event);" style="cursor:pointer;padding-left:4px;">
<b> {!rel.Potential_Buyer_Investor__r.name}</b>
</td>
<td class="priortyid" style="cursor:pointer;padding-left:4px;">
{!rel.Buyers_Investors_Priority__c}    
</td>
<td class="evalstsid" style="cursor:pointer;padding-left:4px;">
{!rel.Buyer_Evaluation_Status__c}
</td> 
<td style="width:9%;">
<table style="width:100%;">
<tr style="width: 50%;">                   
<td style="cursor:pointer;text-align:left;width: 50%;border: none;"> 
<span><b>Status:</b></span>
<div class="statusid" style="cursor:pointer;">
    &nbsp;{!rel.Buyer_NDA_Status__c}
</div>  
</td>
<td style="cursor:pointer;text-align:left;width: 50%;border: none;"> 
<span><b>Sent:</b></span>
<div class="Completedid" > 
<apex:outputText value="{0,date,MM.dd.yyyy}"> 
   &nbsp;<apex:param value="{!rel.B_NDA_Sent_Date__c}" /> 
</apex:outputText>  
</div>
</td>                        
</tr>
<tr style="width: 50%;">                    
<td style="cursor:pointer;text-align:left;width: 100%;border: none;"> 
<span><b>Completed:</b></span>
<div class="Sentid">
    <apex:outputText value="{0,date,MM.dd.yyyy}" style="width: 81px;"> 
        &nbsp;<apex:param value="{!rel.B_NDA_Completed_Date__c}" />         
    </apex:outputText>  
</div>   
</td>
</tr>
</table>
</td>
<td style="width:10%;">
<table style="width:100%;">
<tr style="width: 100%;">
<td style="cursor:pointer;text-align:left;width: 50%;border: none;"> 
<span><b>Status:</b></span>
<div class="BuyerStatusid" style="cursor:pointer;">
    {!rel.Buyer_Data_Room__c}
</div>  
</td>
<td style="cursor:pointer;text-align:left;width: 50%;border: none;"> 
<span><b>Due Dil Status:</b></span>
<div class="DueDilid" style="cursor:pointer;">
    &nbsp;{!rel.B_Due_Diligence_Status__c}
</div> 
</td>
</tr>
</table>
</td>
 
</tr>
<tr id="divid3" class="no_outline_tr ExpandToggle exapnding"  style="display:none;border-style: solid;border-width: 1px;width:100%;background-color:white;">
<td colspan="11"  style="border:1px solid black;border-bottom:2px solid black;">
<table class="no_outline"  style="border-width: 1px;border-top:1px #C0BFBD;margin-top:-2px;width: 100.3%;margin-left: -2px;">
<tr >
<td colspan="11" style="line-height: 25px;padding-top: 0px;">
<span> <b>&nbsp;Current Status / Next Steps:</b></span> 
<div  class="externalid" style="border-bottom:1px solid black;cursor:pointer;line-height:20px;margin:0px -3px;"> 
    &nbsp;{!rel.Status_Notes_Next_Steps_External_B__c}
</div>
</td>
</tr>
<tr>
<td colspan="11" style="line-height: 25px;padding-top: 0px;">
<span ><b>&nbsp;Current Status / Next Steps (INTERNAL):</b></span> 
<div class ="stnotes" style="border-bottom:1px solid black;cursor:pointer;line-height:20px;padding:0px 5px;margin:0px -3px;"> 
    &nbsp;{!rel.Status_Notes_Next_Steps_Internal_B__c}
</div>
</td>
</tr>
<tr>
<td colspan="11" style="line-height: 20px;padding-top: 0px;"> 
<span><b>&nbsp;Strategic Rationale:</b></span>
<div class="Strategicid" style="cursor:pointer;padding:0px 5px;margin:0px -3px;border-bottom:1px solid black;"> 
    &nbsp;{!rel.Strategic_Rationale__c}
</div>
</td>
</tr>
</table>
<div id="divid4" style="border-width:1px;width:100.3%;border-top:none;margin-top:-1px;margin-left: -2px; padding-right: 2px;">
<span class="viewid2"  onclick="Showcontact(event);"  style="color:blue;cursor:pointer;margin:4px;font-family:arial;"><b>View Contact</b></span> 
<div id="dispcontact2" class="contactshow"  style="display:none;color:blue;cursor:pointer;"><span class="hideTextSpan" onclick="Hidecontact(event);" style="font-family:arial;"><b>&nbsp;&nbsp;Hide Contact</b></span>                                     
<table id="InnerTableGrid" class="innertablecontacts thauf" style="font-family:arial;">
<tbody style="text-align:center;">
<apex:repeat value="{!mapEventsAndContacts[rel]}" var="relcon" id="p2"> 
<!--<apex:repeat value="{!relcontact}" var="relcon" > -->
<tr style="text-align:center;height: 36px;">
<td>
    &nbsp;{!relcon.Contact__r.Name}  
</td>
<td>
    &nbsp; {!relcon.Title__c}
</td>
<td>
    &nbsp;    
</td>
<td>
    &nbsp; {!relcon.Phone__c}
</td>
<td>
    &nbsp;
</td>
<td >
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{!relcon.Email__c} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
    &nbsp; {!relcon.Key_Contact__c}
</td>
</tr>
</apex:repeat>
</tbody>              
</table> 
</div>
</div> 
</td>
</tr>      
</apex:repeat>
</tbody>

</table>
</apex:pageBlock>
​Thanks   
    
Hi All,

  I am connecting VB.Net to SFDC and fetch contact details display it in datagrid view in VB.net application.
While build my application I am getting error.Please help me.

Error:Type 'ApexApi1.SoapClient' is not defined.

This is my code:


Imports SFAPI_2.ApexApi1



Public Class Form1
    Implements IDisposable

    Private Shared sessionId As String = "mysessionid"
    Private Shared serverUrl As String = "https://login.salesforce.com/services/Soap/c/34.0"


    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

    End Sub


    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles btn.Click
        Dim records As ApexApi1.sObject() = getContactDetails()
        If records.Length <= 0 Then
            MsgBox("No records found!")
            Exit Sub
        End If

        ' Convert custom object to dataset to display properly in datagridview
        Dim ds As DataSet = New DataSet
        ds = rowTodsContact(records)

        Dim TableView As DataView
        TableView = ds.Tables("ContData").DefaultView
        DataGridView1.DataSource = TableView
    End Sub

    Private Function getContactDetails() As ApexApi1.sObject()
        Try
            Dim lr As ApexApi1.LoginResult

            Using ss As ApexApi1.SoapClient = New ApexApi1.SoapClient

                If sessionId Is Nothing Or sessionId = "" Then
                    ' Login Call
                    lr = ss.login(Nothing, "myusername", "mypassword" & "securitytoken")
                    If lr.passwordExpired Then
                        MsgBox("Password Expired")
                        Exit Function
                    End If
                    sessionId = lr.sessionId.ToString().Trim()
                    serverUrl = lr.serverUrl.ToString().Trim()
                End If
            End Using

            ' Store SessionId in SessionHeader; We will need while making query() call
            Dim sHeader As ApexApi1.SessionHeader = New ApexApi1.SessionHeader
            sHeader.sessionId = sessionId

            ' Variable to store query results
            Dim qr As ApexApi1.QueryResult = New ApexApi1.QueryResult
            Using ss1 As ApexApi1.SoapClient = New ApexApi1.SoapClient
                ss1.ChannelFactory.Endpoint.Address = New System.ServiceModel.EndpointAddress(serverUrl)
                ' Limit to display only 100 records
                ss1.query(sHeader, Nothing, Nothing, Nothing, "SELECT AccountId, OwnerId, FirstName, LastName, Email FROM Contact LIMIT 100", qr)
            End Using

            Dim records As ApexApi1.sObject() = qr.records
            Return records
        Catch ex As Exception

            MsgBox(ex.Message)
            Return Nothing
        End Try
    End Function
    Private Function rowTodsContact(ByVal records() As ApexApi1.sObject) As DataSet
        Dim ds As DataSet = New DataSet
        Try
            ds.Tables.Add("ContData")
            ds.Tables("ContData").Columns.Add("AccountId", GetType(String))
            ds.Tables("ContData").Columns.Add("OwnerId", GetType(String))
            ds.Tables("ContData").Columns.Add("FirstName", GetType(String))
            ds.Tables("ContData").Columns.Add("LastName", GetType(String))
            ds.Tables("ContData").Columns.Add("Email", GetType(String))
            For i As Integer = 0 To records.Length - 1
                Dim con As ApexApi1.Contact = DirectCast(records(i), ApexApi1.Contact)
                Dim accId As String = con.AccountId
                Dim ownerId As String = con.OwnerId
                Dim fName As String = con.FirstName
                Dim lName As String = con.LastName
                Dim email As String = con.Email
                ds.Tables("ContData").Rows.Add(accId, ownerId, fName, lName, email)
            Next
            Return ds
        Catch ex As Exception

            MsgBox(ex.Message)
            Return Nothing
        End Try
    End Function


    Private Sub DataGridView1_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick

    End Sub
End Class

Please guide me .

Thanks,

Vicky
Hi All,

I have requirement  to add a Campaign Button to the Account detail Page then click on Button then genertae Excel report from the Account page that displays columns in report then this relates to Campaign object  that the Account has been a part of:
This report wil be
Header:Accont Name:

Columns:Opportunity,Campaign Name(Campaign),LastName,Status from (Camp.member object) these columns how to fetch query from Account object and disply this value in  report.


Thanks,
vicky
Hi All,


  I want to integrate My Sql Db to Salesforce.If I have created/updated/deleted any records in My Sql DB then this records should insert/updated in to Salesforce some every 10 - 20 mins interval .How to achieve this scenario ? Here I have to write any webservice or Any appexchange tool?pls help me..


Thanks


Hi All,

I have requirement  clicking image in VF page then it should display list of records .How to pass parameters in clicking on Image in VF and Apex?


Thanks,


vicky
Hi All,


In my requirement I need to develope Vf page and Controller for Award winner voting page in the Star Award of the Company .Here All the employee submit the voting for Star Award competitors after that who get more vote then he will get the Star award .How to apply this scenario in Salesforce Vf page  & controller .pls help me on this ...



Thanks,

Santhanakumar A
Hi All,


I have requirement for developing Question and Answer page for Admin. He can able to add 2 type of Qns(Multiple checkbox,dropdownlist) dynamically.Here Scenario is If he want to add new qns as Multiple choice type then he can create qn with multiple answer type .How to acheive this functionality?Give some example....


Thanks,

vicky
Hi All,

I have to integrate with Salesforce to Sqlserver DB .Before this which salesforce  edition is  to choose  for  this Integration?
My Integration Batch integration and two way  SF to Sql db?vice versa.pls guide me and expalined about this  scenario......


Thanks,


vicky
Hi All,

I have to integrate with Salesforce to Sqlserver DB .Before this which salesforce  edition is  to choose  for  this Integration?
My Integration Batch integration and two way  SF to Sql db?vice versa.pls guide me and expalined about this  scenario......


Thanks,


vicky
Hi All,

I have to integrate SF to Sqlserver dB .which way is best for Integration?

1)using to write  Webservices 2)using any Middleware appns & How to do this Integration?pls give some example


Thanks,

Vicky
Hi All,

I have to integrate SF to Sqlserver dB .which way is best for Integration?

1)using to write  Webservices 2)using any Middleware appns & How to do this Integration?pls give some example


Thanks,

Vicky
Hi All,

I am new to Integration part.How to integrate salesforce to other systems?While Integrating to other system what are all the Basic things we have to do?Pls Explain me...


Thanks,

Vicky SFDC


Hi All,

Next month onwards I have to use ANT tool for deploment.How to do deployment  using ANT tool? How to move All componenets like(Custom obejct,fields ,class,pages)  to other sandboxes through ANT tool?Pls Explained with some examples.It will be very helpful to me..


Thanks,


Vicky SFDC

Hi All,

 

Is there any diff between Inner class and Wrapper classes?pls explain...

what does mean Inner Wrpper class?

 

Thanks,

Vicky

Hi All,

I have requirement  clicking image in VF page then it should display list of records .How to pass parameters in clicking on Image in VF and Apex?


Thanks,


vicky
Hi All,

I have to integrate SF to Sqlserver dB .which way is best for Integration?

1)using to write  Webservices 2)using any Middleware appns & How to do this Integration?pls give some example


Thanks,

Vicky

Hi All,

This two VF tags I am really confusing

Can anyone give examples <apex:actionsupport> and <apex:actionfunction> tags and give some examples?

 

 

Thanks,

 

Vicky

Hi All,
  In my Vf page i want ot use lightning stylesheet in table but it is not supported in my page.Please help needed.
Below my page.

  <apex:page standardController="test__c" extensions="taskcontroller" showHeader="false" sidebar="false" lightningStylesheets="true">
    <apex:form id="fid">
    <apex:pageMessages ></apex:pageMessages>
    
        <apex:outputpanel >
        <!-- The loading image when the User selects a list view -->
        <apex:actionstatus id="savestatus">
            <apex:facet name="start">
                <div class="waitingSearchDiv" id="test" style="background-color: #fbfbfb;
                       height: 100%;filter:alpha(opacity=60);width:100%;"> 
                    <div class="waitingHolder">
                        <img class="waitingImage" src="/img/loading.gif" title="Please Wait..." />
                        <span class="waitingDescription">Loading...</span>
                    </div>
                </div>
            </apex:facet>
        </apex:actionstatus>
        </apex:outputpanel>
        <apex:actionFunction name="refreshOnDelete" action="{!deleteRow}" reRender="cptAdd"/>
        <apex:pageBlock id="cptAdd" >
            <apex:pageBlockSection title="Project Plan Information Details" collapsible="false" columns="1">
                <apex:commandLink value="Add Row" action="{!addPlanRow}" reRender="cptAdd" status="savestatus"/>
                <apex:pageBlockTable value="{!lstprojectwrapper}" var="cpt">
                    <apex:column headerValue="Action">
                        <apex:commandlink value="Edit" reRender="cptAdd" rendered="{!cpt.Pplan.id!=rId}" style="color:blue" action="{!cpt.enableEditMode}" status="savestatus"/><apex:outputText value=" | " rendered="{!cpt.Pplan.id!=rId}"></apex:outputText>
                       
                    </apex:column>                   
                    <apex:column headerValue="Name">
                        <apex:outputField value="{!cpt.Pplan.Name}" rendered="{!NOT(cpt.isEditMode)}"/>
                        <apex:inputField value="{!cpt.Pplan.Name}" rendered="{!cpt.isEditMode}"/>
                    </apex:column>                  
                   
                </apex:pageBlockTable>
            </apex:pageBlockSection>
            <apex:pageBlockButtons location="bottom">
                <apex:commandButton value="Save" action="{!Saveplan}" rerender="opId,fid" status="savestatus"/>
               
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>
                 

Thanks,
Vicky
HI All,

  I have requirement in Saleforce , I want to store Credit Card info in encryption format.Then this data is push into other system(SQL).How this encrypted data read by other system.Please help me.

Thanks,
Vicky
Hi All,

  I have requirement for Inactive account  if there is no activity like(task,event) assigned for last 30 days for that account.Anyone help on this scenario.Give some sample code.How to implement.

Thanks,
vicky
 
Hi All ,
   I have requirement to displaying Rel.event  and rel.contact records  in repeat table.using map collection displaying information.
   Now I have to user able to do inline edit on the Rel.event records and save record.
   But record is not updated in the object and it showing only old values.Pls nedded urgent help on this requirement.
   
   Apex class:
   
   public class Projectmanagment7forbgcolr
{

 // NEW Map collection for display RelationshipEvent and RelationshipContact info
    public Boolean isbtnsave{get;set;}
    public Map<Relationship_Event__c, List<Relationship_Contact__c>> mapEventsAndContacts {get;set;}
    public FTP_Project__c pr{get;set;}
    public list<Relationship_Event__c> lstRelationshipEvents{get;set;}
    
    public list<Relationship_Contact__c> lstRelationshipContacts{get;set;} 
    public string strPriority{get;set;}
    public string searchstring{get;set;}
    public string strNDAStatus{get;set;}
    public string strEvalStatus{get;set;}
    public string strItemsProvided{get;set;}
    public string prjeEmail{get;set;}
    public string prjecoordinator{get;set;}
    public string prjeProjectManager{get;set;}
    public string prjeFTPIntel{get;set;}    
    public decimal prjeContacts{get;set;}  
    public decimal prjActiveEvents{get;set;}
    public decimal prjclosedRelEvents{get;set;}
    public string prcompanyname{get;set;} 
    public string prjename{get;set;}
    public string prjstatus{get;set;}
    public string prcloseddate{get;set;} 
    public string prstartdate{get;set;}
    public FTP_Project__c pr2{get;set;}
    public Relationship_Event__c relev{get;set;} 
    public string strImmediateNextSteps{get;set;}
    public string subCategory{get;set;}
        string pid = apexpages.currentpage().getparameters().get('id');
    public Projectmanagment7forbgcolr()
    {
       
        lstRelationshipEvents=new list<Relationship_Event__c>();
        pr=[select id,Name,Account__r.name,Project_Status__c,Project_Email__c,Project_Start_Date__c,Project_Close_Date__c,FTP_Intelligence__r.name,Closed_Rel_Events__c,Active_Rel_Events2NotApex__c,Contacts__c,Coordinator_and_Manager__c from FTP_Project__c where id=:pid];         
        prjecoordinator=pr.Coordinator_and_Manager__c;
        prjeProjectManager=pr.Coordinator_and_Manager__c;
        prjeFTPIntel=pr.FTP_Intelligence__r.name;
        prjeEmail=pr.Project_Email__c;
        prjclosedRelEvents=pr.Closed_Rel_Events__c;
        prjActiveEvents=pr.Active_Rel_Events2NotApex__c;
        prjeContacts=pr.Contacts__c;   
        string soql='select id, name,B_NDA_Sent_Date__c,ImmediateNextSteps__c,Status_Notes_Next_Steps_External_B__c,T_Initial_Date_Shared__c,B_Follow_Up_Date__c,Strategic_Rationale__c ,B_Due_Diligence_Status__c,Status_Notes_Next_Steps_Internal__c,Potential_Buyer_Investor__r.name,Buyer_Sector__c,Buyers_Investors_Priority__c,Buyer_Evaluation_Status__c,Buyer_Items_Provided__c,Buyer_NDA_Status__c,Buyer_Data_Room__c,Status_Notes_Next_Steps_Internal_B__c,Buyer_Rationale_For_Final_Status__c,B_Scheduled_Meeting_Date__c,B_NDA_Completed_Date__c from Relationship_Event__c where Project__c=: pid ';        
        
         // NEW Map collection for display RelationshipEvent and RelationshipContact info       
          mapEventsAndContacts = new Map<Relationship_Event__c, List<Relationship_Contact__c>>();
          // Query Relationship Event
          List<Relationship_Event__c> lstRelationshipEvents = [select id, name,B_NDA_Sent_Date__c,ImmediateNextSteps__c,Status_Notes_Next_Steps_External_B__c,T_Initial_Date_Shared__c,B_Follow_Up_Date__c,Strategic_Rationale__c ,B_Due_Diligence_Status__c,Status_Notes_Next_Steps_Internal__c,Potential_Buyer_Investor__r.name,Buyer_Sector__c,Buyers_Investors_Priority__c,Buyer_Evaluation_Status__c,Buyer_Items_Provided__c,Buyer_NDA_Status__c,Buyer_Data_Room__c,Status_Notes_Next_Steps_Internal_B__c,Buyer_Rationale_For_Final_Status__c,B_Scheduled_Meeting_Date__c,B_NDA_Completed_Date__c from Relationship_Event__c where Project__c=: pid];
          
          Set<Id> relEventIDs = new Set<Id>();
          
          for(Relationship_Event__c rEvent: lstRelationshipEvents){
              relEventIDs.add(rEvent.Id);
          }
          
          // Query Relationship Contacts 
          List<Relationship_Contact__c> lstRelationshipContacts = [select id,Name,Title__c,Contact__r.name, Phone__c,Email__c,Key_Contact__c, Relationship_Event__c from Relationship_Contact__c where Relationship_Event__c IN : relEventIDs];
          
          for(Relationship_Event__c rEvent: lstRelationshipEvents){
              List<Relationship_Contact__c> tempContacts = new List<Relationship_Contact__c>();
              for(Relationship_Contact__c rContact: lstRelationshipContacts){
                  if(rContact.Relationship_Event__c == rEvent.Id){
                      tempContacts.add(rContact);
                  }
              }
              mapEventsAndContacts.put(rEvent, tempContacts);
          }
          
        pr2=[select  id, name,SetDefault__c,Buyers_Investors_Priority__c,Buyer_Evaluation_Status__c,Buyer_Items_Provided__c,Buyer_NDA_Status__c,FollowSample__c,ImmediateNextSteps__c from FTP_Project__c where id=:pid limit 1]; 
        if(pr2.SetDefault__c == false)
        {
            pr2.ImmediateNextSteps__c=null;
            pr2.Buyers_Investors_Priority__c=null;
            pr2.Buyer_Evaluation_Status__c=null;
            pr2.Buyer_Items_Provided__c=null;
            pr2.Buyer_NDA_Status__c=null;
            pr2.FollowSample__c=null;   
            search();      
        }
    }     
         
    public PageReference search()
    { 
        system.debug('i am inside searchqry');
        string  Mutltipicklistvalues='';
        string pid = apexpages.currentpage().getparameters().get('id');
        string soql = 'Select Id, Name,Potential_Buyer_Investor__r.name,Status_Notes_Next_Steps_External_B__c,B_NDA_Sent_Date__c,ImmediateNextSteps__c,Status_Notes_Next_Steps_External__c,B_Follow_Up_Date__c,T_Initial_Date_Shared__c,B_Due_Diligence_Status__c,Status_Notes_Next_Steps_Internal__c ,Strategic_Rationale__c ,Buyer_Sector__c,Buyers_Investors_Priority__c,Buyer_NDA_Status__c ,Buyer_Data_Room__c,Status_Notes_Next_Steps_Internal_B__c,Buyer_Evaluation_Status__c,Buyer_Rationale_For_Final_Status__c,B_Scheduled_Meeting_Date__c ,Buyer_Items_Provided__c,B_NDA_Completed_Date__c from Relationship_Event__c' ;
        if (!pid.equals(''))
        soql += ' Where  Project__c  =\'' + pid  + '\' ';           
          
        string strImmediateNextSteps = pr2.ImmediateNextSteps__c;                                 
        if(strImmediateNextSteps!=null && strImmediateNextSteps !='' )
        {
            system.debug('$$$$$$$$strImmediateNextSteps'+strImmediateNextSteps);
            soql  =soql  +'and ImmediateNextSteps__c LIKE \'%'+strImmediateNextSteps+'%\'';
            system.debug('$$$$$$$$strImmediateNextSteps1'+ soql); 
        } 
       
        system.debug('pr2.Buyer_Evaluation_Status__c' + pr2.Buyer_Evaluation_Status__c);   
        if(pr2.Buyer_Evaluation_Status__c !='None' && pr2.Buyer_Evaluation_Status__c != null && pr2.Buyer_Evaluation_Status__c != '[]')
        {    
            string temp=pr2.Buyer_Evaluation_Status__c.replace(',','\',\'');
            system.debug('I am inside pr2.Buyer_Evaluation_Status__c' + temp);
            temp= '\''+ temp + '\'';
            string temp1=temp.replace('[','');
            string value=temp1.replace(']','');
            string trimmedValue=value.replace('\' ','\'');
            system.debug('I am inside type' + trimmedValue);
            soql  += ' and Buyer_Evaluation_Status__c IN ( '+ trimmedValue+ ')';          
        }
          
        system.debug('pr2.Buyer_NDA_Status__c' + pr2.Buyer_NDA_Status__c);
        if(pr2.Buyer_NDA_Status__c !='None' && pr2.Buyer_NDA_Status__c != null && pr2.Buyer_NDA_Status__c != '[]')
        {    
            string temp=pr2.Buyer_NDA_Status__c.replace(',','\',\'');
            system.debug('I am inside pr2.Buyer_NDA_Status__c' + temp);
            temp= '\''+ temp + '\'';
            string temp1=temp.replace('[','');
            string value=temp1.replace(']','');
            string trimmedValue=value.replace('\' ','\'');
            system.debug('I am inside type' + trimmedValue);
            soql  += ' and Buyer_NDA_Status__c IN ( '+ trimmedValue+ ')';          
        }
          
        system.debug('pr2.Buyers_Investors_Priority__c' + pr2.Buyers_Investors_Priority__c);
        if(pr2.Buyers_Investors_Priority__c !='None' && pr2.Buyers_Investors_Priority__c != null && pr2.Buyers_Investors_Priority__c != '[]')
        {    
             string temp=pr2.Buyers_Investors_Priority__c.replace(',','\',\'');
             system.debug('I am inside pr2.Buyers_Investors_Priority__c' + temp);
             temp= '\''+ temp + '\'';
             string temp1=temp.replace('[','');
             string value=temp1.replace(']','');
             string trimmedValue=value.replace('\' ','\'');
             system.debug('I am inside type' + trimmedValue);
             soql  += ' and Buyers_Investors_Priority__c IN ( '+ trimmedValue+ ')';           
        }
           
        system.debug('pr2.Buyer_Items_Provided__c' + pr2.Buyer_Items_Provided__c);
        if(pr2.Buyer_Items_Provided__c != 'None' && pr2.Buyer_Items_Provided__c != null && pr2.Buyer_Items_Provided__c != '[]')  
        {   
            List<String> setString=pr2.Buyer_Items_Provided__c.split(',');
            if(setString.size() > 0 )
                {
                string s='';
                integer i=0;
                for(String val: setString)
                {
                    if(i == setstring.size() -1)
                    {
                      s+='\''+val+'\'';
                    }
                    else
                    {
                     s+='\''+val+'\',';
                    }
                    i++;
                }       
                system.debug('ssssssssssssssssss'+s);
                String [] values = s.split(',');
                String param='(';
                for(integer j=0;j<values.size();j++)
                {  
                    if(values.size()-1 == j)
                        {
                            param += values[j];      
                        }
                        else
                        {
                               param += values[j]+',';
                         
                         }
                }   
                    param +=')';
                    param = param.remove('[');
                    param = param.remove(']');       
                    Mutltipicklistvalues=param ;
                    system.debug('param::::::'+Mutltipicklistvalues);
                }
    
                  if (!Mutltipicklistvalues.equals(''))
                  {                                                     
                    soql += ' and Buyer_Items_Provided__c includes    ' + Mutltipicklistvalues  + '';
                  }
                      system.debug('soql______'+soql);    
            }
            List<Relationship_Event__c> lstRelationshipEvents = Database.query(soql);
            
            // NEW Map collection for display RelationshipEvent and RelationshipContact info       
            mapEventsAndContacts = new Map<Relationship_Event__c, List<Relationship_Contact__c>>();
          
            Set<Id> relEventIDs = new Set<Id>();
          
            for(Relationship_Event__c rEvent: lstRelationshipEvents){
                relEventIDs.add(rEvent.Id);
            }       
            // Query Relationship Contacts 
            List<Relationship_Contact__c> lstRelationshipContacts = [select id,Name,Title__c,Contact__r.name, Phone__c,Email__c,Key_Contact__c, Relationship_Event__c from Relationship_Contact__c where Relationship_Event__c IN : relEventIDs];
            
            for(Relationship_Event__c rEvent: lstRelationshipEvents){
              List<Relationship_Contact__c> tempContacts = new List<Relationship_Contact__c>();
              for(Relationship_Contact__c rContact: lstRelationshipContacts){
                  if(rContact.Relationship_Event__c == rEvent.Id){
                      tempContacts.add(rContact);
                  }
              }
              mapEventsAndContacts.put(rEvent, tempContacts);
            } 
            system.debug('search ends'+ Mutltipicklistvalues);   
            return null;
    }
    //Inline edit method
    public PageReference btnsave() {
        List<Relationship_Event__c> lstEvents_Update = new List<Relationship_Event__c>();
        // Need to check all updated values from MAP collection
        for(Relationship_Event__c rEvents : mapEventsAndContacts.keySet()){
            lstEvents_Update.add(rEvents);
            system.Debug(' Changes ==>'+rEvents.Buyers_Investors_Priority__c);
        }
        //isbtnsave=true; //????
        update lstEvents_Update;
        //System.debug('@@@@@@'+lstEvents_Update);
        System.debug('########'+lstEvents_Update.size());
        return null;
    }
    }
    
Page:
<apex:pageBlock>
<table>
<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!btnsave}" id="savebtn" />        
</apex:pageBlockButtons>
<apex:repeat value="{!mapEventsAndContacts}" var="rel" >
<apex:inlineEditSupport event="ondblclick" showOnEdit="savebtn"
changedStyleClass="myBoldClass"/>                               
<!--Expansion and collaspse of a particular row starts here -->
<tr  class="Capital1 exapnding odd even" style="margin-top: 0px;text-align:left; font-family:arial; margin-bottom:0px;border-bottom: 3px solid black;">
<td id="tid" onclick="toggle(event);" style="cursor:pointer;padding-left:4px;">
<b> {!rel.Potential_Buyer_Investor__r.name}</b>
</td>
<td class="priortyid" style="cursor:pointer;padding-left:4px;">
{!rel.Buyers_Investors_Priority__c}    
</td>
<td class="evalstsid" style="cursor:pointer;padding-left:4px;">
{!rel.Buyer_Evaluation_Status__c}
</td> 
<td style="width:9%;">
<table style="width:100%;">
<tr style="width: 50%;">                   
<td style="cursor:pointer;text-align:left;width: 50%;border: none;"> 
<span><b>Status:</b></span>
<div class="statusid" style="cursor:pointer;">
    &nbsp;{!rel.Buyer_NDA_Status__c}
</div>  
</td>
<td style="cursor:pointer;text-align:left;width: 50%;border: none;"> 
<span><b>Sent:</b></span>
<div class="Completedid" > 
<apex:outputText value="{0,date,MM.dd.yyyy}"> 
   &nbsp;<apex:param value="{!rel.B_NDA_Sent_Date__c}" /> 
</apex:outputText>  
</div>
</td>                        
</tr>
<tr style="width: 50%;">                    
<td style="cursor:pointer;text-align:left;width: 100%;border: none;"> 
<span><b>Completed:</b></span>
<div class="Sentid">
    <apex:outputText value="{0,date,MM.dd.yyyy}" style="width: 81px;"> 
        &nbsp;<apex:param value="{!rel.B_NDA_Completed_Date__c}" />         
    </apex:outputText>  
</div>   
</td>
</tr>
</table>
</td>
<td style="width:10%;">
<table style="width:100%;">
<tr style="width: 100%;">
<td style="cursor:pointer;text-align:left;width: 50%;border: none;"> 
<span><b>Status:</b></span>
<div class="BuyerStatusid" style="cursor:pointer;">
    {!rel.Buyer_Data_Room__c}
</div>  
</td>
<td style="cursor:pointer;text-align:left;width: 50%;border: none;"> 
<span><b>Due Dil Status:</b></span>
<div class="DueDilid" style="cursor:pointer;">
    &nbsp;{!rel.B_Due_Diligence_Status__c}
</div> 
</td>
</tr>
</table>
</td>
 
</tr>
<tr id="divid3" class="no_outline_tr ExpandToggle exapnding"  style="display:none;border-style: solid;border-width: 1px;width:100%;background-color:white;">
<td colspan="11"  style="border:1px solid black;border-bottom:2px solid black;">
<table class="no_outline"  style="border-width: 1px;border-top:1px #C0BFBD;margin-top:-2px;width: 100.3%;margin-left: -2px;">
<tr >
<td colspan="11" style="line-height: 25px;padding-top: 0px;">
<span> <b>&nbsp;Current Status / Next Steps:</b></span> 
<div  class="externalid" style="border-bottom:1px solid black;cursor:pointer;line-height:20px;margin:0px -3px;"> 
    &nbsp;{!rel.Status_Notes_Next_Steps_External_B__c}
</div>
</td>
</tr>
<tr>
<td colspan="11" style="line-height: 25px;padding-top: 0px;">
<span ><b>&nbsp;Current Status / Next Steps (INTERNAL):</b></span> 
<div class ="stnotes" style="border-bottom:1px solid black;cursor:pointer;line-height:20px;padding:0px 5px;margin:0px -3px;"> 
    &nbsp;{!rel.Status_Notes_Next_Steps_Internal_B__c}
</div>
</td>
</tr>
<tr>
<td colspan="11" style="line-height: 20px;padding-top: 0px;"> 
<span><b>&nbsp;Strategic Rationale:</b></span>
<div class="Strategicid" style="cursor:pointer;padding:0px 5px;margin:0px -3px;border-bottom:1px solid black;"> 
    &nbsp;{!rel.Strategic_Rationale__c}
</div>
</td>
</tr>
</table>
<div id="divid4" style="border-width:1px;width:100.3%;border-top:none;margin-top:-1px;margin-left: -2px; padding-right: 2px;">
<span class="viewid2"  onclick="Showcontact(event);"  style="color:blue;cursor:pointer;margin:4px;font-family:arial;"><b>View Contact</b></span> 
<div id="dispcontact2" class="contactshow"  style="display:none;color:blue;cursor:pointer;"><span class="hideTextSpan" onclick="Hidecontact(event);" style="font-family:arial;"><b>&nbsp;&nbsp;Hide Contact</b></span>                                     
<table id="InnerTableGrid" class="innertablecontacts thauf" style="font-family:arial;">
<tbody style="text-align:center;">
<apex:repeat value="{!mapEventsAndContacts[rel]}" var="relcon" id="p2"> 
<!--<apex:repeat value="{!relcontact}" var="relcon" > -->
<tr style="text-align:center;height: 36px;">
<td>
    &nbsp;{!relcon.Contact__r.Name}  
</td>
<td>
    &nbsp; {!relcon.Title__c}
</td>
<td>
    &nbsp;    
</td>
<td>
    &nbsp; {!relcon.Phone__c}
</td>
<td>
    &nbsp;
</td>
<td >
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{!relcon.Email__c} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
    &nbsp; {!relcon.Key_Contact__c}
</td>
</tr>
</apex:repeat>
</tbody>              
</table> 
</div>
</div> 
</td>
</tr>      
</apex:repeat>
</tbody>

</table>
</apex:pageBlock>
​Thanks   
    
Hi All,


In my requirement I need to develope Vf page and Controller for Award winner voting page in the Star Award of the Company .Here All the employee submit the voting for Star Award competitors after that who get more vote then he will get the Star award .How to apply this scenario in Salesforce Vf page  & controller .pls help me on this ...



Thanks,

Santhanakumar A
Hi All,


I have requirement for developing Question and Answer page for Admin. He can able to add 2 type of Qns(Multiple checkbox,dropdownlist) dynamically.Here Scenario is If he want to add new qns as Multiple choice type then he can create qn with multiple answer type .How to acheive this functionality?Give some example....


Thanks,

vicky

Hi All,

 

Is there any diff between Inner class and Wrapper classes?pls explain...

what does mean Inner Wrpper class?

 

Thanks,

Vicky

Hi All,

 

I have 4 batch class and execute one by one like

 

batch1,batch2,batch 3,Batch4 

 

my requirement is starting the  Batch1 class  after this one completed then I have to start next batch 2 then batch3 and batch 4.

 

How to handle this situtation in my batch class? Give me some scenario......

 

 

Thanks,

 

 

Vicky

 

 

Hi All,

 

This Apex trigger to automatically create the child record when a new parent record is created.But  If i am going to update on Studentname then  Error is thrown.pls help on this.

 

Error:Apex trigger createchildobj caused an unexpected exception, contact your administrator: createchildobj: execution of AfterUpdate caused by: System.DmlException: Update failed. First exception on row 0; first error: MISSING_ARGUMENT, Id not specified in an update call: []: Trigger.createchildobj: line 13, column 1

Parent:Student__c

Child:Class__c

 

 

trigger createchildobj on Student__c(after insert,after update)

{

List<Class__c> lstclass=new List<Class__c>();  

   for(Student__c s:Trigger.new)

{  

 if(s.name!=null){  

  lstclass.add(new Class__c(Name=s.name,Age__c=s.Age__c,classstu__c=s.id));

  }  

}

 if(lstclass.size()>0){

 

 update lstclass;  }

}

Hi,

 

 

I want to display Notes and attachement values in VF page?Whatever in std page Notes and Attachment  functionality as same list in VF page?How to add this in VF page?Give explain code ...Urgent

 

 

 

Thanks,

 

Vicky 

Hi All,

 

 

I want generate excel file in Contact list while clicking Generate excel btn?this is only for selected contact records ?Can anyone help regaring in this scenario.I have done for all records as Excel file but I am not able to generate only selected record.

VF Page:

 

<apex:page standardController="Contact"  contentType="application/" recordSetVar="Contacts" extensions="contactexcelgen" showHeader="false" >  

<apex:form >

 <apex:pageBlock >

  <apex:pageblocktable value="{!record}"  var="r" >   <apex:column value="{!r.name}"/>   

</apex:pageblocktable>

  </apex:pageBlock>

</apex:form>

</apex:page>

 

THANKS,

Vicky

Hi All,

 

I am confusing on Oldmap and newmap while writing triggers Pls provide and explain some example code then it will be very helpful to mee...

 

 

Thanks,

 

 

Vicky

Hi All,

 

Use of @ Readonly and @ Remote action?

Which situation we can use the @ Read only annotation?

what is diff between Visualforce page read only mode option and @ Readonly annotation?Is there any performance things involved?

Some times both Annotation (Readonly,Remoteaction) use in the Apex code?what is the benefit  for using this?

 

pls help me  on this ......

 

 

Thanks,

 

Vicky

 

 

 

 

 

Hi All,

 

In my requirement Using Batch apex I want to insert  1 million contact records for an Specific Account?how to do this.pls give some examples.Urgent help neede.

 

 

Thanks,

 

 

Vicky