• Ron-LON
  • NEWBIE
  • 55 Points
  • Member since 2006

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 31
    Questions
  • 12
    Replies

Hi,

 

I created a visualforce page that I want displayed on the wide area of the homepage.  There are a few posts that suggest the following method as being the way.  So I do the following:

 

1. Go to Setup -> Customize -> Home -> Home Page Components

2. Click New->Choose HTML Area and->Input the Name for your component->Click Next

3. Select show HTML on the right upper hand side and place in the following:

 

<iframe

src="/apex/dateTester?core.apexpages.devmode.url=1"

width="100%" frameborder="0" height="100">

</iframe>

4. Then Click saves.

5. Now go into Setup -> Customize -> Home ->Home Page Layouts ->Click Edit next tothe Layout you would like to configure

Select the component from there

Click Next and order it where you want it to show.

Click Save.

 

It doesn't work for me.  When I go back to look at the new component, I edit it, then I check the box next to "show HTML".

 

And what I put in as this:

 

<iframe src="/apex/dateTester?core.apexpages.devmode.url=1" width="100%" frameborder="0" height="100">
</iframe>

 

 

ends up looking like this when I go back to view it:

 

<iframesrc=" apex="" datetester?core.apexpages.devmode.url="1&quot;width=&quot;100%&quot;" frameborder="0" height="100"></iframesrc=">

 

Why doesn't it work for me like others who have posted on here?

Hi All,

 

I have a query on profile like

 

  profile =[Select p.Name From Profile p where p.Name=: 'System Administrator' ];

 

If the user  language is english it works fine but if the language is different other than english then the query is not working.

 

Please suggest me any work around on this. Any help is appreciated.

Hi,

 

I'm looking to validate software version numbers to ensure they contain only one decimal and can be between

0 and 99.99.

 

At first I thought I could just use a number, but with versioning, 1.3 and 1.30 are different values.

 

I thought this should work:

 

REGEX( Version_Number__c, "(\\d){0,2}(\\.)(\\d){0,2}" )

 

It works for whole numbers, but fails once you add in a decimal point.

 

Any tips would be appreciated.

I've received the following eclipse error when creating a new Force.com Project:

 

Unable to fetch organization details

Force.com projects requrie a salesforce user with both 'Customize Application' and 'Modify All data' profile permissions.  Please change your credentials in project Properties > force.com

 

I'm receiving this on a full copy sandbox I've just refreshed and activated.  My profile is "System Administrator" so I already have the rights.  Also, I can connect just fine to the PROD org that I refreshed the sandbox from and the other sandboxes.

 

Does anyone have any insight?

 

Thanks

 

Hi,

 

I'm hoping someone can help me with this because I can't seem to find any real documentation on Mailmerge templates in Salesforce nor can I find any samples.

 

In the past I've built Mailmerge templates for Opportunities that show all the Line Items for the opportunity.  I have custom objects related to an opportunity and I want to do a Mailmerge template that shows all the child records for an opportunity in a manner similar to Line Items.

 

I've tried doing this through Word and it returns the Opportunity items but it doesn't return the child object items.  So if anyone's got a sample Word document they'd be happy to pass along or tell me how I can address parent-child relationships in Mailmerge, I'd appreciate it.

 

Also I'm wondering if I can do a mailmerge for an Opportunity and show Line Items and also show Quotes and also show the records of custom child objects all in the same template.

 

Thanks in advance!!

 

 

I have a Global class exposed as a webservice that is called by users who do not have the "Add Content" Workspace Permission, and am using "without sharing" to try to make it possible for that class to update fields on Content records. However, when I try to call the methods in this class, I receive insufficient access exceptions:

 

12:18:32.091|EXCEPTION_THROWN|[23]|System.DmlException: Update failed. First exception on row 0 with id 068M00000004G5HIAU; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: []

 

If I try the same thing with a user that does have the "Add Content" workspace permission, everything works as expected. Is it possible to have a method run in the system context when updating content records?

 

Thanks,

Tom

Hi,

 

I'm trying to write unit tests for Content. It seems that it is impossible to create a Workspace record in Apex, so I guess we have to use an existing one in the org?

 

Bigger question: If I create a Content record, relate it to an existing workspace using FirstPublishLocationId, and insert it, and then try to make an update to that Content record, I get this error:

 

Document with ID: 06930000000YPbp already has an owning Workspace

 

I get the same error whether or not this is in a test class. If I do it outside of a test class, and just use the record Id a few seconds later to do my update, it will work. So, it seems to be time-based... Is it not possible to update a newly created Content record from within a test class?

 

Thanks,

Tom

Hi,

 

I'm trying to avoid building a Visualforce page for something where the regular Salesforce pages would ordinarily work fine.

 

I start out a simple wizard with a VF page with a few Account fields.  I want to then create a child record in Meeting_Notes__c and I want the Account__c field filled in and the rest blank for editing.

 

I thought the following excerpt should work to achieve this, meaning create a new Meeting_Note__c in the controller, add Account.Id, and then pass it to the page reference.

 

Instead of bringing up a new Meeting_Notes__c page, it's bringing up the Account page.  I know I can solve this easily by marking up the entire page in Visualforce but I feel that if the page is already good without using VF, to not use VF.

 

Is there some little tiny mistake I'm making?

 

public PageReference next() {


		Meeting_Note__c mn = new Meeting_Note__c(Account__c = acct.Id);	

		PageReference mnPage = new ApexPages.StandardController(mn).edit();
		mnPage.setRedirect(true);
		return mnPage; 
		

Hi,

 

I'm quite frustrated by my current problem with Eclipse.  Hopefully someone's seen this?

 

I've been getting this error with Eclipse when trying to save back to Salesforce on the production instance.  I had two Force.com projects, one that pointed to my production instance and one that pointed to my developers account.

 

I was only getting the error for prod and not the dev.  So I deleted the Force.com project and created new.  That didn't work.  So I got rid of everything eclipse on my pc.  Then I went  to http://community.salesforce.com/t5/forums/postpage/board-id/apex and followed the directions for downloading, installing and configuring Eclipse from scratch.

 

No luck with that either.

 

The steps I'm taking to repeat the error:

 

I open up one of my unit test classes and somewhere in the middle on an empty line I add "//comment" into the code.  Then I save.

 

In the Problems area, I get "Save error: Unable to perform save on all files.  An unexpected error has occurred. Check the logfile for details."

 

Does anyone know how I remedy these errors from the log below, or even some guidance as to what they are??

 

Thanks!!!

 

 

!SESSION 2010-01-29 17:40:16.132 ----------------------------------------------- eclipse.buildId=M20090211-1700 java.version=1.6.0_18 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB Command-line arguments: -os win32 -ws win32 -arch x86 !ENTRY org.eclipse.equinox.p2.metadata.repository 2 0 2010-01-29 17:44:57.978 !MESSAGE Error parsing metadata repository !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2010-01-29 17:44:57.978 !MESSAGE Error at line 9, column 99: Missing required attribute in "repository": url !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2010-01-29 17:44:57.978 !MESSAGE Error at line 9, column 99: Illegal value for attribute "url" of element "repository": null !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2010-01-29 17:44:57.978 !MESSAGE Error at line 10, column 99: Missing required attribute in "repository": url !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2010-01-29 17:44:57.978 !MESSAGE Error at line 10, column 99: Illegal value for attribute "url" of element "repository": null !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2010-01-29 17:44:57.978 !MESSAGE Error at line 11, column 97: Missing required attribute in "repository": url !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2010-01-29 17:44:57.978 !MESSAGE Error at line 11, column 97: Illegal value for attribute "url" of element "repository": null !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2010-01-29 17:44:57.978 !MESSAGE Error at line 12, column 97: Missing required attribute in "repository": url !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2010-01-29 17:44:57.978 !MESSAGE Error at line 12, column 97: Illegal value for attribute "url" of element "repository": null !SESSION 2010-01-29 17:49:18.286 ----------------------------------------------- eclipse.buildId=M20090211-1700 java.version=1.6.0_18 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB Command-line arguments: -os win32 -ws win32 -arch x86 !ENTRY com.salesforce.ide.core 2 0 2010-01-29 17:50:44.730 !MESSAGE WARN [2010-01-29 17:50:44,730] (IntroEditorInput.java:loadDocument:130) - org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference. !ENTRY com.salesforce.ide.core 2 0 2010-01-29 17:56:15.365 !MESSAGE WARN [2010-01-29 17:56:15,365] (ProjectService.java:handleDeployResult:1928) - Save failed! !ENTRY com.salesforce.ide.core 2 0 2010-01-29 17:56:15.381 !MESSAGE WARN [2010-01-29 17:56:15,381] (ProjectService.java:handleRetrieveResult:2073) - Nothing to save to project - retrieve result is empty !ENTRY com.salesforce.ide.core 4 0 2010-01-29 17:56:15.396 !MESSAGE ERROR [2010-01-29 17:56:15,381] (BuilderController.java:handleException:134) - Unable to perform save on all files. !STACK 0 java.lang.NullPointerException at com.salesforce.ide.core.services.ProjectService.setRunTestFailureMarker(ProjectService.java:2335) at com.salesforce.ide.core.services.ProjectService.handleRunTestMessages(ProjectService.java:2310) at com.salesforce.ide.core.services.ProjectService.handleRunTestResult(ProjectService.java:2230) at com.salesforce.ide.core.services.ProjectService.handleDeployResult(ProjectService.java:1940) at com.salesforce.ide.core.project.BuilderController.handleSaves(BuilderController.java:118) at com.salesforce.ide.core.project.BuilderController.build(BuilderController.java:95) at com.salesforce.ide.core.project.BuilderController.build(BuilderController.java:75) at com.salesforce.ide.core.project.OnlineBuilder.incrementalBuild(OnlineBuilder.java:79) at com.salesforce.ide.core.project.OnlineBuilder.build(OnlineBuilder.java:49) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

 

 

 

Hi,

 

Does anyone know what this is about?  I'm trying to save a class that has an @future in it.  I've been working with it for many days and doing lots of different unit test scenarios.  I've been using a development org.

 

I've been able to save it before for all these days, but now I'm getting this error: "Batchable class has jobs pending or in progress" when I try to save it.  It's been in that state for at least an hour.

 

How long should these jobs pending usually take?  How long should I wait to do something about it .... and then what exactly would I then do??

 

Any help is appreciated!!

 

Thanks!!

Hi,

 

I'm getting some strange behaviour using Eclipse with a SOQL query in a class.  I'm using the schema section to test the query out and just for sanity, building the query using the checkboxes to ensure the relationships are correct.

 

I'm trying to query the Lead object and show the Lead Owner's Division.

 

To do this, you join with User.  The field "Division" is a standard Salesforce.com field, as is Username, Lastname,Firstname, Fullname, Street, City, State, Email, Phone, and so on.

 

The following example queries work:

 

Select l.Owner.Name, l.OwnerId, l.Company From Lead l

Select l.Owner.Username, l.OwnerId, l.Company From Lead l

Select l.Owner.Phone, l.OwnerId, l.Company From Lead l

Select l.Owner.Email, l.OwnerId, l.Company From Lead l

Select l.Owner.ProfileId, l.OwnerId, l.Company From Lead l

 

 

These are some that don't work:

 

Select l.Owner.Division, l.OwnerId, l.Company From Lead l

Select l.Owner.Country, l.OwnerId, l.Company From Lead l

Select l.Owner.City, l.OwnerId, l.Company From Lead l

Select l.Owner.Department, l.OwnerId, l.Company From Lead l

 

 

The error message:   

 

Unable to open Schema Browser. Reason: INVALID_FIELD - Select l.Owner.Division,l.OwnerId,l.Company from Lead l ^ ERROR at Row:1:Column:8 No such column 'Division' on entity 'Name'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.

 

 

If they're all non-custom fields on a non-custom object, the relationship name should work? 

 

Is there anything I'm missing?