• kjpeterson
  • NEWBIE
  • -1 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 30
    Questions
  • 29
    Replies
The Enhanced Formula Editor chrome extension provides a code editor for formulas with syntax highlighting.  It also has a new feature for listing field details for fields found in the formula.

https://chrome.google.com/webstore/detail/salesforcecom-enhanced-fo/cnlnnpnjccjcmecojdhgpknalcahkhio

User-added image

User-added image

Looking at the documentation URL below there are attributes like itemDescription, title, and styleClass.  How can those be set from a controller when creating a list of SelectOptions to be shown in a SelectList.

 

The attribute's corresponding setters and getters seem to be confusing from the controller.  The documentation describes the attribute "itemEscaped" but the setter I've had to use is "setEscapeItem".

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_selectOption.htm

We have a rollup on Opportunity for Opportunity Products with criteria checking that a percent field is not equal to 100.

 

Sales_Discount__c Not Equal To 100

 

This is causing us issues because records that have a blank Sales_Discount__c value are being excluded.  If we put a zero or some other value then it gets included in the rollup fine.

 

Does this sound correct or are we missing something else?

I'm trying to get a pageblock to show like a standard related list with the icon for the object the pageblock will display.  If I set the tabStyle attribute of the pageBlock to the object it changes the border colors but does not display the icon.  How can I display the object icon too?

Salesforce.com Formula Editor

 

https://chrome.google.com/webstore/detail/cnlnnpnjccjcmecojdhgpknalcahkhio

 

Dynamically injects the Edit Area code editor into salesforce pages where formulas are edited.

 

Pros

- Syntax highlighting

- Tabbing (tab and shift-tab)

- Parenthesis matching

- Find and Replace

- No code wrapping

- Resize editor window by clicking bottom right corner

- Full screen feature

 

Cons

- Insert Field buttons will no longer insert the field. You can still browse the fields and then copy and paste the resulting field names though.

Is there anyway to search for workflows that have a value in their criteria or field updates?  It can be difficult at times when you are unfamiliar with a setup and you want to make changes but are afraid of breaking workflows.

I'm trying to generate links for creating new object records in Apex and I can't find where to obtain the id for an object so I can make a link to the recordtypeselect page which requires the "ent" parameter which is the object id.

 

Can I get the object Id using the describe methods?

Is there anything available for automatic formual formatting?  Mainly automatic indention/newlines to turn those left aligned messes and code blobs into readable hierarchies.

Is there some way I can use ApexPages.addMessage and have the apex:messages component render messages with some kind of severity indicator?

I have inline css in the head section of a component's markup.  If I place the component in an empty page then I see the text from the component and the css in the component applies fine to it.  If I change the page to render as PDF though the CSS from the component no longer applies.

I have an object named Assignment and a lookup field to another object named Action Plan.  I'm trying to create a custom link on Assignment that passes a value from the Action Plan record in the link.  The Action Plan value is always blank in the link though.  In the Assignment object custom link I'm referencing the Action Plan value like this {!Action_Plan__c.Custom_Value__c}.  Can this not be done?

I'm creating a custom chatter feed using visualforce and apex.  I can't find the value for the fileid that a contentpost created.  In the standard chatter feed if I click on the file title it sends me to a page showing the file and it appears to link to just the salesforce file id.  Can I get this id too?  I'm just wanting to give users an easy way to go to the file.

Is there anyone to have validation rules and workflow updates fire when a user does the Change Owner feature?  Currently none of them seem to fire.
In the Force.com IDE, if I set the Log Category to Workflow and Log Level to Info in the Apex Test Runner window, I just get trigger logs.  Is anyone else having this issue or think I'm doing anything wrong.  I'll set the dropdown and then run a test or I'll change the dropdown and click ReRun but none of them return Workflow logs.

I have created a Visualforce page and added the standard detail view for an object.  If I click the "Always show me fewer / more records per related list" links a the bottom of the page they don't increase or decrease the amount of records.

 

Also, is there some way I could default my Visualforce page to always show more records for standard related list so all users get more records by default and don't have to click the links?  Could I update a cookie with some javascript or redirect them back to the same page with the "rowsperlist" querystring set for them to accomplish this?

I've been trying to deploy some apex but my test cases are failing.  I click View Log in the error window but Eclipse crashes and Eclipse completely closes.  I realize it's an our of memory exception but I don't know what else should be changed to avoid this.  I've tried setting -Xmx greater than 1g but then Eclipse won't open correctly, it throws an error.  Looking in my Eclipse folder I see this error file:

 

 

#
# An unexpected error has been detected by Java Runtime Environment:
#
# java.lang.OutOfMemoryError: requested 115287498 bytes for jchar in C:\BUILD_AREA\jdk6_11\hotspot\src\share\vm\prims\jni.cpp. Out of swap space?
#
# Internal Error (allocation.inline.hpp:42), pid=9808, tid=6300
# Error: jchar in C:\BUILD_AREA\jdk6_11\hotspot\src\share\vm\prims\jni.cpp
#
# Java VM: Java HotSpot(TM) Client VM (11.0-b16 mixed mode windows-x86)
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

--------------- T H R E A D ---------------

Current thread (0x008e6c00): JavaThread "main" [_thread_in_vm, id=6300, stack(0x00030000,0x00130000)]

Stack: [0x00030000,0x00130000]

[error occurred during error reporting (printing native stack), id 0xc0000005]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.eclipse.swt.internal.win32.OS.SetWindowTextW(I[C)Z+0
j org.eclipse.swt.internal.win32.OS.SetWindowText(ILorg/eclipse/swt/internal/win32/TCHAR;)Z+21
j org.eclipse.swt.widgets.Text.setText(Ljava/lang/String;)V+108
j com.salesforce.ide.deployment.ui.wizards.LogViewShell.createTabLogView()V+196
j com.salesforce.ide.deployment.ui.wizards.LogViewShell.createSShell()V+58
j com.salesforce.ide.deployment.ui.wizards.LogViewShell.open()V+1
j com.salesforce.ide.deployment.ui.wizards.DeploymentResultsComposite$2.widgetSelected(Lorg/eclipse/swt/events/SelectionEvent;)V+17
J org.eclipse.swt.widgets.TypedListener.handleEvent(Lorg/eclipse/swt/widgets/Event;)V
J org.eclipse.swt.widgets.EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;)V
J org.eclipse.swt.widgets.Display.runDeferredEvents()Z
J org.eclipse.swt.widgets.Display.readAndDispatch()Z
J org.eclipse.jface.window.Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;)V
j org.eclipse.jface.window.Window.open()I+49
j com.salesforce.ide.core.internal.utils.Utils.openDialog(Lorg/eclipse/core/resources/IProject;Lorg/eclipse/jface/wizard/WizardDialog;)V+13
j com.salesforce.ide.deployment.actions.DeploymentAction.execute(Lorg/eclipse/jface/action/IAction;)V+33
j com.salesforce.ide.ui.actions.BaseAction.run(Lorg/eclipse/jface/action/IAction;)V+39
j org.eclipse.ui.internal.PluginAction.runWithEvent(Lorg/eclipse/swt/widgets/Event;)V+110
j org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Lorg/eclipse/swt/widgets/Event;Z)V+281
j org.eclipse.jface.action.ActionContributionItem.access$2(Lorg/eclipse/jface/action/ActionContributionItem;Lorg/eclipse/swt/widgets/Event;Z)V+3
j org.eclipse.jface.action.ActionContributionItem$5.handleEvent(Lorg/eclipse/swt/widgets/Event;)V+60
J org.eclipse.swt.widgets.EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;)V
J org.eclipse.swt.widgets.Display.runDeferredEvents()Z
J org.eclipse.swt.widgets.Display.readAndDispatch()Z
J org.eclipse.ui.internal.Workbench.runEventLoop(Lorg/eclipse/jface/window/Window$IExceptionHandler;Lorg/eclipse/swt/widgets/Display;)V
j org.eclipse.ui.internal.Workbench.runUI()I+336
j org.eclipse.ui.internal.Workbench.access$4(Lorg/eclipse/ui/internal/Workbench;)I+1
j org.eclipse.ui.internal.Workbench$4.run()V+23
j org.eclipse.core.databinding.observable.Realm.runWithDefault(Lorg/eclipse/core/databinding/observable/Realm;Ljava/lang/Runnable;)V+12
j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+18
j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
j org.eclipse.ui.internal.ide.application.IDEApplication.start(Lorg/eclipse/equinox/app/IApplicationContext;)Ljava/lang/Object;+81
j org.eclipse.equinox.internal.app.EclipseAppHandle.run(Ljava/lang/Object;)Ljava/lang/Object;+102
j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ljava/lang/Object;)Ljava/lang/Object;+103
j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ljava/lang/Object;)Ljava/lang/Object;+29
j org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+149
j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+183
v ~StubRoutines::call_stub
j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161
j org.eclipse.equinox.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+210
j org.eclipse.equinox.launcher.Main.basicRun([Ljava/lang/String;)V+114
j org.eclipse.equinox.launcher.Main.run([Ljava/lang/String;)I+4
v ~StubRoutines::call_stub

--------------- P R O C E S S ---------------

Java Threads: ( => current thread )
0x5707f400 JavaThread "Worker-13" [_thread_blocked, id=9916, stack(0x58bd0000,0x58cd0000)]
0x5707f000 JavaThread "Worker-12" [_thread_blocked, id=5840, stack(0x57cb0000,0x57db0000)]
0x56e74000 JavaThread "com.salesforce.ide.ui.editors.apex.ApexReconciler" daemon [_thread_blocked, id=7900, stack(0x57920000,0x57a20000)]
0x56e6b400 JavaThread "com.salesforce.ide.ui.editors.apex.ApexReconciler" daemon [_thread_blocked, id=4100, stack(0x588e0000,0x589e0000)]
0x56f16400 JavaThread "Thread-7" [_thread_blocked, id=8972, stack(0x59c70000,0x59d70000)]
0x5551e400 JavaThread "Timer-2" [_thread_blocked, id=6484, stack(0x59b70000,0x59c70000)]
0x5711ac00 JavaThread "Timer-1" [_thread_blocked, id=9728, stack(0x59a70000,0x59b70000)]
0x5711b400 JavaThread "Timer-0" [_thread_blocked, id=2824, stack(0x59970000,0x59a70000)]
0x56f7d400 JavaThread "Worker-10" [_thread_blocked, id=9392, stack(0x59770000,0x59870000)]
0x56ec9400 JavaThread "Worker-9" [_thread_blocked, id=9544, stack(0x59670000,0x59770000)]
0x56ddcc00 JavaThread "Worker-3" [_thread_blocked, id=7232, stack(0x57eb0000,0x57fb0000)]
0x56fb3800 JavaThread "Java indexing" daemon [_thread_blocked, id=9452, stack(0x58ad0000,0x58bd0000)]
0x5552d400 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=8632, stack(0x55970000,0x55a70000)]
0x554e8400 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=9524, stack(0x55870000,0x55970000)]
0x55574800 JavaThread "State Data Manager" daemon [_thread_blocked, id=7660, stack(0x55770000,0x55870000)]
0x54c04400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1304, stack(0x55270000,0x55370000)]
0x54bfe800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=6156, stack(0x55170000,0x55270000)]
0x54bfd000 JavaThread "Attach Listener" daemon [_thread_blocked, id=9168, stack(0x55070000,0x55170000)]
0x54bfbc00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=9460, stack(0x54f70000,0x55070000)]
0x54bec000 JavaThread "Finalizer" daemon [_thread_blocked, id=9412, stack(0x54e70000,0x54f70000)]
0x54be7400 JavaThread "Reference Handler" daemon [_thread_blocked, id=6436, stack(0x54d70000,0x54e70000)]
=>0x008e6c00 JavaThread "main" [_thread_in_vm, id=6300, stack(0x00030000,0x00130000)]

Other Threads:
0x54be2800 VMThread [stack: 0x54c70000,0x54d70000] [id=6232]
0x54c06c00 WatcherThread [stack: 0x55370000,0x55470000] [id=8768]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation total 72576K, used 29935K [0x02a70000, 0x07930000, 0x07930000)
eden space 64512K, 46% used [0x02a70000, 0x047abe50, 0x06970000)
from space 8064K, 0% used [0x07150000, 0x07150000, 0x07930000)
to space 8064K, 0% used [0x06970000, 0x06970000, 0x07150000)
tenured generation total 967936K, used 512887K [0x07930000, 0x42a70000, 0x42a70000)
the space 967936K, 52% used [0x07930000, 0x26e0dc70, 0x26e0de00, 0x42a70000)
compacting perm gen total 66048K, used 66015K [0x42a70000, 0x46af0000, 0x52a70000)
the space 66048K, 99% used [0x42a70000, 0x46ae7ec8, 0x46ae8000, 0x46af0000)
No shared spaces configured.

VM Arguments:
jvm_args: -Xms256m -Xmx1g -XX:MaxPermSize=256M
java_command: <unknown>
Launcher Type: generic



--------------- S Y S T E M ---------------

OS: Windows XP Build 2600 Service Pack 3

CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 7 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3

Memory: 4k page, physical 2097151k(986760k free), swap 4194303k(2657328k free)

vm_info: Java HotSpot(TM) Client VM (11.0-b16) for windows-x86 JRE (1.6.0_11-b03), built on Nov 10 2008 02:15:12 by "java_re" with MS VC++ 7.1

time: Fri Sep 25 10:10:17 2009
elapsed time: 4657 seconds

 

 

 

How does garbage collection work for Apex?  Should we be setting large objects to null or trying to do some kind of manual deallocation of variables to help garbage collection?  Will any of this help keep the heap size down?

We've implemented quite a few custom buttons on our objects that do simple things like update a status field.  The custom buttons use scontrols to do this and this has worked great.  Our operations manager can understand the simple scontrols enough to update them and reuse the bits and pieces where he needs them.

 

With scontrols being replaced by visualforce, I'm worried that there will be much more development time required to implement very simple things like these custom buttons.  I've found the blog post below that explains how we can achieve the same custom button affect using custom buttons that point to visualforce pages.  The only issue is that I don't think our operations manager would be able to create buttons himself anymore whenever he needs them.  He'll have to create apex classes, write test methods, and figure out how to deploy apex from sandbox to production.  Also, we have so many apex triggers and test methods that it can take 30 minutes to deploy one simple new apex class because of all the other test methods that run.

 

Is there a better way to create these simple custom buttons that just need to update a status field so users don't have to click 5 times to update the field?  Are we going to have to set aside developer time to create these simple buttons now?

 

http://sfdc.arrowpointe.com/2009/01/08/invoke-apex-from-a-custom-button-using-a-visualforce-page/

I've been working on a debug log parser project.  Some goals for it are below:

  1. Quickly see what events (validation rules, workflow, triggers) are firing during actions in salesforce.
  2. Make viewing the event hierarchy easier.
  3. Easily identify workflows whose criteria evaluate to true.
  4. Graph governor limit usage by event

Here is a preview screenshot:

 

Here is a link to the post.  Maybe this setup will be useful to others.  Also, is there a more specific location to submit things like this (helpful articles or project summaries)?

 

Console 2 for Salesforce

The Enhanced Formula Editor chrome extension provides a code editor for formulas with syntax highlighting.  It also has a new feature for listing field details for fields found in the formula.

https://chrome.google.com/webstore/detail/salesforcecom-enhanced-fo/cnlnnpnjccjcmecojdhgpknalcahkhio

User-added image

User-added image

Is there anyway to search for workflows that have a value in their criteria or field updates?  It can be difficult at times when you are unfamiliar with a setup and you want to make changes but are afraid of breaking workflows.

I'm trying to generate links for creating new object records in Apex and I can't find where to obtain the id for an object so I can make a link to the recordtypeselect page which requires the "ent" parameter which is the object id.

 

Can I get the object Id using the describe methods?

Is there anything available for automatic formual formatting?  Mainly automatic indention/newlines to turn those left aligned messes and code blobs into readable hierarchies.

Is there some way I can use ApexPages.addMessage and have the apex:messages component render messages with some kind of severity indicator?

I'm creating a custom chatter feed using visualforce and apex.  I can't find the value for the fileid that a contentpost created.  In the standard chatter feed if I click on the file title it sends me to a page showing the file and it appears to link to just the salesforce file id.  Can I get this id too?  I'm just wanting to give users an easy way to go to the file.

Adding the VF page as an inline object to a standard page layout is not a viable option for my implementation.

 

Does anyone know of an example of someone re-creating the Chatter bar in VF?

Hello,

 

I have come accross this problem a few times and still can't find a satisfactory solution. The issue is related to products. So I thought someone out htere must have also encountered it as it is a common structure that many companies would take to their products. 

 

I would like to bundle products so that when you select a product you then have a choice of selecting the breeakdown/makup of that product.  I need products and sub-products.

 

 

 

For example a single opp can be made up of the following main products and sub products, each requires a price associated with it;

 

Each opportunity can have several main products/ (packages/ bundles )

 

Blue Solution  100  (main product/ (package/ bundle ))

 

       Training 20     (sub product)

       Software 40   (sub product)

       hardware 40   (sub product)

 

Red Solution  80  (main product/ (package/ bundle ))

      Training 25     (sub product)

      Software 30    (sub product)

      hardware 25    (sub product)

 

 

I can't seem to achieve this so we have decided to have each segment listed as a product. For example the pricebook will no longer contain just Blue Solution, Red Solution it will have 

 

Blue Solution Training

Blue Solution Software

Blue Solution harware

Red Solution Training

Red Solution Software

Red Solution harware

 

 

and the sales rep picks these for each sale. 

 

That is all fine until you try to report on  the number of blue solutions sold in a month or year. Instead of getting the quantity of 5 blue solutions (no.of opportunities) you get 15 as it counts the number of line items (opportunity and product report required).

 

I have created a multi-picklist in the main opportunity so as to record what was sold, red solution;blue solution however a report will summarise by the combinations of those chosen and not by individual values in the picklist. 

 

I would be so grateful if anyone has any ideas on how to tackle this issue. I know so many companies out there do not simply sell straight forward products, they sell packages, so how do they deal with this?

 

I see the app exchange has a package called product bundles, but it doesn't really tackle the problem I am having. 

 

Thanks 

dac

  • January 13, 2010
  • Like
  • 0
Is there anyone to have validation rules and workflow updates fire when a user does the Change Owner feature?  Currently none of them seem to fire.

I've been trying to deploy some apex but my test cases are failing.  I click View Log in the error window but Eclipse crashes and Eclipse completely closes.  I realize it's an our of memory exception but I don't know what else should be changed to avoid this.  I've tried setting -Xmx greater than 1g but then Eclipse won't open correctly, it throws an error.  Looking in my Eclipse folder I see this error file:

 

 

#
# An unexpected error has been detected by Java Runtime Environment:
#
# java.lang.OutOfMemoryError: requested 115287498 bytes for jchar in C:\BUILD_AREA\jdk6_11\hotspot\src\share\vm\prims\jni.cpp. Out of swap space?
#
# Internal Error (allocation.inline.hpp:42), pid=9808, tid=6300
# Error: jchar in C:\BUILD_AREA\jdk6_11\hotspot\src\share\vm\prims\jni.cpp
#
# Java VM: Java HotSpot(TM) Client VM (11.0-b16 mixed mode windows-x86)
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

--------------- T H R E A D ---------------

Current thread (0x008e6c00): JavaThread "main" [_thread_in_vm, id=6300, stack(0x00030000,0x00130000)]

Stack: [0x00030000,0x00130000]

[error occurred during error reporting (printing native stack), id 0xc0000005]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.eclipse.swt.internal.win32.OS.SetWindowTextW(I[C)Z+0
j org.eclipse.swt.internal.win32.OS.SetWindowText(ILorg/eclipse/swt/internal/win32/TCHAR;)Z+21
j org.eclipse.swt.widgets.Text.setText(Ljava/lang/String;)V+108
j com.salesforce.ide.deployment.ui.wizards.LogViewShell.createTabLogView()V+196
j com.salesforce.ide.deployment.ui.wizards.LogViewShell.createSShell()V+58
j com.salesforce.ide.deployment.ui.wizards.LogViewShell.open()V+1
j com.salesforce.ide.deployment.ui.wizards.DeploymentResultsComposite$2.widgetSelected(Lorg/eclipse/swt/events/SelectionEvent;)V+17
J org.eclipse.swt.widgets.TypedListener.handleEvent(Lorg/eclipse/swt/widgets/Event;)V
J org.eclipse.swt.widgets.EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;)V
J org.eclipse.swt.widgets.Display.runDeferredEvents()Z
J org.eclipse.swt.widgets.Display.readAndDispatch()Z
J org.eclipse.jface.window.Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;)V
j org.eclipse.jface.window.Window.open()I+49
j com.salesforce.ide.core.internal.utils.Utils.openDialog(Lorg/eclipse/core/resources/IProject;Lorg/eclipse/jface/wizard/WizardDialog;)V+13
j com.salesforce.ide.deployment.actions.DeploymentAction.execute(Lorg/eclipse/jface/action/IAction;)V+33
j com.salesforce.ide.ui.actions.BaseAction.run(Lorg/eclipse/jface/action/IAction;)V+39
j org.eclipse.ui.internal.PluginAction.runWithEvent(Lorg/eclipse/swt/widgets/Event;)V+110
j org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Lorg/eclipse/swt/widgets/Event;Z)V+281
j org.eclipse.jface.action.ActionContributionItem.access$2(Lorg/eclipse/jface/action/ActionContributionItem;Lorg/eclipse/swt/widgets/Event;Z)V+3
j org.eclipse.jface.action.ActionContributionItem$5.handleEvent(Lorg/eclipse/swt/widgets/Event;)V+60
J org.eclipse.swt.widgets.EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;)V
J org.eclipse.swt.widgets.Display.runDeferredEvents()Z
J org.eclipse.swt.widgets.Display.readAndDispatch()Z
J org.eclipse.ui.internal.Workbench.runEventLoop(Lorg/eclipse/jface/window/Window$IExceptionHandler;Lorg/eclipse/swt/widgets/Display;)V
j org.eclipse.ui.internal.Workbench.runUI()I+336
j org.eclipse.ui.internal.Workbench.access$4(Lorg/eclipse/ui/internal/Workbench;)I+1
j org.eclipse.ui.internal.Workbench$4.run()V+23
j org.eclipse.core.databinding.observable.Realm.runWithDefault(Lorg/eclipse/core/databinding/observable/Realm;Ljava/lang/Runnable;)V+12
j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+18
j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
j org.eclipse.ui.internal.ide.application.IDEApplication.start(Lorg/eclipse/equinox/app/IApplicationContext;)Ljava/lang/Object;+81
j org.eclipse.equinox.internal.app.EclipseAppHandle.run(Ljava/lang/Object;)Ljava/lang/Object;+102
j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ljava/lang/Object;)Ljava/lang/Object;+103
j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ljava/lang/Object;)Ljava/lang/Object;+29
j org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+149
j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+183
v ~StubRoutines::call_stub
j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161
j org.eclipse.equinox.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+210
j org.eclipse.equinox.launcher.Main.basicRun([Ljava/lang/String;)V+114
j org.eclipse.equinox.launcher.Main.run([Ljava/lang/String;)I+4
v ~StubRoutines::call_stub

--------------- P R O C E S S ---------------

Java Threads: ( => current thread )
0x5707f400 JavaThread "Worker-13" [_thread_blocked, id=9916, stack(0x58bd0000,0x58cd0000)]
0x5707f000 JavaThread "Worker-12" [_thread_blocked, id=5840, stack(0x57cb0000,0x57db0000)]
0x56e74000 JavaThread "com.salesforce.ide.ui.editors.apex.ApexReconciler" daemon [_thread_blocked, id=7900, stack(0x57920000,0x57a20000)]
0x56e6b400 JavaThread "com.salesforce.ide.ui.editors.apex.ApexReconciler" daemon [_thread_blocked, id=4100, stack(0x588e0000,0x589e0000)]
0x56f16400 JavaThread "Thread-7" [_thread_blocked, id=8972, stack(0x59c70000,0x59d70000)]
0x5551e400 JavaThread "Timer-2" [_thread_blocked, id=6484, stack(0x59b70000,0x59c70000)]
0x5711ac00 JavaThread "Timer-1" [_thread_blocked, id=9728, stack(0x59a70000,0x59b70000)]
0x5711b400 JavaThread "Timer-0" [_thread_blocked, id=2824, stack(0x59970000,0x59a70000)]
0x56f7d400 JavaThread "Worker-10" [_thread_blocked, id=9392, stack(0x59770000,0x59870000)]
0x56ec9400 JavaThread "Worker-9" [_thread_blocked, id=9544, stack(0x59670000,0x59770000)]
0x56ddcc00 JavaThread "Worker-3" [_thread_blocked, id=7232, stack(0x57eb0000,0x57fb0000)]
0x56fb3800 JavaThread "Java indexing" daemon [_thread_blocked, id=9452, stack(0x58ad0000,0x58bd0000)]
0x5552d400 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=8632, stack(0x55970000,0x55a70000)]
0x554e8400 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=9524, stack(0x55870000,0x55970000)]
0x55574800 JavaThread "State Data Manager" daemon [_thread_blocked, id=7660, stack(0x55770000,0x55870000)]
0x54c04400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1304, stack(0x55270000,0x55370000)]
0x54bfe800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=6156, stack(0x55170000,0x55270000)]
0x54bfd000 JavaThread "Attach Listener" daemon [_thread_blocked, id=9168, stack(0x55070000,0x55170000)]
0x54bfbc00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=9460, stack(0x54f70000,0x55070000)]
0x54bec000 JavaThread "Finalizer" daemon [_thread_blocked, id=9412, stack(0x54e70000,0x54f70000)]
0x54be7400 JavaThread "Reference Handler" daemon [_thread_blocked, id=6436, stack(0x54d70000,0x54e70000)]
=>0x008e6c00 JavaThread "main" [_thread_in_vm, id=6300, stack(0x00030000,0x00130000)]

Other Threads:
0x54be2800 VMThread [stack: 0x54c70000,0x54d70000] [id=6232]
0x54c06c00 WatcherThread [stack: 0x55370000,0x55470000] [id=8768]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation total 72576K, used 29935K [0x02a70000, 0x07930000, 0x07930000)
eden space 64512K, 46% used [0x02a70000, 0x047abe50, 0x06970000)
from space 8064K, 0% used [0x07150000, 0x07150000, 0x07930000)
to space 8064K, 0% used [0x06970000, 0x06970000, 0x07150000)
tenured generation total 967936K, used 512887K [0x07930000, 0x42a70000, 0x42a70000)
the space 967936K, 52% used [0x07930000, 0x26e0dc70, 0x26e0de00, 0x42a70000)
compacting perm gen total 66048K, used 66015K [0x42a70000, 0x46af0000, 0x52a70000)
the space 66048K, 99% used [0x42a70000, 0x46ae7ec8, 0x46ae8000, 0x46af0000)
No shared spaces configured.

VM Arguments:
jvm_args: -Xms256m -Xmx1g -XX:MaxPermSize=256M
java_command: <unknown>
Launcher Type: generic



--------------- S Y S T E M ---------------

OS: Windows XP Build 2600 Service Pack 3

CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 7 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3

Memory: 4k page, physical 2097151k(986760k free), swap 4194303k(2657328k free)

vm_info: Java HotSpot(TM) Client VM (11.0-b16) for windows-x86 JRE (1.6.0_11-b03), built on Nov 10 2008 02:15:12 by "java_re" with MS VC++ 7.1

time: Fri Sep 25 10:10:17 2009
elapsed time: 4657 seconds

 

 

 

We've implemented quite a few custom buttons on our objects that do simple things like update a status field.  The custom buttons use scontrols to do this and this has worked great.  Our operations manager can understand the simple scontrols enough to update them and reuse the bits and pieces where he needs them.

 

With scontrols being replaced by visualforce, I'm worried that there will be much more development time required to implement very simple things like these custom buttons.  I've found the blog post below that explains how we can achieve the same custom button affect using custom buttons that point to visualforce pages.  The only issue is that I don't think our operations manager would be able to create buttons himself anymore whenever he needs them.  He'll have to create apex classes, write test methods, and figure out how to deploy apex from sandbox to production.  Also, we have so many apex triggers and test methods that it can take 30 minutes to deploy one simple new apex class because of all the other test methods that run.

 

Is there a better way to create these simple custom buttons that just need to update a status field so users don't have to click 5 times to update the field?  Are we going to have to set aside developer time to create these simple buttons now?

 

http://sfdc.arrowpointe.com/2009/01/08/invoke-apex-from-a-custom-button-using-a-visualforce-page/

I've been working on a debug log parser project.  Some goals for it are below:

  1. Quickly see what events (validation rules, workflow, triggers) are firing during actions in salesforce.
  2. Make viewing the event hierarchy easier.
  3. Easily identify workflows whose criteria evaluate to true.
  4. Graph governor limit usage by event

Here is a preview screenshot:

 

The Page Editor for visual force pages uses the editArea javascript library for the syntax highlighting.  I can see that the syntax popup helper is created using the autosuggest plugin.  Is that someone readily available for the editArea library or did Salesforce write that from scratch themselves?

I want to set the tabstyle everytime a page is requested.  Is there any way to achieve this?  I tried this but I got an error that {!TabStyle} is an invalid tabstyle.

 

 

<apex:page sidebar="false" controller="customController" tabStyle="{!TabStyle}" >

 

 

 

I am using Enhanced List View in a visual force page. When I click the enhanced list view item the page redirected to the detail page of the selected record. My requirement is to display the detail record underneath the Enhanced List View on the same visual force page. I don't see any action attributes listed for Enhanced List View on the Visualforce Developer's Guide.

Is there a way I can do that?
  • January 16, 2009
  • Like
  • 0
I'm getting a "Too many query rows" error on a SOQL For Loop.  It was my understanding that you could use this approach to prevent governor limits from occurring.
 
This is line 106 in the test method:
Code:
insert oAssignments;

 
This is line 40 within the trigger:
Code:
for (OpportunityLineItem oOpportunityLineItem : [SELECT Id, OpportunityId, Project__c, PricebookEntry.Product2Id, PricebookEntry.ProductCode, PricebookEntry.Name FROM OpportunityLineItem WHERE Project__c IN :oProjectsMap.KeySet()])

 
 
Code:
System.Exception: Too many query rows: 501

Trigger.AssignmentInsertPopulateProductFlagsHandler: line 40, column 57

System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, AssignmentInsertPopulateProductFlagsHandler: execution of BeforeInsert

caused by: System.Exception: Too many query rows: 501

Trigger.AssignmentInsertPopulateProductFlagsHandler: line 40, column 57

Class.TestAssignmentInsertPopulateProductFlags.testAssignmentInsertPopulateProductFlagsHandler: line 106, column 9

 


Message Edited by kpeterson on 02-19-2008 06:38 AM