• regger118
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 7
    Replies

if i use a page that calls a remote action it does not work on a sites page?

if i disable showheader it failes calling the apex webservice but if i enable show headers it works on the sites page why is this?

 

Uncaught {faultcode:'UNKNOWN_EXCEPTION', faultstring:'UNKNOWN_EXCEPTION: Site under construction', }

Hi Guys i am trying to download an xml file from a server using the xmlHtttpRequest object but i get an error is not allowed by Access-Control-Allow-Origin.

 

how can i get around this problem?

Hi i have a sorte dlist of data - alphabetically i.e. [A,A,A,A,Z,Z,Z,Z,Z]

 

now how do i draw a table like this?

 

column_1   | column_2

A                       Z

A                       Z

A                       Z

A                       Z

Hi i have sites page that renders a google map but if i disable the header it does not work?

How would i remove trailing zeroes (left after the first numeric char) for this 'LON00010'

I have written a SOQL Query to gell all Oppotunity names of some Criteria,I need to put all Opp names in a single Field of type text.Is there a Way to do it ,please Help!

hi i am trying create a formula field that calculates that expiry date from a start date and term

 

i got something like

 

startDate + terms * 30.4375

 

but it has some weird results? and does not handle leap years

 

anyone have a better formula :@

Hi all,

I want to write a schedulable interface which updates mass records for accounts. The code which is written for this is as below.....

 

 

global class ScheduleAccountUpdate implements Schedulable{
   global void execute(SchedulableContext ctx) {
      List<Account> acc = [SELECT today__c from Account WHERE CloseDate__c AND today__c = false];
        for (Account a : acc) {
                a.Closed_date__c = true;
        }     
      update acc;      
   }
}

-I want to ask that if my number of records are more than 10000 then will there be any problem and also whats the limit for, FOR loop. If my List exceeds 10000 the for loop should work. I had 9000+ records and it was taking some time for do schedulable job.

-Also How will i write a test class for above code.

 

Any help on this will be greatly appreciated.

 

Thanks in advance,

NightFox