01.HelloWorld
02.CatchingEvents
This sample program shows how to catch the events triggered by the SAP Business One application. These include:
-
Application events - events triggered by actions on the Company database of the SAP Business One application.
-
MenuEvent events - events triggered by actions on the main menu and the menu bar.
-
ItemEvent events - events triggered by actions on forms and items.
-
ProgressBar events - events occurring while the progress bar is activated.
-
StatusBar event - event triggered by sending a message to the application status bar.
For each event,the sample program displays a message Box including the name of the event and the form (or item) name and ID.
03.SimpleForm
This sample program demonstrates how to add a user form and items. The form includes the following elements: @H_403_47@StaticText,@H_403_47@EditText,ComboBox,and @H_403_47@Button . The @H_403_47@ComboBox and the @H_403_47@EditText elements are bound to @H_403_47@UserDataSource objects in order to manage data on these elements.
Finally,the program shows how to save the new form as an XML file.
04.WorkingWithXML
05.AddingMenuItems
06.MatrixAndDataSources
This sample program demonstrates creating a form with a matrix,create data sources,bind the data source to the matrix columns,and fill the matrix with data.
When running the sample,the form Matrix Form opens in the application,and the matrix is filled with user information (name,email,and phone number) taken from the OUSR table.
07.ComplexForm
This sample launches a form with two folders. Each folder contains different items. The sample shows how to create a form with folders and manage them correctly in the UI API.
08.EventsFilter
This program performs event filtering on the Order and Purchase forms. At run time,the sample will present a message Box whenever one of the specified events occurred on one of these forms. Events on other forms will be ignored by the program.
09.ProgressBar
This sample shows how to activate the application progress bar. The sample's form includes four buttons:
-
@H_403_47@Start - creates the application progress bar.
-
@H_403_47@Back/Forward - moves the progress bar display one step backward or forward.
-
@H_403_47@Stop - stops the progress bar.
10.StatusBar
This sample demonstrates sending status bar messages. In the sample's form,you can set the message text and type. Choose Display Status Bar ,to send the massage to the application status bar.
11.SystemFormManipulation
This sample demonstrates modifying the SAP Business One application forms. The sample programs adds a new tab (@H_403_47@User Folder ) to the @H_403_47@Sales Order form.
16.ActiveX
This sample shows how to add an ActiveX component to your add-on,using the ActiveX object.
17.ChooseFromList
This sample shows how to create a Choose from List form and connect it to an item in your add-on form.
18.TabOrder
This sample shows how to set tab order to form items.
19.Grid
This sample shows how to use the Grid and DataTable objects to effectively create tables.
20. PrintEvent
This sample shows how to catch the PrintEvent event and use it to manage your own printing mechanism
21. FormSettings
This sample shows how to enable form settings to a form.
22. RightClick Sample
This sample shows how to catch and create right-click menu for form items.
23.CurrentPeriod
24. Form Data Event Sample
This sample shows how to catch form data events and use data received from the event as input for DI API methods without additional parsing.
25. Picker Sample25. Picker Sample
This sample shows how to use the PickerEvent object.
原文链接:https://www.f2er.com/vb/261528.html