Announcement

Collapse
No announcement yet.

Download and Select options

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Download and Select options

    Hi,

    I have a question regarding the download of documents. If I offer a file for download via this link:
    ..../?entryPoint=download&id=

    When you click, a window from Espo appears in which you are prompted to enter a user name and password. Is there a possibility that the user has to enter his own login data there?
    (Upload an Image for that)

    The second question would be how do I get the options of a select box. I use php and send requests through Espo's API class. But how can I address a select box on an entity and get the available options?​

    Thanks for the help.

    Regards​
    Attached Files

  • #2
    First question: use this here: https://github.com/dubas-pro/ext-public-attachment

    Comment


    • czcpf
      czcpf commented
      Editing a comment
      Is this still the recommended way to share an attachment?

  • #3
    Second question: regarding extracting the options of an enum field ("select box"), assuming that the field options are static (defined in the parent entity entitDefs file), you can "read" the metadata object from any PHP class with a statement like this:

    https://github.com/espocrm/espocrm/b...unity.php#L133

    Read the class to see how to inject the Metadata class that will be necessary for this statement
    Last edited by telecastg; 11-29-2022, 07:50 PM.

    Comment

    Working...
    X