This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Savepoint sp = Database.setSavepoint(); | |
try | |
{ | |
} | |
catch(Exception ex) | |
{ | |
ApexPages.addMessages(ex); | |
Database.rollback(sp); | |
return null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ckeckAllBoxs(checkAll) | |
{ | |
if($j('#checkAll').is(':checked')) | |
{ | |
$j('.checkBox').attr('checked', 'checked'); | |
} | |
else | |
{ | |
$j('.checkBox').removeAttr('checked'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:includeScript value="{!URLFOR($Resource.res, 'js/jquery-1.4.2.min.js')}" /> | |
<script type="text/javascript"> | |
$j = jQuery.noConflict(); | |
function disableBtn() | |
{ | |
$j(".btn:visible").each(function () { | |
$j(this).css('display', 'none'); | |
$j(this).parent().append('<input type="button" name="inlineSubmitting" title="Submitting" class="btnDisabled" value="saving..."/>'); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:selectList value="{!}"> | |
<apex:selectOptions value="{!}"></apex:selectOptions> | |
</apex:selectList> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public List<SelectOption> WarehouseName | |
{ | |
get | |
{ | |
List<SelectOption> options = new List<SelectOption>(); | |
Schema.Describefieldresult fieldResult = ProductLocation__c.Warehouse__c.getDescribe(); | |
List<Schema.PickListEntry> pickListEntries = fieldResult.getPickListValues(); | |
for(Schema.PickListEntry entry : pickListEntries) | |
{ | |
options.add(new SelectOption(entry.getValue(), entry.getValue())); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Controller for page | |
*/ | |
public class MyController | |
{ | |
private String Id; | |
public MyController() | |
{ | |
Id = ApexPages.currentPage().getParameters().get('id'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:outputText value="{0, date, dd-MM-yyyy}"> | |
<apex:param value="{!po.OrderDate}" /> | |
</apex:outputText> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page controller="" showHeader="true"> | |
<script type="text/javascript"> | |
</script> | |
<style type="text/css"> | |
</style> | |
<apex:sectionHeader title="" subTitle="Receive Purchase Requests" /> | |
<apex:pageMessages /> | |
<apex:form > | |
<apex:pageBlock title=""> | |
<apex:pageBlockButtons > |