Quantcast
Channel: SCN : Unanswered Discussions - SAP Business ByDesign
Viewing all articles
Browse latest Browse all 4032

I'm using Query provides search function, but cause I can't delete function.

$
0
0

Hi experts,

 

My requirement is add he search in my BO(ProjectMaintenance), so I create a Query object(Overview01),

But I had to use RemoveRow on the List can not work, so I used the other way to solve, but it does not work.

I would like to ask the experts, are there errors or missing steps?

 

1) My BO Code:

The Delete Action code did not start to write, I adjusted to remove additional prcessing code

2016-8-20 下午 04-23-44.png

 

2) To search function, I created a Query.

2016-8-20 下午 04-24-38.png.

 

3) I open in UI Designer OWL UI Screen, on DataModel tab, I bind my DataList to Overview01

then name is automatically changed to Overview01

2016-8-20 下午 04-28-16.png

 

4) Controller tab, Open Queries, I select Overview01 and click bind Query,

Then add Parameter(ProjectID, ProjectName, Closed, SearchText)

2016-8-20 下午 04-53-04.png

The Basic Search is Ok

2016-8-20 下午 04-59-12.png

 

5) OWL add a LayoutStackPanel, appear as icon

Before had no use Query, delete' EventHandler the following

 

2016-8-20 下午 05-03-25.png

When I click delete icon to delete records, Exception Occurred.

2016-8-19+下午+02-40-38.png

 

6) Earlier in the discussion: http://scn.sap.com/message/16903960#16903960

I understand the need to use other way to do.

Add code: Action Delete (ProjectMaintenance.bo) and this.Delete() (Action-Delete.absl)
2016-8-20 下午 05-15-18.png

 

7) I change my EventHandler: RemoveRowHandler

Operation 1

Type: BOAction

Instance Binding: /Root

I focus on ProjectMaintenance->Delete and click Bind Action button

2016-8-20 下午 05-17-56.png

 

Operation 2

Type: List

Operation: Refresh

Target List: /Root/Overview01

2016-8-20 下午 05-17-11.png

8) Test result, When I click delete icon, show message, But the records still exist.

2016-8-20 下午 05-20-59.png

9) I change BOAction Instance Binging from /Root to /Root/Overview01

2016-8-20 下午 05-25-14.png

I have not run out of any data, system sent directly error

2016-8-20 下午 05-25-48.png

 

 

I hope the above information and description let experts know enought my issue.

Sincerely hope you can offer me some advice to solve it.

Is there some details of the setting, I overlooked or omitted?

Please give me a clear approach.

 

Thank you very much.

 

Best regards,

Daniel.


Viewing all articles
Browse latest Browse all 4032


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>