• Arup
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies

Hi All,

 

I want to access Approval_From__c field(picklist) of Proposal_Approval__c Object(Custom) and want to validate the result of VLOOKUP with a text "Demand" through ISPICKVAL method. So I have wrritten the below validation rule. (Demand_Approval__c is a custom field in the QUOTE object)

 

AND(ISPICKVAL(VLOOKUP($ObjectType.Proposal_Approval__c.Fields.Approval_From__c,$ObjectType.Proposal_Approval__c.Fields.Name,Name), 'Demand'), (PRIORVALUE(Demand_Approval__c) = TRUE))

But system is showing an error as "Error: Incorrect parameter for function 'ISPICKVAL()'. Expected Picklist, received Text".
Any solution to this problem would be appreciated.
Thanks in advance.
  • January 19, 2012
  • Like
  • 0

Hi,

 

In Opportunity tab under report section generally there are 4 predefined report and a link to go to the Report tab. How can I replace those predefined Reports with my custom reports so that an user can see the necessary reports link in the Opportunity tab home page.

 

Please tell the way.

 

Thanks,

Arup

  • August 22, 2011
  • Like
  • 0

How can I  override the look up window for custom object in visualforce page so that I can wrtite some SOQL query to retrieve the values from another table or field dynamically through look up window. Please Give ths code.

  • July 12, 2011
  • Like
  • 0

Hi all,

 

Parent : Opportunity

Child : TeamIn__c

 

I have overridden the new button on TeamIn__c to display a vf page. This button is on the child related list on the parent (Opportunity)page layout. after clicking it URL is like this.

/apex/Teaminpg?CF00NP0000000GXwI=TestOp&CF00NP0000000GXwI_lkid=006P0000002kfuJ&scontrolCaching=1.......

 

Now I have to capture the Parent id i.e. Opportunity Id in controller. in the below string from the abve URL ,

'CF00NP0000000GXwI_lkid=006P0000002kfuJ&'

 

Id '006P0000002kfuJ' is the actual opportunity id which I have to get in the controller.

 


Id OpId = ApexPages.currentPage().getParameters().get('CF00NP0000000GXwI_lkid'); works but I want to avoid this hardcoded Id. 

Can you please help with this issue? Any alternate ways to get the parent Id ?


 

Thanks in advance 

 

gk_myguru