function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
caterina ferrigno 8caterina ferrigno 8 

Put fields in a different rows

Hello,
I have a problem with a visualforce page.

This is my code block:

<apex:page  StandardController="Fattura__c" extensions="CreaNuovaFatturaCtrl" showHeader="false">
<apex:pageBlock title="Nuova fattura">

<apex:form >

   <apex:pageBlock id="membAdd" >  

    <apex:pageBlockButtons location="Both">
                <apex:commandButton value="Salva" Action="{!save}" />
                <apex:commandButton value="Annulla" action="{!cancel}"/>                
    </apex:pageBlockButtons> 
                  
  <apex:pageBlockSection title="Informazioni" collapsible="FALSE" columns="1">
  <apex:pageblockSectionItem >
                                    
    <apex:pageBlockTable  value="{!Fattura__c}" var="memb" >                               

             

                  <apex:column  headerValue= "N° Fattura ">

                  <apex:inputField value="{!memb.Numero_fattura__c}"/>
       
               </apex:column>  
                

              <apex:column  headerValue="Nome">

                    <apex:inputField value="{!memb.Nome_Fattura__c}"/>

              </apex:column> 
       

               <apex:column  headerValue="%IVA">

                    <apex:inputField value="{!memb.IVA__c }"/>
                    
                </apex:column>
                

                <apex:column  headerValue="Annotazioni">

                    <apex:inputField value="{!memb.Annotazioni__c}"/>

                </apex:column>
                
                
               <apex:column headerValue="Modalità di pagamento">

                    <apex:inputField value="{!memb.Modalit_di_pagamento__c}"/>

                </apex:column>
                
                
                <apex:column  headerValue="Data di scadenza">

                    <apex:inputField value="{!memb.Data_scadenza__c}"/>

                </apex:column>
                
                
                <apex:column  headerValue="Banca">

                    <apex:inputField value="{!memb.Banca__c }"/>

                </apex:column>
                
                
                <apex:column  headerValue="ID Fattura SFDC">

                    <apex:inputField value="{!memb.ID_Fattura_SFDC__c}"/>

                </apex:column>

           
                          
          </apex:pageBlockTable>
        
        </apex:pageblockSectionItem> 
           
      </apex:pageblockSection>   
            
    </apex:pageBlock>
     
   </apex:form>
     
 </apex:pageBlock>

</apex:page>

And this is the result:
User-added image
I can't to put the fields on different rows of the page.
How can I do to resolve my problem?

Thank you all

 
Best Answer chosen by caterina ferrigno 8
karthikeyan perumalkarthikeyan perumal
Hello caterina ferrigno 8
use below Code to arrange your control diffferent rows of page. insted of using Column Header value use inputfield label option to identify the controls. 
 
<apex:page  StandardController="Fattura__c" extensions="CreaNuovaFatturaCtrl" showHeader="false">
<apex:pageBlock title="Nuova fattura">

<apex:form >

   <apex:pageBlock id="membAdd" >  

    <apex:pageBlockButtons location="Both">
                <apex:commandButton value="Salva" Action="{!save}" />
                <apex:commandButton value="Annulla" action="{!cancel}"/>                
    </apex:pageBlockButtons> 
                  
  <apex:pageBlockSection title="Informazioni" collapsible="FALSE" columns="1">
  <apex:pageblockSectionItem >
                                    
    <apex:pageBlockTable  value="{!Fattura__c}" var="memb" >                            

                  <apex:column>
						<apex:panelGrid columns="1" id="theGrid">
						
						<apex:inputField value="{!memb.Numero_fattura__c}"/>
						<apex:inputField value="{!memb.Nome_Fattura__c}"/> 
						<apex:inputField value="{!memb.IVA__c }"/>
						<apex:inputField value="{!memb.Annotazioni__c}"/>
						<apex:inputField value="{!memb.Modalit_di_pagamento__c}"/>
						<apex:inputField value="{!memb.Data_scadenza__c}"/>
						<apex:inputField value="{!memb.Banca__c }"/>
						<apex:inputField value="{!memb.ID_Fattura_SFDC__c}"/>       
						
					   </apex:panelGrid>

                </apex:column>           
                          
          </apex:pageBlockTable>
        
        </apex:pageblockSectionItem> 
           
      </apex:pageblockSection>   
            
    </apex:pageBlock>
     
   </apex:form>
     
 </apex:pageBlock>

</apex:page>



hope it will help you. Mark Best Answer if its work for you. or let me know if you need anything.

Thanks
karthik

All Answers

karthikeyan perumalkarthikeyan perumal
Hello caterina ferrigno 8
use below Code to arrange your control diffferent rows of page. insted of using Column Header value use inputfield label option to identify the controls. 
 
<apex:page  StandardController="Fattura__c" extensions="CreaNuovaFatturaCtrl" showHeader="false">
<apex:pageBlock title="Nuova fattura">

<apex:form >

   <apex:pageBlock id="membAdd" >  

    <apex:pageBlockButtons location="Both">
                <apex:commandButton value="Salva" Action="{!save}" />
                <apex:commandButton value="Annulla" action="{!cancel}"/>                
    </apex:pageBlockButtons> 
                  
  <apex:pageBlockSection title="Informazioni" collapsible="FALSE" columns="1">
  <apex:pageblockSectionItem >
                                    
    <apex:pageBlockTable  value="{!Fattura__c}" var="memb" >                            

                  <apex:column>
						<apex:panelGrid columns="1" id="theGrid">
						
						<apex:inputField value="{!memb.Numero_fattura__c}"/>
						<apex:inputField value="{!memb.Nome_Fattura__c}"/> 
						<apex:inputField value="{!memb.IVA__c }"/>
						<apex:inputField value="{!memb.Annotazioni__c}"/>
						<apex:inputField value="{!memb.Modalit_di_pagamento__c}"/>
						<apex:inputField value="{!memb.Data_scadenza__c}"/>
						<apex:inputField value="{!memb.Banca__c }"/>
						<apex:inputField value="{!memb.ID_Fattura_SFDC__c}"/>       
						
					   </apex:panelGrid>

                </apex:column>           
                          
          </apex:pageBlockTable>
        
        </apex:pageblockSectionItem> 
           
      </apex:pageblockSection>   
            
    </apex:pageBlock>
     
   </apex:form>
     
 </apex:pageBlock>

</apex:page>



hope it will help you. Mark Best Answer if its work for you. or let me know if you need anything.

Thanks
karthik
This was selected as the best answer
caterina ferrigno 8caterina ferrigno 8
Thank you very much Karthikeyan for you answer, finally I have solved!