Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Unable to delete record from ListGrid using removeSelectedData()

$
0
0
Smarclient Version: v10.0p_2015-04-01/Enterprise Development Only

In our application, we have an event subscription ListGrid which contains event and their details. This ListGrid is updating the database and getting data from database. After upgarding to 10.0, we are facing an issue in deleting an event from event subscription ListGrid. Although, we are able add an event in the ListGrid but unable to delete it.

We are calling removeSelectedData() function of ListGrid class on click event of delete button but unable to delete it. The same functionality is working fine with 8.2 smartclient libraries.

After doing some research, we found that in 8.2, HttpServletRequest request object contains multiple key-value pairs which defines a particular event. Following are the key-value pairs sent in the HttpServletRequest object.

key=Name value=BusinessProcessFailure
key=Description value=When FileGateway fails to complete a Business Process. Has a link to the business process.

key=EventSubscriptionKey value=201507140120543217768
key=DisplayName value=Business Process Failure
key=EventCode value=FG_0250
key=_selection_247 value=true

Based on above key-value pairs we have written our logic to delete an event from the event subscription list.

After upgrading to 10.0, HttpServletRequest request object contains only one key-value pair i.e
key=EventCode value=FG_0250

Because it doesn't contain other key-value pairs, our logic to delete an event is failing.

Can you please suggest us why the request object doesn't contain other key-value pairs for the http request sent on calling removeSelectedData() function of ListGrid?

Note: I have attached a screenshot of the error

Attached Images
File Type: jpg deleting a record in ListGrid issue.jpg (30.3 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles