Tally Prime Default Menu - Customization- Help

Discussion in 'Requests' started by Varadha, Aug 23, 2023.

    
  1. Varadha

    Varadha Member


    Hi Every One,

    I modified the Tally Main function in such a way that when i enable my module the default menu should display both Gateway of Tally and My module menu in Two lines when company is selected and once disabled Gate way of Tally menu should display. My code is working fine but the problem is tally is required to be closed or refreshed to get the intended Menus immediately after exiting the Addon window. I am requesting you all to help me to fix the refresh issue so that once i come back from enable and disable report respective menus should display without requirement of manual intervention. Thanks in Advance.
    I am attaching my code and Sample company along with Pictures for reference.
    Please let me know any queries in this regard.
    My contact details are
    E-Mail - vardha.raju@gmail.com
    Mobile No. 9490128503
     

    Attached Files:



  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    At the end of the LINE containing switch over of menus -- add --- REFRESH TDL

    Type "refresh TDL " in developer on its usage and implement in your function code.
     


  3. Varadha

    Varadha Member


    Hi Amit sir,
    Thanks for your quick response. I tried to implement your suggestion and adopted in the following manner

    521 : If: ($$SelectedCmps > 0) and Not ($IsEnableCollegeSoftwareModule1:Company:##SVCurrentCompany)
    523 : Menu:Gateway Of Tally
    524 : Do If : $$QuitUnconditionally : BREAK
    525 : Do If : $$SelectedCmps < 1 : CONTINUE
    526 : End If

    526A : refreshTDL
    521A : If: $$SelectedCmps > 0 and ($IsEnableCollegeSoftwareModule1:Company:##SVCurrentCompany)
    523B : Menu : Main MenuOld;Main Menu;Gateway Of Tally
    524C : Do If : $$QuitUnconditionally : BREAK
    525D : Do If : $$SelectedCmps < 1 : CONTINUE
    526E : End If
    526B : refreshTDL

    but there is no change in the output and TDL is not refreshed need to close Tally or use esc key to change the display behaviour. Please advise
     


Share This Page