Lock TDL for Tally serial number

Discussion in 'Tally.ERP 9' started by Hasan@123, Nov 27, 2018.

    
  1. Johar

    Johar Member


    [System : Event]
    cksappstart: system start : true : call : ckssrnolock

    [Function:ckssrnolock]
    01 : If: $$LicenseInfo:SerialNumber equal 732181329
    02 : Load TDL:"D:\DMS.txt" ;; replace this with your TDL name with path and extension
    03 : Else
    04 : Unload TDL:"D:\DMS.txt" ;; replace this with your TDL name with path and extension
    05 : End If
     


  2. Afjal Shaikh

    Afjal Shaikh New Member



    Sir Please Help Me in This customization file and use in one serial no
     


  3. Afjal Shaikh

    Afjal Shaikh New Member


    [#Form: Normal Day Book]
    Add:Bottom Parts : Daybook Total
    [Part : Daybook Total]
    Line : Daybook cr, Daybook inv tot
    [Line : Daybook cr]
    Right Field : Daybook dr, Daybook cr
    [Field : Daybook dr]
    Use : Amount Forex Field
    Set as : $$Total:DSPDBDrAmt
    [Field : Daybook cr]
    Use : Amount Forex Field
    Set as : $$Total:DSPDBcrAmt
    [#Part: DB Body]
    Total: DSP DBCrAmt,DSPDBDrAmt,DSP DBDrQty, DSP DBCrQty
    [Line : Daybook inv tot]
    Right Field : Inv dr, Inv cr
    [Field : Inv dr]
    Use : Qty primary Field
    Set as : $$Total:DSPDBDrQty
    [Field : Inv cr]
    Use : Qty Primary Field
    Set as : $$Total:DSPDBCrQty
     


  4. Afjal Shaikh

    Afjal Shaikh New Member


    where i am use the your field
     


  5. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Copy whole code either at the beginning or at the end of your code.
     


  6. Afjal Shaikh

    Afjal Shaikh New Member


    [#Form: Normal Day Book]
    Add:Bottom Parts : Daybook Total
    [Part : Daybook Total]
    Line : Daybook cr, Daybook inv tot
    [Line : Daybook cr]
    Right Field : Daybook dr, Daybook cr
    [Field : Daybook dr]
    Use : Amount Forex Field
    Set as : $$Total:DSPDBDrAmt
    [Field : Daybook cr]
    Use : Amount Forex Field
    Set as : $$Total:DSPDBcrAmt
    [#Part: DB Body]
    Total: DSP DBCrAmt,DSPDBDrAmt,DSP DBDrQty, DSP DBCrQty
    [Line : Daybook inv tot]
    Right Field : Inv dr, Inv cr
    [Field : Inv dr]
    Use : Qty primary Field
    Set as : $$Total:DSPDBDrQty
    [Field : Inv cr]
    Use : Qty Primary Field
    Set as : $$Total:DSPDBCrQty

    [System : Event]
    cksappstart: system start : true : call : ckssrnolock

    [Function:ckssrnolock]
    01 : If: $$LicenseInfo:SerialNumber equal 732181329
    02 : Load TDL:"D:\DMS.txt" ;; replace this with your TDL name with path and extension
    03 : Else
    04 : Unload TDL:"D:\DMS.txt" ;; replace this with your TDL name with path and extension
    05 : End If
     


  7. Afjal Shaikh

    Afjal Shaikh New Member


    Not working sir
     


  8. Johar

    Johar Member


    You create 2 Files
    1). Your TDL file (Say dmy.txt)
    2). The file which I have sent (say Afjal.txt)

    Now load only afjal.txt it will check for Serial No.

    And don’t forget to change Serial No of Tally
     


  9. Johar

    Johar Member


    Sorry it is DMS and not DMY
     


  10. Afjal Shaikh

    Afjal Shaikh New Member


    when i am upload this file after that file is working but In actually file coming a error because my serial no in different so file is not coming a Error
    Please help me
    I want when i am put the serial no in a file then file work only those serial no who in the file other wise other serial no file come error
     


  11. Afjal Shaikh

    Afjal Shaikh New Member


    sir please can u do this please
     


  12. Johar

    Johar Member


    not able to understand what u r trying to tell
     


  13. Afjal Shaikh

    Afjal Shaikh New Member



    please can u do this
     


  14. suyash agarwal

    suyash agarwal New Member


    working superb nice codes for a single tdl.

    step 1- open notepad save the code

    [System : Event]
    cksappstart: system start : true : call : ckssrnolock

    [Function:ckssrnolock]
    01 : If: $$LicenseInfo:SerialNumber equal 732181329
    02 : Load TDL:"D:\DMS.txt" ;; replace this with your TDL name with path and extension
    03 : Else
    04 : Unload TDL:"D:\DMS.txt" ;; replace this with your TDL name with path and extension
    05 : End If

    step 2- now change your serial no with 732181329
    step 3- give the location of your tdl as mentioned
    step 4- save this code
    step 5- now dont load your noramal txt file of your code, just load this file if serial no is same it will load the new tdl of location otherwise not.
     


  15. suyash agarwal

    suyash agarwal New Member


    Elders and friends , I am new to tdl languagge but i know few things about code , so please tell me where can i learn tdl from basic
    please help me.
     


  16. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Start going through small TDLs .......... understand the working........ take it step by step...and see how it affects for each changes in the code.
     


  17. Hemant_panchal

    Hemant_panchal New Member


    This code is no use, for locking text tdl to serial number.

    After start

    User can explicitly can load text tdl.

    And
    If we can compile the file, we can set serial number in property windows to be lock.

    Btw,

    What is the event handler for
    Load tdl file,
    How to capture event load tdl.
     


  18. Mukesh Garg

    Mukesh Garg Member


    Sir I want to punch same file with serial not to link of other file how it is possible
     


Share This Page