You need to sign in to do that
Don't have an account?
Abi V 4
Order by is not supporting for external object fields
when i select the picklist field and on Click of GO button it will display the page block table in my vf page. Now i wanted to display one of the field in table with ASC or DESC order.I am not able to do this with SOQL ORDER BY condition due to Order By function is not supporting for external object fields. Please suggest me how can i achieve this functionality.
Alternatively, you could look at utilizing SOSL instead of SOQL. If that doesn't work, you could dump the external data into a wrapper class in Apex, that implements the comparable interface: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_comparable.htm
Thanks for your response,Please find the below query.
ARaging=[select invoice_age__c,quick_look_id__c from ar_aging_v1__x where
quick_look_id__c='123456' ORDER BY invoice_age__c DESC Limit 200];
I am also trying to make a query on external object but the external object is not supporting the order by clause. my soql query is very similar to the mentioned above.