decrease width of voucher number in ledger display

Discussion in 'Tally.ERP 9' started by silpa dravid, Sep 25, 2020.

    
  1. silpa dravid

    silpa dravid Member


    i tried to decrease the width of voucher number but cannot do it. i checked tally.developer and got
    this declared value. still could not get it

    [Field: DSP VchNumberTitle]
    Use : Short Name Title Field
    Width : @@DSPNumberWidth - 2
    Info : $$LocaleString:"Vch No."
    Align : Right
     

    Attached Files:



  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    When you are referring to Default Tally's field......... then you should put # sign before the Field.
     


  3. silpa dravid

    silpa dravid Member


    by mistake i forgot to put # in field but sir nothing happens
     


  4. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Nothing happening means you have not done any changes at all.....

    Your code above just echoes the default code of Tally........you have not made any change to the width at all............

    BTW...you code is referencing only the TITLE field and not the Field itself.... you will have to make the Width changes to both Title Field as well as the Data Field.
     
    Bipin Damania likes this.


  5. bharat shah

    bharat shah Member


    i also tried to impliment with this code but something missing

    [#Field: DSP VchNumberTitle]
    Color:Blue
    Local:Style:DEFAULT:Width : 2

    [#Field: DSP VchNumber]
    Color:Blue
    Local:Style:DEFAULT:Width : 2
     


  6. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    If you are directly referencing the field, then there is no need to use ---- Local:style:default

    Also this will not work, because the width definition is being superceded by its definition in LINE level.........

    e.g. refer -- LINE : DSP VchTitle --> there you will find the width.

    Same way find the LINE of the Data Field and you will find the width....
     
    bharat shah likes this.


  7. bharat shah

    bharat shah Member


    amit sir i am beginner in coding and i tried as u said but fail

    [#Field: DSP VchNumberTitle]
    Color:Blue
    Line:DSP VchNumberTitle
    [Line:DSP VchNumberTitle ]
    Local : Field : Name Field :Width : 2

    [#Field: DSP VchNumber]
    Color:Blue
    Line:DSP VchNumber

    [Line:DSP VchNumber ]
    Local : Field : Name Field :Width : 2
     


  8. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    [#Line : DSP VchTitle]
    Local : field : DSP VchNumberTitle : Width : 2

    Same way do for Data field..... i.e. DSP VchNumber

    Keep in mind ..... this will affect many other reports also, as this is a generic field.
     
    Jaydeep Shah and bharat shah like this.


  9. bharat shah

    bharat shah Member


    thank you amit sir
     


Share This Page