Description:This article is under the guidance of colleagues, I organized, I just started to contact IFS customer development, the wrong place please understand
STEP1: Building the Rose Modeltools used: Rational Rose4.0Basic steps:1. Set up class Diagram 2. Set up inter-class relationships
Precautions1. The class diagram is placed in the package 2. If the relationship is primary, the relationship is selected by reference, and if it is a value list, the relationship is selected by value 3. The use relationship uses the association, such as the category in the expense line, when the association is specified, and the primary key for the category is automatically added in the expense line
ResultsBuild the. mdl file with the. cat file
STEP2: Design Lutools used: Ifs/designBasic steps:1. Create a new project, name the project name, select the MDL file generated by the STEP1, name the module (System unique), select the template, as shown in the following figure: 2. Set the model property, such as setting the length of the Integer,string type property, as shown in the following figure: 3. Under Business Logic (PL/SQL), double-click on the related LU and do not enter anything in the popup window, click OK. The relevant information is generated, as shown in the following figure: 4. Right-click on the logical unit and save as API and Apy file, as shown in the following figure: 5. Double-click Storage (Oracle) on the directory tree, do not enter any information in the pop-up dialog, click OK, and then enter the CRE file name and save it as CRE files. 6. Edit the CRE file (Notepad), defining constants such as data, indexes, storage spaces, and so on, such as: Define Moonep_data=ifsapp_date define Moonep_index=ifsapp_index define No Rmal = ' Initial 10k '
ResultsGenerate Api,apy,cre File
Precautions1. If ifs/design cannot logon server, add the IFS system installation path (Sql.ini directory) 2 in the System environment variable path. If the model changes, you can re-create the project to overwrite the original project, and the changes made in the original project will not affect the application to the new project. 1. Generating the. mdl file with the. cat file
STEP3: Generating Database Objectstools used: Admin.exeBasic steps:1. Open SQL File excuter 2 in the directory tree. Execute CRE, API, APY file in turn
Resultstables, indexes, views, stored procedures, and functions in the database
STEP4: Developing the Client interfacetools used: IFS Client Developer (developer.exe)Basic steps:1. Run Developer.exe, the system generates Application1 project by default, save as required project name. such as Moonexpense. 2. Create the window that you want, such as create a Ctablewindow type window, named the Self application window name 3. Click on the toolbar, fourth button (Foundation1 properties), set the relevant properties, specify Component,logic unit,view,package
ResultsGenerate APL File
Tip1. When naming the window name, pay attention to the prefix, otherwise there will be unexpected errors, such as I will TBW written in Tbl, when hooking up in the AAP, there is Navigate abnormal phenomenon. 2. In the Outline window, to change the position of item (such as Function,constants), press the Alt+arrow key.
Step5: Attach the APL to the main application windowDescription: IFS Client Developer (developer.exe)This example hooks into a separate application window, which can be attached to any application main window, such as distribution, finance, manufacturing, etc. but needs to edit the source code of each application and add the relevant menu.
tools used: IFS Client Developer (developer.exe)Basic steps:1. Click the Menu "File", "New" and select "IFS starter Application". 2. Create the Cmdiwindow and modify the name 3. Click "Outline" of the created Cmdiwindow to open "message Actions", create a handle for Pm_userloginok message, and invoke <your application name> Tonavigator function 4. You can also create intrinsic functions internal function), as shown in the example below: Create a handler for the Pm_applicationinit message, Open the "function" section of the MDI Window object, Create a function called <your application Name>tonavigator. (Figure one: Adding a function call to the Message Actions figure II: function definition figure III: a constant definition used in a function Figure IV: Associated APL with App 5. Compile the program, or you can compile it into an EXE file.
ResultsExe file, or app file
step6:localization
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.