How to toggle to change Decimal Value Of Group Summary

Discussion in 'Requests' started by HAROON2015, Oct 19, 2019.

    
  1. HAROON2015

    HAROON2015 Member


    hi,
    How to toggle to change Decimal Value Of Group Summary
    tried in this way but not working
    Code:
    [#Form : Group summary]
    button : SetDecimalValue
    
    
    [button: SetDecimalValue]
        Key         : ctrl+C
        Title     : "DecimalChange"
            Action     : Set : format:"decimal:2"
    
    [Variable : SetDecimalValue]
        type : Logical
    
    [System : Variable]
        SetDecimalValue : no
     


  2. balajimg

    balajimg Active Member


    "format : " works on field level
     


  3. HAROON2015

    HAROON2015 Member


    yes
    i want to change fields format using button
    [#field:DSP ClDrAmtA]
    format:"decimal:2"


    [#field:DSP ClCrAmtA]
    format:"decimal:2"

    i want to play this code using button
     


  4. Ria

    Ria Member


    Code:
    [#Form : Group summary]
    button : SetDecimalValue
    
    
    [button: SetDecimalValue]
        Key         : ctrl+C
        Title     : "DecimalChange"
            Action     : Set : SetDecimalValue : NOT ##SetDecimalValue
    
    [Variable : SetDecimalValue]
        type : Logical
    
    [System : Variable]
        SetDecimalValue : no
    
    [system : formula]
    
    SetDecVal : If ##SetDecimalValue then "decimal:2" else "decimal:0"  ;; use this formula in those fields
    
    ;;like this
    
    [#field:DSP ClDrAmtA]
    format:@@SetDecVal
    
    
    [#field:DSP ClCrAmtA]
    format:@@SetDecVal
    
    
     
    balajimg and HAROON2015 like this.


  5. HAROON2015

    HAROON2015 Member


    thanks you very much.
    you saved my life :)
     


Share This Page