Button Script & Popup

Hi,

Main view had one button, to remove the part number from SQL table. Once the button is clicked it will open popup to ask 'Are you sure want to delete' if press 'Yes' the particular record will remove from SQL table and popup need to close.

Here, when pressing 'Yes' button record is not removed, but popup is closed. For popup close am using 'onActionperformed' --> Popup

before popup my script is there, to remove the record from SQL table.

If script and popup close both are present, record is not removed from SQL table when pressing 'Yes' button.

If popup close option is removed from 'onActionperformed', record is removed from SQL table when pressing 'Yes' button
1
.

So, is there a question ? What's the issue here ?

If you're just looking for an explanation:
The actions are not ordered. The popup is likely closed before the script gets a chance to execute.

without deletion of record, popup is closed. That is my issue.

After removing table record only, need to close popup.

Close the popup from your script with system.perspective.closePopup.

ya, it's working now.

Thanks.