• Dinesh1617
  • NEWBIE
  • 35 Points
  • Member since 2013
  • Salesforce Developer Sr.
  • Cox Automotive

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 1
    Likes Given
  • 7
    Questions
  • 9
    Replies
Is there any way to track the frequency of usage of apps in salesforce?

Thanks,
Dinesh
Guys, I am getting following error when I am adding and refreshing a project.

"Refresh Error : Invalid Stored Block Lengths"

Please let me know, If any one faced this issue and how did you solved it. 
Thanks in advance.
Hi, 

Is there any way to make the system not to track the login history of perticular user?
I found that "Login History" as an object, all the logins are saved in it as records. If any one with the system admin profile delets them. How i can get intimated?

Any help is greatly appriciated.

Thanks,
Dinesh
Hi, Can any ne tell me
"how to write a query to find the most recent SystemModStamp on object".
Hi,

I'm trying to send an outbound message for Accounts object to Tibco. I can see the values that i'm sending from the log files. But by the time they are reaching the Tibco a couple of required fieilds are missing. 

Can any one help me regarding.

-Dinesh

When i'm trying to include the controller of VF page. It is not accessable from the test class

need help on test class code coverage of cf page

Hi,

I'm trying to send an outbound message for Accounts object to Tibco. I can see the values that i'm sending from the log files. But by the time they are reaching the Tibco a couple of required fieilds are missing. 

Can any one help me regarding.

-Dinesh
I have a LWC which navigates to records using NavigationMixin. When I use the same LWC in VisualForce page using lightning out, the navigation does not work. I there any way to make it work? I did research but didn't find any.
Is there any way to track the frequency of usage of apps in salesforce?

Thanks,
Dinesh
Guys, I am getting following error when I am adding and refreshing a project.

"Refresh Error : Invalid Stored Block Lengths"

Please let me know, If any one faced this issue and how did you solved it. 
Thanks in advance.
Hi,

I'm trying to send an outbound message for Accounts object to Tibco. I can see the values that i'm sending from the log files. But by the time they are reaching the Tibco a couple of required fieilds are missing. 

Can any one help me regarding.

-Dinesh

need help on test class code coverage of cf page

Hi

 

Is there an option to query user login history in Apex? If so can someone please provide an example or any documentation?

 

 

Thanks

Hi,

Am unable to refresh any of the resources in the IDE from the server.

When am trying to refresh a page from the web, getting an Exception saying:

 

 

Unable to refresh resource 'MileaeExension.cls':
com.salesforce.ide.api.metadata.types.Metadata$JaxbAccessorF_fullName cannot be cast to com.sun.xml.bind.v2.runtime.reflect.Accessor

 

Unable to refresh resource 'MileaeExension.cls':


com.salesforce.ide.api.metadata.types.Metadata$JaxbAccessorF_fullName cannot be cast to com.sun.xml.bind.v2.runtime.reflect.Accessor

 

Please assist to rectify the issue. 

 

Thanks in advance,

VNath

Not sure what I am doing wrong or if this is not something you can test.

 

My class:

 

 

public class alertControllerV3 {

public static PageReference redirectToAppropriateAlertsPage_live() {
if( alwaysShowTheseInAlertsPageList_live.size()==0) {
PageReference acctPage = new PageReference('https://na3.salesforce.com/home/home.jsp');
acctPage.setRedirect(true);
return acctPage;
}
else {PageReference acctPage = new PageReference('https://na3.salesforce.com/apex/alert');
acctPage.setRedirect(true);
return acctPage;
}
return null;
}
}

 

My test:

 

 

 

public static testMethod void testPositiveResults(){

Test.setCurrentPage(redirectToAppropriateAlertsPage_live() );

System.debug('the current page is...' +ApexPages.currentPage() );

pageReference pageRef1 = ApexPages.currentPage();
pageReference pageRef2 = new pageReference('https://na3.salesforce.com/apex/alert');

System.assertEquals(pageRef2, pageRef1 );


}

 

 Debug log:

 

 

 

20090616212631.426:Class.alertControllerV3.testPositiveResults: line 893, column 9:
returning System.PageReference from method public static System.PageReference redirectToAppropriateAlertsPage_live() in 0 ms
20090616212631.426:Class.alertControllerV3.testPositiveResults: line 898, column 3:
the current page is...System.PageReference[https://na3.salesforce.com/apex/alert]
System.Exception: Assertion Failed:
Expected:
System.PageReference[https://na3.salesforce.com/apex/alert],
Actual:
System.PageReference[https://na3.salesforce.com/apex/alert]

 

 

 

 Thank you.

 

Kindly provide a solution to the following : 

 

Details

I as a product manager require a custom search page for my salesforce CRM account. I don’t want to use the standard search functionality for this. Here is what I want to be done:

 

    1. On the VF page, create accustom “search” button and a checkbox with the name “limit to accounts I own”
    2. I should be able to enter and search on the following fields (these are the search criteria fields):
      1. Account name(standard field)
      2. Industry (standard field)
      3. Rating(standard field)
      4. Account  region(custom field)
      5. Account priority(custom filed)
      6. Account summary(text)
    3. The search functionality should be a logical OR of all the above combinations.
    4. The correct search results should be displayed ON THE SAME PAGE only after clicking the “submit” button.Display columns should have these fields: account name, industry, rating, account priority.
    5. If the checkbox “limit to accounts I Own” is checked before clicking on search the display only those accounts where the owner=current logged in user. 

I have developed the following code:

 

<apex:page Controller="AccountSearch">
<apex:form >
 
<apex:outputPanel layout="block">
<label for="checkbox"> Limit to Account I own: </label>
<input id="checkbox" type="checkbox"/>
</apex:outputPanel>
<apex:commandButton action="{!search}" value="Search"/>
 
<apex:pageBlock mode="edit" id="block">
         <apex:pageBlockSection >
            <apex:pageBlockSectionItem >
               <apex:outputLabel for="searchText">Search Text</apex:outputLabel>
               <apex:panelGroup >
                  <apex:inputText id="searchText" value="{!searchText}"/>
                  <apex:commandButton value="Submit" action="{!search}" 
                                      rerender="block"/>
               </apex:panelGroup>
            </apex:pageBlockSectionItem>
        </apex:pageBlockSection>
 <apex:actionStatus id="status" startText="requesting..."/>
<apex:pageBlockSection title="Results" id="results" columns="1">
           <apex:pageBlockTable value="{!results}" var="a"
                               rendered="{!NOT(ISNULL(results))}">
                               
              <apex:column value="{!a.Name}"/>
              <apex:column value="{!a.Industry}"/>
              <apex:column value="{!a.Rating}"/>
              <apex:column value="{!a.Account_Region__c}"/>
              <apex:column value="{!a.Account_Priority__c}"/>
              <apex:column value="{!a.Account_Summary__c}"/>
   </apex:pageBlockTable>
   </apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
__________________________________________________________________________________________
 
public class AccountSearch {
 
  String searchText;
   List<Account> results;
 
public String getSearchText() {
      return searchText;
   }
 
   public void setSearchText(String s) {
      searchText = s;
   }
 
   public List<Account> getResults() {
      return results;
   }
    public PageReference search() {
    results = (List<Account>)[FIND :searchText RETURNING Account(Name, Industry, Rating, Account_Region__c, Account_Priority__c, Account_Summary__c)][0];  
        return null;
    }
 
}
Please provide the necessary modifications
  • May 27, 2013
  • Like
  • 3