Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Document management with Tree control navigation?

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

    Document management with Tree control navigation?

    Hi,

    I'm planning to build a document system in to my current application. But I would like to get some inputs on how folder nesting could be created?
    So if any of you care to share, it would be nice. Also if some of you have build a similar type of application, any thoughts would be appreciated.
    My main concerns are how to allow the user to create a custom tree navigation, that would be used as structure for the virtual folders.

    I know that Selwyn made a great video on how to used an xbasic function to convert to json an populate the tree control this way.
    Each tree element would need to have a unique id, that would be linked to the uploaded document. Clicking the tree element could then filter a list control with the names of the files associated with the tree element.

    So regarding the upload of files, I don't see a problem by now. But how could I make it possible for each users too create a custom tree structure by them self?

    Thanks,
    Kind regards
    David H-S

    Using: Alpha Anywhere V12

    #2
    Re: Document management with Tree control navigation?

    I'm trying to accomplish a very similar task. I can't pre-define the folder layout because they are unique for each project. I want the users to be able to define the layout. I've accomplished this before using MS Access, but now I'm trying to convert my project over to Alpha. Did you ever get any leads or resolve your issue?

    Comment


      #3
      Re: Document management with Tree control navigation?

      Hi Drew,

      Well I didn't get any hints from other AA specialists, so I tried to find a solution myself. So I have created two tables in my database.
      1. One table (documentFolders) that holds the documentFolderId(GUID), folderName, folderOrderId, indentSize, CreatedBy and so on.
      2. One table (documents) that holds reference to uploaded files, here it is linked to documentFolderId.

      With the above tables, I can create virtual folders and upload files to them. To the user it looks like they are working in real folders, but the only thing I store on the server drive are the uploaded files. The files are also rename to a GUID name, which is stored as reference to the file in the table (documents). Then using the examples that Selwyn has created about tree controls, I managed to create some scripts that indents, outdents, saves orders and everything for the virtual folder structure. I haven't started using it in production yet, still needs to do some testing. And this feature is not so important for my users yet, so I'm working om some other features now also. I you need more specific information about my setup, please let me know, also note that I created this in mySQL, but believe that DBF will be able to do the same since I don't use stored procedures at all.
      Kind regards
      David H-S

      Using: Alpha Anywhere V12

      Comment


        #4
        Re: Document management with Tree control navigation?

        Outstanding! From your description, that is exactly the path I was heading down. The only slight variation is that I have parent_folderID in the folder table instead of folderOrderId which I'm using for the folder hierarchy. I have the same two MySQL tables as you (folders and files). The same set up for moving files into a folder on the server and renaming them and accessing them via the file table. I'm currently using two grids that utilize the same folder table and a row expander on the first grid to display the 'folder structure' with the link being on folderID and parent_folderID. It's not as smooth looking as I want yet, but it's evolving. Would you be open to sharing what you have so far so I can utilize it in my project? I understand you've spent a lot of time and energy in developing what you have, so if you need monetary compensation, just let me know and we can figure something out. I appreciate you responding to my post. I was beginning to worry that I was the only person trying to duplicate a Windows folder layout with tables.

        Comment


          #5
          Re: Document management with Tree control navigation?

          Hi drew,

          No I don't mind sharing the xbasic that I have created. Let me just clean up the code a bit, not all are in English. Then I'll post it here, maybe some of the other alphaholics might share some information's also after this.
          I remember I had to do some tricks to get it working completely. And I'm pretty sure that with a proper coding, these bugs would not happen in my system.
          But I also know from php, that using a table like yours with a reference to the parent folder. Then a function can be called to get the childs, and each child will again call same function to get the child and so on. But I don't know how xbasic will perform, if it is put in too such a type of endless loop! But I know this should be the most flexible way and the best way.
          Kind regards
          David H-S

          Using: Alpha Anywhere V12

          Comment


            #6
            Re: Document management with Tree control navigation?

            Hi,

            I was reading your thread with interest and also this one:
            http://www.alphasoftware.com/alphafo...nt-application

            In the other thread, they talk a lot about drag-and-drop and also about split screens. I was wondering if later Alpha versions had progressed in this area.

            In my opinion, the commercial document management/filing systems miss the mark - I used to sell them. There is a need for a simple file/retrieve interface - which looked graphically attractive, i.e. like a file cabinet, with a logical filing system of drawers and folders etc. Current commercial systems are generally too complex. If I knew how, I would simply interface Windows Explorer with Alpha.

            Incoming scans and/or files would all arrive in one ' holding folder', from where they'd be dragged to their respective folder, having been named and dated or even OCR'd etc. Search as per Outlook would also be a requirement for ease of retrieval. And that's about it - apart from integrating emails into your archive system.

            Any comments would be appreciated.

            Larry Gordon

            Comment


              #7
              Re: Document management with Tree control navigation?

              I would be very interested in seeing a video or screenshot of how this looks David if you have the time. This sounds like an extremely useful implementation to me.

              Thanks,
              Stephen
              Alpha Anywhere v12.4.6.5.2 Build 8867-5691 IIS v10.0 on Windows Server 2019 Std in Hyper-V

              Comment


                #8
                Re: Document management with Tree control navigation?

                Hi David,

                Count me in with Stephen. I'm about to start working on the document management system again and the layout you described would be very beneficial. Hope to hear from you soon.

                Kind regards,
                Andrew

                Comment


                  #9
                  Re: Document management with Tree control navigation?

                  David hasn't been posting on the board in over a year - somebody might want to pm him.
                  Robin

                  Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

                  Comment

                  Working...
                  X