Guest User

Untitled

a guest
Feb 22nd, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. <apex:form >
  2. <apex:pageBlock >
  3.  
  4. <apex:inputField value="{!Visit.Visit_date__c}" required="false" />
  5. <apex:pageBlockTable value="{!Participants}" var="u" title="Participants list" id="ParticipantsList">
  6.  
  7. <apex:column headerValue="Participant Type" >
  8. <apex:inputField value="{!u.participant.RecordTypeId}" >
  9. <apex:actionSupport event="onchange" action="{!onRecordTypeChange}" reRender="ParticipantsList" >
  10. <apex:param name="LineIndex" value="{!u.index}" assignTo="{!CurrentRow}" />
  11. </apex:actionSupport>
  12. </apex:inputField>
  13. </apex:column>
  14.  
  15. <apex:column headerValue="Participant" >
  16. <apex:inputField value="{!u.participant.User__c}" rendered="{!u.isInternal}" />
  17. <apex:inputField value="{!u.participant.Contact__c}" rendered="{!NOT(u.isInternal)}" />
  18. </apex:column>
  19.  
  20. <apex:column headerValue="Index" >
  21. <apex:outputText value="{!u.index}" />
  22. </apex:column>
  23.  
  24. <apex:column headerValue="isInternal" >
  25. <apex:outputText value="{!u.isInternal}" />
  26. </apex:column>
  27.  
  28. </apex:pageBlockTable>
  29.  
  30. </apex:pageBlock>
  31. </apex:form>
Add Comment
Please, Sign In to add comment