• rafaelburi
  • NEWBIE
  • 0 Points
  • Member since 2013

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

Hi All.

 

Can someone help me this issue?

 

I have a map of OpportunityLineItem in my Controller Extension (the Standard Controller for the VF is Opportunity).

 

In my VF I have a table that is built iterating tru the map values, each cell has na inputField that references the Quantity field for the current OpportunityLineItem, those inputFields are rendered correctly, they show their values and so on...

 

The problem occur when I try to save some changes I had made with those values, the values inserted/changed are not being submitted.

 

Does anyone have any idea of how to solve it? 

 

Thanks in advance!

I have an Scheduler class witch invokes a batch class, my scheduler invokes System.abortJob to stop it is own execution, but most of these scheduled jobs still remain in Scheduled Jobs list.

 

Here is my scheduler class.

 

global class MyScheduler implements Schedulable {
   
   public Set<Id> olisIds {get; set;}
   
   global void execute(SchedulableContext ctx) {
		MyBatch batch = new MyBatch();
		batch.listOfIds = olisIds;
		Database.executeBatch(batch,100);
		System.abortJob(ctx.getTriggerId());
   }
   
}

The System methods documentation says the following about abortJob method:

Stops the specified job. The stopped job is still visible in the job queue in the Salesforce user interface.

 

But the accumulation of those scheduled jobs are causing an error and I am having to exclude them via interface.

 

Can anyone help me with it?

 

Thanks in advance.

Hi All.

 

Can anyone explain me the states of CronTrigger? The documentation only says the available states but it does not explain each of them.

 

WAITING
ACQUIRED
EXECUTING
COMPLETE
BLOCKED
ERROR
PAUSED
PAUSED_BLOCKED
DELETED

 

Thanks in advance.

Hi all.

 

I am trying to test a trigger that checks whether a Case is closed or not, but I can't close a Case in order to test my trigger.

I am doing the following in my test code.

 

Case parent = new Case();

Database.insert(parent);

 

Case child = new Case();

child.ParentId = parent.Id;

child.Status = 'Fechado'; // This label is set up to true in isClosed field in CaseStatus

Database.inset(child);

 

System.debug(child.Status); // It outputs Fechado

System.debug(child.isClosed); // It outputs false

 

Can someone help me? Sorry for my poor English.

I have an Scheduler class witch invokes a batch class, my scheduler invokes System.abortJob to stop it is own execution, but most of these scheduled jobs still remain in Scheduled Jobs list.

 

Here is my scheduler class.

 

global class MyScheduler implements Schedulable {
   
   public Set<Id> olisIds {get; set;}
   
   global void execute(SchedulableContext ctx) {
		MyBatch batch = new MyBatch();
		batch.listOfIds = olisIds;
		Database.executeBatch(batch,100);
		System.abortJob(ctx.getTriggerId());
   }
   
}

The System methods documentation says the following about abortJob method:

Stops the specified job. The stopped job is still visible in the job queue in the Salesforce user interface.

 

But the accumulation of those scheduled jobs are causing an error and I am having to exclude them via interface.

 

Can anyone help me with it?

 

Thanks in advance.

Hi all.

 

I am trying to test a trigger that checks whether a Case is closed or not, but I can't close a Case in order to test my trigger.

I am doing the following in my test code.

 

Case parent = new Case();

Database.insert(parent);

 

Case child = new Case();

child.ParentId = parent.Id;

child.Status = 'Fechado'; // This label is set up to true in isClosed field in CaseStatus

Database.inset(child);

 

System.debug(child.Status); // It outputs Fechado

System.debug(child.isClosed); // It outputs false

 

Can someone help me? Sorry for my poor English.