cancel
Showing results for 
Search instead for 
Did you mean: 

UI API or UI/DI Addon

former_member193355
Contributor
0 Kudos

Dear All,

I would like to create addon that can help me to delete 30 or more rows in a sales document or purchase document all at once but not one by one. Do I need to create UI or UI/DI Addon ? Pls give advice. TIA

Rgd,

Steve

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Steve,

I would agree with David, you can do this using just the DI API if you design a windows form to give the user control. The only real advantage of combining the UI and DI in a project like this would be to preserve the look and feel of Business One by adding a custom form in the application to allow the user to specify which rows to delete.

When working with rows in the DI API, LineNum starts at 0 but in the application the first row visually appears as 1 so you will need to compensate for this in your loop.

Regards

Niall

SAP Business One Forums

Answers (2)

Answers (2)

Nussi
Active Contributor
0 Kudos

Hi Steve,

you can do the User Interaction in a Windows Form where the user can

select the start and end-document. than you only need DIAPI and you still have

a user interace (the only thing is you lose the SAP look & feel )

lg David

Former Member
0 Kudos

Steve,

It all depends on how u design ur add-on to work. If u want to directly delete the documents from the database without any user interaction from the UI then using DI is fine. But if u want to start the delete process with UI interaction then u have to go for the UI /DI model.

hope it helps,

Vasu Natari.