You need to sign in to do that
Don't have an account?
MiguelSeabra
Select * Query
Hello,
I'm new to SF, and have been using it for the past 3days.... I've been programming a custom S-Control in Javascript in order to have access to the SF Database. I've had some problems but I've been able to figure them out. There's one problem that remains, though. I cannot seem to use a "Select *"-like expression in order to access all of the fields of an Account (for example)...
Can anyone help me with this problem?.. I've been reading that it has something to do with the API's describeSObject, but I'm still not certain of that.
Thank you for your help.
M.
I'm new to SF, and have been using it for the past 3days.... I've been programming a custom S-Control in Javascript in order to have access to the SF Database. I've had some problems but I've been able to figure them out. There's one problem that remains, though. I cannot seem to use a "Select *"-like expression in order to access all of the fields of an Account (for example)...
Can anyone help me with this problem?.. I've been reading that it has something to do with the API's describeSObject, but I'm still not certain of that.
Thank you for your help.
M.
The line of code I'm using is something like:
var queryResult = sforceClient.query("Select FirstName, LastName From Account", LayoutResult);
but this only retrieves the "FirstName" and "LastName" fields from the Account Table... what I need is a SOQL expression that accesses all the fields of the desired table... Someting like "Select "all fields" From Account"...
thank you
M.
Having said that, I would create a wrapper around the query call, something like
function queryA(objectName) {
//Do a describeSObject on the object, caching the results
//Create a select list from the list of fields
//execute the query and return the results.
}
thank you for that wrapper suggestion. Probabilly it will solve the problem...
M.
In fact I am developing new code, but I don't know what toolkit you're talking about... some enlightenment would be much appreciated.
Thank you
M.
and the part about porting is here
use
<script src="/soap/ajax/9.0/connection.js"></script>
<script src="/js/functions.js" type="text/javascript"></script>
rather than the Beta3.3 script, there are a few changes as you will see in the porting guide, the result is you are using the supported toolkit, which is easier to debug.
I was using the following line of code to start it all up...
<script language="javascript" src="https://www.salesforce.com/services/lib/ajax/beta3.3/sforceclient.js" type="text/javascript"></script>
I've been reading and learning about the new Apex code and the possibilities the new Eclipse along with the new toolkit offer....
Thank you all for the contributions....
M.