You need to sign in to do that
Don't have an account?
Create Buttons with Java instead of JavaScript (Force.com)
Hi.
I've buildet a simple button in the Account-Layout with Force.com. This button shows a message.
How i can create this with Java in Eclipse-Force.com?
Code with JavaScript:
Account.objekt:
<webLinks>
<fullName>Hello</fullName>
<availability>online</availability>
<description>Say Hello</description>
<displayType>button</displayType>
<linkType>javascript</linkType>
<masterLabel>Hello</masterLabel>
<openType>onClickJavaScript</openType>
<protected>false</protected>
<url>alert ("Hello {!User.Name}" );</url>
</webLinks>
Account-Account Layout .layout:
<customButtons>Hello</customButtons>