• Aman
  • NEWBIE
  • 25 Points
  • Member since 2011

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

I have a trigger that calls a class that makes an http callout.  I want to update the record that invoked the trigger with a value in the response from the http callout.  I'm getting a response back but need help getting it saved in the Number Stage field on the Order object.  Any help would be greatly appreciated.

 

Here's the trigger that calls the class:

 

This is the class that's being called:

 

 

I am having trouble with what I imagine to be some pretty basic Javascript. I have been struggling for days and decided I would just post and hope some kind soul will help me out :-)

 

Ok, so.....

 

I am looking to put a custom button on my Opportunity with the following methodology:

 

IF [Opportunity.Closed] = TRUE & [Opportunity.Dropped_Products__c] = TRUE,

 

Display Alert ("You will now be redirected to Product History"), Save Opportunity, and then redirect user to 'https://cs14.salesforce.com/apex/clonedrop?id={!Opportunity.Id}'

 

OTHERWISE

 

Save opportunity as usual

 

Any help would be GREATLY appreciated!! Thank you!

 

I have two <apex:inputText> tags on VF pages  which receives Birthdate and have Jquery Datepicker.

<apex:inputText value="{!BirthDate}"/>

and 

<apex:inputText value="{!BirthDateTo}"/>

When user select date in both fields.

 

I want to pick results through SOQL in from range.

like.

select id from object__c where dob>= birthdate and dob<=birthdateto

 

But the date type of dob in object is of type Text instead of Date.

 

Is anyone help me to how to query the data in range if i have the datatype of dob in text.

Please help me.

 

 

I have a list of type String which contains objects of Salesforce like Contact, Account, Opportunity,quote,case etc.

I want to convert the list of string in sObject to use the following line.

 

List<String> a=new List<String>();a.add(sObject.valueOf('Account'));

a.add('Contact');

a.add('opportunity');

a.add('Quote');

a.add('Account');

 

for(String x:a)

{

Map<String,sObjectField> fmap=Schema.sObjectType.x.fields.getMap();

}

// but it  showing error. How i convert a string into Sobject.

 

the red color X is will be string from a list.....

 





 

Can we create a visual force page through Apex.

If yes, help me.

Hello,

 

I have a requirement where I need to display the columns seleted / defined for a particular listview in a custom visualforce page. 

I know that there is a property ListView. Columns in Metadata API for Salesforce, but I am not sure on how to use it in APEX Code.

Can anyone please help me with regard to this ?? Any examples on how to use this are appreciated.

 

Thanks.

Kartik

i have a custom controller "ABC"

in it i had developed a field set named "one"

 

i want to use this field set "one" in our vf page how can i access it...