function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sunil2018sunil2018 

Apex cannot show the elements in UI


1) Apex cannot show the elements in User Interface. Can you please provide inputs on the meaning of this line with regards to Apex? It is the Apex limitation.
2)what features Apex does not support?
Best Answer chosen by sunil2018
ANUTEJANUTEJ (Salesforce Developers) 
Hi Sunil,

Aapex is a backend language and that is the reason there are no UI elements that can be created via apex and for UI you will have to use visualforce pages or lightning web components or lightning web components which can be used for front end and for connection with or processing at the server level you would be using apex in conjunction.

>> For client processing and UI use visualforce pages or lightning web components or lightning web components.

>> For processing at server use Apex.

You can also try checking the trailhead where you can learn even more about apex.

I hope this helps and in case if this comes handy can you please choose this as best answer so that it can be useful for others in the future.Let me know in case if there are any questions.

Regards,
Anutej

All Answers

ANUTEJANUTEJ (Salesforce Developers) 
Hi Sunil,

Aapex is a backend language and that is the reason there are no UI elements that can be created via apex and for UI you will have to use visualforce pages or lightning web components or lightning web components which can be used for front end and for connection with or processing at the server level you would be using apex in conjunction.

>> For client processing and UI use visualforce pages or lightning web components or lightning web components.

>> For processing at server use Apex.

You can also try checking the trailhead where you can learn even more about apex.

I hope this helps and in case if this comes handy can you please choose this as best answer so that it can be useful for others in the future.Let me know in case if there are any questions.

Regards,
Anutej
This was selected as the best answer
sunil2018sunil2018
Thank you Auntej
ANUTEJANUTEJ (Salesforce Developers) 
Just for quick reference below are the links to few trailhead modules that I could find:

>> APEX trail: https://trailhead.salesforce.com/en/content/learn/trails/build-apex-coding-skills

>> LWC project: https://trailhead.salesforce.com/en/content/learn/trails/lex_dev_lc_vf

>>Visualforce Page: https://trailhead.salesforce.com/en/content/learn/modules/lex_dev_visualforce
https://trailhead.salesforce.com/en/content/learn/modules/visualforce_fundamentals
https://trailhead.salesforce.com/en/content/learn/projects/quickstart-visualforce