String format not working.

Comments

4 comments

  • Avatar
    Leandro de Oliveira Fernandes

    The functionality i've try to apply to the string is the same tested on the online format test page (C#).

    0
    Comment actions Permalink
  • Avatar
    AgilePoint NX Support

    Can you try this .

    Convert.ToString(String.Format("{0:000'.'000'.'000'-'00}",Convert.ToInt64(${/pd:AP/pd:processFields/pd:Extrato_CPF})))

     

    0
    Comment actions Permalink
  • Avatar
    Leandro de Oliveira Fernandes

    Hi, works now!!!
    Thank you for the help, a simple conversion to int, resolved the problem.

    Before

     

    After:

    0
    Comment actions Permalink
  • Avatar
    Tsuyoshi Serita

    Hi, 

    I will share other sample.

    ((string)${/pd:AP/pd:processFields/pd:Extrato_CPF}).Insert(3, ".").Insert(7, ".").Insert(11, "-")

     

    Best Regards,

    0
    Comment actions Permalink

Please sign in to leave a comment.