• danathan
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 5
    Replies
Getting following error while running application. Command: heroku open

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exceptionorg.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 1 in the generated java file The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:331) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:457) org.apache.jasper.compiler.Compiler.compile(Compiler.java:378) org.apache.jasper.compiler.Compiler.compile(Compiler.java:353) org.apache.jasper.compiler.Compiler.compile(Compiler.java:340) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:644) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238) org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:262) org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1180) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778) javax.servlet.http.HttpServlet.service(HttpServlet.java:621) javax.servlet.http.HttpServlet.service(HttpServlet.java:722)note The full stack trace of the root cause is available in the Apache Tomcat/7.0.22 logs.
 

My requirement is when a record is edited in web client field Data_Source__c should be set to 'WEB'.

If it is edited in mobile application then Data_Source__c should be set to 'MOBILE'.

 

We are able to set value 'MOBILE' since it is custom edit screen in mobile application. We do not know how to set it to 'WEB' since we use standard layout in web client and there is no provision to override Save button.

 

What I am thinking is if somehow I get OS or browser type in Apex, I can use it in trigger and set Data_Source__c field.

 

Please let me know if anyone can offer help for this request.

 

Nathan.

 

 

 

I have an org wide email address that is accessisble only by System Administrator.

In a trigger I get this org wide email address id and set it in SingleEmailMessage using setOrgWideEmailAddressId method.

Looks like email is sent when users with System Administrator profile executes trigger. But if users with other profiles execute trigger email is not sent.

 

Can you please suggest a solution ?. We don't want to expose org wide email address to all profiles.

I am trying to write a custom Approval History related list visualforce page but not able to group actions for each step.
There is a ProcessInstanceStep object but currently there is no way to identify records in this object that is completed in a specific step (step1, step2, .. etc). Not sure how salesforce standard Approval History related list shows records for each step grouped by step. Can you please suggest a solution ?

 

Looks like salesforce needs to include step number field in ProcessInstanceHistory, ProcessInstanceStep and ProcessInstanceWorkItem objects

 

There is a standard button "New Meeting Request" in Calendar related list of Home page.

I want to display this button in my visualforce page.

 

From view source of home page I got this html tag for this button

 

<input value="New Meeting Request"  class="btn" name="newproposemeeting" onclick="navigateToUrl('javascript&colon;void(SchedulingProposeMeeting.openAskForMeetingDialog('/scheduling/createMeeting.apexp?onHome=true', false, 877));',null,'newproposemeeting');" title="New Meeting Request" type="button" />

 

But it is not working in visualforce page. On clicking this button it is not opening Meeting Request modal dialog. Nothing happens on click.

 

Can you please suggest a solution ?

Thanks,

 

Nathan.

Getting following error while running application. Command: heroku open

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exceptionorg.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 1 in the generated java file The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:331) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:457) org.apache.jasper.compiler.Compiler.compile(Compiler.java:378) org.apache.jasper.compiler.Compiler.compile(Compiler.java:353) org.apache.jasper.compiler.Compiler.compile(Compiler.java:340) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:644) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238) org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:262) org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1180) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778) javax.servlet.http.HttpServlet.service(HttpServlet.java:621) javax.servlet.http.HttpServlet.service(HttpServlet.java:722)note The full stack trace of the root cause is available in the Apache Tomcat/7.0.22 logs.
 

My requirement is when a record is edited in web client field Data_Source__c should be set to 'WEB'.

If it is edited in mobile application then Data_Source__c should be set to 'MOBILE'.

 

We are able to set value 'MOBILE' since it is custom edit screen in mobile application. We do not know how to set it to 'WEB' since we use standard layout in web client and there is no provision to override Save button.

 

What I am thinking is if somehow I get OS or browser type in Apex, I can use it in trigger and set Data_Source__c field.

 

Please let me know if anyone can offer help for this request.

 

Nathan.

 

 

 

I am trying to write a custom Approval History related list visualforce page but not able to group actions for each step.
There is a ProcessInstanceStep object but currently there is no way to identify records in this object that is completed in a specific step (step1, step2, .. etc). Not sure how salesforce standard Approval History related list shows records for each step grouped by step. Can you please suggest a solution ?

 

Looks like salesforce needs to include step number field in ProcessInstanceHistory, ProcessInstanceStep and ProcessInstanceWorkItem objects

 

There is a standard button "New Meeting Request" in Calendar related list of Home page.

I want to display this button in my visualforce page.

 

From view source of home page I got this html tag for this button

 

<input value="New Meeting Request"  class="btn" name="newproposemeeting" onclick="navigateToUrl('javascript&colon;void(SchedulingProposeMeeting.openAskForMeetingDialog('/scheduling/createMeeting.apexp?onHome=true', false, 877));',null,'newproposemeeting');" title="New Meeting Request" type="button" />

 

But it is not working in visualforce page. On clicking this button it is not opening Meeting Request modal dialog. Nothing happens on click.

 

Can you please suggest a solution ?

Thanks,

 

Nathan.