How to disable alteration of Voucher by checking logical UDF

Discussion in 'Tally Developer' started by Vinothkumar S, Aug 17, 2012.

    
  1. Vinothkumar S

    Vinothkumar S New Member


    Hi Experts,
    I want to disable alteration of voucher by checking my Logical UDF. I use the following code to get this one. But its not working correctly.

    [#Key : BottomToolBarBtn2_Accept]
    Option : InactiveKey : $MyLogicalUDF

    [!Key: InactiveKey]
    Inactive : Yes

    The above code disables Accept button. But Ctrl+A is not disabled. i need to disable the key Ctrl+A also.

    Please guide me to get this one.


    Thanks in advance
     


  2. admin

    admin Administrator Staff Member



    [#Key: Form Accept]
    Option: InactiveKey : $$IsVoucher AND $MyLogicalUDF
     
    Vinothkumar S likes this.


  3. Vinothkumar S

    Vinothkumar S New Member


    Thank You Very Much this is working fine.But when we pressing TAB key till the end of the form, the voucher gets altered.I need to block this also.

    Please guide me to get this one.

    Thanks in advance.
     


  4. admin

    admin Administrator Staff Member


    [#Form : Voucher]
    Control: MYVCHCtrlMsg: $$InAlterMode and $MyLogicalUDF

    [System : Formula]
    MYVCHCtrlMsg : "You do not rights to alter"

    ;; This will control the form to save even if buttons are active
     
    Vinothkumar S likes this.


  5. Vinothkumar S

    Vinothkumar S New Member


    Thanks a lot for your reply.it working fine.thanks a lot.:)
     


  6. vivekagra2004

    vivekagra2004 New Member


    i have a same question if you find answer please share
     


  7. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Solution has already been given............
     


  8. vivekagra2004

    vivekagra2004 New Member


    th
    thanks for replay
     


Share This Page