Tanu Rajput
IndividualForum Replies Created
-
Tanu
MemberAugust 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.
-
Tanu
MemberAugust 31, 2016 at 9:51 am in reply to: Is it possible to direct access into community page without login and password, and How ?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.
-
Hello Mohit,
Each character can be one of 62 possible values:
- a lowercase letter (a-z) - 26 values
- an uppercase letter (A-Z) - 26 values
- a numeric digit (0-9) - 10 values
-
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
MemberAugust 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
MemberAugust 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!
-
Tanu
MemberAugust 26, 2016 at 10:29 am in reply to: What is Service Console Record URL? Difference between Salesforce record URL and service console Record URL?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/.
-
Tanu
MemberAugust 26, 2016 at 10:03 am in reply to: How can we use a SWITCH control statement in the APEX class? Is it possible and supported by APEX?Hello Mohit,
apex does not support SWITCH CASE ...so we can use replaced by
if(){
}
else if () {
}
.
.
.
else {
}