• chris01010
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 5
    Replies

Hi,

 

Currently trying to create a list view with roman numerics on a view page. Currently have this code in place:

 

<apex:pageBlockSection id="confsection" collapsible="false" showHeader="true" title="Confirmation" columns="1">
                    <p>The Sponsor confirms that:</p>
                    <!--  STYLE type ="text/css">
                    	ol.withroman {list-style-type: lower-roman}
                    </STYLE-->
                    <BODY>
                    <!-- ol class="withroman"-->
                    <!-- ol type="text/css"-->
                    <ol id="confirm:list">
                    <li id="confirm:list:i"> some text1;</li>
                    <li id="confirm:list:ii"> some text2:</li>
                         <apex:pageBlockSectionItem >
	                    <apex:outputLabel for="meetstandard">
	                         some text; 
	                    </apex:outputLabel>
	                    <apex:inputField value="{!Aform.Afield1__c}" id="meetstandard"/>
	                </apex:pageBlockSectionItem>
	                
	                <apex:pageBlockSectionItem >
	                    <apex:outputLabel for="exceedstandard">
	                         some more text;
	                    </apex:outputLabel>
	                    <apex:inputField value="{!Aform.Afield2__c}" id="exceedstandard"/>
	                </apex:pageBlockSectionItem>
	           <li id="confirm:list:iii"> some text3;</li>
	           <li id="confirm:list:iv"> some text4.</li>	                
                    </ol>
                    </BODY>
                 </apex:pageBlockSection>     

 

Unfortunately it displays incorrectly. The first two points show as 1. and 2. then displays the two check boxes and then the last two points are displayed in bullets.

 

Any ideas?

Hi,

 

I have a piece of code that should display a link that will rerender a section when clicked (add a new row). It works in other places, but for this page it doesn't seem to render (the link).

 

<apex:pageBlockSection id="eRGVBreakdownTable" showHeader="false" columns="1">	                
	                	<apex:pageBlockTable var="newFormChild" value="{!newFormChilds1}" columns="7">
	                		<apex:column style="width:25px;"><apex:outputText style="color:#ccc;" value="{!TEXT(newFormChild.TF_Position__c+1)}"/></apex:column>
	                		<apex:column headervalue="Site number">
	                			<apex:inputField value="{!newFormChild.Site_Number_eRGV_Brkdwn_eESES_CC2__c}" styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}"/></apex:column>
	                		<apex:column headervalue="Institution code">
	                			<apex:inputField value="{!newFormChild.Institution_code_eRGV_Brkdwn_eESES_CC2__c}" styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}"/></apex:column>
	                		<apex:column headervalue="Routing code">
	                			<apex:inputField value="{!newFormChild.Routing_code_eRGV_Brkdwn_eESES_CC2__c}" styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}"/></apex:column>
	                		<apex:column headervalue="Read">
	                			<apex:inputField value="{!newFormChild.Read_eRGV_Brkdwn_eESES_CC2__c}" /></apex:column>
	                		<apex:column headervalue="Write">
	                			<apex:inputField value="{!newFormChild.Write_eRGV_Brkdwn_eESES_CC2__c}" /></apex:column>
	                		<apex:column style="width:80px;">
								<apex:commandLink rendered="{!NOT(ISBLANK(newFormChild.Id))}" rerender="eRGVBreakdownTable" status="eRGVStatus" style="font-style:italic;color:#999;" action="{!deleteChildFormData}">
	                        		<apex:param value="{!newFormChild.Id}" name="ItemToDelete" assignTo="{!recordToDelete}"/>
	                        		<apex:param value="1" name="GroupToDelete" assignTo="{!recordGroup}"/>
	                        		Delete
	                        	</apex:commandLink>
	                        	<apex:outputText rendered="{!ISBLANK(newFormChild.Id)}" value=" "/>
							</apex:column>
	                	</apex:pageBlockTable>
	                	
	                	<script type="text/javascript">
						// this script is there to change the none value default of SFDC for the rows that are added by customers
						j$(document).ready(function () {
							changeNoneValue();
							addRequireFieldMarker();
						});
						</script>
												
						<apex:commandLink reRender="eRGVBreakdownTable" status="eRGVStatus" style="font-weight:bold ;color:#999;float:right;display;block;width:130px;text-align:left;" value="<Add an account>"  action="{!addOneChildFormData}">
	                        <apex:param value="0" name="Group" assignTo="{!recordGroup}"/>
	                        <apex:actionStatus id="eRGVStatus"> 
	                            <apex:facet name="start">
	                                <apex:image style="float:right;margin:0 10px;" url="/img/loading.gif" />
	                            </apex:facet>
	                        </apex:actionStatus>
	                    </apex:commandLink>
	                    
	                </apex:pageBlockSection>
	                
                </apex:pageBlockSection>

 To be fair it's been a while since I looked at it, so I may be missing something really simple (here's hoping).

 

Any help would be appreciated.

 

Thanks

Does anyone know how to left align the column headers of an apex:pageBlockTable?

 

Currently the fields are left aligned but the headers are centre aligned.

 

apex:pageBlockSection id="section04child" showHeader="true" title="Account specifications example3" columns="1">                
                <apex:pageBlockTable var="newFormChild" value="{!newFormChilds}" columns="7">              
                     <apex:column style="width:25px;"><apex:outputText style="color:#ccc;" value="{!TEXT(newFormChild.TF_Position__c+1)}"/></apex:column>
                		<apex:column >
                			<apex:facet name="header">FundSettle<br/>Participant<br/>Account Number </apex:facet>                			
                			<apex:inputField style="width:50px;" value="{!newFormChild.Account_number__c}" styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" />
                		</apex:column>
                		<apex:column >
                		    <apex:facet name="header">Full Legal Name of<br/>the Account </apex:facet>                			                
                			<apex:inputField style="width:100px;" value="{!newFormChild.Full_Legal_Name__c}" styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" />
                		</apex:column>
                		<apex:column >
                			<apex:facet name="header">Account<br/>Designation </apex:facet>               			
                			<apex:inputField style="width:100px;" value="{!newFormChild.Account_Designation__c}" styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" />
                		</apex:column>
                		<apex:column >
                		 	<apex:facet name="header">Legal Address </apex:facet>                			
                			<apex:inputField style="width:175px;" value="{!newFormChild.Legal_Address__c}" styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" />
                		</apex:column>
                		<apex:column >
                			<apex:facet name="header">Dividend Policy </apex:facet>                			
                			<apex:inputField style="width:125px;" value="{!newFormChild.Dividend_Policy__c}" styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" />
                		</apex:column>
                		<apex:column >
                			<apex:facet name="header">Participant<br/>Account<br/>Reference </apex:facet>                 			
                			<apex:inputField style="width:100px;" value="{!newFormChild.Participant_Account_Reference__c}" styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" />
                		</apex:column>
                </apex:pageBlockTable>
                    <script type="text/javascript">
							j$(document).ready(function () {
								changeNoneValue();
								addRequireFieldMarker();
							});
					</script>			
                </apex:pageBlockSection>     

 

Thanks

 

Chris

Hi,

 

I am currently trying to create a form with a section that contains 10 children. The section has six fields, my problem is that when displayed the next child (first field) does not start from the left hand magin.

 

The code I'm using is below:

 

<apex:pageBlockSection id="section02child" showHeader="true" title="Account specifications" columns="3">
                     <apex:repeat value="{!newFormChilds}" var="newFormChild">
                     	<apex:inputField styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" value="{!newFormChild.Account_number__c}"/>
                		<apex:inputField styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" value="{!newFormChild.Full_Legal_Name__c}"/>
                		<apex:inputField styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" value="{!newFormChild.Account_Designation__c}"/>
                		<apex:inputField styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" value="{!newFormChild.Legal_Address__c}"/>
                		<apex:inputField styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" value="{!newFormChild.Dividend_Policy__c}"/>
                		<apex:inputField styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" value="{!newFormChild.Participant_Account_Reference__c}"/>

......

 

Any ideas?

 

Thanks

 

Chris

Hi,

 

I'm new to salesforce so please excuse the silly questions.

 

My problem is this:

 

I have a need for a section which contains 6 assorted fields (free text and picklist), and there must be a possible 10 children for this layout. Currently I have an issue where all 6 fields sit on the same line and exceed the page width.

 

My Questions are:

 

1. Is there a minimum width for fields on a page?

 

2. Is there a way to make the fields display across two rows per child? I'm currently using pageBlockTable which may restrict this?

 

Thanks

 

Chris

Hi,

 

Currently trying to create a list view with roman numerics on a view page. Currently have this code in place:

 

<apex:pageBlockSection id="confsection" collapsible="false" showHeader="true" title="Confirmation" columns="1">
                    <p>The Sponsor confirms that:</p>
                    <!--  STYLE type ="text/css">
                    	ol.withroman {list-style-type: lower-roman}
                    </STYLE-->
                    <BODY>
                    <!-- ol class="withroman"-->
                    <!-- ol type="text/css"-->
                    <ol id="confirm:list">
                    <li id="confirm:list:i"> some text1;</li>
                    <li id="confirm:list:ii"> some text2:</li>
                         <apex:pageBlockSectionItem >
	                    <apex:outputLabel for="meetstandard">
	                         some text; 
	                    </apex:outputLabel>
	                    <apex:inputField value="{!Aform.Afield1__c}" id="meetstandard"/>
	                </apex:pageBlockSectionItem>
	                
	                <apex:pageBlockSectionItem >
	                    <apex:outputLabel for="exceedstandard">
	                         some more text;
	                    </apex:outputLabel>
	                    <apex:inputField value="{!Aform.Afield2__c}" id="exceedstandard"/>
	                </apex:pageBlockSectionItem>
	           <li id="confirm:list:iii"> some text3;</li>
	           <li id="confirm:list:iv"> some text4.</li>	                
                    </ol>
                    </BODY>
                 </apex:pageBlockSection>     

 

Unfortunately it displays incorrectly. The first two points show as 1. and 2. then displays the two check boxes and then the last two points are displayed in bullets.

 

Any ideas?

Does anyone know how to left align the column headers of an apex:pageBlockTable?

 

Currently the fields are left aligned but the headers are centre aligned.

 

apex:pageBlockSection id="section04child" showHeader="true" title="Account specifications example3" columns="1">                
                <apex:pageBlockTable var="newFormChild" value="{!newFormChilds}" columns="7">              
                     <apex:column style="width:25px;"><apex:outputText style="color:#ccc;" value="{!TEXT(newFormChild.TF_Position__c+1)}"/></apex:column>
                		<apex:column >
                			<apex:facet name="header">FundSettle<br/>Participant<br/>Account Number </apex:facet>                			
                			<apex:inputField style="width:50px;" value="{!newFormChild.Account_number__c}" styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" />
                		</apex:column>
                		<apex:column >
                		    <apex:facet name="header">Full Legal Name of<br/>the Account </apex:facet>                			                
                			<apex:inputField style="width:100px;" value="{!newFormChild.Full_Legal_Name__c}" styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" />
                		</apex:column>
                		<apex:column >
                			<apex:facet name="header">Account<br/>Designation </apex:facet>               			
                			<apex:inputField style="width:100px;" value="{!newFormChild.Account_Designation__c}" styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" />
                		</apex:column>
                		<apex:column >
                		 	<apex:facet name="header">Legal Address </apex:facet>                			
                			<apex:inputField style="width:175px;" value="{!newFormChild.Legal_Address__c}" styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" />
                		</apex:column>
                		<apex:column >
                			<apex:facet name="header">Dividend Policy </apex:facet>                			
                			<apex:inputField style="width:125px;" value="{!newFormChild.Dividend_Policy__c}" styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" />
                		</apex:column>
                		<apex:column >
                			<apex:facet name="header">Participant<br/>Account<br/>Reference </apex:facet>                 			
                			<apex:inputField style="width:100px;" value="{!newFormChild.Participant_Account_Reference__c}" styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" />
                		</apex:column>
                </apex:pageBlockTable>
                    <script type="text/javascript">
							j$(document).ready(function () {
								changeNoneValue();
								addRequireFieldMarker();
							});
					</script>			
                </apex:pageBlockSection>     

 

Thanks

 

Chris

Hi,

 

I am currently trying to create a form with a section that contains 10 children. The section has six fields, my problem is that when displayed the next child (first field) does not start from the left hand magin.

 

The code I'm using is below:

 

<apex:pageBlockSection id="section02child" showHeader="true" title="Account specifications" columns="3">
                     <apex:repeat value="{!newFormChilds}" var="newFormChild">
                     	<apex:inputField styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" value="{!newFormChild.Account_number__c}"/>
                		<apex:inputField styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" value="{!newFormChild.Full_Legal_Name__c}"/>
                		<apex:inputField styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" value="{!newFormChild.Account_Designation__c}"/>
                		<apex:inputField styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" value="{!newFormChild.Legal_Address__c}"/>
                		<apex:inputField styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" value="{!newFormChild.Dividend_Policy__c}"/>
                		<apex:inputField styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}" value="{!newFormChild.Participant_Account_Reference__c}"/>

......

 

Any ideas?

 

Thanks

 

Chris

Hi,

 

I'm new to salesforce so please excuse the silly questions.

 

My problem is this:

 

I have a need for a section which contains 6 assorted fields (free text and picklist), and there must be a possible 10 children for this layout. Currently I have an issue where all 6 fields sit on the same line and exceed the page width.

 

My Questions are:

 

1. Is there a minimum width for fields on a page?

 

2. Is there a way to make the fields display across two rows per child? I'm currently using pageBlockTable which may restrict this?

 

Thanks

 

Chris