function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mknobmknob 

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 (&quot;Hello {!User.Name}&quot; );</url>
    </webLinks>

 

Account-Account Layout .layout:

<customButtons>Hello</customButtons>

Message Edited by mknob on 10-01-2009 05:33 AM