-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
12Questions
-
10Replies
Where is the class definition for the Ajax toolkit API?
I don't seem to find that anymore.Can someone help?
-
- Arman
- March 14, 2007
- Like
- 0
- Continue reading or reply
How to create a Lookup field to read values from the same table
I'd like to have a lookup field in my table which looks up a value in the same table. For example, a record will have a parent if there is another record with an ID equal to that specified in the "ParentID" field of the original record. Otherwise the record is a root level record.
I really don't want to make more custom objects for this task. However, when I try to create a new lookup custom field it won't allow me to choose the same table as the one I'm trying to create this field for. The reason for not going with multiple tables is because this way I can build a hierachy of infinite nodes similar to a tree data structure where each record may be the start of a new tree or be a branch of a tree.
Could someone please direct me?
Thanks in advance.
-
- Arman
- December 13, 2006
- Like
- 0
- Continue reading or reply
Document fields in custom-objects
Any help is appreciated.
-
- Arman
- November 17, 2006
- Like
- 0
- Continue reading or reply
How is the relationship between the Cases and Solutions implemented
Thanks in advance.
-
- Arman
- November 09, 2006
- Like
- 0
- Continue reading or reply
What is the relationship between cases and solutions?
Any help is appreciated.
-
- Arman
- November 09, 2006
- Like
- 0
- Continue reading or reply
isdate & isDate2 function
Thanks
-
- Arman
- September 28, 2006
- Like
- 0
- Continue reading or reply
sforceclient.js url
-
- Arman
- September 27, 2006
- Like
- 0
- Continue reading or reply
S-Control doesn't work with IE7 and FireFox when loging in through emea.salesforce.com
Has anyone else had this problem?
-
- Arman
- September 21, 2006
- Like
- 0
- Continue reading or reply
sforceClient.create function returns a java script error
From what I read on the web, it has to do with incorrect path to the xml file. Has anyone else had this issue? BTW I'm testing my scontrol on the local machine and not on the salesforce yet, would this have anything to do with the problem?
-
- Arman
- September 17, 2006
- Like
- 0
- Continue reading or reply
What is the return type of SForceCleint.retrieve function?
Message Edited by Arman on 09-13-2006 12:10 AM
-
- Arman
- September 13, 2006
- Like
- 0
- Continue reading or reply
ERROR : uncaught exception: Permission denied to call method XMLHttpRequest.open
I've tried the solution that everyone here suggests (sforceclient.apptype = sforce.application.type.firefox) and thats not helping either.
This is my code:
function scontrolmain(IsStatic)
{
try
{
sforcecleint=GetSForceClient();
}
catch(ExceptObject)
{
sforcecleint=null;
}
if(sforcecleint != null)
{
if(window.XMLHttpRequest)
{
sforcecleint.appType=GetSForceFFApplicationType();
}
loginresult=sforcecleint.login("xxx@xxx.com","xxx",null);
showmessage(loginresult.toString());
showmessage(sforcecleint.query("Select Id, LastName, FirstName From Contact",null).toString(null));
}
else
{
window.setTimeout(scontrolmain,100,"javascript");
}
}
Message Edited by Arman on 08-27-2006 06:54 PM
Message Edited by Arman on 08-27-2006 06:54 PM
-
- Arman
- August 28, 2006
- Like
- 0
- Continue reading or reply
What is the Update method of SforceClient for?
I am very new to the Salesforce Ajax toolkit. Could someone please explain to me what is the purpose of the Update method?
I thought maybe if you have say: "an id of a Contact" and then you want to get More Info about that contact what you do is you create a Contact Dynabean and set the id to it. Then put it in an array and pass it to the Update method. All great and works, but I can't figure out what the update does. This update method isn't there to update the content of tables is it? Because the Save method of Dynabean can decide between creating a new record or updating a record.
Thanks in advance
-
- Arman
- August 17, 2006
- Like
- 0
- Continue reading or reply
Document fields in custom-objects
Any help is appreciated.
- Arman
- November 17, 2006
- Like
- 0
- Continue reading or reply
How is the relationship between the Cases and Solutions implemented
Thanks in advance.
- Arman
- November 09, 2006
- Like
- 0
- Continue reading or reply
How do I add an S-Control to the Accounts Page Lay-out
I created a new S-control that is just html. I'm using the xmlhttp object to fetch an rss feed. It works great if I create it as a link, but I want it as a section. My html is all nice and pretty, and trims the result set down to a maximum of 5 items, and its even formatted to match the HTML layout.
How do I create this as a component and add it to the accounts page layout? I basically want to do the same thing you can do to the home page.
Please help, I spent forever making this html / javascript and now can't do anything with it. Very frustrating.
Message Edited by caseyp on 09-26-2006 05:31 PM
- caseyp
- September 27, 2006
- Like
- 0
- Continue reading or reply
S-Control doesn't work with IE7 and FireFox when loging in through emea.salesforce.com
Has anyone else had this problem?
- Arman
- September 21, 2006
- Like
- 0
- Continue reading or reply
sforceClient.create function returns a java script error
From what I read on the web, it has to do with incorrect path to the xml file. Has anyone else had this issue? BTW I'm testing my scontrol on the local machine and not on the salesforce yet, would this have anything to do with the problem?
- Arman
- September 17, 2006
- Like
- 0
- Continue reading or reply
Dynabean.save() returns nothing
I've tried everything but Dynabean.save doesn't return anything. I've tried sforceClient.create and it returns zip too.
I know that "set" and "create" calls are being made because the API complains if there is an invalid field on "sets" and the callback fires when I use "create" (I've tried both .save() and create() but neither works or returns anything in the saveResult.)
Here are the relevant code snippets. Any help appreciated.
<script language="javascript" src="https://www.salesforce.com/services/lib/ajax/beta3.3/sforceclient.js?browser=true"
type="text/javascript"></script>
...
sforceClient.init("{!API_Session_ID}", "{!API_Partner_Server_URL_70}");
sforceClient.registerInitCallback(getOpportunity);
...
var renewalOppty = new Sforce.Dynabean("opportunity");
try
{
renewalOppty.set("Name", document.OpptyForm.OpptyName.value);
//renewalOppty.set("Description", document.OpptyForm.OpptyDesc.value);
renewalOppty.set("Description", "My Description");
renewalOppty.set("Type",document.OpptyForm.OpptyType.value);
renewalOppty.set("Amount", m_amount);
renewalOppty.set("LeadSource", m_leadSource);
renewalOppty.set("OwnerId", m_ownerId);
var oCloseDate = new Date("12/31/2006");
renewalOppty.set("CloseDate", oCloseDate);
renewalOppty.set("StageName", m_stageName);
renewalOppty.set("ForecastCategory", "Pipeline");
renewalOppty.set("CurrencyIsoCode", "USD - U.S. Dollar");
//renewalOppty.set("Country", "US");
//var opptyArray = new Array();
//opptyArray[0] = renewalOppty;
saveResult = renewalOppty.save();
alert(typeof saveResult);
//sResult = sforceClient.create(opptyArray,dummy);
- virago81
- September 14, 2006
- Like
- 0
- Continue reading or reply
ERROR : uncaught exception: Permission denied to call method XMLHttpRequest.open
I've tried the solution that everyone here suggests (sforceclient.apptype = sforce.application.type.firefox) and thats not helping either.
This is my code:
function scontrolmain(IsStatic)
{
try
{
sforcecleint=GetSForceClient();
}
catch(ExceptObject)
{
sforcecleint=null;
}
if(sforcecleint != null)
{
if(window.XMLHttpRequest)
{
sforcecleint.appType=GetSForceFFApplicationType();
}
loginresult=sforcecleint.login("xxx@xxx.com","xxx",null);
showmessage(loginresult.toString());
showmessage(sforcecleint.query("Select Id, LastName, FirstName From Contact",null).toString(null));
}
else
{
window.setTimeout(scontrolmain,100,"javascript");
}
}
Message Edited by Arman on 08-27-2006 06:54 PM
Message Edited by Arman on 08-27-2006 06:54 PM
- Arman
- August 28, 2006
- Like
- 0
- Continue reading or reply
Couple of questions about Solution objects
1. I was displaying Case data via the API and wanted to show the Solutions associated with a particular case. I couldn't see anything about the Solution in the Case object or vice-versa. I notice from the standard GUI that this appears to be a many-to-many relationship. Thus, we need access to the MTM table to show these. Any ideas/comments?
2. I remember before seeing something about putting your knowledgebase (your solutions) online in a searchable format for your customers. What would you recommend as the best way of doing this? Is there a way to do this via the API? Is there a traditional (i.e. non-API) method for doing this?
THANKS!!
- VinnieB
- January 14, 2004
- Like
- 0
- Continue reading or reply