• emilyftw
  • NEWBIE
  • 25 Points
  • Member since 2010

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies

I am getting an error when getting the default BusinessHours and adding 1000 milliseconds. Here is the code I am running in the system log:

 

 

BusinessHours bh = [select id from businesshours where isDefault = true];
DateTime dt = System.now();
DateTime test = BusinessHours.addGmt(bh.id, dt, 1000);

 

 

And this is what the log shows:

 

 

13:58:42.297|METHOD_ENTRY|[3]|BusinessHours.add(String, Datetime, Long)
13:58:42.298|METHOD_EXIT|[3]|BusinessHours.add(String, Datetime, Long)
13:58:42.298|FATAL_ERROR|Internal Salesforce.com Error

 

Am I doing something wrong?

 

I noticed that the Test.invokePage(PageReference) method is available, but I haven't been able to find any documentation on it, even in the Summer 10 release docs. Does anyone have any information on this method?

I am getting an error when getting the default BusinessHours and adding 1000 milliseconds. Here is the code I am running in the system log:

 

 

BusinessHours bh = [select id from businesshours where isDefault = true];
DateTime dt = System.now();
DateTime test = BusinessHours.addGmt(bh.id, dt, 1000);

 

 

And this is what the log shows:

 

 

13:58:42.297|METHOD_ENTRY|[3]|BusinessHours.add(String, Datetime, Long)
13:58:42.298|METHOD_EXIT|[3]|BusinessHours.add(String, Datetime, Long)
13:58:42.298|FATAL_ERROR|Internal Salesforce.com Error

 

Am I doing something wrong?

 

I have a requirement where i need to create a page having many tabs as well as tabPanels. The number of tabs to be displayed is decided at run time. i tried using tabPanel inside repeat but it renders tabPanels again and again but not the tabs. Is there any way to do this using visualforce?

 

for eg: say i have three tabPanels:

 

tabPanel 1 :

 

tab1 tab2 tab3

this contains three tabs(say)

 

tabPanel 2 :

tab 1 tab 2

this contains two tabs(say)

 

etc.

 

again when next time i render the page, tabPanel 1 may have 4 tabs and also an added, tabPanel.

 

 

Any Suggestion will be appreciated.

 

Thanks in advance.

  • June 08, 2010
  • Like
  • 0

I noticed that the Test.invokePage(PageReference) method is available, but I haven't been able to find any documentation on it, even in the Summer 10 release docs. Does anyone have any information on this method?