YuraSidorets

Untitled

Aug 11th, 2016
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <apex:page controller="QueryController" >
  2. <apex:form >
  3. <apex:pageBlock >
  4. <apex:inputText value="{!query}" style="width: 1000px; margin: 10px"/>
  5. <apex:commandButton action="{!execute}" value="Execute" style="width: 200px; height: 30px; background:#fc0000 "/>
  6. <apex:pageMessage summary="Query error." severity="warning" strength="3" rendered="{!flag}" />
  7.  
  8. <apex:pageBlockTable id="table" var="object" value="{!objects}">
  9. <apex:repeat var="field" value="{!object.objFields}">
  10. <apex:column headerValue="No matter how this is defined, it results in an empty cell">
  11. <apex:outputText value="{!field.value}" />
  12. </apex:column>
  13. </apex:repeat>
  14. <!--Define the headers here and hide the empty cells that are created -->
  15. <apex:repeat var="fieldH" value="{!object.objFields}">
  16. <apex:column headerValue="{!fieldH.label}" styleClass="empty-column-content" />
  17. </apex:repeat>
  18. </apex:pageBlockTable>
  19.  
  20. </apex:pageBlock>
  21. </apex:form>
  22. </apex:page>
Add Comment
Please, Sign In to add comment