Skip to Content

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

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

2) To search function, I created a Query.

.

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

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

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

The Basic Search is Ok

5) OWL add a LayoutStackPanel, appear as icon

Before had no use Query, delete' EventHandler the following

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

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)

7) I change my EventHandler: RemoveRowHandler

Operation 1

Type: BOAction

Instance Binding: /Root

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

Operation 2

Type: List

Operation: Refresh

Target List: /Root/Overview01

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

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

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

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Aug 20, 2016 at 01:55 PM

    Hi Daniel,

    On the 7th Step

    In the Operation 1:

    Change the Instance binding as below:

    1. Instance Biniding : Root/Overview01

    Find & Bind, your delete Action under

    2. ProjectMaintenance -> Overview01 -> ToRoot -> Delete

    This Step is enough for the deletion.

    For Refresh, kindly follow the below step.

    Example: Configure the OWL to Auto-Refresh

    Regards,

    Senthil

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 22, 2016 at 11:35 AM

    Hello Daniel,

    The main problem is you cannot use "Delete()" keyword for your custom function as it is reserved by standard. Use a different name and averything will be fine 😊

    Regards,

    Saurabh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.