pjohns
20th February 2014, 12:49
Hello,

I have a simple table which has three fields. One of which is a tc.yesno domain type.

If a user wants to delete a record from the session I want to put a check in place that will only allow the record to be deleted if the tc.yesyno flag equals 'No'

Can somebody please give me some pointers as to the logic needed in the program script?

Thanks in advance.

PJ

bhushanchanda
20th February 2014, 13:10
Hi,

If on LN, you can use a simple way:-

...
#include <bic_4gl2>
...
|Standard Command Example
function extern boolean mark.delete.is.allowed()
{
if no.delete.condition then
return(false)
endif
return(true)
}


Refer Similar Thread (http://www.baanboard.com/baanboard/showthread.php?t=65476)