12.07.2015 Views

Database.com Metadata API Developer's Guide - Salesforce.com

Database.com Metadata API Developer's Guide - Salesforce.com

Database.com Metadata API Developer's Guide - Salesforce.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Metadata</strong> TypesWeblinkField NameopenTypepositionprotectedrequireRowSelectionshowsLocationshowsStatusurlwidthField TypeWebLinkWindowType(enumeration of type string)WebLinkPosition(enumeration of type string)booleanbooleanbooleanbooleanstringintDescriptionRequired. When this button is clicked, specifies the window stylethat will be used to display the content.Valid values:• newWindow• sidebar• noSidebar• replace• onClickJavaScriptIf the openType is newWindow, how the new window should bedisplayed. Otherwise this field should not be specified.Valid values:• fullScreen• none• topLeftRequired. Indicates whether this sub-<strong>com</strong>ponent is protected (true)or not (false). Protected sub-<strong>com</strong>ponents cannot be linked to orreferenced by <strong>com</strong>ponents or sub-<strong>com</strong>ponents created in theinstalling organization.If the openType is massAction, whether to require individual rowselection to execute the action for this button (true) or not (false).Otherwise this field should not be specified.If the openType is newWindow, whether or not to show the browserlocation bar for the window; otherwise this field should not bespecified.If the openType is newWindow, whether or not to show the browserstatus bar for the window. Otherwise, this field should not bespecified.If the value of linkType is url, this is the URL value. If the valueof linkType is javascript, this is the JavaScript content. If thevalue neither of these, the this field should not be specified.Content must be escaped in a manner consistent with XML parsingrules.Width in pixels of the window opened by this Weblink.Required if the openType is newWindow, otherwise should not bespecified.Java SampleThe following Java sample shows sample values for Weblink fields:public void webLinkSample(String name) throws Exception {WebLink weblink = new WebLink();// name variable represents the full name of the object// on which to create the weblink, for example, customObject__cweblink.setFullName(name + ".googleButton");106

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!