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

Image Organization

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

    Image Organization

    I would like to see if anybody has had experience with how to organize images so they can be grouped together.
    The problem is as follows: A single record can have multiple images, but the images may be added at various times. Imagine a product image with multiple views, front; back; l-side; r-side; top. At some point you need to add additional images to the series.

    Using v11 Image Gallery, I don't want images for multiple products to be mixed together. I want the image gallery to only show the images for the specific product. So my theory is that each products images will need to be segregated by some means, whether physically or by name. There will probably be anywhere from one to ?? images for each product. Any thoughts?

    Thanks

    #2
    Re: Image Organization

    I'm no expert so I don't know if this is the best way...but I store all images in a seperate table (image file references actually). So the table has ProductID, Description and image file reference fields).
    Then I linked the main (Products) table to the images table (ProductImages) by the ProductID (!:M).
    Then I display the ProductImages using a row expander from the grid grid built on the Products table, using the ProductID as the filter.
    In the ProductImages table I also have a date field so that I can use that as the sort order for the ProductImages (the products in this case are photos of plants which are taken as they reach various stages of growth).
    To make things easier for myself, I give each image a unique name which is the ProductID+Date, ie, T01499211011.jpg

    Hope it helps,
    Rich

    Comment


      #3
      Re: Image Organization

      There is a process for this; I'm a little pressed for time at the moment - but I will come back to the issue for you.
      Insanity: doing the same thing over and over again and expecting different results.
      Albert Einstein, (attributed)
      US (German-born) physicist (1879 - 1955)

      Comment


        #4
        Re: Image Organization

        What you need is an image folder per product. In your product table have a field "imagedir" (could just as well be the article nr). Then in your product grid add a button with in it's onclick event "open an image gallery component". In the onclick event select the image gallery component and then edit the argument bindings: select the igc, select the argument value & insert a field placeholder. Done!
        Frank

        Tell me and I'll forget; show me and I may remember; involve me and I'll understand

        Comment


          #5
          Re: Image Organization

          Thank you all for the suggestions. I had thought about using a separate directory for each product but ruled that out because of the number of products. My next idea was to use a one-to-many link between the product and the images associated with it. This seems like a workable solution. I just have a gut feeling that I am overlooking something here that will come back and haunt me down the road.

          I do intend to store all my images in an "images directory" on the server. This brings up another question - what is the best way to utilize the "image file reference field in a situation like this?

          The fields I am considering are as follows: Image_ID; Subject;Image; Description and Image_File_Reference. The Image_ID is an auto increment field and the Image field just stores the .jpg file. I was going to use the Subject field to store the Product Number that the image refers to along with a brief image name (12345 - Blue Widget, front view).

          I just want to make sure that the end user will only see the images in the gallery that pertain to the specific product. I may be over analyzing this but I want to make sure I don't miss something here.

          Thanks again.

          Comment


            #6
            Re: Image Organization

            I'm beginning to like the image galery more and more, but don't see at the moment enough possibilities to filter images that are referenced by a grid. Maybe it will be build in in time, but for now for these purposes the image galary just isn't the correct tool i think.

            However, if it doesn't get filtering capacities in time i might investigate another scenario (i havent the time to investigate it now):

            - store the images in the database (blob field)
            - filter the records and download them to a tempory directory (current session folder)
            - try to reference the image galery on the fly to that temporal directory

            But maybe this a a too wild plan......
            Ger Kurvers
            Alpha Anywhere / V4.6.1.9- Build 6488 (production) / V4.6.5.1 - 8722-5683(testing)
            Development: Mysql, windows 10 64 Applicationserver: standard on Windows server 2019

            Comment


              #7
              Re: Image Organization

              Originally posted by cptutrecht View Post
              I'm beginning to like the image galery more and more, but don't see at the moment enough possibilities to filter images that are referenced by a grid. Maybe it will be build in in time, but for now for these purposes the image galary just isn't the correct tool i think.

              However, if it doesn't get filtering capacities in time i might investigate another scenario (i havent the time to investigate it now):

              - store the images in the database (blob field)
              - filter the records and download them to a tempory directory (current session folder)
              - try to reference the image galery on the fly to that temporal directory

              But maybe this a a too wild plan......

              Ger, your post brings up the following questions?

              1. Can the Image Component reference a Blob or does it need a hard coded image in a directory?
              2. Can the Image Component be dynamically programmed to override its default image directory settings and use a grid or SQL?

              I am still poking the thing to see what I can see - so far I am not seeing what I would like to see...

              Comment


                #8
                Re: Image Organization

                Originally posted by MichaelCarroll View Post
                Ger, your post brings up the following questions?

                1. Can the Image Component reference a Blob or does it need a hard coded image in a directory?
                2. Can the Image Component be dynamically programmed to override its default image directory settings and use a grid or SQL?

                I am still poking the thing to see what I can see - so far I am not seeing what I would like to see...
                your 1: No, and that is not my plan. You would have imagerecords (Id, description, blob which contains the image). And a proces that downloads the images in the selected records into a dynamic temporary directory. The location of that directory you store in a session variable. At the end of that proces you open the image galary.

                Your 2: As i understood you can set the default image directory indeed at runtime to the value of the session variable above

                I think with enough time and skills it is doable, but i have two concerns about this approach myself:
                - won't it overload the webserver if many of such requests would be made and / or if the selected images are to big / too many.
                - you would need to manage instances of those temporary directory per session: a user can open multiple of them of course in 1 session
                Ger Kurvers
                Alpha Anywhere / V4.6.1.9- Build 6488 (production) / V4.6.5.1 - 8722-5683(testing)
                Development: Mysql, windows 10 64 Applicationserver: standard on Windows server 2019

                Comment


                  #9
                  Re: Image Organization

                  I have gone back and reviewed the videos associated with using the image gallery and they seem to imply that a seperate directory is required for the images to be separated by "project" or in my case by product. Before I set up my structure for storing the images I want to see if there are any reasons not to have a single image directory and use one-to-many links between image files and products.

                  One product with Product_ID linked to Image_ID as required. Then I would want the gallery to display only the images linked to the Product_ID as though they are in separate directories. If a user were to click through different products and each "group" were in seperate directories, there would seem to be a tremendous drain on resources not to mention time required to process each callback.

                  Comment

                  Working...
                  X