You need to sign in to do that
Don't have an account?
bsil bsil
Custom Button in salesforce1
I have created custom detail button(added visualforc page) in account object, it is visible in salesforce 1, But when i click on the button it will not showing anything.
This visualforce page was enabled Available for Salesforce mobile apps option.
This visualforce page was enabled Available for Salesforce mobile apps option.
<apex:page standardController="account" extensions="OrderStatusController" action="{!redirectDevice}" title="Order Status">
<apex:includeScript value="{!$Resource.sorttable}"/>
<style>
.datePicker{
display:none;
}
.rowline{
border-bottom: 1px solid #ededed;
}
table.sortable th:not(.sorttable_sorted):not(.sorttable_sorted_reverse):after {
content: " \25B4\25BE"
}
</style>
<script>
function chooseType(){
document.getElementById('loading').style.display='';
CallTypeSelected();
}
</script>
<apex:form id="theForm">
<span style='font-size:2.5em;color:#1D446B;'> Order Status</span>
<br/>
<apex:commandLink action="{!showAccount}">
<button>Back to Account</button>
</apex:commandLink>
{!acct.Customer_Number__c} {!acct.name} {!acct.BillingCity} {!acct.BillingState}
<br/><br/>
<apex:actionFunction name="CallTypeSelected" action="{!typeSelected}" rerender="theForm"/>
<apex:selectList value="{!accontType}" size="1" onchange="chooseType();">
<apex:selectOptions value="{!items}"/>
</apex:selectList>
<span id='loading' style='border:1px solid red;padding:10px;display:none'>Loading, Please Wait . . .</span>
<br/><br/>
<table cellspacing="0" width="100%" class="sortable">
<tr style="background-Color:#f2f3f3;cursor:pointer">
<th style="border:1px solid #e0e3e5;"> Entity </th>
<th style="border:1px solid #e0e3e5;"> Status </th>
<th style="border:1px solid #e0e3e5;"> Order No </th>
<th style="border:1px solid #e0e3e5;"> Customer PO </th>
<th style="border:1px solid #e0e3e5;"> Peril </th>
<th style="border:1px solid #e0e3e5;"> Order Date </th>
<th style="border:1px solid #e0e3e5;"> Delivery Date </th>
<apex:outputPanel rendered="{!detailAccess}">
<th style="border:1px solid #e0e3e5;"> Order Value </th>
</apex:outputPanel>
</tr>
<apex:repeat value="{!orders}" var="order">
<tr >
<td class="rowline" align="center"> {!order.entityCode__c} </td>
<td class="rowline" align="center"> {!order.statusText__c} </td>
<td class="rowline" align="right"> <apex:commandLink action="{!detail}" value="{!order.orderNo__c}"><apex:param name="order" value="{!order.orderNo__c}"/></apex:commandLink> </td>
<td class="rowline" > {!order.custPo__c} </td>
<td class="rowline" style='background-color:{!order.perilColor__c}'> {!if(order.inPeril__c,"Yes","")} </td>
<td class="rowline" >
<apex:outputText value="{0,date,MM'/'dd'/'yyyy}">
<apex:param value="{!order.orderDate__c}" />
</apex:outputText>
</td>
<td class="rowline" >
<apex:outputText value="{0,date,MM'/'dd'/'yyyy}">
<apex:param value="{!order.deliveryDate__c}" />
</apex:outputText>
</td>
<apex:outputPanel rendered="{!detailAccess}">
<td class="rowline" align="right"> <apex:outputText value="{0, number,###,###,##0.00}"><apex:param value="{!order.openValue__c}" /></apex:outputText> </td>
</apex:outputPanel>
</tr>
</apex:repeat>
</table>
</apex:form>
</apex:page>