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

Very Easy Way to UPLOAD FILE AND SAVE ( one click )

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

  • Very Easy Way to UPLOAD FILE AND SAVE ( one click )

    upload.PNG


    hello all , i wanted to share very simple way for those who asks for a button ( Uploading , Saveing ) in one click
    so the way to do that , is to add one button with your grid fields ( am suggesting this field to be the last row in your grid ) .
    so once you add that , you shoud go to ( on click properties ) for the button ,
    click add action ( inline-java script )

    write this line behind the code

    {grid.object}.submitGridPart();


    then click action again ,
    and just follow up with the uploading feature pack


    without having the above java , you will always get the msg ( you have to save the record first )

    so what am doing when you click the button , is saving the current grid then the popup windows of upload will appear next
    you can also refresh the grid and your grid will interact directly with the attached photo ( if we are dealing with jpg )
    please check attachment , i promise this is easy and working like a charm .

    have fun all


    Regards
    Ahmed Sh
    To live anywhere in the world today and be against equality because of race or color is like living in Alaska and being against snow.

    - William Faulkner

  • #2
    Re: Very Easy Way to UPLOAD FILE AND SAVE ( one click )

    So the first action always fires before the second action? I've wondered about that because I was always being told that all the javascript fired at the same time. That's very slick, Ahmed Sh. Thanks for sharing it.
    Carol King
    Developer of Custom Homebuilders' Solutions (CHS)
    http://www.CHSBuilderSoftware.com

    Comment


    • #3
      Re: Very Easy Way to UPLOAD FILE AND SAVE ( one click )

      Originally posted by kingcarol View Post
      So the first action always fires before the second action? I've wondered about that because I was always being told that all the javascript fired at the same time. That's very slick, Ahmed Sh. Thanks for sharing it.
      well i test it in my pc it was working fine ,
      but i guss you are right carol , it fire @ same time .
      but that really tricked me i mean why its working in my pc and not in other pc .. maybe due to speed issue of pc or not sure a browser ?
      anyways this might work for some ppl ..
      good luck all .
      To live anywhere in the world today and be against equality because of race or color is like living in Alaska and being against snow.

      - William Faulkner

      Comment


      • #4
        Re: Very Easy Way to UPLOAD FILE AND SAVE ( one click )

        This doesn't work for me.
        The message still prompts to save. And after you click through the prompt, the grid is still saved and cleared.

        Comment


        • #5
          Re: Very Easy Way to UPLOAD FILE AND SAVE ( one click )

          try to put it on mouse over event .. could work then , i really didnt try it ... going to try it and let you know ...
          Last edited by aal_fareed; 03-26-2012, 04:24 PM.
          To live anywhere in the world today and be against equality because of race or color is like living in Alaska and being against snow.

          - William Faulkner

          Comment


          • #6
            Re: Very Easy Way to UPLOAD FILE AND SAVE ( one click )

            I have a form grid with the "add records only" option checked in the properties, and there is no need for users to see existing records. So essentially, I have one blank record at a time.

            The mouse-over sounds like a good idea. But the entered information clears from the fields upon saving, and a fresh record pops up.

            Thoughts?

            Comment


            • #7
              Re: Very Easy Way to UPLOAD FILE AND SAVE ( one click )

              Joshua start a new thread. I don't think this has anything pertaining to what you are asking.
              Chad Brown

              Comment


              • #8
                Re: Very Easy Way to UPLOAD FILE AND SAVE ( one click )

                It does, actually.

                Comment


                • #9
                  Re: Very Easy Way to UPLOAD FILE AND SAVE ( one click )

                  The File Upload enables one to choose a file and save its path in a field.
                  I need this to happen for new records; not for those that exist.

                  Comment


                  • #10
                    Re: Very Easy Way to UPLOAD FILE AND SAVE ( one click )

                    Sorry didn't sound like it to me
                    Chad Brown

                    Comment


                    • #11
                      Re: Very Easy Way to UPLOAD FILE AND SAVE ( one click )

                      I actually tried this before I found this thread...I tried this in IE,Chrome and Firefox and it does not appear to work....

                      I would love to get around the need to save the record first or maybe stated another way, save the record before the upload Feature Pack fires so this all happens in one click. Seems to work this way with other examples...

                      Comment


                      • #12
                        Re: Very Easy Way to UPLOAD FILE AND SAVE ( one click )

                        Pete Conway uploaded a video some time back - might be what you want


                        http://msgboard.alphasoftware.com/al...n-image-upload

                        Comment


                        • #13
                          Re: Very Easy Way to UPLOAD FILE AND SAVE ( one click )

                          Thanks Pete but I saw that one before. That's not exactly what I'm looking for.

                          If the JavaScript fired in order in the above example, everything would be perfect but apparently it does not. I know zero about how JavaScript works so like many others, we just look to improvise and adapt.

                          Still looking.

                          Comment


                          • #14
                            Re: Very Easy Way to UPLOAD FILE AND SAVE ( one click )

                            ok i think .. the java script runs in other machine depends on how proccessor speed read the code .
                            in this case above its working in my laptop . but when i tried it in my work pc it did not work at all ...
                            so i am now thinking about making a java script timer code like 2 second befor the upload code works out .
                            any one can help me to achive this ?

                            this is the point i think people are looking for .. is to get the java script works in order .
                            To live anywhere in the world today and be against equality because of race or color is like living in Alaska and being against snow.

                            - William Faulkner

                            Comment


                            • #15
                              Re: Very Easy Way to UPLOAD FILE AND SAVE ( one click )

                              Maybe someone can make heads or tails of this and apply it to your code.

                              http://javascript.about.com/od/learn...tutorial04.htm
                              Chad Brown

                              Comment

                              Working...
                              X