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

After Uploading File

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

    After Uploading File

    I am using the 'Upload File' functionality of Alpha12 to send information on an excel file to a table A. Works fine. However I have a trigger on that table A that first of all enforces referential integrity by deleting any rows that were entered, once the key did not exist as a foreign key in lets say table C. Secondly in that same trigger I insert all these missing keys so to speak into another table table B. Right after the upload I want to display a modal window that shows all the keys that did not get inserted into Table A. So I would run a simple select * on table B and output those results to the modal window.

    How do I do that?

    #2
    Re: After Uploading File

    Define a javascript function in the Code - Javascript Functions section to call in the Upload File's Client-Side After Upload event. From there, you can create an action javascript and use the "Open a pop-up Ajax Window/Overlay" to show your message.
    Alpha Anywhere latest pre-release

    Comment


      #3
      Re: After Uploading File

      Okay. So I can go to 'Client Side Events' and for the 'OnGridRenderComplete' use normal java script to open a new a5 page that will have the grid component that selects all the data from Table B. I'll put an 'Ok' button on this grid that closes it. Does that sound viable?

      Comment


        #4
        Re: After Uploading File

        Only if you want to display the grid component every time OnGridRenderComplete fires.

        There's already an "After Upload" event in the Upload File action you can define to make a call to a javascript function.
        fileUpload1.png

        You can put the Action Javascript in the function you specify in the Upload File's After Upload event.

        fileUpload5.png

        You can use the Open a Grid component action if that makes more sense than an .a5w page. The way you phrased the OP, it sounded like you just wanted to do a sql_records_get() or something similar and display a text listing.

        You want this to happen after the upload, right? Or am I misunderstanding what you're trying to do?
        Alpha Anywhere latest pre-release

        Comment


          #5
          Re: After Uploading File

          Okay, I understand up to specifying the javaScript function in the Upload File's After Upload event. I have done that. But the second screenshot, are you calling the name of the grid there?? No need to put in the a5wcmp extension?

          Comment


            #6
            Re: After Uploading File

            In the second screen shot, it's running a user-defined action javascript:

            1. Click the "Action Javascript" button
            2. Click "Add New Action" -- give it a name
            3. Select your new action (it will have a red dot next to it) and click "Edit Action"

            This will present you with Edit Unbound Event editor that you see when you edit, like, the click or onBlur event for a text box or button. You can add the Action Javascript to open the grid you want to view here.

            Don't forget to save everything. When you're done, you can use the same "Action Javascript" button to insert the code to run the script you just created.
            Alpha Anywhere latest pre-release

            Comment


              #7
              Re: After Uploading File

              So after putting the 'ShowMsg' JavaScript function in the Upload File's After Upload, where did you go or what did you click to be able to input the Action Java Script to define 'ShowMsg'?
              Last edited by johnfletchertt; 02-06-2015, 06:43 PM.

              Comment


                #8
                Re: After Uploading File

                Originally posted by johnfletchertt View Post
                So after putting the 'ShowMsg' JavaScript function in the Upload File's After Upload, where did you go or what did you click to be able to input the Action Java Script to define 'ShowMsg'?
                The Javascript Functions section:
                inst.png
                Alpha Anywhere latest pre-release

                Comment


                  #9
                  Re: After Uploading File

                  Brilliant. I thank you for your patience and will one day become an alphaholic like yourself.

                  Comment


                    #10
                    Re: After Uploading File

                    Okay, I have a small problem. The Upload File's After Upload event is called showUnregisteredTasks. The JavaScript works when I use something basic like

                    Code:
                    function showUnregisteredTasks() {
                    	window.alert("sometext");
                    }
                    The JavaScript warning windows pops up fine showing 'sometext'. The name of the grid I am trying to call is advanced_task_UploadEntry2. This is a separate read only grid. And so my JavaScript Action changed to

                    Code:
                    function showUnregisteredTasks() {
                    	{grid.object}.runAction('advanced_task_UploadEntry2');
                    }
                    Nothing happened though. What am I missing?

                    Comment


                      #11
                      Re: After Uploading File

                      Have you created an Action named "advanced_task_UploadEntry2"? Can you post an image of its definition?
                      Alpha Anywhere latest pre-release

                      Comment


                        #12
                        Re: After Uploading File

                        I located a video that explains how to create your Action Javascript to open your grid (I don't think my words & pictures are working): http://www.ajaxvideotutorials.com/V1...iptActions.swf
                        Alpha Anywhere latest pre-release

                        Comment


                          #13
                          Re: After Uploading File

                          The nice thing about Alpha is that sometimes there is more than one way to do something. So I achieved the end product but neither using the video nor what was suggested. I simply specified a JavaScript function called showUnregisteredTasks in the Upload File's After Upload as shown here.
                          1.png

                          Then I come out of everything and went into the JavaScript functions that did not have that button 'Action Javascript' but I defined the function I just placed in the Upload File's After Upload by simply calling an a5w page in a new window. So I saved the component to a a5w page and called it using standard javascript to define my function as shown here.
                          2.png

                          Things are working fine now. But the video was productive.

                          Comment

                          Working...
                          X