• Mamatha Master
  • NEWBIE
  • 0 Points
  • Member since 2006

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

I have an Visual Force tab when I click the tab the entire page is Postedback instead I want  only the iframe to refresh

and also I need Ajax loading image when I click the tab and iframe is refreshing..

here is the code snipet which I used

<apex:page sidebar="true">
<apex:iframe src="https://MyCustomURL" scrolling="true"/>
</apex:page>

Hi,
 
How can we get all contact and its accout name usinf a single query using API
I tried but its giving mailformed_query error
 
Can any one please help me
 
thanks
Mamatha
Hi,
 
I am facing problem with API if there are more records.
 
I am getting contact using query function as shown below

sforce.QueryResult con=sfc.query ("Select FirstName,LastName,ID,AccountID from Contact");

If there are more records say 1000 the query is taking much time to load, we even predict how much time it will take or it will give results.

I am using the following code to filter the records, its working fine

string cmdText="find {"+Encode(whereClause)+"} in Name fields returning contact(FirstName,LastName,ID,AccountID),account(id,Name)";

sr=sfc.search(cmdText);

 

Can any one help how to overcome this  issue

 

Thanks

Mohan

Hi,
 
I want to search only Account name from accounts using sforce API.
 
But in API, the provided search function can have the ability to search in NAME FIELDS or PHONE FIELDS or EMAIL FIELDs or ALL FIELDs.
 
But i want to search only acccount name field. How can i?
 
I tried with query function but got error if i use like operator.
 
Can any one help me urgent.
 
Thanks for your help
MM
Hi
 
While using API QueryResult  and query function i got an exception
 
+ System.SystemException {"MALFORMED_QUERY: \nId from Account where Name='cv's interest'\n                               ^\nERROR at Row:1:Column:44\nunexpected token: s interest"} System.SystemException
It's because of single quote(') in the query.
 
Here is my code:

sforce.QueryResult acc=sfc.query ("select Id,Name from Account where Name='cv's interest'");

Here account name=cv's interest having single quote in it.

It is causing that error.

 

Can anyone help me to over come this problem (single quote) while using query function of API

 

Thanks for your help

------MM

Hi,
 
I want to search only Account name from accounts using sforce API.
 
But in API, the provided search function can have the ability to search in NAME FIELDS or PHONE FIELDS or EMAIL FIELDs or ALL FIELDs.
 
But i want to search only acccount name field. How can i?
 
I tried with query function but got error if i use like operator.
 
Can any one help me urgent.
 
Thanks for your help
MM