cancel
Showing results for 
Search instead for 
Did you mean: 

Removing elements

IanStubbings
Active Participant
0 Kudos

Hi

I have a situation where I have an input box that I fill with a business partner number. I then press a button to add the details from the bp to a table. So far so good.

My issue arises when I use remove_element to delete the entry from the table as this causes an error with the input box still being bound to the context element.

How do I remove the reference to the element?

Cheers

Ian

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I would suggest that you change the lead selection on the context node before deleting the element. You will also need to check to see if this is the last element in the node. You can't delete that element otherwise you will run into the same error. I suppose you would just clear the attributes of the final element - or easier yet - bind a new initial element and then delete your last element that has data.

IanStubbings
Active Participant
0 Kudos

Hi Thomas

My issue was that it was the last element that I was wanting to delete and hence the error occurred.

I have decided to use a different node to bind the table to, so that it is independant of the input field.

Mayn thanks for your help.

Cheers

Ian

Answers (0)