function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DiMDiM 

partner portal

Hello,

We have are in the beginning stages of working on the partner portal for our outside sales reps.  I have added an account tab and to the portal, which is pulling the accounts and displying the list properly.  The edit view of each individual account is also displaying properly, however when I view the account when it is not in edit (read-only), it is not displaying the Billing Address and shipping address properly. 

 

Address Information
Billing Street :123 Main Street 
Billing City :
Seattle,
Billing State/Province :
WA 
Billing Zip/Postal Code :
96032 

Billing Country :

 

Shipping Street :

 

Has anyone else had this problem?  Any help would be appreciated.

 

Thanks

 

DiMDiM

Answer: 

You have to update the sObjectDetail.jsp file located in \WEB-INF\src\web\jsp that has generic street, city, state, zip and country code to include billing and shipping code.

<%-- Existing Code --%>

<c:when test="${comp.value == 'Street'}" >Address:</td><td class="dataField" colspan=<c:out value="${intCols}" />><pp:textareaDisplay><c:out value="${map[field.name]}" /></pp:textareaDisplay></c:when>

                   <c:when test="${comp.value == 'City'}" ><br><c:out value="${map[field.name]}" /></c:when>

                   <c:when test="${comp.value == 'State'}" >&nbsp;<c:out value="${map[field.name]}" /></c:when>

                   <c:when test="${comp.value == 'PostalCode'}" >&nbsp;<c:out value="${map[field.name]}" /></c:when>
                        <c:when test="${comp.value == 'Country'}" ><br><c:out value="${map[field.name]}" /></td></c:when>

<%-- New Code --%>

<c:when test="${comp.value == 'FirstName'}" >&nbsp;<c:out value="${map[field.name]}" /></c:when>
                   <c:when test="${comp.value == 'LastName'}" >&nbsp;<c:out value="${map[field.name]}" /></td></c:when>

                   <c:when test="${comp.value == 'BillingStreet'}" >Billing Address:</td><td class="dataField" colspan=<c:out value="${intCols}" />><pp:textareaDisplay><c:out value="${map[field.name]}" /></pp:textareaDisplay></c:when>

                   <c:when test="${comp.value == 'BillingCity'}" ><br><c:out value="${map[field.name]}" /></c:when>

                   <c:when test="${comp.value == 'BillingState'}" >&nbsp;<c:out value="${map[field.name]}" /></c:when>

                   <c:when test="${comp.value == 'BillingPostalCode'}" >&nbsp;<c:out value="${map[field.name]}" /></c:when>
                        <c:when test="${comp.value == 'BillingCountry'}" ><br><c:out value="${map[field.name]}" /></td></c:when>


<c:when test="${comp.value == 'ShippingStreet'}" >Shipping Address:</td><td class="dataField" colspan=<c:out value="${intCols}" />><pp:textareaDisplay><c:out value="${map[field.name]}" /></pp:textareaDisplay></c:when>

                   <c:when test="${comp.value == 'ShippingCity'}" ><br><c:out value="${map[field.name]}" /></c:when>

                   <c:when test="${comp.value == 'ShippingState'}" >&nbsp;<c:out value="${map[field.name]}" /></c:when>

                   <c:when test="${comp.value == 'ShippingPostalCode'}" >&nbsp;<c:out value="${map[field.name]}" /></c:when>
                        <c:when test="${comp.value == 'ShippingCountry'}" ><br><c:out value="${map[field.name]}" /></td></c:when>


 

fifedogfifedog
good find