How to access files in a BO?

  • Radostin Minchev
    Participant
      Has successfully completed the online course Basics (100)
    2 years, 6 months ago #35071

    Hello,

    I have a PDF file uploaded in the Assets of my application and I want to get this PDF in a BO. Is it possible, or should I store the file somewhere else?

    Thank you!

     

    Jennifer Häfner
    Moderator
      Has successfully completed the online course Intermediate (200)
      Has successfully completed the online course Advanced (300)
      Has successfully completed the online course Basics (100)
      Has successfully completed the online course Advanced (310)
      Has successfully completed the online course Advanced (320)
      Has successfully completed the Intermediate Certification
      Has successfully completed the Advanced Certification
    2 years, 6 months ago #35075
    Up
    1
    Down
    ::

    Sure, here is the link to the Standard Content transport for Simplifier 6.5/7.0: https://community.simplifier.io/downloads/standard-content/

     

    And here for Simplifier 7.1: https://community.simplifier.io/downloads/standard-content-7-1/

    Jennifer Häfner
    Moderator
      Has successfully completed the online course Intermediate (200)
      Has successfully completed the online course Advanced (300)
      Has successfully completed the online course Basics (100)
      Has successfully completed the online course Advanced (310)
      Has successfully completed the online course Advanced (320)
      Has successfully completed the Intermediate Certification
      Has successfully completed the Advanced Certification
    2 years, 6 months ago #35073
    Up
    0
    Down
    ::

    Hi Radostin,

    You can access files from the assets section in Client-Side Business Objects.

    For example, you can use the CSBO ‘SIMP_FileHelper’ – ‘readFileByUrl’, which is part of our Standard Content. This function takes the data URL as an input parameter and returns the file as a blob and base64.

    If your PDF in the assets section is called ‘Test.pdf’, then the corresponding data URL will be  ‘./data/Test.pdf’.

    Radostin Minchev
    Participant
      Has successfully completed the online course Basics (100)
    2 years, 6 months ago #35074
    Up
    0
    Down
    ::

    Hello Jennifer,

    ‘SIMP_FileHelper’ – ‘readFileByUrl’ is not imported in my Simplifier instance. Is there a Transport file available?

    Radostin Minchev
    Participant
      Has successfully completed the online course Basics (100)
    2 years, 6 months ago #35088
    Up
    0
    Down
    ::

    Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.