You need to sign in to do that
Don't have an account?

Problem in soql Query
Hi EveryOne,
how to write a soql query
I have two picklist.
one is industry picklist- Account (standard Object)
another one is product(Product__c) picklist - accproducts__c (custom object)
I want to pass these two picklist as a input to get a record .
I attached the screenshot of my scenario .Please view it and help me.

In Expected Result :
Account Id ,Industry & Account name - Account (Standard object)
Product name - accproduct__c (Custom Object)
Thanks,
M. Sivasankari
how to write a soql query
I have two picklist.
one is industry picklist- Account (standard Object)
another one is product(Product__c) picklist - accproducts__c (custom object)
I want to pass these two picklist as a input to get a record .
I attached the screenshot of my scenario .Please view it and help me.
In Expected Result :
Account Id ,Industry & Account name - Account (Standard object)
Product name - accproduct__c (Custom Object)
Thanks,
M. Sivasankari
Do you have a Standard Object Account look up field in your Custom Object accproduct__c. If you have therelationship between two object means easly get the result. Other wise using wrapper class to get different object values and show into the table..
You may reac me out in case of further query.
Thanks
Sandeep Singhal
http://www.codespokes.com/
1) https://developer.salesforce.com/page/A_Deeper_look_at_SOQL_and_Relationship_Queries_on_Force.com
2) https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_relationships_lookup.htm
3) https://developer.salesforce.com/page/From_SQL_to_SOQL
Please let us know if this will help you