• Jhon68
  • NEWBIE
  • 0 Points
  • Member since 2012

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

Hi All,

how can we add the entire of <apex:pageblock table> when I click command button.

Thanks  

  • February 06, 2012
  • Like
  • 0
<apex:page StandardController="Activitie__c" StandardStylesheets="true" extensions="ActvityController"  >
 <apex:form >
  <apex:pageBlock >
   <apex:pageblockSection title="Activity" columns="4">
    <apex:pageBlocktable value="{!Activitie__c}" var="some">
     <apex:column headerValue="Step" >
      <apex:inputField value="{!Activitie__c.name}"/>
     </apex:column>
     <apex:column headerValue="Status" >
      <apex:inputField value="{!Activitie__c.Status__c}"/>
     </apex:column>
     <apex:column headerValue="Step" >
      <apex:inputField value="{!Activitie__c.Planned_Start_DateTime__c}"/>
     </apex:column>
     <apex:column headerValue="Planned End Time">
      <apex:inputField value="{!Activitie__c.Planned_End_Date_Time__c}"/>
     </apex:column>
     <apex:column headerValue="Billable">
      <apex:inputField value="{!Activitie__c.Billable__c}"/>
     </apex:column>
     <apex:column headerValue="Priority" >
      <apex:inputField value="{!Activitie__c.Priority__c}"/>
     </apex:column>
   </apex:pageBlockTable>
  </apex:pageblockSection>
  </apex:pageBlock>
  <apex:pageblock >
  <apex:pageBlockSection title="Technician Assignment" id="activitypage" >
  <apex:inputfield value="{!Activitie__c.Provider_Group__c}"/>
  </apex:pageBlockSection>
     <!--<apex:pageBlockSection id="start" >
    <apex:pageblockTable value="{!Activitie__c}" var="no">
    <apex:column headerValue="Provider Group Name" >
 <apex:inputfield value="{!Activitie__c.Provider_Group__c}"/>
    </apex:column>
    <apex:column headerValue="Technician Name" >
    <apex:inputfield value="{!Activitie__c.Lead_Technician__c}"/>
    </apex:column>
  </apex:pageblockTable>
  </apex:pageblockSection>-->
 
   <apex:pageBlockSection title="Technicain" >
  <apex:outputPanel id="bb">
 
<apex:repeat value="{!wraplist}" var="w1" >
 <apex:pageblockTable value="{!}" var="sn">
  <apex:column headerValue="Provider Grop Name">
<apex:inputField value="{!w1.ProviderGroup.Technician_Equipment__c}"/>
</apex:column>
<apex:column headerValue="Lead Technician">
<apex:inputField value="{!w1.ProviderGroup.Technician_Equipment__c}"/>
 </apex:column>
  </apex:pageblockTable>
</apex:repeat>
</apex:outputPanel>
</apex:pageBlockSection>
<apex:commandButton value="AddTechnician" action="{!sortthelist}" reRender="bb">

   </apex:commandButton>
      </apex:pageblock>
      <apex:outputtext id="abc" value="{!button}">value is{!button}</apex:outputtext>
      
      </apex:form>
  <!-- End Default Content REMOVE THIS -->
</apex:page>





public class ActvityController {
private Activitie__c activity {set; get;}
public list<wrap> wraplist{get; set;}
public integer button{set;get;}
public class wrap{
public Provider_Group__c ProviderGroup;
 public Provider_Group__c getProviderGroup()
  {
ProviderGroup = new Provider_Group__c();
return providerGroup;
  }
 }
 public void sortthelist()
  {
   button=1;
 wraplist=new list<wrap> ();
  for(integer i=0;i<button;i++)
  {
 
  wrap  w=new wrap();
  wraplist.add(w);
   //button--;
}
//button++;
//button=wraplist.size();
 }
 
    public ActvityController(ApexPages.StandardController controller) {
  activity=(Activitie__c) controller.getRecord();

    }
 
}

 

 Hi All

when i click the AddTechnicain command first time it is execteing  but when i click second time the method sortthelist is not excecting.

How to invoke the sortthelist method by click the AddTechnician button each and every time.

Any help is Appreciate.

  • February 06, 2012
  • Like
  • 0

Hi All,

I would like to prepare for DEV 401 exam would you please send the links and material to my mail id mahender.maram@gmail.com.

  • February 03, 2012
  • Like
  • 0
<apex:page StandardController="Activitie__c" StandardStylesheets="true" extensions="ActvityController"  >
 <apex:form >
  <apex:pageBlock >
   <apex:pageblockSection title="Activity" columns="4">
    <apex:pageBlocktable value="{!Activitie__c}" var="some">
     <apex:column headerValue="Step" >
      <apex:inputField value="{!Activitie__c.name}"/>
     </apex:column>
     <apex:column headerValue="Status" >
      <apex:inputField value="{!Activitie__c.Status__c}"/>
     </apex:column>
     <apex:column headerValue="Step" >
      <apex:inputField value="{!Activitie__c.Planned_Start_DateTime__c}"/>
     </apex:column>
     <apex:column headerValue="Planned End Time">
      <apex:inputField value="{!Activitie__c.Planned_End_Date_Time__c}"/>
     </apex:column>
     <apex:column headerValue="Billable">
      <apex:inputField value="{!Activitie__c.Billable__c}"/>
     </apex:column>
     <apex:column headerValue="Priority" >
      <apex:inputField value="{!Activitie__c.Priority__c}"/>
     </apex:column>
   </apex:pageBlockTable>
  </apex:pageblockSection>
  </apex:pageBlock>
  <apex:pageblock >
  <apex:pageBlockSection title="Technician Assignment" id="activitypage" >
  <apex:inputfield value="{!Activitie__c.Provider_Group__c}"/>
  </apex:pageBlockSection>
     <!--<apex:pageBlockSection id="start" >
    <apex:pageblockTable value="{!Activitie__c}" var="no">
    <apex:column headerValue="Provider Group Name" >
 <apex:inputfield value="{!Activitie__c.Provider_Group__c}"/>
    </apex:column>
    <apex:column headerValue="Technician Name" >
    <apex:inputfield value="{!Activitie__c.Lead_Technician__c}"/>
    </apex:column>
  </apex:pageblockTable>
  </apex:pageblockSection>-->
 
   <apex:pageBlockSection title="Technicain" >
  <apex:outputPanel id="bb">
 
<apex:repeat value="{!wraplist}" var="w1" >
 <apex:pageblockTable value="{!}" var="sn">
  <apex:column headerValue="Provider Grop Name">
<apex:inputField value="{!w1.ProviderGroup.Technician_Equipment__c}"/>
</apex:column>
<apex:column headerValue="Lead Technician">
<apex:inputField value="{!w1.ProviderGroup.Technician_Equipment__c}"/>
 </apex:column>
  </apex:pageblockTable>
</apex:repeat>
</apex:outputPanel>
</apex:pageBlockSection>
<apex:commandButton value="AddTechnician" action="{!sortthelist}" reRender="bb">

   </apex:commandButton>
      </apex:pageblock>
      <apex:outputtext id="abc" value="{!button}">value is{!button}</apex:outputtext>
      
      </apex:form>
  <!-- End Default Content REMOVE THIS -->
</apex:page>





public class ActvityController {
private Activitie__c activity {set; get;}
public list<wrap> wraplist{get; set;}
public integer button{set;get;}
public class wrap{
public Provider_Group__c ProviderGroup;
 public Provider_Group__c getProviderGroup()
  {
ProviderGroup = new Provider_Group__c();
return providerGroup;
  }
 }
 public void sortthelist()
  {
   button=1;
 wraplist=new list<wrap> ();
  for(integer i=0;i<button;i++)
  {
 
  wrap  w=new wrap();
  wraplist.add(w);
   //button--;
}
//button++;
//button=wraplist.size();
 }
 
    public ActvityController(ApexPages.StandardController controller) {
  activity=(Activitie__c) controller.getRecord();

    }
 
}



 

 Hi All

when i click the AddTechnicain command first time it is execteing  but when i click second time the method sortthelist is not excecting.

How to invoke the sortthelist method by click the AddTechnician button each and every time

  • February 02, 2012
  • Like
  • 0

HI All,

would you please any one post the links to develop Dynamic page when I click command button.

Thanks in Advance.

  • February 02, 2012
  • Like
  • 0

Hi All,

how can I develop Dynamically page when I click command button.

Here only the portion page only refresh.

  • February 01, 2012
  • Like
  • 0

HI All,

how can I convert WSDL file to java???

Please help in easy way ..

 

Thanks in advance..

 

  • January 20, 2012
  • Like
  • 0

Hi All,

I am new to cloud development.

How can I connect java from salesforce.if I enter Account details then these details will store in salesforce database but what I want is these details also store java backend sql.now my question is how can I connect SQL database from salesforce.

Any help is appreciated

.

 

-----

Thanks 

John

  • January 18, 2012
  • Like
  • 0

Hi,

I am new to cloud developments,how can I integrate java to salesforce and salesforce to java.

I think it has done by using webservice would you please explain in detail 

  • January 12, 2012
  • Like
  • 0
<apex:page StandardController="Activitie__c" StandardStylesheets="true" extensions="ActvityController"  >
 <apex:form >
  <apex:pageBlock >
   <apex:pageblockSection title="Activity" columns="4">
    <apex:pageBlocktable value="{!Activitie__c}" var="some">
     <apex:column headerValue="Step" >
      <apex:inputField value="{!Activitie__c.name}"/>
     </apex:column>
     <apex:column headerValue="Status" >
      <apex:inputField value="{!Activitie__c.Status__c}"/>
     </apex:column>
     <apex:column headerValue="Step" >
      <apex:inputField value="{!Activitie__c.Planned_Start_DateTime__c}"/>
     </apex:column>
     <apex:column headerValue="Planned End Time">
      <apex:inputField value="{!Activitie__c.Planned_End_Date_Time__c}"/>
     </apex:column>
     <apex:column headerValue="Billable">
      <apex:inputField value="{!Activitie__c.Billable__c}"/>
     </apex:column>
     <apex:column headerValue="Priority" >
      <apex:inputField value="{!Activitie__c.Priority__c}"/>
     </apex:column>
   </apex:pageBlockTable>
  </apex:pageblockSection>
  </apex:pageBlock>
  <apex:pageblock >
  <apex:pageBlockSection title="Technician Assignment" id="activitypage" >
  <apex:inputfield value="{!Activitie__c.Provider_Group__c}"/>
  </apex:pageBlockSection>
     <!--<apex:pageBlockSection id="start" >
    <apex:pageblockTable value="{!Activitie__c}" var="no">
    <apex:column headerValue="Provider Group Name" >
 <apex:inputfield value="{!Activitie__c.Provider_Group__c}"/>
    </apex:column>
    <apex:column headerValue="Technician Name" >
    <apex:inputfield value="{!Activitie__c.Lead_Technician__c}"/>
    </apex:column>
  </apex:pageblockTable>
  </apex:pageblockSection>-->
 
   <apex:pageBlockSection title="Technicain" >
  <apex:outputPanel id="bb">
 
<apex:repeat value="{!wraplist}" var="w1" >
 <apex:pageblockTable value="{!}" var="sn">
  <apex:column headerValue="Provider Grop Name">
<apex:inputField value="{!w1.ProviderGroup.Technician_Equipment__c}"/>
</apex:column>
<apex:column headerValue="Lead Technician">
<apex:inputField value="{!w1.ProviderGroup.Technician_Equipment__c}"/>
 </apex:column>
  </apex:pageblockTable>
</apex:repeat>
</apex:outputPanel>
</apex:pageBlockSection>
<apex:commandButton value="AddTechnician" action="{!sortthelist}" reRender="bb">

   </apex:commandButton>
      </apex:pageblock>
      <apex:outputtext id="abc" value="{!button}">value is{!button}</apex:outputtext>
      
      </apex:form>
  <!-- End Default Content REMOVE THIS -->
</apex:page>





public class ActvityController {
private Activitie__c activity {set; get;}
public list<wrap> wraplist{get; set;}
public integer button{set;get;}
public class wrap{
public Provider_Group__c ProviderGroup;
 public Provider_Group__c getProviderGroup()
  {
ProviderGroup = new Provider_Group__c();
return providerGroup;
  }
 }
 public void sortthelist()
  {
   button=1;
 wraplist=new list<wrap> ();
  for(integer i=0;i<button;i++)
  {
 
  wrap  w=new wrap();
  wraplist.add(w);
   //button--;
}
//button++;
//button=wraplist.size();
 }
 
    public ActvityController(ApexPages.StandardController controller) {
  activity=(Activitie__c) controller.getRecord();

    }
 
}

 

 Hi All

when i click the AddTechnicain command first time it is execteing  but when i click second time the method sortthelist is not excecting.

How to invoke the sortthelist method by click the AddTechnician button each and every time.

Any help is Appreciate.

  • February 06, 2012
  • Like
  • 0

Hi All,

I would like to prepare for DEV 401 exam would you please send the links and material to my mail id mahender.maram@gmail.com.

  • February 03, 2012
  • Like
  • 0
<apex:page StandardController="Activitie__c" StandardStylesheets="true" extensions="ActvityController"  >
 <apex:form >
  <apex:pageBlock >
   <apex:pageblockSection title="Activity" columns="4">
    <apex:pageBlocktable value="{!Activitie__c}" var="some">
     <apex:column headerValue="Step" >
      <apex:inputField value="{!Activitie__c.name}"/>
     </apex:column>
     <apex:column headerValue="Status" >
      <apex:inputField value="{!Activitie__c.Status__c}"/>
     </apex:column>
     <apex:column headerValue="Step" >
      <apex:inputField value="{!Activitie__c.Planned_Start_DateTime__c}"/>
     </apex:column>
     <apex:column headerValue="Planned End Time">
      <apex:inputField value="{!Activitie__c.Planned_End_Date_Time__c}"/>
     </apex:column>
     <apex:column headerValue="Billable">
      <apex:inputField value="{!Activitie__c.Billable__c}"/>
     </apex:column>
     <apex:column headerValue="Priority" >
      <apex:inputField value="{!Activitie__c.Priority__c}"/>
     </apex:column>
   </apex:pageBlockTable>
  </apex:pageblockSection>
  </apex:pageBlock>
  <apex:pageblock >
  <apex:pageBlockSection title="Technician Assignment" id="activitypage" >
  <apex:inputfield value="{!Activitie__c.Provider_Group__c}"/>
  </apex:pageBlockSection>
     <!--<apex:pageBlockSection id="start" >
    <apex:pageblockTable value="{!Activitie__c}" var="no">
    <apex:column headerValue="Provider Group Name" >
 <apex:inputfield value="{!Activitie__c.Provider_Group__c}"/>
    </apex:column>
    <apex:column headerValue="Technician Name" >
    <apex:inputfield value="{!Activitie__c.Lead_Technician__c}"/>
    </apex:column>
  </apex:pageblockTable>
  </apex:pageblockSection>-->
 
   <apex:pageBlockSection title="Technicain" >
  <apex:outputPanel id="bb">
 
<apex:repeat value="{!wraplist}" var="w1" >
 <apex:pageblockTable value="{!}" var="sn">
  <apex:column headerValue="Provider Grop Name">
<apex:inputField value="{!w1.ProviderGroup.Technician_Equipment__c}"/>
</apex:column>
<apex:column headerValue="Lead Technician">
<apex:inputField value="{!w1.ProviderGroup.Technician_Equipment__c}"/>
 </apex:column>
  </apex:pageblockTable>
</apex:repeat>
</apex:outputPanel>
</apex:pageBlockSection>
<apex:commandButton value="AddTechnician" action="{!sortthelist}" reRender="bb">

   </apex:commandButton>
      </apex:pageblock>
      <apex:outputtext id="abc" value="{!button}">value is{!button}</apex:outputtext>
      
      </apex:form>
  <!-- End Default Content REMOVE THIS -->
</apex:page>





public class ActvityController {
private Activitie__c activity {set; get;}
public list<wrap> wraplist{get; set;}
public integer button{set;get;}
public class wrap{
public Provider_Group__c ProviderGroup;
 public Provider_Group__c getProviderGroup()
  {
ProviderGroup = new Provider_Group__c();
return providerGroup;
  }
 }
 public void sortthelist()
  {
   button=1;
 wraplist=new list<wrap> ();
  for(integer i=0;i<button;i++)
  {
 
  wrap  w=new wrap();
  wraplist.add(w);
   //button--;
}
//button++;
//button=wraplist.size();
 }
 
    public ActvityController(ApexPages.StandardController controller) {
  activity=(Activitie__c) controller.getRecord();

    }
 
}



 

 Hi All

when i click the AddTechnicain command first time it is execteing  but when i click second time the method sortthelist is not excecting.

How to invoke the sortthelist method by click the AddTechnician button each and every time

  • February 02, 2012
  • Like
  • 0