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

Does anyone know the method in which you can create a footer area inside a container?

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

    #16
    Re: Does anyone know the method in which you can create a footer area inside a contai

    In V11 it (
    Code:
    $('DLG1.V.R1.STATICTEXT_7').innerHTML = 'Test';
    ) seems to work fine in the client-side onInitializeComplete event. It won't fire on subsequent ajax callbacks. You could try it in onRenderComplete if you have that event in the UX control as well.

    Comment


      #17
      Re: Does anyone know the method in which you can create a footer area inside a contai

      I was away from my computer for a while. I'm using V12 too and UX components do have an onDialogInitialize event. Click "Server-side" under "Events". There are two event categories - server-side and client-side. OnDialogInitialize is the first event listed.

      There are many places you can insert the code. As a matter of preference, I like to put all of my initialization code (Xbasic and Javascript) in the onDialogInitialize event so it's all in one place. There are of course certain instances where I must insert my Javascript initialization code in other places.

      Every server-side event and Ajax callback has an "e.javascript" property so you can send some Javascript back to the browser. You can also change the panel heading text without Javascript like this:

      e.control.statictext_1 = "Welcome " + session.name
      Last edited by DaveF; 04-08-2013, 06:00 PM.

      Comment


        #18
        Re: Does anyone know the method in which you can create a footer area inside a contai

        Josh,

        Have you created a Login page yet? The V12 Login component looks exactly the same as the V11 version. I am debating whether or not I should use a UX component for my Login page since I am creating a mobile app. I looked at the HTML code for the Login component and it generates a 64 byte hidden field and calls the Javascript function "linksubmit". I will have to do this as well if I create my own login dialog. I'm not sure yet how the hidden key is generated or validated. Have you done this or seen any examples of creating your own mobile Login dialog in V12?

        Thanks

        Comment


          #19
          Re: Does anyone know the method in which you can create a footer area inside a contai

          No I haven't created a custom login component in A5, what is it you want to accomplish with a custom login component? I've been able to style the login component so that it doesn't look like the classic A5 login component. Share with me your requirements and I'd love to be a sounding board and share whatever I can to assist.

          Comment


            #20
            Re: Does anyone know the method in which you can create a footer area inside a contai

            I have found other ways to accomplish this but it's driving me crazy that it wont work the way I'd expect.

            This should work right? SESSION.NAME exists. If I pass in a string like 'Test', it works but if I try to pass the session variable in, nothing. WWWHHHYYYY

            e.javascript = "$('welcome_message').innerHTML = 'Welcome' + SESSION.NAME;"

            Comment


              #21
              Re: Does anyone know the method in which you can create a footer area inside a contai

              It can get a little tricky when using the e.javascript property and passing in variable data that exists only on the server-side. The browser does not have a variable defined as "SESSION.NAME". What you have to do is add the contents of the variable like so:

              Code:
              e.javascript = "$('welcome_message').innerHTML = 'Welcome' + '" + SESSION.NAME "';"
              This code will copy the contents of SESSION.NAME into e.javascript. Currently, you are copying the literal value "SESSION.NAME" to e.javascript and that variable will not exist on the client side. Below is an example of the line of Javascript code the browser would execute.

              Code:
              OLD:   $('welcome_message').innerHTML = 'Welcome ' + SESSION.NAME;
              
              NEW:  $('welcome_message').innerHTML = 'Welcome ' + 'Josh';
              The OLD example will not work because SESSION.NAME does not exist on the client side.

              For what its worth, I would probably use a static text or placeholder control and the following line of code in onDialogInitialize:

              Code:
              e.control.placeholder_header = "Welcome " + session.name
              This is easier for me to read if I were to come back and make changes 6 months down the road. e.control is just a temporary object for holding text that you want A5 to update for you.
              Last edited by DaveF; 04-09-2013, 07:41 AM.

              Comment


                #22
                Re: Does anyone know the method in which you can create a footer area inside a contai

                Josh,

                I have spent a great deal of time customizing the rigid Login component to make it look right for a mobile app. I had to enter the HTML from scratch using the Freeform Template to get the Login form the way I wanted it. The only automation I was getting from it was the insertion of a hidden key. I was thinking that I may as well use a UX component with a panel card instead since I wasn't getting anything out of the Login component's designer.

                Comment


                  #23
                  Re: Does anyone know the method in which you can create a footer area inside a contai

                  Dave,

                  I was under the impression that if I published the session variable which I have done that the session variable would be available to the client side? I will definitely take your advice and go about it differently. I just want to better understand it all!

                  I also spent a fair amount of time styling the login component so I get it. I may look into that more myself as it would give me a more uniform look and feel on the mobile side.

                  Thanks for all your help and time Dave. I appreciate it.

                  Comment


                    #24
                    Re: Does anyone know the method in which you can create a footer area inside a contai

                    I have never published a session variable so I don't have any firsthand experience with it. After I submitted my reply, the thought that you may have published the session variable did cross my mind. It seems like unneccessary overhead if this is all you are using it for. If you are using it for other things then it doesn't matter. I also thought published session variables could only be used in certain places like client-side expressions.

                    I just looked at the notes for the "Published session variables" property. Don't you have to use "{Dialog.Object}.getSessionVariable('NAME')" to get the value of the session variable? For example:

                    Code:
                    e.javascript = "$('welcome_message').innerHTML = 'Welcome' + {Dialog.Object}.getSessionVariable('NAME');"
                    And in the "Published session variables" UX property you would enter:

                    SESSION.NAME

                    Again, if this is all you are using it for, there are much easier and more intuitive ways to set the panel header text like using the e.control property.

                    Comment


                      #25
                      Re: Does anyone know the method in which you can create a footer area inside a contai

                      Dave,

                      Thanks, that works. I did see the note on how to capture the published session variable but I couldn't get my syntax right. Really appreciate your help.

                      Comment


                        #26
                        Re: Does anyone know the method in which you can create a footer area inside a contai

                        Josh,

                        Are you having problems vertically centering your header and footer static text controls? I reported the problem to A5 yesterday. http://www.ajaxvideotutorials.com/V1...FooterText.swf

                        Comment


                          #27
                          Re: Does anyone know the method in which you can create a footer area inside a contai

                          Yes, I ended up using margin-top for this purpose. I set the height of the header/footer in pixels so I could be pretty precise but it should be easier.

                          Comment

                          Working...
                          X