• Dhanamjaya Paidipat
  • NEWBIE
  • 5 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 9
    Questions
  • 13
    Replies
Hi All,
I have an requirement to display input   contact fileds and related one of custom object fileds in Contact custom section (VF)

Can some one help me out on this ?
Hi Team,
I have develpoed below JS but it's not working , when i am trying to click a custom button getting an unexpected token alert.
Kindly help out on this.

<script type="text/javascript">
            var newWin;
            function openingwindow()
            {              
               alert('cmng to loop..');
               newWin=window.open("https://api1.cloudagent.in/CAServices/AgentManualDial.php?api_key=KKf490fbb75a904b31bcbe7ddb7a681919&Country={!Lead.Country__c}&Phone={!Lead.Phone}",'width=100,height=100');
               alert(setTimeout(function(){newWin.close()}, 30000));
               setTimeout(function(){newWin.close()}, 30000);
               alert('closed..');
            }
                       
    </script>
Hi All,
I have developed a visual force page so i wanted to add URL(link) in this page, Kindly help me on this.

Apex code:

<apex:page standardController="Lead" extensions="CreateLeadC" sidebar="false" showheader="false">

<apex:commandLinkaction =”http://www.google.com/search” value=”Google”>
</apex:commandLinkaction>

<apex:form>
<apex:outputLabel ><b> #Call: </b></apex:outputLabel>
<apex:outputField value="{!Lead.Call_Number__c}"/>

<apex:outputLabel ><b> #Attempt: </b></apex:outputLabel>
<apex:outputField value="{!Lead.Attempt_Number__c}"/>

<apex:pageBlock >
 
 

<apex:pageBlockSection columns="1"  title="Patient details"  rendered="{!Lead.Country__c== 'India'}">


<apex:outputField value="{!Lead.name}"/>
<apex:outputField value="{!Lead.Phone}"/>

<apex:inlineEditSupport />


</apex:pageBlockSection>

<apex:pageBlockSection title="Patient Consent" rendered="{!Lead.Country__c== 'India'}">

<apex:outputField value="{!Lead.Gendre__c}"/>

<apex:inlineEditSupport />

</apex:pageBlockSection>
<apex:commandButton action="{!save}" value="Save"/>
</apex:pageBlock>
                
                
           
</apex:form>

 
</apex:page>
Hi All,

I have developed below Apex trigger one month back but it was working as expected, but suddenly since two days it showing below error:
Kinldy help me why it's occured this issue suddenly.
Compile Error: Variable does not exist: MobilePhone at line 4 column 7

Apex Code:
trigger QualifiedMobileNumber on Lead (Before Insert) {
for (Lead a:Trigger.new){
for (Lead a1:[select id,MobilePhone, Status__c from Lead where Status__c='Qualified']){
if(a1.MobilePhone==a.MobilePhone && a1.Status__c=='Qualified'){
a.adderror('Your number is Qualified');
}
}
}        
}
Hi Everyone,
I have created a Visual page on Lead and added on Lead page but if i try to update the fields from visual page after save the page it's loading to Lead page.

Kindly help us to avoid this issue assp.
Thanks in Advance.
Code:
<apex:page sidebar="false" showheader="false" standardController="Lead" action="{!routePage}">
<apex:form >
<apex:outputLabel ><b> #Call: </b></apex:outputLabel>
<apex:outputField value="{!Lead.Call_Number__c}"/>

<apex:outputLabel ><b> #Attempt: </b></apex:outputLabel>
<apex:outputField value="{!Lead.Attempt_Number__c}"/>

<apex:pageBlock >

<apex:pageBlockSection columns="1" title="Patient details" rendered="{!Lead.Country__c== 'India'}">

<apex:outputField value="{!Lead.name}"/>
<apex:outputField value="{!Lead.Phone}"/>

<apex:inlineEditSupport />

</apex:pageBlockSection>

<apex:pageBlockSection title="Patient Consent" rendered="{!Lead.Country__c== 'India'}">

<apex:outputField value="{!Lead.Gendre__c}"/>

<apex:inlineEditSupport />

</apex:pageBlockSection>
<apex:commandButton action="{!save}" value="Save"/>
</apex:pageBlock>
                
                
           
</apex:form>

 
</apex:page>

Error:
Visual page

 
Hi,
How Automatically assign the task to users, that who has the less number of Tasks.
Hi,
Can some one help me that how do i get least count of Owner.
Ex: Ther are 100 Task so who having the least  count of Task(owner ).
Hello,
Can some one help me to insert a Task for Lead, through Apex class becasue as i need to schedule.
It's very urgent.
Thanks in Advance.
Hi ,
Can some help me out that we have third part application to send sms, now how can i integrate with SFDC ?
Please help us,
Hi Team,
I have develpoed below JS but it's not working , when i am trying to click a custom button getting an unexpected token alert.
Kindly help out on this.

<script type="text/javascript">
            var newWin;
            function openingwindow()
            {              
               alert('cmng to loop..');
               newWin=window.open("https://api1.cloudagent.in/CAServices/AgentManualDial.php?api_key=KKf490fbb75a904b31bcbe7ddb7a681919&Country={!Lead.Country__c}&Phone={!Lead.Phone}",'width=100,height=100');
               alert(setTimeout(function(){newWin.close()}, 30000));
               setTimeout(function(){newWin.close()}, 30000);
               alert('closed..');
            }
                       
    </script>
Hi All,
I have developed a visual force page so i wanted to add URL(link) in this page, Kindly help me on this.

Apex code:

<apex:page standardController="Lead" extensions="CreateLeadC" sidebar="false" showheader="false">

<apex:commandLinkaction =”http://www.google.com/search” value=”Google”>
</apex:commandLinkaction>

<apex:form>
<apex:outputLabel ><b> #Call: </b></apex:outputLabel>
<apex:outputField value="{!Lead.Call_Number__c}"/>

<apex:outputLabel ><b> #Attempt: </b></apex:outputLabel>
<apex:outputField value="{!Lead.Attempt_Number__c}"/>

<apex:pageBlock >
 
 

<apex:pageBlockSection columns="1"  title="Patient details"  rendered="{!Lead.Country__c== 'India'}">


<apex:outputField value="{!Lead.name}"/>
<apex:outputField value="{!Lead.Phone}"/>

<apex:inlineEditSupport />


</apex:pageBlockSection>

<apex:pageBlockSection title="Patient Consent" rendered="{!Lead.Country__c== 'India'}">

<apex:outputField value="{!Lead.Gendre__c}"/>

<apex:inlineEditSupport />

</apex:pageBlockSection>
<apex:commandButton action="{!save}" value="Save"/>
</apex:pageBlock>
                
                
           
</apex:form>

 
</apex:page>
Hi All,

I have developed below Apex trigger one month back but it was working as expected, but suddenly since two days it showing below error:
Kinldy help me why it's occured this issue suddenly.
Compile Error: Variable does not exist: MobilePhone at line 4 column 7

Apex Code:
trigger QualifiedMobileNumber on Lead (Before Insert) {
for (Lead a:Trigger.new){
for (Lead a1:[select id,MobilePhone, Status__c from Lead where Status__c='Qualified']){
if(a1.MobilePhone==a.MobilePhone && a1.Status__c=='Qualified'){
a.adderror('Your number is Qualified');
}
}
}        
}
Hi Everyone,
I have created a Visual page on Lead and added on Lead page but if i try to update the fields from visual page after save the page it's loading to Lead page.

Kindly help us to avoid this issue assp.
Thanks in Advance.
Code:
<apex:page sidebar="false" showheader="false" standardController="Lead" action="{!routePage}">
<apex:form >
<apex:outputLabel ><b> #Call: </b></apex:outputLabel>
<apex:outputField value="{!Lead.Call_Number__c}"/>

<apex:outputLabel ><b> #Attempt: </b></apex:outputLabel>
<apex:outputField value="{!Lead.Attempt_Number__c}"/>

<apex:pageBlock >

<apex:pageBlockSection columns="1" title="Patient details" rendered="{!Lead.Country__c== 'India'}">

<apex:outputField value="{!Lead.name}"/>
<apex:outputField value="{!Lead.Phone}"/>

<apex:inlineEditSupport />

</apex:pageBlockSection>

<apex:pageBlockSection title="Patient Consent" rendered="{!Lead.Country__c== 'India'}">

<apex:outputField value="{!Lead.Gendre__c}"/>

<apex:inlineEditSupport />

</apex:pageBlockSection>
<apex:commandButton action="{!save}" value="Save"/>
</apex:pageBlock>
                
                
           
</apex:form>

 
</apex:page>

Error:
Visual page

 
Hi,
How Automatically assign the task to users, that who has the less number of Tasks.
Hi,
Can some one help me that how do i get least count of Owner.
Ex: Ther are 100 Task so who having the least  count of Task(owner ).
Hello,
Can some one help me to insert a Task for Lead, through Apex class becasue as i need to schedule.
It's very urgent.
Thanks in Advance.
Hi ,
Can some help me out that we have third part application to send sms, now how can i integrate with SFDC ?
Please help us,