• SfdcBlueFish
  • NEWBIE
  • 90 Points
  • Member since 2011

  • Chatter
    Feed
  • 3
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 18
    Questions
  • 20
    Replies

Hi All

 

I want to know about the following

  1. Dynamic routing Approval process
  2. Where we use them
  3. Why we need them
  4. How to Implement them in salesforce
  5. How it differs from normal Approval Process

Thanks in Advance

Santosh

Hi,

I want to know what are all the difference between

 1. Workflow & Rules

 2. Approval Process

 3. Triggers

 

Where to use what?

 

Thanks

Santosh Raman

Hai,

 

       How we can find longitude and lattitude for the given address and i need to display map for that on vfpage.How can we achieve this. Can any body please help me.

 

 

Thanks in Advance

  Sfdc Blue Fish

Hai Friends,

 

 

      Can you please explain in which situation the following exceptions may raise?

 

              List index out of  bounds

 

              String out of bounds

 

              String exception: Satrting position out of bounds

 

              Dereference-the-null object

 

 

PLease explain the possible scenarios to get that exceptions

Hai friends,

 

 

       I have blogged an example regarding an URL trick to fill the data in to form.Please follow,

 

                           flexandsalesforce.blogspot.com

 

Regards,

 

Haribabu,

Force.com certified developer,

flexandsalesforce.blogspot.com

Hai friends,

 

         We can get Objectid using getprefix() method,now i need to get field id of an object. Can u please help me?

 

 

Thanks in advance

 

SFDC Bluefish 

I have blogged an example on  displaying fields from multiple objects and inserting data in to objects at a time.

 

                Please go through the blog flexandsalesforce.blogspot.com

 

I think this may useful for all.

 

Haribabu

Force.com certified developer.

flexandsalesforce.blogspot.com

 

 I have blogged an example on homepage components .That example show how we can show alert or popup for every loggedin user.

 

          To see that example please click on,

 

                              flexandsalesforce.blogspot.com

 

Haribabu,

Certified Force.com developer

flexandsalesforce.blogspot.com

 

Hai,

 

        This blog  will be used when your creating flex and salesforce releated apps,and daily polls on saleforce regarding scenarios(which will be used to prepare for certification). please follow this.

 

                     flexandsalesforce.blogspot.com

 

 Thanks&regards

 SFDC Blue fish

 Certfied force.com developer

 

 

Hai frnds,


 Iam working on flexbuilder to integrate sfdc.I have one issue pls help me to step forward from this issue.


Scenario:-


                                I have 3 grids,one grid with data State Names,another grid with data state capitals.Now issue is when i drag statename to statecapital then that statename and statecapital will store in new list and that mapped data,i.e statename and statecapital will display in 3rd gird


Pls help me.Atleast provide any example to map one grid values to another grid and display in 3rd in VFpage,then i will implement it flex.


Thanksin Advance

Hari@RockZ

Hai friends can pls help me,

 

   How to  Customise Standard Account creating page with Homepage components,pls me  in this scenario..

 

Complete requirement is,

 

i have one scenario,that is when u creating new Account ,there are   fields like  Employees  and Slccode in Account Standardpage.Now requirement is when u enter Employees( suppose 100),then Slc code field should filled with double to number of employees(100* 2) when that filed get focused,pls help me in this scenario.I sthere any ways to slove this with homepagecomponenets.......................

 

how we can Achieve this

 

Thanks In Advance

 

hari@RockZ

Hai friends pls help me,

 

Scenario:-

 

         When u creating new Account,in Account Detail page u can find two fields Employee and Slc Code......Now my requirement is if u fill  employees field with value then slc Code value sholud be filled with double the value entered in Employees when that field get focused.suppose u have entered 100 in employees field on Sic code field filled with 200 automatically when mouse focused on that field....................

 

ThankS in Advance

 

hari@RockZ

 

Hai Friends,

 

     Scenario: I need to create a page in homepagecomponents,with that page i need to override standard Accountpage

 

   Pls Help me in this scenario.

 

Another ThinG: Can we invoke Javascript in Homepage components

 

 

Thank u

Hari@Rockz

Hai frnds,

 

  i have picklist controlls(text,button,radio),and add button on vf page. user select type of controls he want to add on page,when user click on add button then selected control type will display on vfpage,if selected radio button then radio button will add on Vf page.............i am trying with following code but iam not getting pls help.....................

 

 

<apex:page id="page">
<script>
function addElement()
{
  var as = document.getElementById('page:fm:pb:choose').value;
  alert(as);
  
  if(as=='Text')
   {
         
          var element = document.createElement("input");
         
          element.setAttribute("type", as);
    
          element.setAttribute("value", as);
    
          element.setAttribute("name", as);
          
          var ni = document.getElementById('page:fm:pb:myDiv');
         
          ni.appendChild(element);
   }
}
</script> 
<apex:form id="fm">
<apex:pageBlock id="pb">
<B>Select Type:</B>
<apex:selectList id="choose"  size="1"  onchange="change()">
           
            <apex:selectOption itemvalue="--None--" itemlabel="--None--"/>             
           
            <apex:selectOption itemValue="Text" itemLabel="Text"/>
            
            <apex:selectOption itemValue="Button" itemLabel="Button"/>
           
            <apex:selectOption itemValue="Radio" itemLabel="Radio"/>
       
        </apex:selectList>
        
  <apex:commandButton onclick="addElement()" value="Add"/>
  
 <div id="myDiv"> </div>
</apex:pageBlock>
</apex:form>
</apex:page>

 

 

Thanks in Advance...........

 

SfdcBlueFish

Hi friends,

 

 Can u pls help me to get all queuemembers in Queue?

 

 Is there any SOQL query to get this! pls Help me regarding this........

 

 

 Thank U

Sfdcbluefish

 

 

Hi friends,

 

  i am working around following scenario, i have display all account names in vfpage, when i click on account name the childs associated with that account are displayed in tree format.

 

                              * Account1

                                       contact1

                                       contact2

                              *Account2

                                      contacts....

but here when we click on account name then only contacts are rendered...

 

 

ThankS in Advance

 Subha

hi frnds,

 

 i am working with following scenario.....  i have picklist,based on the seleted picklist value we need to enable textboxes or radio buttons(some fields) or disabling some controls ..............pls help me in this scenario.....

 

 

 

Thank u

 

Hi,

 

Friends, i am working with facebook integration,first of all,i was installed force.com toolkit and i was followed all instructions,But iam getting 

 

                                 Attempt to de-reference a null object ,

 

i was checked with all settings but iam not getting access token. Can u please any one help me  to integrate

facebook with salesforce and getting AccessToken

 

Thanx in Advance.

Hi Friends,

 

     I am new to cloud, can u any body tell me the way to achieve this,

 

 Scenario:  if we undelete master record from recycle bin  auto matically child records will undeleted from recycle bin,

 

Now I need to trigger for that scenario,if we undelete master record from recyclebin then trigger will fire and it delete all  child records which belongs to that master record  from recycle bin.

 

ThanX in Advance

Hi Friends,

 

   I am new to salesforce ,can u any body tell me the way to implement undelete trigger for account

 

 

ThanX in Advance

 

Hai Friends,

 

 

      Can you please explain in which situation the following exceptions may raise?

 

              List index out of  bounds

 

              String out of bounds

 

              String exception: Satrting position out of bounds

 

              Dereference-the-null object

 

 

PLease explain the possible scenarios to get that exceptions

There are two visualforce page one is Account and another one is contact. 

 

In Account page, create a Account and related list contact. when i click a contact button in Account page, Account id is passed in the contact page.

 

for eg:

Account

 

Accid

Address

 

contact

cid

Accid(foreign key)

Address

Hi All 

 

I have built a VF Page which displays list of products up to 1000. I need to create a Search bar where we can type product name and get the desired PRODUCT. 

 

I need help on it please. 

Hai friends,

 

 

       I have blogged an example regarding an URL trick to fill the data in to form.Please follow,

 

                           flexandsalesforce.blogspot.com

 

Regards,

 

Haribabu,

Force.com certified developer,

flexandsalesforce.blogspot.com

Hai friends,

 

         We can get Objectid using getprefix() method,now i need to get field id of an object. Can u please help me?

 

 

Thanks in advance

 

SFDC Bluefish 

 

Hai Friends,

 

     Scenario: I need to create a page in homepagecomponents,with that page i need to override standard Accountpage

 

   Pls Help me in this scenario.

 

Another ThinG: Can we invoke Javascript in Homepage components

 

 

Thank u

Hari@Rockz

Hi All

 

I want to know about the following

  1. Dynamic routing Approval process
  2. Where we use them
  3. Why we need them
  4. How to Implement them in salesforce
  5. How it differs from normal Approval Process

Thanks in Advance

Santosh

Hi,

I want to know what are all the difference between

 1. Workflow & Rules

 2. Approval Process

 3. Triggers

 

Where to use what?

 

Thanks

Santosh Raman

Hi friends,

 

 Can u pls help me to get all queuemembers in Queue?

 

 Is there any SOQL query to get this! pls Help me regarding this........

 

 

 Thank U

Sfdcbluefish

 

 

Where does the records reside when the Offline feature is enabled?  Are the records on the user's computer or in the cloud?

Hi,

 

I have designed a Visualforce page where I have many InputText controls. I want to send same UI of form in an email on click of submit button on page. It can be send either as attachment or in email body but I am getting below error ...

 

System.VisualforceException: URL starting with 'http://c.cs0.visual.force.com/apex/CustomerCreditApplication?com.salesforce.visualforce.ViewStateCSR'... is longer than the maximum allowed length of 4,096.

 

ASPA answer is highly appreciated.

  • March 03, 2011
  • Like
  • 0

Hi,

 

Requirement:-

When we select a value from the picklist, based on picklist value i would like to enable controle in VF page.

I did the same thing through Javascript. But how can i achieve it through Apex coding.

 

Regards:

HariXRocz

hi frnds,

 

 i am working with following scenario.....  i have picklist,based on the seleted picklist value we need to enable textboxes or radio buttons(some fields) or disabling some controls ..............pls help me in this scenario.....

 

 

 

Thank u

 

This query giving invalid token count error.

 

what is the problem here??

  • February 24, 2011
  • Like
  • 0

Hi,

 

I am trying to create  an Email to lead.i mean when i use the email service link to send the mail to SF, a lead is generated.As this is working ,but when i am trying to attach a file with the Email.The file is not comin as attachments.My code is under.Can any one try to solve my problem.

Global class unsubscribe implements Messaging.inboundEmailHandler{

    Global Messaging.InboundEmailResult handleInboundEmail(Messaging.InboundEmail email,Messaging.InboundEnvelope env )
    {

    // Create an inboundEmailResult object for returning
    //the result of the Apex Email Service
    Messaging.InboundEmailResult result = new Messaging.InboundEmailResult();
    
 
    String strEmailId = email.fromAddress;
    String strSubject = email.subject;
    String myText=email.plainTextBody;
    String myFromName = email.fromName;
    Lead l;
    
       

    //Create a new test Lead and insert it in the Test Method 
    integer iCount;
    iCount = [select count() from Lead where Email=:email.fromAddress];
    if (iCount==0)
    {   
        l = new Lead(
        lastName= myFromName, //strEmailId,
        Company=myFromName,
        Email=strEmailId,
        LeadSource='OnlineEnquiry',
        Description=strSubject+'\n'+myText,
        OwnerId='00590000000OJ0w'); //Change this id with user's id to whome you want to assign this lead.
        insert l;    
       
    }
   
   
    result.success = true;
    return result;
    for (Messaging.Inboundemail.TextAttachment tAttachment : email.textAttachments) {
     Attachment attachment = new Attachment();
     
    attachment.Name = tAttachment.fileName;
     attachment.Body = Blob.valueOf(tAttachment.body);
     attachment.ParentId = l.Id;
     insert attachment;
    }
    for (Messaging.Inboundemail.BinaryAttachment bAttachment : email.binaryAttachments) {
     Attachment attachment = new Attachment();
     
    attachment.Name = bAttachment.fileName;
     attachment.Body = bAttachment.body;
      attachment.ParentId =l.Id;
     insert attachment;
   
    }
     result.success = true;
    return result;
    }  


    /* Only for test case */

    // Test method to ensure you have enough code coverage
    // Have created two methods, one that does the testing
    // with a valid "unsubcribe" in the subject line
    // and one the does not contain "unsubscribe" in the
    // subject line
   static testMethod void testUnsubscribe() {

   // Create a new email and envelope object
        Messaging.InboundEmail email = new Messaging.InboundEmail() ;
        Messaging.InboundEnvelope env    = new Messaging.InboundEnvelope();
      
        // Create a new test Lead and insert it in the Test Method       
       Lead l = new lead(firstName='Rasmus',
                lastName='abc',
                Company='Salesforce',
                Email='rmencke@salesforce.com',LeadSource='OnlineEnquiry',Description='dsdfdgf'
                );
       insert l;
    
    // Create a new test Contact and insert it in the Test Method 
       Contact c = new Contact(firstName='Rasmus',
                    lastName='Mencke',
                    Email='rmencke@salesforce.com');
       insert c;
      
       // test with subject that matches the unsubscribe statement
       email.subject = 'test unsubscribe test';
       email.fromName = 'abhi k';
       email.fromAddress = 'abhilash@rixyncs.co.in';
        email.subject='test';
       email.plainTextBody='zsdzdf';
        
       
       
  
       // call the class and test it with the data in the testMethod
       unsubscribe unsubscribeObj = new unsubscribe();
       unsubscribeObj.handleInboundEmail(email, env );
                           
       }
       
      /* static testMethod void testTrigger() {
        Lead l = new Lead(lastName='testTrigger',Status='Qualified',Email='abhi@rixyncs.co.in',
                          Company='Rixyncs',MobilePhone='919901379361');
        insert l;
      //  SMS__c s = new SMS__c(To_Lead__c=l.Id,Message__c='Test');
      //  insert s; 
        
        Database.LeadConvert lc = new database.LeadConvert();
        lc.setLeadId(l.Id);
        lc.setConvertedStatus('Qualified');
        Database.LeadConvertResult lcr = Database.convertLead(lc);
    }*/

}

 Please help me.

 

Thanks

 

Nasir

 

  • February 24, 2011
  • Like
  • 0

Hi friends,

 

   Can u share u r knowledge with me,

 

Scenario:-

 

      I want to write generic trigger for all objects,i.e i need to pass object name to the trigger then trigger will fired on that object(while insserting records). How i can acieve this.

 

 

Thanx In advance

   ForceDev79

Hi All,

 

I have 3 objects (address, city, state) under table Contacts and I want to be able to search on them

just like how the SOSL is doing.

 

 

 address             city             state

-------------------------------------------

1 wilshire          los angeles      CA

624 s grand      los angeles      CA

1 wilshire          austin              TX

 

 

If I search for '1 wilshire CA' It should display 1 record. 

 

Is this possible for SOQL? Or should I use SOSL instead? What should be the PHP code and query to display the results using PHP.

 

 

Thanks in advance. 

hey i am trying to see the test vf page of the integration with facebook

and i am getting a black page

i am filling the facebookapplist object with the appkey and the appsecret values and after

trying to load the vf test page all the rest of the fields in the facebookapplist are filled with values (the values which equals to the facebook application like the app_id)

 

 

maybe the problem is that monthly_active_users = 0 or weekly_active_users = 0 or  daily_active_users = 0

 

if you have any suggestions it would be very helpful

 

thanks 

  • March 24, 2009
  • Like
  • 0
I would like to override some standard function of StandardController.

I want to use StandardController Accounts on a VisualForce page, to display Accounts list, with CHECKBOXES to select the Accounts. Can anyone guide me here, how to do this?
  • December 03, 2008
  • Like
  • 0