• Krishna_
  • NEWBIE
  • 75 Points
  • Member since 2009

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

Hi,

How to use APEX REST API?

I am using developer edition.How to get it?

If possible please share the example links also.

 

Thanks,

Krishna.

Hi,

I create a custom report with the object of Opportunity.

In my opportunity I create a custom field called no of days as a formula field. It gives the difference between two custom date fields.

In that report I added that custom formula field also.

But I need a average of that custom formula in report.

 

How to do that??

 

Thanks,

Krishna.

 

Hi to all,
I sent mail from my developer edition to my mail account. It sents with my mail subject & description.Its working properly.But I am using Sandbox edition to sent a mail to my mail account. that time the subject & description values are added with "Force.com Sandbox" label.
how to remove the "force.com sandbox" Label???

Thanks,
Krishna.

hi ,

what is OWD in salesforce???

What is the use of that one???

 I can't get any more details.

so please explain briefly.

 

thanks,

Krishna.

       
Hi
I set a picklist values for Different colours.
But I run the report & creating Dashboard Component Type Is Chart.
it shows, but in same colour picklist values...
how to get different colours ???
Is there any settings other than Object --> Fields --->picklist colour values.        

thanks,
Krishna.

Hi to all.,
I have two objects.,
In one object (Contact details) the fields are  firstname ,lastname and Owner.
the second object(View)
I wrote the trigger on View object on after insert.

contact_Details con = [select firstname__c,Lastname__c,owner]

trigger trg_view on View__c (after insert)
{
    for(View__c viewobj: Trigger.New)
    {
  contact_Details__c con = [select id,firstname__c,Lastname__c,owner from contact_Details__c where owner =: CreatedById ];
  viewobj.condaetails__c = con.id;
    }

But this trigger show the error on OWNER FIeld.
then How to compare it and how to write the soql query with select Owner field statement?????

 

Thanks,
Krishna.

 

Hi to all,

I am using Force.com connect offline in my system.


I used offline and they provide data  in "./salesforce.com/Offline2/program/Offline3"

My Question is,

 

How to integrate offline API into .net???
& how to create,update and display objects when offline through .net code???

 

Thanks,
Krishna.

 

 

 

Hi to all,

 

I am creating two Visual force pages.

My question is how to call one visual force page to another visual force page???

send some basic examples also......

 

Thanks,

Krishna.

Hi to all,

I am using Lead object & the lead source field adds some Extra values like web,email,phone.
Now I added one custom field Lead No.

 

If I choose Lead source to Web,phone,email then lead no is increased by 1.


If I choose Lead source to Other than above three The Lead No Custom Field should be hodden.

How to hidden a Fields through APEX code???

 

 

Thanks,
Krishna.

Hi to all,

 

How to create Salesforce workflow Using .net code???

 

Is there any options???

 

or

 

How to integrate Windows workflow Foundation & salesforce to create workflow in Salesforce???

 

 

thanks,

Krishna.


Hi to all,

 

I have created a visualforce page for SITES using CONTACT Object.


My visualforce page:


::::PAGE EDITOR:::::

 

<apex:page controller="theController">
   <apex:form >
      <apex:pageBlock mode="edit" id="block">
         <apex:pageBlockSection >
            <apex:pageBlockSectionItem >
               <apex:outputLabel for="searchText">Search Text</apex:outputLabel>
               <apex:panelGroup >
                  <apex:inputText id="searchText" value="{!searchText}"/>
                  <apex:commandButton value="Go!" action="{!doSearch}" status="status"/>
                                               </apex:panelGroup>
            </apex:pageBlockSectionItem>
        </apex:pageBlockSection>
        <apex:pageBlockSection title="Results" id="results">
           <apex:pageBlockTable value="{!results}" var="l" >
               <apex:column headervalue="Last Name" width="250">
                   <a href="/{!l.Id}">{!l.LastName }</a>
               </apex:column>
               <apex:column headervalue="Account Name" width="250">
                   <a href="/{!l.AccountId}">{!l.Account.Name}</a>
               </apex:column>
           </apex:pageBlockTable>
        </apex:pageBlockSection>
      </apex:pageBlock>
   </apex:form>
</apex:page>

 

 

:::::Controller:::::

 

public class theController
{

   String searchText;
   List<Contact> results;
   public String getSearchText()
   {
      return searchText;
   }
   public void setSearchText(String s)
   {
      searchText = s;
   }
   public List<Contact> getResults()
   {
      return results;
   }
   public PageReference doSearch()
   {
         results = (List<Contact>)[FIND :searchText RETURNING contact(id,LastName, AccountId,contact.Account.Name)][0];
         return null;
   }
}

 

I am using Find query....
that find query searches the Contact lastname only.....
My search defined as Contact Account Name..
How to change the Find query????
Pls help me.....

 

Thanks,

Krishna.

 

Hi to all,

 

What is the difference between Salesforce CRM platform & force.com platform????

 

Both giving Free,Enterprise & Unlimited Edition...

 

then What is the difference????

 

Thanks,

Krishnamoorthi.N

 

 

Hi to all,

I have 2 questions.,

I am creating a site  to call the Visual force page.

The visual force page contains system objects like Contacts.,

Now i am added two fields of contact

My first question How to add Visual force page to "Contacts related list of Notes & attachments"

 

&

the second question is,

I am connected visualforce page to SITES. & run the specific URL,

 

& save the two filelds to contact it shows the below error message. but the values are added to contacts.

Authorization Required

You must first log in or register before accessing this page.
If you have forgotten your password, click Forgot Password to reset it.

How to handle this one?????

 

my sample code is:

 

<apex:page standardController="Contact">
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockButtons >
                <apex:commandButton action="{!Save}" value="Save"/>
            </apex:pageBlockButtons>
           <apex:pageBlockSection >
                <apex:pageBlockSectionItem >
                    <apex:outputLabel id="lastname" value="Last Name" for="Visual">
                    </apex:outputLabel>
                    <apex:inputText value="{!Contact.lastname}" />
                </apex:pageBlockSectionItem>
             </apex:pageblockSection>
             <apex:pageblockSection >
                <apex:pageBlockSectionItem >
                    <apex:outputLabel id="Department" value="Department" for="visual"></apex:outputLabel>
                   <apex:inputText value="{!Contact.Department}" />
                </apex:pageBlockSectionItem>
             </apex:pageBlockSection>  
           </apex:pageBlock>
    </apex:form>
</apex:page>

Hi to all,

I am creating sample Visual force page.like this..

 

<apex:page standardController="Contact">
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockButtons >
                <apex:commandButton action="{!Save}" value="Save"/>
            </apex:pageBlockButtons>
            <apex:pageBlockSection >
                <apex:pageBlockSectionItem >
                    <apex:outputLabel id="lastname" value="Last Name" for="Visual">
                    </apex:outputLabel>
                    <apex:inputText value="{!contact.lastname}" />
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
    <apex:listViews type="Contact"/>
    <apex:relatedList id="contact1" list="contact" />
</apex:page>

 

This visual page is working fine..

But i am using SITES page, It show the following error Message.

"'contact' is not a valid child relationship name for entity Visualforce Page"

how to rectify and how to use that page in SITES ????

 

thanks,

krishna.

 

Hi, 

I am creating .net Sample (Helloworld) Webservices, & converted to  APEX classes.,

Now how to call that that helloworld functions in APEX triggers???

 

My sample code of APEX Class is:

 

//Generated by wsdl2apex

public class Hello {
    public class HelloWorld_element {
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true','false'};
        private String[] field_order_type_info = new String[]{};
    }
    public class ServiceSoap {
        public String endpoint_x = 'http://172.16.10.114/SFSample/SFSample.asmx';
        public Map<String,String> inputHttpHeaders_x;
        public Map<String,String> outputHttpHeaders_x;
        public String clientCert_x;
        public String clientCertPasswd_x;
        public Integer timeout_x;
        private String[] ns_map_type_info = new String[]{'http://tempuri.org/', 'Hello'};
        public String HelloWorld() {
            Hello.HelloWorld_element request_x = new Hello.HelloWorld_element();
            Hello.HelloWorldResponse_element response_x;
            Map<String, Hello.HelloWorldResponse_element> response_map_x = new Map<String, Hello.HelloWorldResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://tempuri.org/HelloWorld',
              'http://tempuri.org/',
              'HelloWorld',
              'http://tempuri.org/',
              'HelloWorldResponse',
              'Hello.HelloWorldResponse_element'}
            );
            response_x = response_map_x.get('response_x');
            return response_x.HelloWorldResult;
        }
    }
    public class HelloWorldResponse_element {
        public String HelloWorldResult;
        private String[] HelloWorldResult_type_info = new String[]{'HelloWorldResult','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true','false'};
        private String[] field_order_type_info = new String[]{'HelloWorldResult'};
    }
}

 

 

Now how to call that Helloworld function to APEX triggers???

 

Thanks,

Krishna.

 

Hi To all,

How to call External(.net) webservice from Salesforce???

& how to use that webservices in APEX classes & triggers????

Thanks,

Krishna.

Hi I am creating new Visual Force page that displays views of Contact.That view contains Contact Lastname & Contacts AccountName if Contact account name is there.

 

Its all ok.But i am used command link to that view. So If i click to contact Lastname that contact will be open & same for Account Name...

How to handle this one????

I am Hardcoded that value its working fine.But not hard coded itd not working...

 

My sample code is:

 

APEX CLASS::

 

public class dataTableCont
{
    List<Contact> Con;
    public List<Contact> getContacts()
    {
        Con = [select id,LastName, AccountId,contact.Account.Name from contact where contact.AccountId != NULL];
        return Con;
    }
   
    public PageReference LinkContactName()
    {
      PageReference pdfPage =new PageReference('my org URL' + '/' + 'Contact.Id');

//If i am hardcoded the contact Id its working.. 

    pdfpage.setRedirect(true);
      return pdfPage;
    }

 

public PageReference LinkAccountName()
    {
        PageReference pdfPage =new PageReference('my org URL' + '/' + Contact.AccountId);
        pdfpage.setRedirect(true);
        return pdfPage;
        //return null;
    }

 

 

My VisualForce Page::

 

<apex:smileytongue:age controller="dataTableCont" id="thePage">
<apex:form > 
   <apex:smileytongue:ageBlock title="Contacts">
   <apex:smileytongue:ageBlockTable value="{!Contacts}" var="ge">
                        <apex:column headervalue="Last Name" width="500">
                        <apex:commandLink action="{!LinkContactName}" value="{!ge.LastName}"  >
                             <apex:smileytongue:aram name="ConLastName" value="{!ge.Id}"/>
                        </apex:commandLink>
                    </apex:column>
                   
                    <apex:column headervalue="Account Name" width="500">
                        <apex:commandLink action="{!LinkAccountName}" value="{!ge.Account.Name }" >
                             <apex:smileytongue:aram name="ConAccName" value="{!ge.AccountId}"/>
                        </apex:commandLink>
                    </apex:column>
    </apex:smileytongue:ageBlockTable>
   </apex:smileytongue:ageBlock>
   </apex:form>
   </apex:smileytongue:age>

 

If i click to contact Lastname that contact will be open & same for Account Name.

How to handle this one????

Hi I am creating new Visual Force page that displays views of Contact.That view contains Contact Lastname & Contacts AccountName if Contact account name is there.

 

Its all ok.But i am used command link to that view. So If i click to contact Lastname that contact will be open & same for Account Name...

How to handle this one????

I am Hardcoded that value its working fine.But not hard coded itd not working...

 

My sample code is:

 

Apex Class::

 

public class dataTableCont 
{
    List<Contact> Con;
    public List<Contact> getContacts()
    {
        Con = [select id,LastName, AccountId,contact.Account.Name from contact where contact.AccountId != NULL];
        return Con;
    }
   
    public PageReference LinkContactName()
    {
      PageReference pdfPage =new PageReference('my org URL' + '/' + 'Contact.Id');
//If i am hardcoded the contact Id its working..
      pdfpage.setRedirect(true);
      return pdfPage;
    }
    public PageReference LinkAccountName()
    {
        PageReference pdfPage =new PageReference('my org URL' + '/' + Contact.AccountId);
        pdfpage.setRedirect(true);
        return pdfPage;
        //return null;
    }
}

My VisualForce Page::

 

<apex:page controller="dataTableCont" id="thePage">
<apex:form > 
   <apex:pageBlock title="Contacts">
   <apex:pageBlockTable value="{!Contacts}" var="ge">
                        <apex:column headervalue="Last Name" width="500">
                        <apex:commandLink action="{!LinkContactName}" value="{!ge.LastName}"  >
                             <apex:param name="ConLastName" value="{!ge.Id}"/>
                        </apex:commandLink>
                    </apex:column>
                   
                    <apex:column headervalue="Account Name" width="500">
                        <apex:commandLink action="{!LinkAccountName}" value="{!ge.Account.Name }" >
                             <apex:param name="ConAccName" value="{!ge.AccountId}"/>
                        </apex:commandLink>
                    </apex:column>
    </apex:pageBlockTable>
   </apex:pageBlock>
   </apex:form>
   </apex:page>

 

If i click to contact Lastname that contact will be open & same for Account Name.

How to handle this one????

Message Edited by Krishna_ on 05-12-2009 05:49 PM

 I am using territory management,& and I am creating some territeries.I created account assignment rule in that territory.
 Its working in new record.but its not working in old record when i am editing in "Inline Editing".I am  not using inline editing and edit that page that time its working successfully.but i am using "Inline Editing",its not worked and not updated.
 how to handle this one????

 

thanks,

krishna.

I have a module in Dot net and also an account in salesforce. I am trying to link both of these together.I am trying to get the details of Lead. & update,insert the lead values .ho to get & update it??? help me...


Thanks,
Krishna.

hi everyone,

 

I want to disable the textfield in salesforce.I have to confirm is it possible to disable textfield in salesforce.

In my application one text filed is like this STATUS 20-40.In this field default value always is status(20-40).

No one can change this value.If possible this functionality in sales force plz help me.

 

Thanks,

anu

Hi,

 

Are force.com sites are built on Visualforce?

 

 

Advance thanks.

 

 

Neeru.

 

Hi to all,

 

I am creating two Visual force pages.

My question is how to call one visual force page to another visual force page???

send some basic examples also......

 

Thanks,

Krishna.

Hi to all,

I am using Lead object & the lead source field adds some Extra values like web,email,phone.
Now I added one custom field Lead No.

 

If I choose Lead source to Web,phone,email then lead no is increased by 1.


If I choose Lead source to Other than above three The Lead No Custom Field should be hodden.

How to hidden a Fields through APEX code???

 

 

Thanks,
Krishna.

Hi to all,

I am creating sample Visual force page.like this..

 

<apex:page standardController="Contact">
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockButtons >
                <apex:commandButton action="{!Save}" value="Save"/>
            </apex:pageBlockButtons>
            <apex:pageBlockSection >
                <apex:pageBlockSectionItem >
                    <apex:outputLabel id="lastname" value="Last Name" for="Visual">
                    </apex:outputLabel>
                    <apex:inputText value="{!contact.lastname}" />
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
    <apex:listViews type="Contact"/>
    <apex:relatedList id="contact1" list="contact" />
</apex:page>

 

This visual page is working fine..

But i am using SITES page, It show the following error Message.

"'contact' is not a valid child relationship name for entity Visualforce Page"

how to rectify and how to use that page in SITES ????

 

thanks,

krishna.

 

Hi I am creating new Visual Force page that displays views of Contact.That view contains Contact Lastname & Contacts AccountName if Contact account name is there.

 

Its all ok.But i am used command link to that view. So If i click to contact Lastname that contact will be open & same for Account Name...

How to handle this one????

I am Hardcoded that value its working fine.But not hard coded itd not working...

 

My sample code is:

 

APEX CLASS::

 

public class dataTableCont
{
    List<Contact> Con;
    public List<Contact> getContacts()
    {
        Con = [select id,LastName, AccountId,contact.Account.Name from contact where contact.AccountId != NULL];
        return Con;
    }
   
    public PageReference LinkContactName()
    {
      PageReference pdfPage =new PageReference('my org URL' + '/' + 'Contact.Id');

//If i am hardcoded the contact Id its working.. 

    pdfpage.setRedirect(true);
      return pdfPage;
    }

 

public PageReference LinkAccountName()
    {
        PageReference pdfPage =new PageReference('my org URL' + '/' + Contact.AccountId);
        pdfpage.setRedirect(true);
        return pdfPage;
        //return null;
    }

 

 

My VisualForce Page::

 

<apex:smileytongue:age controller="dataTableCont" id="thePage">
<apex:form > 
   <apex:smileytongue:ageBlock title="Contacts">
   <apex:smileytongue:ageBlockTable value="{!Contacts}" var="ge">
                        <apex:column headervalue="Last Name" width="500">
                        <apex:commandLink action="{!LinkContactName}" value="{!ge.LastName}"  >
                             <apex:smileytongue:aram name="ConLastName" value="{!ge.Id}"/>
                        </apex:commandLink>
                    </apex:column>
                   
                    <apex:column headervalue="Account Name" width="500">
                        <apex:commandLink action="{!LinkAccountName}" value="{!ge.Account.Name }" >
                             <apex:smileytongue:aram name="ConAccName" value="{!ge.AccountId}"/>
                        </apex:commandLink>
                    </apex:column>
    </apex:smileytongue:ageBlockTable>
   </apex:smileytongue:ageBlock>
   </apex:form>
   </apex:smileytongue:age>

 

If i click to contact Lastname that contact will be open & same for Account Name.

How to handle this one????

Hi I am creating new Visual Force page that displays views of Contact.That view contains Contact Lastname & Contacts AccountName if Contact account name is there.

 

Its all ok.But i am used command link to that view. So If i click to contact Lastname that contact will be open & same for Account Name...

How to handle this one????

I am Hardcoded that value its working fine.But not hard coded itd not working...

 

My sample code is:

 

Apex Class::

 

public class dataTableCont 
{
    List<Contact> Con;
    public List<Contact> getContacts()
    {
        Con = [select id,LastName, AccountId,contact.Account.Name from contact where contact.AccountId != NULL];
        return Con;
    }
   
    public PageReference LinkContactName()
    {
      PageReference pdfPage =new PageReference('my org URL' + '/' + 'Contact.Id');
//If i am hardcoded the contact Id its working..
      pdfpage.setRedirect(true);
      return pdfPage;
    }
    public PageReference LinkAccountName()
    {
        PageReference pdfPage =new PageReference('my org URL' + '/' + Contact.AccountId);
        pdfpage.setRedirect(true);
        return pdfPage;
        //return null;
    }
}

My VisualForce Page::

 

<apex:page controller="dataTableCont" id="thePage">
<apex:form > 
   <apex:pageBlock title="Contacts">
   <apex:pageBlockTable value="{!Contacts}" var="ge">
                        <apex:column headervalue="Last Name" width="500">
                        <apex:commandLink action="{!LinkContactName}" value="{!ge.LastName}"  >
                             <apex:param name="ConLastName" value="{!ge.Id}"/>
                        </apex:commandLink>
                    </apex:column>
                   
                    <apex:column headervalue="Account Name" width="500">
                        <apex:commandLink action="{!LinkAccountName}" value="{!ge.Account.Name }" >
                             <apex:param name="ConAccName" value="{!ge.AccountId}"/>
                        </apex:commandLink>
                    </apex:column>
    </apex:pageBlockTable>
   </apex:pageBlock>
   </apex:form>
   </apex:page>

 

If i click to contact Lastname that contact will be open & same for Account Name.

How to handle this one????

Message Edited by Krishna_ on 05-12-2009 05:49 PM
 Hi to all,
 In buttons and link in Accounts, I have to add one List button. So i give all the details of that page.In display type I choosed to LIST BUTTON.It give one checkbox called "Display Checkboxes (for Multi-Record Selection)" I uncheck the checkbox & write some code... & save it...But in accounts list view the checkboxes are visible... then What is the use of the Check box???? Is there any settings to hide the checkboxes in list view?????