• ABRAR-UL-HAQ
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 1
    Replies

 

Stage = Rejected,,, Rejection Reason is Required
AND(
 OR(
 ISPICKVAL( StageName , "Rejected")) ,
 ISBLANK( Rejection_Reason__c ) 
)

Stage = Rejected,,, Rejection Reason is RequiredAND( OR( ISPICKVAL( StageName , "Rejected")) , ISBLANK( Rejection_Reason__c ) )

 

 

IF(ISPICKVAL(StageName ,"Quote Sent") && Number_of_Quotes__c = 0, true, false)

 

 

public class sample1 {
   public String[] getStrings() {
        return new String[]{'A','B','C','D','E','F','G','H',
        'I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W',
        'X','Y','Z','Other','ALL'};
    }
}
************************************************
<apex:page controller="sample1">
 <apex:repeat value="{!strings}" var="string" id="theRepeat">
        <apex:outputText value="{!string}" id="theValue"/> |
    </apex:repeat>
</apex:page>

public class sample1 {
   public String[] getStrings() {
        return new String[]{'A','B','C','D','E','F','G','H',        'I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W',        'X','Y','Z','Other','ALL'};
    }
}************************************************<apex:page controller="sample1"> <apex:repeat value="{!strings}" var="string" id="theRepeat">
        <apex:outputText value="{!string}" id="theValue"/> |
    </apex:repeat></apex:page>

 

 

Page Navigation Methods:
For a VisualForce Page:
PageReference pageRef = Page.VFPageName
For a SalesForce(Possibly non-VisualForce) Page:
PageReference pageRef = new PageReference('partialURL')
For a non-Salesforce Website:
PageReference pageRef = new PageReference('fullURL')

Page Navigation Methods:
For a VisualForce Page:PageReference pageRef = Page.VFPageName
For a SalesForce(Possibly non-VisualForce) Page:PageReference pageRef = new PageReference('partialURL')
partialURL = https://salesforceserver.salesforce.com
For a non-Salesforce Website:PageReference pageRef = new PageReference('fullURL')

 

Hi,

I have a custom object Product_Serial__c which has  a lookup field to another object Product_inventory__c.

The product_inventory__c has a lookup to Product.
The product serial record also has a lookup to product


Now when a user creates a new Product Serial record ,
i created a trigger on the Product serial that updates the product value from the product_inventory which the user enters to create a record.

But this update is not happening.Please help.


Trigger updprod on Product_serial__c(after insert)

{

Set<Id> ids = trigger.newmap.keySet();

List<Product_serial__c> pser=[select product_inventory__c,product__c,Product_Inventory__r.Product__r.Id from  product_serial__c where id IN :ids];


For(Product_serial__c psers:pser)

{

 psers.product__c=psers.Product_Inventory__r.Product__r.Id;

update psers;

}

}