Forum Replies Created

Page 2 of 2
  • Tanu

    Member
    August 31, 2016 at 10:51 am in reply to: Is it necessary to use RemoteAction annotation for using javascript?

    Hello Pranav,

    It is not necessary to use RemoteAction annotation for using javascript

    Remote action means that a Visualforce page can access the method directly from JavaScript, using JavaScript remoting.  You'd use this if you didn't want to use form posts to carry out actions.  Remote action methods are stateless, so the request needs to carry all the information required to process it.

  • Hello  Pranav,

    It is not possible to direct access into community page without login and password, for this we have to be a community member and enter credentials for accessing.

  • Tanu

    Member
    August 30, 2016 at 3:17 pm in reply to: In what piece the salesforce Id composed of ?

    Hello Mohit,

    Each character can be one of 62 possible values:

    1. a lowercase letter (a-z) - 26 values
    2. an uppercase letter (A-Z) - 26 values
    3. a numeric digit (0-9) - 10 values
  • Tanu

    Member
    August 30, 2016 at 3:11 pm in reply to: How can I get Recent Items object Ids in SOQL?

    Hello,

    There is a new object available in Summer '13 called RecentlyViewed that you can use in SOQL to get a user's recently viewed records.

    SELECT Id, Name
    FROM RecentlyViewed
    WHERE Type IN ('Account', 'Contact')
    ORDER BY LastViewedDate DESC

  • Tanu

    Member
    August 30, 2016 at 3:03 pm in reply to: How can we change the colour of Visualforce table dynamically?

    Hello Mohit,

    You can assign CSS classes dynamically based on the picklist value using styleClass attrubute:

    Try below code

    <style>
    .errorClass {
    background-color: red;
    }
    .normalClass {
    background-color: green;
    }
    </style>

    <apex:pageBlock>
    <apex:pageBlockTable value="{!testObjectList}" var="item">
    <apex:column value="{!item.name}"
    styleClass="{!IF(item.status__c == 'Critical','errorClass','normalClass')}"/>
    <apex:column value="{!item.status__c}"
    styleClass="{!IF(item.status__c == 'Critical','errorClass','normalClass')}"/>
    </apex:pageBlockTable>
    </apex:pageBlock>

  • Tanu

    Member
    August 26, 2016 at 1:44 pm in reply to: How can we hide 'new' Button on Sobject tab in salesforce?

    Hello Mohit,

    We can't hide 'new' Button on Standard Object we can override it with visualforcepage,

    and try these to hide in custom object and in related list
    Go to the page layout on which you want to hide new button. Scroll down to the related list, click on related list properties, a new window will open. In the bottom of the window you will see a Button section with a + sign on it. Expand this section, you will find a checkbox as shown below. Uncheck it and the new standard button will be removed from the related list.

    Go into the custom object's definition and scroll down to the Search layouts section, and look at the <SObject> List View for your custom object.  The 4th column from the left ('Buttons Displayed') shows you which buttons are currently displayed when you are on the list view.

     

    Clicking Edit next to the List View will bring you to the selection screen where you can add/remove the Standard Buttons as well as any custom buttons that you may have created.

     

    I hope this helps you out!

     

  • Hello Mohit,

     

    The standard salesforce URL contains the instance name (e.g. na2 or ap1) and the record ID (15 digit unique ID provided by salesforce) in the end whereas the console URL contains the instance. The format is (your instance).salesforce.com/console/.

     

     

  • Hello Mohit,

    apex does not support SWITCH CASE ...so we can use replaced by
    if(){
    }
    else if () {
    }
    .
    .
    .
    else {
    }

Page 2 of 2