CodePudding user response:
No one will be? For helpCodePudding user response:
Button is added in the dw is easy, design interface in dw, select insert - control - button, you can see the button properties: you can fill in the name of the button (text); Perform operations option (action), such as user customization, search, delete, update, and so on... ; Pucture plus picture filename is the file you want to... ,As for your requirement of saving data, there are two ways:
One is directly in the action select update (13), after the program is running, click on it, the data in the data window can be saved to the SQL database,
And how it is to select the user to define the user define (0), this is a more flexible way, can you write a script to control operation, but in the window containing the DW case writing script to achieve the DW,
General in the dw clicked event:
IF dwo. Name='b_1 then//which b_1 is the add button name, you can define your own
//write you want to do action
END the IF