• Rodolfo Calvo
  • NEWBIE
  • 54 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 1
    Likes Given
  • 23
    Questions
  • 30
    Replies
Hello Team, 

I packaged a visualforce page and its controller but the code is still able to be seen. How can I hide my code?
Thanks in advance. 
Hello team, 
I have this code: 
public static testMethod PageReference search() 
      {
        try
        {
            //runSearch();
            results = performSearch(searchString);
        }
        catch(Exception e)
        {
            //showMessage = true;
            //message = 'An error has ocurred on public static testmethod PageReference search()';
        }
        return null;
      }
    
      public static List<Account> performSearch(String sString)
      {
        searchString =  sString;
        //String will make a callback of contacs
        String soql = 'select id, name, type, description, website, phone from Account';
        if(searchString != '' && searchString != null)
        soql = soql +  ' where name LIKE \'%' + searchString +'%\'';
        soql = soql + ' limit 25';
        System.debug(soql);
        return database.query(soql); 
      }

All my app is in @isTest
It shows an error: 
Cannot call test methods in non-test context
Error is in expression '{!search}' in component <apex:commandButton> in page lca: External entry point

What am I doing wrong?
If I create a package in salesforce for my app, an error is shown: 
No test methods found in the Apex code included in the package. At least 75% test coverage is required. 

I have more than 2000 lines of code in visualforce page and its controller. This requirement means that I have to re-write all my code??

Thanks in advance.
 Hello team,
I develop an app with a visualforce page and controller, how can I install my app in another salesforce account? Is there any easy way to do this?
 
Thanks in advance
Hello team, 
I have this code
String soql = 'SELECT id, firstName, lastName, accountId FROM Contact';
I need to call all contacts from one simple account. 
I tried this: 
 
SELECT firstName, lastName, accountId FROM Contact WHERE accountid = '00000000000000'

This query worked fine, but my issue is calling all contact list from calling the account name: 
For example: I have Account_1, what I only have is the name, we imagine we do not have the ID, how could make this query by calling the name of the account?
I also tried this but there was no succeed.
String soql = 'SELECT id, firstName, lastName, accountId FROM Contact WHERE account.id;
How could I make this query correct? 
Thanks in advance
 
I have a scenario where too many calculations to be done with large volume of data to load a custom visualforce page report. I have almost avoided unnecessary loop in Apex code. Since it is more than 100k records, calculation is taking long time which is exceeding limit of 10000ms. So it is hitting CPU Limit Exceeded error. Is there a way to increase CPU time?
Hello to all, 

I am trying to develop a method to merge contacts from one simple account, but I need to merge more than 3 contacts, could someone give tutorial about merging contacts in code please? 

Thanks in advance. 
Hello team, 

I have this code: 
<apex:pageBlock>
              <apex:pageBlockSection title="Custom Picklist Using selectList and selectOption" collapsible="false">
                <apex:selectList value="{!selectedCountry1}" multiselect="false" size="1">
                    <apex:selectOption itemValue="INDIA" itemLabel="India"/>
                    <apex:selectOption itemValue="USA" itemLabel="USA"/>
                    <apex:selectOption itemValue="United Kingdom" itemLabel="UK"/>
                </apex:selectList>
                 
                <apex:outputText value="{!selectedCountry1}" label="You have selected:"/>
            </apex:pageBlockSection>
        </apex:pageBlock>

Controller
public String selectedCountry1{get;set;}

How can I show all my accounts in the selectList? I need an example of coding the method! 
Thanks in advance! 
Hello team,
I need to create a cleansing app, of course I need to create user authentication and firstly a simple CRUD. I need to develop it MVC c# asp.net. Please can somebody help me out with this?
How could I develop it? I need a tutorial for it.
Thanks. 
 
Hello team, 

I need to know if there is any possibility to create a Data Cleansing App for multiple companies. So, as first step, I need to create a data cleansing for my own company first of course, Is there any Data Cleansgin Open Source or guide to help me with my question. I need the code, some kind of guide or something. I want to create something like Cloudingo and Dupcatcher. 

Thanks team. 
How to make a simple SELECT from accounts module of an salesforce app module in asp.net C#.
How could be possible to make queries in asp.net MVC C# application and show them in a window of the app. 

Thanks!