Document property on screen

Hi All,

How can we get document extension of an uploaded document in a form without going to process model?

OriginalPostID-248919

  Discussion posts and replies are publicly visible

Parents
  • @akanksham

    Afaik there is no way to get the extension without going to the process model, but there is a workaround through which it can be achieved

    Use this in you section where you want to display the extension of the file

    rule!getFileExtension(a!fileUploadField(value:ri!image_doc).uploadedDocumentName)

    where the rule "getFileEtension(fileName_txt text)" has

    if(isnull(ri!fileName_txt),"",reverse(split(ri!fileName_txt,"."))[1])

    Hope this is helpful
Reply
  • @akanksham

    Afaik there is no way to get the extension without going to the process model, but there is a workaround through which it can be achieved

    Use this in you section where you want to display the extension of the file

    rule!getFileExtension(a!fileUploadField(value:ri!image_doc).uploadedDocumentName)

    where the rule "getFileEtension(fileName_txt text)" has

    if(isnull(ri!fileName_txt),"",reverse(split(ri!fileName_txt,"."))[1])

    Hope this is helpful
Children
No Data