Skip to Content
0
Aug 24, 2015 at 11:33 AM

Delete a row from table

61 Views

Hi @all

I'm really new to SAP HANA and SAPUI5 and I'm trying to do some first projects. Currently got a person list working. (See tutorial: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40371b91-7e95-3110-e29a-cde3b1447491?QuickLink=index&…) Now I want to add some features to that application without any tutorial but I'm actually not really moving forward...

What I want: Select ONE row and delete it after confirmation.

How do I start with this when I have no idea how to do it? I googled a little bit but didn't find anything useful.

What I tried so far: I added a function in the controller named "removePerson". But how do I state a delete action?

I am pretty good with SQL, is there an option to just do this with SQL, so that I can just call an SQL-Script?

And how do I start a dialog / action when I select a row?

I have already read a little bit into the dialog function, so I know how to fill a dialog with content and how to show it.

Anyone willign to help me with this beginner problems?

Attached you can find a couple screenshots of whats actually there...

Attachments

Capture2.PNG (49.1 kB)
Capture.PNG (21.1 kB)