Javacript to Browse For a File

 2 Replies
 0 Subscribed to this topic
 12 Subscribed to this forum
Sort:
Author
Messages
Terry P
Veteran Member
Posts: 234
Veteran Member
    This may seem a little complicated, so bear with me.

    I have developed a custom form based on RQ10.1 that prompts for a filename. It then creates a URL for a Header URL attachment. When they click a button, it adds the attachment for the requisition without having to go thru the 3-4 clicks normally. Everything works good.

    Problem is when the user scans a document in, it goes to the specific folder on the server, but does not tell the user the "name" of the file it assigned. So what I would like to do is either:

    a) Find the last filename in a folder and return it to display to the user.

    b) open a window for browsing, sort of what RSS does when you click the browse for file attachment.

    They actually use RSS, but can't use it for attachments because they needed the ability to have multiple attachments and RSS only allows for one.

    Any thoughts, sample javascript code that I might use would be appreciated. TIA
    Jimmy Chiu
    Veteran Member
    Posts: 641
    Veteran Member
      How about stay with the lawson delivered RSS and develop a script that combines the scanned multiple documents into one? Then attach the single document in RSS. Your users would be able to browse for the multiple documents and create one single document.
      Terry P
      Veteran Member
      Posts: 234
      Veteran Member
        Two reasons. First the users need to know or remember where the documents were scanned into. Second, the attachments are done by different people at different times.

        What I'm thinking now is to create a simple html page that would browse the folder where the files are placed. I could then call or open that window from within my form using Javascript.