You need to sign in to do that
Don't have an account?
MohanaGopal
Flex Query
Hi..
-- How can I passing values to Flex from salesforce for query retrival process..?
I have used one list button in my Custom object.. when I click list button it calls the flex application using S-controls.. In my flex I have to query based on parent record id or some fileds.. In salesforce we can used merge fields for identify the parent objects... How is it possible in Flex..
-- How can I use two query in Flex..?
I have to retrive data from two tables in different condition.. I have to display this result in two data grids.. How can I use this..
Any one have sample code..
Please Send me..
look at this article:
http://wiki.apexdevnet.com/index.php/Flex_Hello_World
search for flashvar
Thanks for ur reply..
Its very helpful.. Now I able to pass arguments to Flex from Salesforce..
I have one more doubt..
The following code work fine when my query return values.. If its null its shows
How to avoid it.... Is there any wrong in my code...
apex.query("select Name from Custom_Tasks__c where Project__c='"+Application.application.parameters.project_id+"'",
new AsyncResponder(
function (qr:QueryResult):void
{
var ar1:ArrayCollection=new ArrayCollection();
for(var j:int=0;j<qr.records.length;j++)
{
ar1.addItem({label:qr.records[j].Name});
}
combTask.dataProvider=ar1;
},
function (fault:Object):void{
Alert.show("Query Failed Task");
}
));