You need to sign in to do that
Don't have an account?
Ridhima Saxena 21
How to filter only number fields in apex ??
Hiii Developer,
I have created sum picklist in LWC and i wanted to show only number field if i select sum from the picklist so it should show number fields not all the fields.
Help me to give solution in apex.
How to filter number field in apex??
Thanks in advance
Ridhima
I have created sum picklist in LWC and i wanted to show only number field if i select sum from the picklist so it should show number fields not all the fields.
Help me to give solution in apex.
How to filter number field in apex??
Thanks in advance
Ridhima
I see that there is a class called Type that has a method called getType that you can use to get the type of the field.
Below is the snipet of code of apex that I found:
Link: https://developer.salesforce.com/forums/?id=906F0000000914l
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_lightning_ui_api_object_info
We have used this for a project and it's much faster than going to server(i.e. through APEX).