• shephali
  • NEWBIE
  • 130 Points
  • Member since 2015

  • Chatter
    Feed
  • 2
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 22
    Questions
  • 48
    Replies

Hi 

  We have a requirement to write a formula field for calulating below details are mentioned as follows. 

 1. Unit of Measure ( Which is pick list holds Year/Month/Days) 
 2. List Price 
 3. Quantity 
 4. Subscription Term  

Here Subscription Term is dependent on Unit of Measure
   if Unit of Measure  = Year it will populate ( 1 to 5) 
   if Unit of Measure  = Month it will populate ( 1 to 12) 
   if Unit of Measure  = Days it will populate ( 1 to 31) 

Based on the above value I need to build a formula field 

  IF Unit of Measure = Year = ( List Price * Year * Quantity )

  IF Unit of Measure = Month = ( List Price / 12(Months in year)  * Quantity )
   
  IF Unit of Measure = Days = ( List Price / 365(Days in year) * Quantity )

Please suggest me how to get this formula 

Thanks

Sudhir
  
 
 

  • July 15, 2016
  • Like
  • 0
Hi All,

     I need to use radio button in place of CheckBoxes. But when i try to change the VF tag It is not working.
// The Below code is working fine with no issue //
 <apex:column >
       <apex:inputCheckbox value="{!con.isSelected}" />
  </apex:column> 

///////This is the code which i am using for Radio button. Its showing the radio button but functionality is not working here in case of Radio ////

   <apex:column >                    
       <input type="radio" value= "{!con.isSelected}" />                                     
    </apex:column>

Kindly help me on this.
Hi All,

            I need to integrate skype with salesforce so that in contact object's phone field whenever user click on the number it should redirect to skype to make the call. 

Thanks & Regards
     Shephali
      
Hi all,

    I have simple web-to-case html form their i need to add Captcha/Recaptcha into it. So how can i do the same please help.

Thanks
Shephali
Hello,
   I want to know about "DevOps AWS".

Your knowledge will be appreciating.

Thanks
Shephali
I am following a link : http://www.codespokes.com/2013/09/how-to-send-sms-on-mobile-from.html

I am getting error with apex code 
"expecting a left angle bracket, found 'getPersonList' at line 15 column 16"
Can anyone please help on this?
public with sharing class TwilioCloudCommunicationClass {  
  
// Public Properties  
public String SelectedMobileNumber{get;set;}  
public String OtherMobileNumber{get;set;}  
public String textMessage{get;set;}  
  
// Default construtor  
public TwilioCloudCommunicationClass()  
{  
    SelectedMobileNumber  = '' ;  
    OtherMobileNumber = '' ;  
}  
  
Public List getPersonList()  
{  
    Try{  
        List localList = new List();  
        localList.add(new SelectOption('' , '--Select--'));  
        for(contact cont : [select Name,MobilePhone from contact where TwilioRegisteredUser__c = true ])  
        {  
            localList.add(new SelectOption(cont.MobilePhone , cont.Name));            
        }        
        localList.add(new SelectOption('other' , 'Other'));  
        return localList ;  
    }  
    catch(Exception e)  
    {  
        ApexPages.addMessages(e);        
        return null;  
    }  
}  
  
public void SendSMS()  
{  
    Try{        
        SelectedMobileNumber = (SelectedMobileNumber == '')? OtherMobileNumber:SelectedMobileNumber ;  
        if(SelectedMobileNumber != '')  
        {  
            List AdminInfo = TwilioConfig__c.getall().values();  
            String ACCOUNT_SID = '';  
            String AUTH_TOKEN  = '' ;              
            String SenderMobileNumber = '' ;  
            // Informaton getting from custom setting  
            if(AdminInfo.size()>0)  
            {            
                ACCOUNT_SID             = AdminInfo[0].AccountSid__c;  
                AUTH_TOKEN              = AdminInfo[0].AuthToken__c;                  
                SenderMobileNumber      = AdminInfo[0].Admin_Mobile_Number__c;      
            }              
            TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN);  
             
            Map properties = new Map {  
                        'To'   => SelectedMobileNumber ,  
                        'From' => SenderMobileNumber,  
                        'Body' => textMessage  
                };  
            TwilioSMS message = client.getAccount().getSmsMessages().create(properties);  
            ApexPages.addMessage(new ApexPages.message(ApexPages.severity.INFO, 'Message has been sent'));  
        }  
        else  
        {  
            ApexPages.addMessage(new ApexPages.message(ApexPages.severity.Error, 'Pelase provide valid Mobile Number '));  
        }  
    }catch(Exception e )  
    {  
        ApexPages.addMessages(e);        
        return ;  
    }    
}  
  
}

 
Hello EveryOne!

                  I have a requirement to implement as below:
I need to develop a questionnaire where questions will populate based on the previous given answer and at the end of the QnA score should be calculated.
i.Should i design the database where fields like question, option1,option2,option3,option4, score. ??? 
ii.Vf pages for each questions so that (but it would be a long run process, i think not a good approach)
iii.should i use jQuery (but again it would be better for SPA(single page application) then how to populate the further questions).

I need your suggestion.

Thanks in Advance
 
hello friends,
         I have an user who can see 'contacts' obejct data.when i ada contact manually using 'New' button, the user is able to see those records but when i add contact using '.csv' file in data loader those contact are not visible/accessible for the user.what to do in order to make it visible to the user.??
hello friends,
I am trying to delete data on custom object and even after successful deletion i am getting those records in that object.
how to rectify that??
i need to send a random number to mobile i put in textfield.(kind of verification).how to achieve this???
hello friends,
This is my controller code:
TableData=[select Code__c from verify__c where ID__c= :s];
 str=String.valueof(TableData);
str contains following value.
ID__c:{Code__c=841095, Id=a012800000703J9AAI}
i want to get only '841095'
how to get this???
Hello friends,
         I have a custom object(AAA__c) with 3 fields(Name,Lname__c,Rnumber__c).in two fields i am paasing values as follow.
         <apex:inputfield value="{! AAA__c.Name }" /> <br/>
         <apex:inputfield value="{! AAA__c.Lname__c }" /> <br/>
        For last field i am generating a number "{!Rnum}" but how to pass it into the object. so that i can insert it into [AAA__c.Rnumber__c].
 
hello friends,
    here is my code.this query is not working as variable 's' contains a value say s='31'. when i write 31 in place of 's' in where clause it works.
     how to solve it as 's' is a variable not constant.please reply
  String s = String.valueof(Code);
  TableData=[select Name,Last_Name__c from lead__c where Agent_ID__c='s' ];
Hello friends,
    Here is my code.where i first fetch the max value and using that max value trying to fetch one row.but unable to do so because it needs object to string conversion.
[i tried--->> String s=code.toString(); //not working.]
 AggregateResult[] groupedResults=[select MAX(Agent_ID__c)maxvalue from Mobile_Agent__c];
      Code = groupedResults[0].get('maxvalue');
      TableData=[select Name,Last_Name__c,Device_Phone__c,Subscriber_ID__c,Agent_ID__c,registered_date__c from Mobile_Agent__c where Agent_ID__c='Code'];
hello friends,
   I m using following code to ganarate 6 digit random number.but it creates 4-6 digit random number(eg. like 4567,98765,341235,...).But i need 6 digit random numbers only.how to solve this.
Integer index=0;  
    public Integer getindex()
   {
      double y = Math.random() ;//something between 0 and 999999  
      y = 999999 * y;
      index = math.round(y); 
    return index;
    }
hello friends,
I need to send an calculated integer number of VF1 page to VF2 page on button click.how to achieve this??
I have a VFpage v1 where i am asking user to put values in textbox but not saving data in object on button click rather i am generating random number on other VFpage v2 and want to insert those(v1) records on this V2's button click.how to do this???
how to design sidebar with links to different vf pages each contailning this side bar.
I have salesforce developer trial account.I have task of adding agents.first ask agent to fill name and mobile number, on button click i need to send verification code to that mobile number,after that on another VF page after code verification i need to register that agent.How to do this??
Error: Compile Error: Illegal assignment from List<AggregateResult> to List<Contact_Agent__c>   
public class Verify {
 public list<Code> C{set;get;}  
  public Verify()
    {  C=[select MAX(Code__c) from Contact_Agent__c];}
}
how to correct it???
i want to insert data as well as fetch and sent dat data to another VF page on button click.both VF pages are sharing the same controller
Hello friends,
    Here is my code.where i first fetch the max value and using that max value trying to fetch one row.but unable to do so because it needs object to string conversion.
[i tried--->> String s=code.toString(); //not working.]
 AggregateResult[] groupedResults=[select MAX(Agent_ID__c)maxvalue from Mobile_Agent__c];
      Code = groupedResults[0].get('maxvalue');
      TableData=[select Name,Last_Name__c,Device_Phone__c,Subscriber_ID__c,Agent_ID__c,registered_date__c from Mobile_Agent__c where Agent_ID__c='Code'];
Hi All,

I am new to sfdc and i learn apex,visuvalforce,integration,triggers and i have done projects in trailhead also and now i am looking for the real time project environment and i will work with no cost i want real time exp if anybody doing projects please help.

please do the needfull asap
Hi All,

     I need to use radio button in place of CheckBoxes. But when i try to change the VF tag It is not working.
// The Below code is working fine with no issue //
 <apex:column >
       <apex:inputCheckbox value="{!con.isSelected}" />
  </apex:column> 

///////This is the code which i am using for Radio button. Its showing the radio button but functionality is not working here in case of Radio ////

   <apex:column >                    
       <input type="radio" value= "{!con.isSelected}" />                                     
    </apex:column>

Kindly help me on this.
Hi All,

            I need to integrate skype with salesforce so that in contact object's phone field whenever user click on the number it should redirect to skype to make the call. 

Thanks & Regards
     Shephali
      
Hi all,

    I have simple web-to-case html form their i need to add Captcha/Recaptcha into it. So how can i do the same please help.

Thanks
Shephali
Hello,
   I want to know about "DevOps AWS".

Your knowledge will be appreciating.

Thanks
Shephali

Hi 

  We have a requirement to write a formula field for calulating below details are mentioned as follows. 

 1. Unit of Measure ( Which is pick list holds Year/Month/Days) 
 2. List Price 
 3. Quantity 
 4. Subscription Term  

Here Subscription Term is dependent on Unit of Measure
   if Unit of Measure  = Year it will populate ( 1 to 5) 
   if Unit of Measure  = Month it will populate ( 1 to 12) 
   if Unit of Measure  = Days it will populate ( 1 to 31) 

Based on the above value I need to build a formula field 

  IF Unit of Measure = Year = ( List Price * Year * Quantity )

  IF Unit of Measure = Month = ( List Price / 12(Months in year)  * Quantity )
   
  IF Unit of Measure = Days = ( List Price / 365(Days in year) * Quantity )

Please suggest me how to get this formula 

Thanks

Sudhir
  
 
 

  • July 15, 2016
  • Like
  • 0
I want to group a a bunch of input fields under one radio button similar to ASP:Radiobutton.
Please see the below screen shot.
The forst radio button selected has "city" and "state" grouped togetrher.
Is it possible to do this usng the selectRadio component?

User-added image
I am following a link : http://www.codespokes.com/2013/09/how-to-send-sms-on-mobile-from.html

I am getting error with apex code 
"expecting a left angle bracket, found 'getPersonList' at line 15 column 16"
Can anyone please help on this?
public with sharing class TwilioCloudCommunicationClass {  
  
// Public Properties  
public String SelectedMobileNumber{get;set;}  
public String OtherMobileNumber{get;set;}  
public String textMessage{get;set;}  
  
// Default construtor  
public TwilioCloudCommunicationClass()  
{  
    SelectedMobileNumber  = '' ;  
    OtherMobileNumber = '' ;  
}  
  
Public List getPersonList()  
{  
    Try{  
        List localList = new List();  
        localList.add(new SelectOption('' , '--Select--'));  
        for(contact cont : [select Name,MobilePhone from contact where TwilioRegisteredUser__c = true ])  
        {  
            localList.add(new SelectOption(cont.MobilePhone , cont.Name));            
        }        
        localList.add(new SelectOption('other' , 'Other'));  
        return localList ;  
    }  
    catch(Exception e)  
    {  
        ApexPages.addMessages(e);        
        return null;  
    }  
}  
  
public void SendSMS()  
{  
    Try{        
        SelectedMobileNumber = (SelectedMobileNumber == '')? OtherMobileNumber:SelectedMobileNumber ;  
        if(SelectedMobileNumber != '')  
        {  
            List AdminInfo = TwilioConfig__c.getall().values();  
            String ACCOUNT_SID = '';  
            String AUTH_TOKEN  = '' ;              
            String SenderMobileNumber = '' ;  
            // Informaton getting from custom setting  
            if(AdminInfo.size()>0)  
            {            
                ACCOUNT_SID             = AdminInfo[0].AccountSid__c;  
                AUTH_TOKEN              = AdminInfo[0].AuthToken__c;                  
                SenderMobileNumber      = AdminInfo[0].Admin_Mobile_Number__c;      
            }              
            TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN);  
             
            Map properties = new Map {  
                        'To'   => SelectedMobileNumber ,  
                        'From' => SenderMobileNumber,  
                        'Body' => textMessage  
                };  
            TwilioSMS message = client.getAccount().getSmsMessages().create(properties);  
            ApexPages.addMessage(new ApexPages.message(ApexPages.severity.INFO, 'Message has been sent'));  
        }  
        else  
        {  
            ApexPages.addMessage(new ApexPages.message(ApexPages.severity.Error, 'Pelase provide valid Mobile Number '));  
        }  
    }catch(Exception e )  
    {  
        ApexPages.addMessages(e);        
        return ;  
    }    
}  
  
}

 
I have an Custom Object 'Customer participation' and Task is created for this object, now when I send an email from the related list with the subject as executive ,a field on task object should be inserted with an value. I have created a trigger but the trigger is working on all the objects. but i want it to work only on the emails of 'Customer participation'. Could anyone help me on this please.

trigger updatetaskoriginfield on Task (before insert, before update)
 {
     if(trigger.isBefore)
     {
            for(Task tsk: trigger.new)
            {
                 String test=tsk.subject;
                 set<string> a=new Set<string>{'executive','Executive'};
                 set<string> b=new Set<string>{'award','Award'};
                 List<String> lsttest=test.split(' ');
                 for(String s: lsttest)
                 {
                     if(a.contains(s))
                     {
                           tsk.Task_Origin__c='Executive Summary';
                     }
                     else if(b.contains(s))
                     {
                           tsk.Task_Origin__c='Award Notification';
                     }
                }
             }  
     }     
}

Hi ,

 

I want to make a e-commerce web site using site.com. I have read site.com tutorials and make a general web site which is given site.com tutorial. but i want to make full demo for makeing e-commerce site. 

 

also i used third party e-commerce resource. but it is not help ful for me.

 

Thanks

Narendra

  • June 17, 2013
  • Like
  • 1

Hi,

 

       Any body pls help me.......

 

       I have to develop a page based on HTML Pages........which includes Header,Menubar and Banner,...........

 

       Pls help me, i am new to Visualforce.........

 

      Thanks in advance..........

Hi,

Is it possible to have a VF page with click to dial using Skype. If yes, can someone please guide me through the process.

Can somebody explain what does it mean by Heap size?  Or please direct me in right direction.

 

Thanks in Advance.