Changing column titles to row titles of existing report

Discussion in 'Tally Developer' started by Bibek D., Nov 23, 2018.

    
  1. Bibek D.

    Bibek D. New Member


    This code has been developed by developers of this forum and available in the Free Source Code section. However, I have been trying to upgrade it and change the row(stock items) into column heading and column items (party names) into rows heading for better analysis of the report. However, I have failed till now. I wish I get some help in it. Thanks in advance to experts and senior developers.
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Watch and study the Pname which is partyname and Iname which is Itemname.

    Interchange that and also re-align the fields...........

    It is not that hard............try it............

    Collections will remain same....just re-align the data fields.
     


  3. Bibek D.

    Bibek D. New Member


    PName is the Party Name and IName is the Itemname...I had no confusion in that...however, i had problems in aligning the field
     


  4. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    My dear friend .......it took me 5 minutes to re-align..................

    first picture is as per your TXT file..........
    11Capture.PNG

    Second picture is re-aligned...........
    11Capture.PNG 22Capture.PNG
     


  5. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Check out the TOTALS..............it is same and perfectly re-aligned.............
     


  6. Bibek D.

    Bibek D. New Member


    i have been scratching my head on this for quite a while now.. i altered the position of Pname and Iname too... But realigning the fields got me confused... I need some clue to get it right...
     


  7. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    just follow my instructions..... interchange all INAME and PNAME.......... also there is one variable.... change it from Pname to Iname

    In Part:CBFK party .................. in repeat........ change the collection name from Item to party.

    Also in Report level...change this ------ Set : DSPRepeatCollection : "Smp Stock Item"

    There is one ... myformula .... it is like this ... 1 + 2 ............ change it to 2 + 1

    Do not touch any collections........

    That's all.
     


  8. Bibek D.

    Bibek D. New Member


    Got it. Thanks for the help.
     


  9. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Good...then show screenshot..............
     


  10. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    now try and see..... let see where error is coming
     


  11. Bibek D.

    Bibek D. New Member


    there is no error message.... the party name is shown in rows as we want but stock item is not visible nor is any data.
     


  12. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    paste revised code here
     


  13. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Set : DSPRepeatCollection : "Smp Stock Item"

    Local : Field : CFBK Rep Party : Set as : ##pname
    ===change to Iname.

    Obviously you have not done it properly.... nor read my instructions properly either
     


  14. Bibek D.

    Bibek D. New Member


    Sorry sir, I tried my best but got confused. Thanks for the guidance. I got the desired display but on pressing enter in the party name, stock item display box is opened. Should i do all the coding by altering every field or slight change will do?
     

    Attached Files:



  15. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    look up in TDE..... search "display : ledger" .... watch, read, understand and then implement in your code.....
     


  16. Bibek D.

    Bibek D. New Member


    Thanks a lot for guiding despite your busy schedule. Done with this one. More importantly learnt new things. Thanks again.
     


  17. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    $$StrByCharCode:8377 for currency symbol

    To get currency symbol, you will have to make the field as Name Field and not Amount Field.
    If that is so, then you will not get the TOTALS at the bottom.
     
    Last edited: Nov 24, 2018


  18. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    In
    [Part: ProductwiseRpt]
    Add this Line.................
    Total : ProductTotalAmt, ProductTotalValue
     


  19. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    In...
    [Collection: CFBK Party]

    Add this line ...................
    Aggr Compute : Amount : SUM : $Amount
     


  20. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    It is working fine with me.....you must have made an error somewhere...........
     
    Last edited: Nov 24, 2018


  21. Bibek D.

    Bibek D. New Member


    Oh yes, i made an error. Thanks for rectifying me.
     


  22. Rais Ahmed

    Rais Ahmed Member


    Dear Sir,
    Partywise summary give error - " Function SVCurruntDate could not find orignal discription"
     


  23. Rais Ahmed

    Rais Ahmed Member


    Dears,
    Function Sv Currunt date has error that i rectified now it showing. Thanks for response.
    Regards.
     


Share This Page