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

File Download and File Uploads

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

    File Download and File Uploads

    Hi,

    Im currently trying to incorporate file download and file uploads into the detail view of a grid, File Download is working perfectly but the problem I'm having is the file upload. Whenever I try to upload files this error always comes back:

    CaptureNew.PNG

    I've allowed filetypes in both the File Upload options and the project properties.

    Any ideas on how to solve this?

    #2
    Re: File Download and File Uploads

    Ollie, you have to make sure the field that is set up to store the binary image is set to updateable.
    That should resolve the attached error.
    Nate Mitchell PMP

    Comment


      #3
      Re: File Download and File Uploads

      Hi,

      The field is defiantly update as I've just checked the settings, weird how its just not updating to this single field.

      Comment


        #4
        Re: File Download and File Uploads

        Hey Ollie, import this component and see if you can upload a file.
        Below is a table create statement for mssgl.

        Code:
        CREATE TABLE [dbo].[z_images](
        	[id] [int] IDENTITY(1,1) NOT NULL,
        	[imageName] [varchar](50) NULL,
        	[imageType] [varchar](50) NULL,
        	[image] [varbinary](max) NULL,
         CONSTRAINT [PK_z_images] PRIMARY KEY CLUSTERED 
        (
        	[id] ASC
        )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
        ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
        Attached Files
        Nate Mitchell PMP

        Comment


          #5
          Re: File Download and File Uploads

          Hi guys,
          Did you come up with the solution to the original error message that Ollie was experiencing? I'm getting the same error message "Table is not updateable, or you do not have permission to update this table."

          I haven't tried Nate's test as I am doing a file upload with a Linked File reference where the file is going to a server folder rather being stored in the database. (It works if I upload the file blob to the database, but the boss wants the file to be stored in a server folder. :) )

          Thanks,
          Dan R.

          Comment


            #6
            Re: File Download and File Uploads

            Hey Dan, this video is a little dated but still relevant.
            Give it a look and see if that helps.

            https://www.youtube.com/watch?v=LcEGKUltbQI
            Nate Mitchell PMP

            Comment


              #7
              Re: File Download and File Uploads

              Thanks Nate. Yes, I watched the videos you suggested and it looks like I've set up the Linked file Upload properly yet I still get that "Table is not updateable, or you do not have permission to update this table." message.

              I was just wondering if you or Ollie figured out what was causing the message for him...

              Comment


                #8
                Re: File Download and File Uploads

                Sorry, I don't get the error.

                Try the attached component.
                The sql table simply has an id (pk, identity) and character field for linked file.
                If you still get an error, it may be your db.
                On the grid, make sure the column that stores the file pointer is set to updateable.
                Also, check to see if your grid has the primary key selected.
                Attached Files
                Nate Mitchell PMP

                Comment


                  #9
                  Re: File Download and File Uploads

                  Hi Nate. I tried your component but no luck. The attached message pops up wheen I click the Upload button after selecting the file:
                  uploadresult.png

                  Followed your instructions but no dice yet.

                  What is interesting is that if I manually type in the field data and click Submit, the data is saved in the database. However, the file does not get saved in the C:\test folder. Manually typed data goes into database.png

                  I don't know. You'd think something so straight forward would work quickly. Thanks for your help and time trying to figure this out. If you can think of anything else, I'd appreciate it.

                  Comment


                    #10
                    Re: File Download and File Uploads

                    Hey Dan, I can't replicate the cannot display page error.

                    What I have noticed however is that Alpha wants you to create/save a record in the table before uploading a file.
                    I haven't used grids for some time, but I thought that Alpha presented a warning in the past when you tried to upload a file to a new row.
                    I'm not sure when/if that changed.

                    If you create a record in your table and then try to upload a file, does it still not work?
                    Does the upload folder exist on your server (C:\test folder)?
                    Are you testing this in working preview or live preview?
                    Nate Mitchell PMP

                    Comment


                      #11
                      Re: File Download and File Uploads

                      Hi Nate. You're on to something here - if a record exists, then the referenced file upload works! If there is no existing record, then the error message pops up when doing the file upload. Thank you!

                      Do you recall where you saw that warning? Release notes? I'd like to read up on it to see what workarounds are recommended as ideally the end-user wants to be able to upload a file and create a new record in one shot. Have to think this out...

                      Comment


                        #12
                        Re: File Download and File Uploads

                        in a grid you should be able to upload images to new records, as shown in the video.
                        in v11 you could only upload to existing records, but in v12 you have always been able to upload to new record rows. you should NOT have to first create a record.


                        http://screencast.com/t/OVPxtOqRX

                        Comment


                          #13
                          Re: File Download and File Uploads

                          Hi Selwyn. I was researching in the Release Notes and found a Bug note regarding grids built using the Form/Columnar layout. File Upload to Grid Form bug.jpg

                          I was going to switch the grid to a tabular layout and try the upload in a tabular grid. Another option would be to create a UX and do the Referenced File Upload in the UX.

                          Will review the video in the link you sent first.

                          Comment


                            #14
                            Re: File Download and File Uploads

                            Duplicated the grid and changed it to a Tabular layout. In it, as Nate said, existing files can be edited/updated and saved without any issue. However, uploading a file as a new record pops up the attached error message. New File Upload to Tabular Grid error message.jpg So it looks like anytime a new record is being created with the file upload, there is an issue no matter which type of grid layout is used....

                            Comment


                              #15
                              Re: File Download and File Uploads

                              Dan, Selwyn identified the problem and will have a fix in tomorrow's pre-release build.


                              Nate
                              Nate Mitchell PMP

                              Comment

                              Working...
                              X