In one of our recent
development we had a requirement to add a custom button dashboard for ‘Save
Current Customizations’. By default you can find this option in Page Options
drop down on Right-Top corner of Dashboard.
To create button we need to
find ‘On Click’ event of this option. We can find properties of this link by
right clicking on ‘Save Current Customizations’ and Inspect element.
Following are the steps to
create custom button,
1. Edit Dashboard and add Text from dashboard
object list on the corresponding Section:
2. Edit text and add the following HTML code :
<div class="XUIPromptEntry
minibuttonOn"> <Table>
<tr><td><input
type="button" value="Save Current Customization"
style="width:200px;
background-color: rgb(47, 95, 135); color: rgb(255, 255, 255);
font-size:13px; font-family: Arial,sans-serif;
font-weight:bold;"
onclick="obidash.SaveCustomizationDialog.open(); return
false;"></button></td></tr>
</table> </div>
3. Check the box “Contains HTML Markup” and save the changes.
No comments:
Post a Comment