• deeput05
  • NEWBIE
  • 0 Points
  • Member since 2012

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

hi,

 

can i have code for disabling all the command buttons  when inserting a record using save option.

Hi,

 

can i have code for insertion of 11,000 records  at a time without using batch apex

how to display a link on the home in unresolved items

 code for deletion of all the records of an object at time

HI,

 

 i declared the class as well as the variables as global still i am unable to view my page. 

 

The code,

 

 

VisualForce:

 

<apex:page Controller="newpage1">
<apex:pageBlock >

<apex:pageBlockSection >

<Apex:pageblocktable value="{!leadrec}" var="l">
<apex:column value="{!l.Name}" />
<apex:column value="{!l.Email}" />
</apex:pageblocktable>
</apex:pageBlockSection>

</apex:pageBlock>
</apex:page>

 

apex:

 

global class newpage1 {

global list<lead> leadrec{get;set;}
global newpage1()

{
leadrec=[select Name,Email from lead limit 10 ];

}
}

Hi,

i am trying insert more than 150 records and i unable do it since dml operation wont allow more tha 150 statments can i have any alternate method to achive this.

 

code:

 

public class insst1
{

public void sav()
{

for(integer i=0;i<250;i++)
{
Lead c=new lead();
c.FirstName='ffgghm'+i;
c.LastName='ffe';
c.email='ffl@gmail.com';
c.company='fffff';
insert c;
}

}
}

Hi,

 

can i have code for insertion of 11,000 records  at a time without using batch apex

HI,

 

 i declared the class as well as the variables as global still i am unable to view my page. 

 

The code,

 

 

VisualForce:

 

<apex:page Controller="newpage1">
<apex:pageBlock >

<apex:pageBlockSection >

<Apex:pageblocktable value="{!leadrec}" var="l">
<apex:column value="{!l.Name}" />
<apex:column value="{!l.Email}" />
</apex:pageblocktable>
</apex:pageBlockSection>

</apex:pageBlock>
</apex:page>

 

apex:

 

global class newpage1 {

global list<lead> leadrec{get;set;}
global newpage1()

{
leadrec=[select Name,Email from lead limit 10 ];

}
}