function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
<table> <tr> <apex:repeat value="{!arAllMainVariables}" var="var"> <apex:variable value="{!objAllMainVariables[var]}" var="details"> <td class="data-column"> <a href="#" id="{!details.key}" class="copy">{!details.val}</a> </td> </apex:variable> </apex:repeat> </tr> </table> <table> <tr> <apex:repeat value="{!arAllUserVariables}" var="var"> <apex:variable value="{!objAllUserVariables[var]}" var="details"> <td class="data-column"> <a href="#" id="{!details.key}" class="copy">{!details.val}</a> </td> </apex:variable> </apex:repeat> </tr> </table>
.data-column{ width: 25% !important; float: left; }
<apex:pageBlock id="block1" > <apex:pageBlockSection id="mainObject" columns="4"> <apex:repeat value="{!arAllMainVariables}" var="var"> <apex:pageBlockSectionItem> <apex:repeat value="{!objAllMainVariables[var]}" var="details"> <a href="#" id="{!details.key}" class="copy">{!details.val}</a> </apex:repeat> </apex:pageBlockSectionItem> </apex:repeat> </apex:pageBlockSection> <apex:pageBlockSection columns="4"> <apex:repeat value="{!arAllUserVariables}" var="var"> <apex:pageBlockSectionItem> <apex:repeat value="{!objAllUserVariables[var]}" var="details"> <a href="#" id="{!details.key}" class="copy">{!details.val}</a> </apex:repeat> </apex:pageBlockSectionItem> </apex:repeat> </apex:pageBlockSection> </apex:pageBlock>
Thank you for trying to help. Finally found the solution on
http://salesforce.stackexchange.com/questions/1766/how-do-i-create-a-table-with-more-than-one-column-from-a-single-list
then I set the css for class data-column
All Answers
Kinldy post your code here and the screenshot of the VF page. It would be easy for us to understand it first before providing the solution.
Thanks
Manoj S
here is the printscreen
Map <string,detail> objAllMainVariables
Map <string,detail> objAllUserVariables
List<String> arAllMainVariables
List<String> arAllUserVariables
public class detail
{
public string key {get; set;}
public string val {get; set;}
public string obj {get; set;}
public string rel {get; set;}
public string prefix {get; set;}
public string datatype {get; set;}
public string relatedTo {get; set;}
}
here is how I displayed the values on visualforce
Thank you for trying to help. Finally found the solution on
http://salesforce.stackexchange.com/questions/1766/how-do-i-create-a-table-with-more-than-one-column-from-a-single-list
then I set the css for class data-column