• Ezdhan Hussain S K
  • NEWBIE
  • 35 Points
  • Member since 2015
  • Software Engineering Analyst
  • Accenture

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 7
    Replies
Hi,

I have a currency field on opportunity calles Currency1__c which can be any currency type(Multi-currency organization).

I want to compare this field with 700USD value
if(opptyrecord.Currency1__c > 700USD){

}

If Currency1__c is coming in INR, it should convert and compare with dollor value.

Please help in getting solution for this.

Thanks in advance
Trying to deploy this trigger to production. Received following error message:
 Methods defined as TestMethod do not support Web service callouts 
Stack Trace: null

 
trigger updateOppField on Account(before insert, before update){
     for(Account acc : trigger.new){
         if(acc.Text_ID__c != null){
             acc.A_Opportunity__c = acc.Text_ID__c;
         }
     }
 }
Any ideas/solutions will be greatly appreciated.

 
  • October 28, 2015
  • Like
  • 0
Hi

How to access MetadataService.cls and use it? I want to modify the picklist values and reading couple of post I could understand that using MetadataService.cls i can achieve it but i dont know where to get this MetadataService.cls and how to access it ....an tips please?
  • October 28, 2015
  • Like
  • 0
Hi All,

I've got the following problem:

In Opportunity there is a trigger that updates the standard field Currency in the object Pipeline_c, that is USD by default.
The trigger works, in fact, saving the Opportunity, I can see that the Pipeline's Currency actually changes, from USD to GBP (for example).
Now, I have a Class that uses the Pipeline's Currency and calculates some values if Currency is different than USD.
When a press 'Save' in the Class, nothing happen, because the 'Save' turns the Pipeline's Currency in USD again!.

Why?
In my class I never update the Pipeline's Currency to USD again. It is only its initial value that it should be update in GBP by the trigger.

Thankyou
Hi,

I have a currency field on opportunity calles Currency1__c which can be any currency type(Multi-currency organization).

I want to compare this field with 700USD value
if(opptyrecord.Currency1__c > 700USD){

}

If Currency1__c is coming in INR, it should convert and compare with dollor value.

Please help in getting solution for this.

Thanks in advance
I want to integrate ASP.NET page throgh REST API.

What are the procedure
Hi 
I am trying to include two buttons in the pageblock like when Button SHOW is clicked content/records should be displayed and when button HIDE is clicked the content/records in the block should be hidden.i am not able to achieve this,my code is not throwing any error but buttons are not even being displayed on the page .Help will be appreciated,
below is my controller ,vfpage for the reference and screen shot.

All i Need is two buttons like SHOW and HIDE in the pageblock
User-added image


Controller:

public with sharing class DisplayQueryList{ 
public List<Project__c> Records {get; set;} 
public DisplayQueryList(){ 
Records = 
[select Name, client_Type__c,client__c,Client__r.High_Priority__c,Client__r.Quotation__c from Project__c  where client_Type__c   ='Diamond']; 
}
public PageReference buttonB() {
     return null;
  }

  public PageReference buttonA() {
      return null;
  }

  public PageReference displayButton() {

      return null;
  } 
}

Vf Page:

<apex:page controller="DisplayQueryList"> 
 <Apex:form >
    <apex:pageBlock title="Records"> 
        <apex:pageBlockTable value="{!Records}" var="Record"> 
            <apex:column > 
                <apex:facet name="header">Project Name</apex:facet> 
                <apex:outputText value="{!Record.Name}"/> 
            </apex:column> 
            <apex:column > 
                <apex:facet name="header">Client Type</apex:facet> 
                <apex:outputText value="{!Record.client_Type__c   }"/> 
            </apex:column>
            <apex:column > 
                <apex:facet name="header">Client MD</apex:facet> 
                <apex:outputText value="{!Record.Client__c}"/> 
            </apex:column>
            <apex:column > 
                <apex:facet name="header">Quotation</apex:facet> 
                <apex:outputText value="{!Record.Client__r.Quotation__c}"/> 
            </apex:column>
            <apex:column > 
                <apex:facet name="header">High Priority</apex:facet> 
                <apex:outputText value="{!Record.Client__r.High_Priority__c}"/> 
            </apex:column>
             <apex:actionsupport event="onclick" action="{!buttonA}" rendered="true"/>
             <apex:commandbutton action="{!buttonA}" Onclick="show" value="SHOW" rendered="{selectId=='show'}"/>    
        </apex:pageBlockTable> 
    </apex:pageBlock>
   </Apex:form> 
</apex:page>