It looks like you're new here. Sign in or register to get started.
Enabled Key KeyGroups Yes VAT Registration No VAT in C/AL Customer.KEYGROUPENABLE(VAT);
manishgoyal wrote: no i just want to know can be activate/ deactivate keys using C/AL.
Slawek Guzek wrote: Yes, you can manipulate keys from C/AL code. Without using key groups and KEYGROUPENABLE or KEYGROUPDISABLE functions. Regards, Slawek
KeyRec.SETRANGE(TableNo,18); KeyRec.FINDLAST; KeyRec.Enabled := TRUE; KeyRec.MODIFY;
Comments
You could try setting key groups and then use
KEYGROUPDISABLE Function
KEYGROUPENABLED Function
Check the online help.
If you set a keygroup on let say the customer table
The basic question is : Why are u trying to do this?
http://ssdynamics.co.in
Regards,
Slawek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Hi
A little example:
KeyRec is a record of table "Key"
This example enable the last key of table "Customer".
I think it require table designer granule (if this code is executed with a customer nav license...)
Bye
Matteo