You need to sign in to do that
Don't have an account?

Apex Rendered
Hi,
I need to print out stickers(addresses) for envelopes to be sent out for campaign members who registered for my campaign (means they have status Registered), so the code below with custom button on campaign generates such list to be printed. However I kind of struggle with "rendered", the bold part of the code causes me troubles, Im getting error Generate_Stickers line 12, column 23: The element type "apex:pageBlockSectionItem" must be terminated by the matching end-tag "</apex:pageBlockSectionItem>"
What am I doing wrong? Many thanks
I need to print out stickers(addresses) for envelopes to be sent out for campaign members who registered for my campaign (means they have status Registered), so the code below with custom button on campaign generates such list to be printed. However I kind of struggle with "rendered", the bold part of the code causes me troubles, Im getting error Generate_Stickers line 12, column 23: The element type "apex:pageBlockSectionItem" must be terminated by the matching end-tag "</apex:pageBlockSectionItem>"
What am I doing wrong? Many thanks
<apex:page standardController="Campaign" showHeader="false" applyBodyTag="false" > <apex:pageBlock > <apex:pageBlockSection columns="3" showHeader="false"> <apex:repeat value="{!Campaign.CampaignMembers}" var="line" > <apex:pageBlockSectionItem rendered="{!line.Status="Registered"}" dataStyle="width:33%" labelStyle="width:33%" > {!line.Contact.Name}<BR/> {!line.Contact.MailingStreet}<BR/> {!line.Contact.MailingPostalCode} {!line.Contact.MailingCity}<BR/> {!line.Contact.MailingCountry}<BR/> </apex:pageBlockSectionItem> </apex:repeat> </apex:pageBlockSection> </apex:pageBlock> </apex:page>
Try below code:
Thanks,
Gaurav
All Answers
Please let me know if this helps.
Regards,
Mahesh
Try below code:
Thanks,
Gaurav