You need to sign in to do that
Don't have an account?
lithe951
Creating scontrols with Eclipse 3.1
Maybe I'm missing something obvious here, but it sure is frustrating. I'm using OSX 10.4.7 and Eclipse 3.1. I have java 1.4.2 and 1.5 loaded (which might be a problem, but I wouldn't think so). I can successfully create an AppExchange project and successfully download all current scontrols. I can update them and save changes and they work.
#1
Problem comes in when I try to create a NEW scontrol using Eclipse. I create a new file and immediately get "An unexpected error was thrown while trying to open the S-Control." along with a java.lang.NullPointerException. This is a new scontrol, doesn't exist in salesforce yet. Is there another way I'm supposed to create them?
#2
Then it actually does create the file locally to the workspace. Great, I'll build it anyway. I added a simple html tag and one word, test, updated the properties with the scontrol name and try to save. "Field integrity exception occurred, check your merge field definitions." and another NullPointerException. I didn't use any merge fields!
#3
Fine. I'll just create what I need in a text editor and create the scontrol the old fashioned way by pasting it into the salesforce UI. Then I can refresh the AppExchange project and at least maintain it with Eclipse, right? Well the context menu "Refresh" does absolutely nothing. I have to create a new project and start all over, and then I have the new scontrol available in Eclipse.
So what's going on? BTW I've tried 3.2 with the latest beta version of the plugin, but that just flat doesn't even allow a connection to the soap endpoint.
I want to use this. It's very cool. Help!
Mark
#1
Problem comes in when I try to create a NEW scontrol using Eclipse. I create a new file and immediately get "An unexpected error was thrown while trying to open the S-Control." along with a java.lang.NullPointerException. This is a new scontrol, doesn't exist in salesforce yet. Is there another way I'm supposed to create them?
#2
Then it actually does create the file locally to the workspace. Great, I'll build it anyway. I added a simple html tag and one word, test, updated the properties with the scontrol name and try to save. "Field integrity exception occurred, check your merge field definitions." and another NullPointerException. I didn't use any merge fields!
#3
Fine. I'll just create what I need in a text editor and create the scontrol the old fashioned way by pasting it into the salesforce UI. Then I can refresh the AppExchange project and at least maintain it with Eclipse, right? Well the context menu "Refresh" does absolutely nothing. I have to create a new project and start all over, and then I have the new scontrol available in Eclipse.
So what's going on? BTW I've tried 3.2 with the latest beta version of the plugin, but that just flat doesn't even allow a connection to the soap endpoint.
I want to use this. It's very cool. Help!
Mark
some plugins (like myEclipse) conflict with the AppExchange Toolkit and can cause these types of problems. you may want to try installing the AppExchange Toolkit vs. a clean install of Eclipse if you haven't already done so.
- Right-click on the "Scontrols" folder within my project and select New=>File
- Name the file "TestControl.htm.scf" and click Finish
- Immediate error as noted above
What's the deal?Mark
http://www.weinand.org/eclipse/org.eclipse.swt.carbon.macosx.ppc_3.1.0.jar.zip
Without it, Eclipse won't run on an Intel Mac running Tiger (OS X 10.4.7). It might cause the problem, but if so, why does Eclipse work fine updating existing scontrols?
Mark
1. Go to Salesforce - Setup - Create S-control
2. Create the S-Control with a Title, a minimal description, and anything you want in the Body. ("Peanuts" works fine.)
3. Save it, then go to Eclipse
4. Under your Project for this account, Right click SControls -> AppExchange -> Synch Folder
And your new S-Control will come up with the "Peanuts" Body.
Afterwards it works fine. I don't know why it doesn't always seem to work from Eclipse, but this works fine and sometimes it's best to move on to the problem at hand. :-)
Best, Steve.
The workaround works, but I still should be able to create an scontrol from Eclipse, no? At least this gets me functional, thanks Steve.
Mark
Just want to be sure I understand the function so I use it properly. If this is the case, it shouldn't be called "sync" should it? :)
Mark
Mark
Good ..
So Following are threee things can be done from Eclipse
1. Creation of New Scontrol
Right-click on the Scontrols folder and chose AppExchange => New Scontrol and it worked
2. Synchronising the Scontrols from SFDC to Eclipse
Under your Project for this account, Right click SControls -> AppExchange -> Synch Folder
3.Preview the Scontrol in Eclipse itself
Select the preview tab under the Scontrol Code
There are 3 tabs under Scontrol Code Code / Properties / Preview
Message Edited by Chirag Mehta on 10-31-2006 09:21 PM
4. The docs at http://www.salesforce.com/developer/projects_toolkits.jsp point you to http://adnsandbox.com/appexchange/updates/ for Eclipse install instructions, and that page mentions that eclipse 3.1 or later is OK, but in fact the current version of the AppExchange extensions only work on v3.1 of Eclipse, not the current Eclipse v3.2. Apparently a version of AppExchange Toolkit is in the pipeline that you can use with Eclipse 3.2.