I gotta visualforce page and when i view it, i see that the selected tab is "Home". I do have a Visualforce Tab, and i have a wizard of Visualforce pages from this tab.
The first page shows the Visualforce tab as selected, whereas the other Visualforce pages show the "Home" tab as selected.
So, i had to add this attribute in the apex:page tag and it was solved..
Please note that __tab stands for Visualforce tab. For Standard tabs you may just refer them with the objects API Name (Account, Contact, CustomObject__c etc).
The first page shows the Visualforce tab as selected, whereas the other Visualforce pages show the "Home" tab as selected.
So, i had to add this attribute in the apex:page tag and it was solved..
<apex:page tabstyle="My_Page__tab">
Please note that __tab stands for Visualforce tab. For Standard tabs you may just refer them with the objects API Name (Account, Contact, CustomObject__c etc).
Ya, so i had to troubleshoot a user who was not able to access a custom object.
The user was assigned a standard profile. I edited the profile, and found out that i cannot edit custom object permissions for a Standard profile.
This new change has come into effect from Spring '10 for increased security reasons...
Click here to check out the discussion page from where i came to know this.
Spring '10 release notes. Page 188 states as below
Spring '10 introduces enhanced security for custom object permissions. In Enterprise, Unlimited, and Developer Editions,
when you create a custom object, the “Read,” “Create,” “Edit,” “Delete,” “View All,” and “Modify All” permissions for that
object are disabled for any profiles in which “View All Data” or “Modify All Data” is disabled. This ensures that all users don't
immediately get full access to custom objects.
You can change these permissions in custom profiles, but not standard profiles. That is, users with standard profiles (except
System Administrator) can't access new custom objects—you must assign them custom profiles and edit the profiles.To enable
access to custom objects, do one of the following:
• For users with standard profiles:
1. Clone the profiles of the users whose object permissions you want to change.
2. Edit the custom profiles, enabling the permissions you want.
Tip: If enhanced profile management is enabled for your organization, you can edit multiple profiles from the
list view.
3. Edit the users' accounts, assigning the appropriate cloned custom profiles.
When you want to schedule a dashboard refresh, you create a new public group or you want to use an existing public group and want to email your dashboard refresh to this public group. But, you are not able to search and select this public group. Why???
This is because the public group that you want to email the dashboard refresh should also have access to the dashboard folder.
Navigate to the dashboard folder -> Edit -> Grant Access to section and Add the public group. The group will now be available for selection while emailing dashboard refreshes.
If you have granted access to "All users", then this problem will not occur.
This is because the public group that you want to email the dashboard refresh should also have access to the dashboard folder.
Navigate to the dashboard folder -> Edit -> Grant Access to section and Add the public group. The group will now be available for selection while emailing dashboard refreshes.
If you have granted access to "All users", then this problem will not occur.
You usually get this error message when you try to define a DOCTYPE for your Visualforce page. To give a brief description, there are two types of DOCTYPES (Strict and Transitional). Your Visualforce Page are pre-defined with a DOCTYPE, and you cannot override them. I am not sure about the use of DOCTYPES, and i have not encountered a situation to override them.
So, do not include the below line of code in your Visualforce page and the error disappears.
So, do not include the below line of code in your Visualforce page and the error disappears.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Below is the syntax to do this.. Note that you have a string inside a string and the syntax to do so, the backslash followed by the single quote is the syntax.
public with sharing class forcetree
{
String squery = 'Select Id from User where Name=\'forcetree\'';
Database.query(squery);
}