In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
Most people do not understand the knowledge points of this "Salesforce knowledge points" article, so the editor summarizes the following contents, detailed content, clear steps, and has a certain reference value. I hope you can gain something after reading this article. Let's take a look at this "Salesforce knowledge points" article.
I. using html-related attributes in the visualforce tag
Because the Salesforce page uses the Visualforce framework, and Visualforce and Html still have a certain degree of similarity. visualforce tags use html-related attributes, that is, the use of html- attribute names, when the visualforce tag is parsed into html tags, add related attributes, so as to achieve some functional verification and other functions.
To take the simplest example, whether in Visualforce or Html, the input box is still a commonly used tag, we can enter information in the input box and make the input box grayed out (that is, it cannot be entered). Of course, the way the input box is grayed out in html is quite simple, just let the Disabled property be true, but what about in the Visualforce page?
You know, our tags don't have a disabled attribute, so what if we need to use this attribute? We can add the disabled attribute to the tag, but it is important to note that it needs to be preceded by a html- prefix.
As long as you add an attribute to the tag in this way, you can achieve the effect of graying out the input box.
Of course, there are many such tags, such as using tags to place the foreground display of the textarea field, while for the textarea field we need to add a limit on how many characters can be entered. Because the tag does not have a maxlength attribute, all will use html-maxlength.
II. Visualforce Page
Visual Page is similar to ordinary Web Page, and its content is not limited to HTML, CSS, JS and other resources. The Visualforce Page we write is stored on the server side, and when users access it through url, it will be rendered as a normal Web Page for users to access.
friends here may have a question, why not directly use HTML, in fact, think about it, HTML is a static resource, and when the page needs to dynamically load data, it will not work, so you see Visualforce Page is more like JSP (Java Server Pages) in Java development. In this case, the page needs to be compiled and transformed by the server and then Web Page is provided. The next question is, where does the dynamic data or screen trigger come from? The solution provided in Salesforce is that a page needs to be bound to a Controller Apex class. In addition, more properties can be obtained by inheriting the parent class. Let's take a look at the schematic diagram of how Page works.
1. The client initiates a URL request,. / apex/MyPage
2 and Salesforce will execute the corresponding page records based on the requested address (it should be noted here that SF is a cloud service platform, so how does it find the resources accessed by current users? the reason is that the applied Organization has Id records, so you can hit the resources you need through OrgId filtering.)
3. As mentioned above, when accessing Visualforce Page, the background server compiles, so when the server sees the following sentence
The server also performs the corresponding logic according to the Apex class bound to the page, including, but not limited to, database DML operations, accessing Web resources, and so on.
4. When the above operations are completed, the backend server will Print a normal HTML page for users to browse.
The above is about the content of this article on "what are the knowledge points of Salesforce?" I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more related knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.