What to do: |
|||||||||||||||||||||||||||||||||||||
![]() |
In this example you will learn how these dialogue forms have been created and how they are used to build this specific assistant. The general abbreviation for this assistant is , the main LogiView procedures are stored in the logic model .This assistant uses a set of three dialogue forms to prompt for specific data. With this information, the assistant creates:
All functions are performed in a database transaction. This ensures the consistency of the database. |
||||||||||||||||||||||||||||||||||||
![]() |
In the second dialogue form of the given assistant, the user can select one or more groups as listed in the left (source) sub-list and move them to the right (target) sub-list. The main dialogue form does not have any input fields. Check out the definition of the form and the both sub-lists , . Pay attention to the different userexits defined for the two sub-lists.The set of buttons is automatically positioned in the lower right corner and the user can navigate back to the previous dialogue form, to the following one or cancel the assistant. Open the second Dialog FormFrom the definition of the assistant, the LogiView procedure "EP_ASS/USR_GRPOpn" is executed to open this second dialogue form. The first action in this procedure is to get a reference on the assistant top widget, which is a virtual widget with the definition of the currently executed assistant (line 10). With this widget identifier any value that has been entered in any dialogue form so far can be accessed, so for example the entered user name (line 20). According to the current language, this user name is used to define a dynamic explanation text (line 40 and 60). The userexit 'xform_call_dlg' is executed with several arguments (line 80):
Listing of LogiView procedure
Business Application Logic of the second Dialogue FormThe business application logic of the second dialogue form is a single post mask userexit on the target sub-list. Here a LogiView procedure is used to check, if at least one group has been selected (because a user with a group assignment will not be complete). |