System Date as Current Date not Working in Prime

Discussion in 'Free Source Codes' started by Jeevaraajan, Jul 12, 2021.

    
  1. Jeevaraajan

    Jeevaraajan New Member


    This Code works good in Tally ERP but is shows an error in Tally Prime " Could not find the default TDL Defenition of Form : CMP Select Action Form"

    Please Help me solve this Issue


    Code:
    [#Form : CMP Select Action Form]
    On : Form Accept : @@IsValidDate : Execute : ActivateCurrentDate
    [Report: ActivateCurrentDate]
    Use : Modify Variables
    Local : Part : Modify Variables : Lines : ActiveSV Current Date
    Local : Field: MV Title : Info : $$LocaleString:"System Date or Enter Working Date"
    Local : Field: MV Title : Color : Blue
    Local : Form : Modify Variables : Space Top : 1
    Local : Form : Modify Variables : Space Bottom : 1
    Local : Form : Modify Variables : Space Left : 6
    Local : Form : Modify Variables : Space Right : 6
    
    [Line : ActiveSVCurrentDate]
    Field : Active Current Date
    [Field: ActiveCurrentDate]
    Fields : ActiveCurDate, SVEffDate
    [Field: ActiveCurDate]
    Use : Short Date Field
    Modifies : SVCurrentDate
    Variable : SVCurrentDate
    Validate : $$Value >= ##SVFromDate AND $$Value <= ##SVToDate
    Set as : $$MachineDate
    Width : 10
    Align : Center
    [System: Formula]
    IsValidDate : $$MachineDate >= ##SVFromDate AND $$MachineDate <= ##SVToDate
    
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Search for [Report: Select Company] in Prime Developer....... (press CTRL+D]

    therein you will get the FORM name.......change the new name in the above code.
     


  3. abhinand vk

    abhinand vk Active Member


    [System: Events]
    CmpLoadEvent : Load Company : @@IsValidDate : Execute : ActivateCurrentDate
    ;;Try This this will work on both Releases
     


  4. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    it will work, but Still ... it will not work for above code ....as there is a reference to a FORM of ERP9 ........that is what the error message is about.
     
    Samiksha likes this.


  5. Jeevaraajan

    Jeevaraajan New Member


    ZEBTh

    Thank You for your Guidence Sir
    I Had solved the Issue
     


  6. Rajsrisrimal

    Rajsrisrimal Member


    sir
    can you post the TDL code
     


  7. MANU JOSE C.A

    MANU JOSE C.A New Member


    Instead of [#Form : CMP Select Action Form]
    Use : [#Form: Select Company List]

    [Variable: Login_Count]
    Type : Number

    [System: Variable]
    Login_Count : 1

    [#Form: Select Company List]
    On : Form Accept : Yes : Form Accept
    On : Form Accept : Yes : Call : Fix_SystemDate

    [Function: Fix_SystemDate]
    310 : SET : SVCurrentDate : $$MachineDate
    320 : IF : (##Login_Count = 1)
    330 : Action : Modify Variables : ActivateCurrentDate ;;(same code above)
    340 : End If
    350 : Increment : Login_Count
     


  8. FreeLance-Tech

    FreeLance-Tech New Member


    Try this ... ;););)

    Code:
    [System    : Events]
      
        LoadCmpSelected    : Load Company    : Yes    : Call    : SetMacDate
      
    [Function    : SetMacDate]
      
        100    : Set : SVCurrentDATE : $$Date:$$SysInfo:SystemDate
    
    [#Report    : Voucher]
       
        Set        : SVCurrentDate  : If $$InCreateMode Then $$SysInfo:SystemDate Else ##VarVchDate
    
    
     
    Last edited: Jul 27, 2021


Share This Page