• jrobida
  • NEWBIE
  • 25 Points
  • Member since 2012

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 4
    Replies
I need when the billing Shipping number is null not to show up on the page.




<apex:page standardController="OrderHeader__c" showHeader="true"> <apex:form id="pgform" > <apex:pageBlock title="Edit Order {!OrderHeader__c.Name}" id="thePageBlock" mode="edit"> <apex:pageMessages /> <apex:pageBlockButtons > <apex:commandButton value="Save" action="{!save}"/> <apex:commandButton value="Cancel" action="{!cancel}"/> </apex:pageBlockButtons> <apex:pageBlockSection title="Order Information" showHeader="false" columns="2"> <apex:inputField value="{!OrderHeader__c.AccountingCustomerId__c}"/> <apex:inputField value="{!OrderHeader__c.SalespersonId__c}"/> <apex:inputField value="{!OrderHeader__c.Type__c}"/> <apex:inputField value="{!OrderHeader__c.Sales_Engineer__c}"/> <apex:inputField value="{!OrderHeader__c.CreditTerms__c}"/> </apex:pageBlockSection> <apex:pageBlockSection title="Shipping and Fulfillment Information" showHeader="true" id="ShippingSection"> <apex:inputField value="{!OrderHeader__c.ShippingMethodId__c}"/> <apex:inputField value="{!OrderHeader__c.ChargeShipping__c}"/> <apex:inputField value="{!OrderHeader__c.ShipNumber__c}" id="Shipping"/> <apex:inputField value="{!OrderHeader__c.ShipProducts__c}"/> [<a href="#" onclick="document.getElementById('j_id0:pgform:thePageBlock:ShippingSection:Shipping').value='';">PVSW FedEx</a>] | [<a href="#" onclick="document.getElementById('j_id0:pgform:thePageBlock:ShippingSection:Shipping').value='';">PVSW DHL</a>] | {!IF(OrderHeader__c.AccountingCustomerId__r.DefaultShippingNumber__c= "",(<a href="#" onclick="document.getElementById('j_id0:pgform:thePageBlock:ShippingSection:Shipping').value='{!OrderHeader__c.AccountingCustomerId__r.DefaultShippingNumber__c}';">Customer Shipping Number</a>),""))} </apex:pageBlockSection> <apex:pageBlockSection title="Tax Settings" showHeader="true" columns="1"> <apex:inputField value="{!OrderHeader__c.ChargeTax__c}"/> <apex:inputField value="{!OrderHeader__c.TaxNumber__c}"/> <apex:inputField value="{!OrderHeader__c.VAT__c}"/> </apex:pageBlockSection> </apex:pageBlock> </apex:form> </apex:page>

 

I need when the billing Shipping number is null not to show up on the page.




<apex:page standardController="OrderHeader__c" showHeader="true"> <apex:form id="pgform" > <apex:pageBlock title="Edit Order {!OrderHeader__c.Name}" id="thePageBlock" mode="edit"> <apex:pageMessages /> <apex:pageBlockButtons > <apex:commandButton value="Save" action="{!save}"/> <apex:commandButton value="Cancel" action="{!cancel}"/> </apex:pageBlockButtons> <apex:pageBlockSection title="Order Information" showHeader="false" columns="2"> <apex:inputField value="{!OrderHeader__c.AccountingCustomerId__c}"/> <apex:inputField value="{!OrderHeader__c.SalespersonId__c}"/> <apex:inputField value="{!OrderHeader__c.Type__c}"/> <apex:inputField value="{!OrderHeader__c.Sales_Engineer__c}"/> <apex:inputField value="{!OrderHeader__c.CreditTerms__c}"/> </apex:pageBlockSection> <apex:pageBlockSection title="Shipping and Fulfillment Information" showHeader="true" id="ShippingSection"> <apex:inputField value="{!OrderHeader__c.ShippingMethodId__c}"/> <apex:inputField value="{!OrderHeader__c.ChargeShipping__c}"/> <apex:inputField value="{!OrderHeader__c.ShipNumber__c}" id="Shipping"/> <apex:inputField value="{!OrderHeader__c.ShipProducts__c}"/> [<a href="#" onclick="document.getElementById('j_id0:pgform:thePageBlock:ShippingSection:Shipping').value='337089496';">PVSW FedEx</a>] | [<a href="#" onclick="document.getElementById('j_id0:pgform:thePageBlock:ShippingSection:Shipping').value='852845013';">PVSW DHL</a>] | {!IF(OrderHeader__c.AccountingCustomerId__r.DefaultShippingNumber__c= "",(<a href="#" onclick="document.getElementById('j_id0:pgform:thePageBlock:ShippingSection:Shipping').value='{!OrderHeader__c.AccountingCustomerId__r.DefaultShippingNumber__c}';">Customer Shipping Number</a>),""))} </apex:pageBlockSection> <apex:pageBlockSection title="Tax Settings" showHeader="true" columns="1"> <apex:inputField value="{!OrderHeader__c.ChargeTax__c}"/> <apex:inputField value="{!OrderHeader__c.TaxNumber__c}"/> <apex:inputField value="{!OrderHeader__c.VAT__c}"/> </apex:pageBlockSection> </apex:pageBlock> </apex:form> </apex:page>

 

I need when the billing Shipping number is null not to show up on the page.




<apex:page standardController="OrderHeader__c" showHeader="true"> <apex:form id="pgform" > <apex:pageBlock title="Edit Order {!OrderHeader__c.Name}" id="thePageBlock" mode="edit"> <apex:pageMessages /> <apex:pageBlockButtons > <apex:commandButton value="Save" action="{!save}"/> <apex:commandButton value="Cancel" action="{!cancel}"/> </apex:pageBlockButtons> <apex:pageBlockSection title="Order Information" showHeader="false" columns="2"> <apex:inputField value="{!OrderHeader__c.AccountingCustomerId__c}"/> <apex:inputField value="{!OrderHeader__c.SalespersonId__c}"/> <apex:inputField value="{!OrderHeader__c.Type__c}"/> <apex:inputField value="{!OrderHeader__c.Sales_Engineer__c}"/> <apex:inputField value="{!OrderHeader__c.CreditTerms__c}"/> </apex:pageBlockSection> <apex:pageBlockSection title="Shipping and Fulfillment Information" showHeader="true" id="ShippingSection"> <apex:inputField value="{!OrderHeader__c.ShippingMethodId__c}"/> <apex:inputField value="{!OrderHeader__c.ChargeShipping__c}"/> <apex:inputField value="{!OrderHeader__c.ShipNumber__c}" id="Shipping"/> <apex:inputField value="{!OrderHeader__c.ShipProducts__c}"/> [<a href="#" onclick="document.getElementById('j_id0:pgform:thePageBlock:ShippingSection:Shipping').value='';">PVSW FedEx</a>] | [<a href="#" onclick="document.getElementById('j_id0:pgform:thePageBlock:ShippingSection:Shipping').value='';">PVSW DHL</a>] | {!IF(OrderHeader__c.AccountingCustomerId__r.DefaultShippingNumber__c= "",(<a href="#" onclick="document.getElementById('j_id0:pgform:thePageBlock:ShippingSection:Shipping').value='{!OrderHeader__c.AccountingCustomerId__r.DefaultShippingNumber__c}';">Customer Shipping Number</a>),""))} </apex:pageBlockSection> <apex:pageBlockSection title="Tax Settings" showHeader="true" columns="1"> <apex:inputField value="{!OrderHeader__c.ChargeTax__c}"/> <apex:inputField value="{!OrderHeader__c.TaxNumber__c}"/> <apex:inputField value="{!OrderHeader__c.VAT__c}"/> </apex:pageBlockSection> </apex:pageBlock> </apex:form> </apex:page>

 

I need when the billing Shipping number is null not to show up on the page.




<apex:page standardController="OrderHeader__c" showHeader="true"> <apex:form id="pgform" > <apex:pageBlock title="Edit Order {!OrderHeader__c.Name}" id="thePageBlock" mode="edit"> <apex:pageMessages /> <apex:pageBlockButtons > <apex:commandButton value="Save" action="{!save}"/> <apex:commandButton value="Cancel" action="{!cancel}"/> </apex:pageBlockButtons> <apex:pageBlockSection title="Order Information" showHeader="false" columns="2"> <apex:inputField value="{!OrderHeader__c.AccountingCustomerId__c}"/> <apex:inputField value="{!OrderHeader__c.SalespersonId__c}"/> <apex:inputField value="{!OrderHeader__c.Type__c}"/> <apex:inputField value="{!OrderHeader__c.Sales_Engineer__c}"/> <apex:inputField value="{!OrderHeader__c.CreditTerms__c}"/> </apex:pageBlockSection> <apex:pageBlockSection title="Shipping and Fulfillment Information" showHeader="true" id="ShippingSection"> <apex:inputField value="{!OrderHeader__c.ShippingMethodId__c}"/> <apex:inputField value="{!OrderHeader__c.ChargeShipping__c}"/> <apex:inputField value="{!OrderHeader__c.ShipNumber__c}" id="Shipping"/> <apex:inputField value="{!OrderHeader__c.ShipProducts__c}"/> [<a href="#" onclick="document.getElementById('j_id0:pgform:thePageBlock:ShippingSection:Shipping').value='337089496';">PVSW FedEx</a>] | [<a href="#" onclick="document.getElementById('j_id0:pgform:thePageBlock:ShippingSection:Shipping').value='852845013';">PVSW DHL</a>] | {!IF(OrderHeader__c.AccountingCustomerId__r.DefaultShippingNumber__c= "",(<a href="#" onclick="document.getElementById('j_id0:pgform:thePageBlock:ShippingSection:Shipping').value='{!OrderHeader__c.AccountingCustomerId__r.DefaultShippingNumber__c}';">Customer Shipping Number</a>),""))} </apex:pageBlockSection> <apex:pageBlockSection title="Tax Settings" showHeader="true" columns="1"> <apex:inputField value="{!OrderHeader__c.ChargeTax__c}"/> <apex:inputField value="{!OrderHeader__c.TaxNumber__c}"/> <apex:inputField value="{!OrderHeader__c.VAT__c}"/> </apex:pageBlockSection> </apex:pageBlock> </apex:form> </apex:page>