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

Here Is An Example Of A Dynamic Frame Label

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

    Here Is An Example Of A Dynamic Frame Label

    I wanted to make the title of a Frame object display custom text based on the selection in a dropdown box.
    It's pretty straight forward, but it took me a while to get it to work exactly the way I wanted so I thought I'd post it as an example.

    Basically the Frame label is made up of 3 DIVs with a little bit of styling applied.
    The 1st and 3rd DIVs are each 40% of the Frame width and static text.
    The middle DIV is 20% of the Frame width and changes when a selection is made from the dropdown box.

    Code:
    <div style="width:40%; color: white; background-color: #16365c; text-align: center; display:inline-block;">Left DIV Centered</div>
    <div id="frameTitle" style = "width:20%; color: white; background-color: #16365c; text-align: center; display:inline-block;">Initial Title</div>
    <div style="width:40%; color: white; background-color: #16365c; text-align: center; display:inline-block;">Right DIV Centered</div>
    The onClick event of the dropdown box fires off the following code which gets the selected value and injects the content into the Frame.
    This javascript could easily be placed wherever needed.

    Code:
    //Get the value selected in the Selection dropdown box and insert it into the HTML of the middle DIV of the Frame label.
    var vSelect = {dialog.Object}.getValue('Selection');
    vSelect = vSelect+'&nbsp;New Title';
    $('frameTitle').innerHTML = vSelect;
    Screencast : https://www.screencast.com/t/JH21m4gVLxc

    As I say, it's pretty basic, I'm sure there may be others who know how to do this. But this is intended to help those who don't know.
    Sample component is attached ..
    Attached Files
    Alpha Anywhere v12.4.6.5.2 Build 8867-5691 IIS v10.0 on Windows Server 2019 Std in Hyper-V

    #2
    Re: Here Is An Example Of A Dynamic Frame Label

    Thanks that is a good idea.

    Comment


      #3
      Re: Here Is An Example Of A Dynamic Frame Label

      Very nice touch. Thanks for sharing mate.
      Insanity: doing the same thing over and over again and expecting different results.
      Albert Einstein, (attributed)
      US (German-born) physicist (1879 - 1955)

      Comment


        #4
        Re: Here Is An Example Of A Dynamic Frame Label

        Played further and produced this.
        Frame_Container.a5wcmp

        It is a little bigger but then you have so much more power.

        This is just 2 containers and a controlBar with a little CSS so you can see it.

        Comment


          #5
          Re: Here Is An Example Of A Dynamic Frame Label

          Michael, what are we supposed to see? The action for the button is not defined .. nothing happens!
          Alpha Anywhere v12.4.6.5.2 Build 8867-5691 IIS v10.0 on Windows Server 2019 Std in Hyper-V

          Comment


            #6
            Re: Here Is An Example Of A Dynamic Frame Label

            Agreed, it is a control bar you need an element. The button has the default on click event.

            You can put a data control there and update it in the way you did but the exciting part is you have the power of a control bar.

            So you can have multiple layouts. You can use disclosures and buttons Toggle buttons and Html.


            https://www.alphasoftware.com/docume...oup_ControlBar Concepts

            Scroll down to the data explanation. Very powerful with the watch events.

            Comment


              #7
              Re: Here Is An Example Of A Dynamic Frame Label

              Stephen, there is styling in the Container controls to simulate a "frame". I believe this was to show another way of displaying a type of "frame" and using the ControlBar with Variable Data.

              Comment


                #8
                Re: Here Is An Example Of A Dynamic Frame Label

                Ahh, okay cool, thanks.

                I have never actually used the control bar as I'm not developing mobile .. I really should take a serious look at them. Are they only meant for mobile applications?
                Alpha Anywhere v12.4.6.5.2 Build 8867-5691 IIS v10.0 on Windows Server 2019 Std in Hyper-V

                Comment


                  #9
                  Re: Here Is An Example Of A Dynamic Frame Label

                  No, all the new mobile things work really well on the desktop.

                  Please please think about the viewbox and control bar as well as panels. They will increase your flexibility.

                  Comment


                    #10
                    Re: Here Is An Example Of A Dynamic Frame Label

                    I do use the Viewbox quite a bit. I've found an interesting use of the Viewbox is to pull results of a SQL query for use within the UX.

                    For example, I have defined email lists in an otherwise unrelated table that I can manage entirely from within the application.
                    Say Group1 has email TO such and such people and email CC to such and such people. Then Group2 has a different set email contacts, and so on.

                    Now in my UX I will put a Viewbox which does a SQL query to this mail list table and filters the result on Group = Group1 or Group = Group2, etc.
                    I read the TO and CC fields from the Viewbox and put the results into hidden fields on the UX. Now when I submit the UX, I use the {TO} & {CC} placeholders of the hidden fields to define the send email action javascript.

                    But I really do need to look more into the Control Bar
                    Alpha Anywhere v12.4.6.5.2 Build 8867-5691 IIS v10.0 on Windows Server 2019 Std in Hyper-V

                    Comment


                      #11
                      Re: Here Is An Example Of A Dynamic Frame Label

                      Very nice. Thanks for sharing.

                      Comment


                        #12
                        Re: Here Is An Example Of A Dynamic Frame Label

                        Here is the extension of the idea.

                        http://smg.datadrivensystems.co.uk/l...rameContainer/

                        I know it is ugly but this is just proof of concept.

                        Comment


                          #13
                          Re: Here Is An Example Of A Dynamic Frame Label

                          Very cool Michael. How did you accomplish the min/max feature for each frame? Is that jQuery?
                          Alpha Anywhere v12.4.6.5.2 Build 8867-5691 IIS v10.0 on Windows Server 2019 Std in Hyper-V

                          Comment


                            #14
                            Re: Here Is An Example Of A Dynamic Frame Label

                            No all done in Alpha.

                            Next to no code.

                            Done in two ways.

                            so this is an onclick event for Cont_Frame (we have 3 so they are numbered)

                            var res = this.data.frameAdj;
                            if(res){
                            document.getElementById('DLG1.V.R1.CONT_FRAME1').classList.add('overlay');
                            } else {
                            document.getElementById('DLG1.V.R1.CONT_FRAME1').classList.remove('overlay');


                            }


                            The CSS class overlay then does the work.

                            .overlay {
                            position: fixed;
                            width: 100%;
                            height: 100%;
                            left: 0;
                            top: 0;
                            background: rgba(51,51,51,0.7);
                            z-index: 10;
                            }
                            .collapse {
                            width: 100%;
                            z-index: 1;
                            }

                            Collapse is used in the second method using responsive layout control.


                            This is the way I did and nowhere near as elegant as my CSS guy.

                            message answer.png

                            PS DLG1.V.R1 is better replaced with a placeholder. It works OK in a standalone component but is dangerous in production.

                            Comment


                              #15
                              Re: Here Is An Example Of A Dynamic Frame Label

                              Awesome! Thanks very much for sharing this.
                              Alpha Anywhere v12.4.6.5.2 Build 8867-5691 IIS v10.0 on Windows Server 2019 Std in Hyper-V

                              Comment

                              Working...
                              X