on 05-31-2013 9:20 AM
Hi
I have form having fields Code,Name . I want when user tries to delete record it should check that Code does not exist in another table say TEMP . If exists user should not be able to delete record.
Thanks
Hi Sunny,
As Kartheek said you can use Transaction Notification only if your form is a UDO form otherwise you have to do it in the code.
You can do it like (assuming you are providing user Right Click Delete Row Facility ) When user select delete row option --> In BeforeAction event run your query to check if the code for selected line exists in Temp table . If exists make bubble event = false else allow to delete row.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this,
1. Through Transaction Notification
2. Trough Code->Write a query to check in TEMP table. If exists make Bubble event = False.
Regards,
Prasad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi.
what prasad said is currect
you can achieve this one through the sdk code..
in menu event
If pVal.BeforeAction = False Then
If pVal.MenuUID = "1293" Then
oForm = SBO_Application.Forms.ActiveForm
Try
If (oForm.UniqueID = "VADISS") Then
oForm = SBO_Application.Forms.Item("VADISS")
'save code number in integer=code
'here run the query for value is existing in temp table or not
use if conditon
if()then
else
bubbleevent=false
end if
Hi Sunny,
If the form is binded to UDO and user is using delete option of the UDO, then you can write stored procedure(Transaction Notification).
Regards
Kartheek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.