References:
Problem:
When a Visualforce Page loads, the date input field is selected by default. The usual behavior is that the first input field or box in the page is focussed by default. Clearly annoying in this case
Solution:
Add the below piece of code in your visualforce page.
Tried the other option suggested, but it does NOT work for me.
- http://boards.developerforce.com/t5/Visualforce-Development/How-to-remove-focus-from-first-input-field/td-p/105445
- http://boards.developerforce.com/t5/Visualforce-Development/inputField-Calendar-Widget/m-p/71094#M1050
Problem:
When a Visualforce Page loads, the date input field is selected by default. The usual behavior is that the first input field or box in the page is focussed by default. Clearly annoying in this case
Solution:
Add the below piece of code in your visualforce page.
<script>
function setFocusOnLoad() {}
</script>
Tried the other option suggested, but it does NOT work for me.
<script>beenfocused = true; </script>
You might have noticed that when you edit a Content, you do not have the option of changing the author.
To change the author, you will have to download the document. Click on the "Versions" tab in the Content detail page, upload a new version (replace with the one you downloaded).
Only when you upload a new version do you have the option of changing the author.
To change the author, you will have to download the document. Click on the "Versions" tab in the Content detail page, upload a new version (replace with the one you downloaded).
Only when you upload a new version do you have the option of changing the author.
This message appears when you have not specified the syntax properly. The line of code which caused this error is below, note that the value for the attribute "controller" has not been closed properly with the corresponding closing quotes
The correct code would be
<apex:page showheader="false" controller="PrimaryContactManager>
The correct code would be
<apex:page showheader="false" controller="PrimaryContactManager">
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.
