You need to sign in to do that
Don't have an account?
Apoorva Sharma
Dml Query in Static Resource
Hi All,
I have a requirement in which i need to query some of the opportunity field in a static resource. Ill be using the static resource as a home page component(custom link).My static file is written in javascript. I tried querying but somehow i am not able to include the following scripts :
{!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/22.0/apex.js")}
Can some please suggest me a method to procced. Thanks in advance.
I have a requirement in which i need to query some of the opportunity field in a static resource. Ill be using the static resource as a home page component(custom link).My static file is written in javascript. I tried querying but somehow i am not able to include the following scripts :
{!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/22.0/apex.js")}
Can some please suggest me a method to procced. Thanks in advance.
Please try below code ,
{!REQUIRESCRIPT("/soap/ajax/32.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/32.0/apex.js")}
Give this a Shot
<script src="/soap/ajax/15.0/connection.js" type="text/javascript"></script>
<script src="/soap/ajax/15.0/apex.js" type="text/javascript"></script>
<script>
sforce.connection.sessionId = "{!$Api.Session_ID}";
//Your Logic
</script>
Can you do one thing ,add above script in static resource js file only and try to call that .
Try to give a full url and check may be that can work.