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

The video component

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

    The video component

    I've got a few issues/suggestions for the video component. Maybe I'm overlooking some things, so if I am please inform me :)

    I'm basically going to use the video component to show youtube how-to videos. Here's a screen shot of what I've got...
    ScreenShot004.png
    I've got the Title to show up in the modal dialog box by using {title} in the settings. Great!

    BUT, I would like to be able to put some text below the videos. After many hours of tinkering, I finally got something to be able to be put in. Here's the code I used.This code is in the 'Open a Video Player component' on the 'Play' button, for the 'onShow' Window Javascript Event.
    Code:
    setTimeout("jQuery('#{Grid.ChildObject}_a5_video').append('{description}')",1000);
    It's waiting one second. then appending the desc information to the a5_video div. The wait was required as the a5_video div wasn't created immediately.

    This pops up my first issue. While I can use {title} above this in the Window title. I cannot use {description} here. (As you can see, it just puts in '{description}').

    Next I tried to set description as an argument. So I go into my videocomponent.a5wcmp, go to the arguments, create a new 'description' argument. Click ok, save, open up the arguments pane again...Bam, gone....

    So Alpha overwrites my argument that I tried to add. Guess that's issue no. two.

    Finally, out of desperation, I tried to set 'description' as a session variable when the 'play' button is pressed. So I put went into the button and found where it lets me set session variables. Done.

    I go back to the videocomponent.a5wcmp and open the 'onInitialRender' Server side event. Bingo, it has access to e.session. I add in e.html = e.html + "div" + e.session.description + "/div" Looks like I've found my answer! PUBLISH!!! OPEN COMPONENT!!!!
    Code:
    [COLOR=red]Fatal error: onInitialRender event not found.[/COLOR]
    ...Issue number three (this may actually be a bug, what do you think)

    ...So the if anyone has any experience with the video component, and has any answers or solutions to my problem, please chime in!
    Last edited by Sparticuz; 02-28-2012, 11:43 AM.

    #2
    Re: The video component

    Just to let you know that I am having the same problem as your number 2. That is when I try to set up an argument it sets up fine, but when I save it, it goes away and back to the default setting. I am beginning to wonder if it is a bug in the component.

    Comment


      #3
      Re: The video component

      I bet it's more of a safeguard. The component will probably crash if those three arguments aren't present.

      Comment


        #4
        Re: The video component

        Hopefully this video will give you some ideas on how to add additional information when using the Video Component.

        See : http://screencast.com/t/INFKIiwHn
        Bob Moore


        Comment


          #5
          Re: The video component

          Awesome, Works great! Thanks! This should be added to the list of videos.

          Comment


            #6
            Re: The video component

            Sparticuz, were you able to set arguments, like a variable to hold the url to play a video?

            Comment


              #7
              Re: The video component

              It's an argument in the way your thinking. Basically you are hooking into the global A5 javascript object in one object by creating a _vp child object inside it. Then reading the object you created in a different grid, specifically the video player.

              Comment


                #8
                Re: The video component

                Right, so you want the _vp object to equal the URL that is held in a database table, correct? I am still having trouble doing that, the code below
                A5._vp.info = {grid.Object}.getValue('G','INFO',{Grid.RowNumber});
                saids for the table INFO, what does G mean?

                Comment


                  #9
                  Re: The video component

                  _vp is an object. You'd want to set the url in Alpha itself. I'd recommend watching all the VP videos again, IIRC it's explained in the first or second one.

                  .getValue is a javascript method used to get a value out of the object, in this case, 'G' is grid, 'S' is search, 'D' is detail.

                  Code:
                  //Read value in 'LASTNAME' field from the Grid part, row 4. Note that field name must be uppercase.
                  var lname = {grid.object}.getValue('G','LASTNAME',4);
                  //read value in 'LASTNAME' field from the Grid part, 'current row'. 
                  //Note that field name must be uppercase.
                  var lname = {grid.object}.getValue('G','LASTNAME',{grid.rowNumber});
                  
                  
                  
                  //Read value in 'LASTNAME' field in the Search part.
                  var lname = {grid.object}._getValue('S','LASTNAME');
                  
                  //read value in 'LASTNAME' field in the Detail View part.
                  var lname = {grid.object}._getValue('D','LASTNAME');
                  
                  
                  
                  //Getting value of 'range' fields in the Search part. You can't use .getValue(). You have to use low level Javascript.
                  var val1 = $('{grid.componentname}.S.STARTDATE').value;
                  var val2 = $('{grid.componentname}.S._TO.STARTDATE').value;
                  ^ Examples from A5v11

                  Comment


                    #10
                    Re: The video component

                    So there is no way using this code to get a value out of the database, in my case URL, and have that URL assigned to the video component so the video component plays that URL? I have try to set the URL to a variable in the Video component but when I try to save it, it sets it back to the default setting.

                    Comment


                      #11
                      Re: The video component

                      Re-watch the videos again, it's explained in the first or second video about how to get a youtube url from one grid to the video player.

                      Comment


                        #12
                        Re: The video component

                        Thanks for your help. I have watched the videos many times, I almost have them memorized! I am not pulling youtube url's, I am pulling mp4 url's and still cant figure out how to get those url's out of the database and have the video component play them.

                        Comment


                          #13
                          Re: The video component

                          I didn't do any mp4's, but it should be the exact same way as youtube urls. Create a grid with the mp4 urls and have the VP use that field as the url.

                          Comment


                            #14
                            Re: The video component

                            Yeah, thanks again. That is the issue I am having, a session variable that I try to set up, like he does in the videos, doesnt stay set, it reverts back to the default setting. If I could remedy that, I am almost certain that I could get it to work.

                            Comment


                              #15
                              Re: The video component

                              I don't recall using any session variables. In your grid with the mp4 url, Go to the button you created that opens the video player component. You want Argument bindings.
                              ScreenShot006.png
                              Now in that screen, just set video_url to the mp4 field in the parent grid. (click video_url, then click Set argument value)
                              ScreenShot007.png
                              That should link the parent grid and the video player using the mp4 link.

                              Comment

                              Working...
                              X