Front-end and back-end

Source: Internet
Author: User

From www.lotus fans.com

I believe that some people who are new to Lotus script always have doubts about what the front-end class is and what the back-end class is. What are the frontend and backend classes?
In fact, the front-end class and backend class are very recognizable. Let's take a look at all the louts classes. Only the UIS belong to the front-end class, but those without the UI are all backend classes.
Image
Notesuidocument, notesuidatabase, and notesuiworkspace are all front-end classes.
The front-end class, as its name implies, refers to the objects that can be obtained from the front-end, that is, visible to the front-end.
Backend class, the corresponding object is obtained by the background, similar to the invisible to the foreground. For example, notesdocument and notesdatabase
Is this clear?
Here is another example.
If we double-click to open a document on the workbench, this document must be at the very beginning and we can see it. This document is notesuidocument, and so on, therefore, the database where this document is located is also in front (after all, this document is also part of the database, and the document is on the front end, which means the database is also on the front end), that is, notesuidatabase. Similarly, we can think that this database is part of the workbench, so this workbench is notesuiworkspace.
If you have learned other languages, the front-end class is like the object created by greatobject (), and the back-end class is like the object obtained by GetObject.
The biggest difference between the two categories is "visible" and "invisible".
An object can be obtained from a front-end object or a back-end object. This mainly depends on the idea of the designer. For example, how to obtain the value of Domain A in a document that has been opened at the front end.
Backend class: Doc. A (0)
Front-End Class: uidoc. fieldgettext ("")
If this document has not been opened at the front end, you cannot obtain the notesuidocument object. Of course, you must obtain the value of Domain A in this document and only the backend class. Doc. A (0), it can be seen that the back-end class has a wide range of use, while the front-end class has a narrow range of use, ------- must be opened or visible on the front-end.
The front-end class is also related to the back-end class. Generally, If you obtain the front-end class object, you can certainly obtain the corresponding back-end class object.
For example:
Set DB = UIDB. Database
Set doc=uidoc.doc ument
In turn, if the backend class object is obtained, the corresponding front-end class object cannot be obtained. Since the end object is not necessarily open or visible at the front end.
Do you understand the difference between the front-end class and the back-end class? If you have any questions, please post them. For other content of this lotus script, this version will continuously publish system stickers for [learning design Together]. You are welcome to join us and ask questions.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.