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

List/Grid/whichever - have each group separated in it's own box..?

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

  • #16
    Re: List/Grid/whichever - have each group separated in it's own box..?

    Well maybe not so weird - if you have say a limit of 12 view boxes (or whatever) then you could pre build a UX template and have each of them waiting for data each based on their own Argument Value, you can hide the Viewbox until it has something to show, then it's dynamic.
    Insanity: doing the same thing over and over again and expecting different results.
    Albert Einstein, (attributed)
    US (German-born) physicist (1879 - 1955)

    Comment


    • #17
      Re: List/Grid/whichever - have each group separated in it's own box..?

      Another suggestion:

      Establish a single div (or other container) on the UX.

      Then, with a callback, run a query that returns well-structured data. Use that resultset to build a string for output to that div on the UX.

      It's fairly simple to build that string of HTML to return what you want. You're basically building box after box with the contents you want. Just keep on going with *concat(). Once done, put your constructed HTML into that div on the UX. With proper styling or CSS you now have a flexible number of boxes and a flexible display.

      I do something like this, though with more fixed positions, for a complicated medical system. The presentation of data is near instant. While Alpha's controls are all wonderful, the speed you can achieve with simple HTML like you need here is really cool.
      -Steve
      sigpic

      Comment


      • #18
        Re: List/Grid/whichever - have each group separated in it's own box..?

        Thank you all. The viewbox is really new to me and I just can't seem to figure out how to get it to work properly, and more so, explain what its doing. LOL.

        I think I've spent a lot of time spinning wheels for something that I would have thought was basic... I think Steve's is going to be the path to follow - for now so I can just get something done - until I have more time to play. I do need to allow clicking on a particular line and edit the status of that vehicle... I'll let you all know what I come up with, unless anyone has some other ideas or samples. THANK YOU AGAIN!!!

        Comment


        • #19
          Re: List/Grid/whichever - have each group separated in it's own box..?

          Start with something as simple as this as a script in the desktop-side code editor:

          Code:
          dim txt as c = ""
          for i = 1 to 3
          	*concat(txt, "<div>" + crlf())
          	*concat(txt, "	Category " + i + "<br>" + crlf())
          	*concat(txt, "		-Item<br>" + crlf())
          	*concat(txt, "		-Item<br>" + crlf())
          	*concat(txt, "		-Item<br>" + crlf())
          	*concat(txt, "</div>" + crlf())
          next i
          ui_html_msg_box("", txt, 1, 4, 4)
          Start simple, make it work with your data, add the onclick=somefunction() event where you need it -- remember it's all just a string whether you create it all or Alpha's components create it.

          Here's a very small section of a much larger output string for a medical summary presentation.

          Snap1.png
          -Steve
          sigpic

          Comment


          • #20
            Re: List/Grid/whichever - have each group separated in it's own box..?

            Thinking about this more, it's probably a good idea, too, to model the CSS as soon as you can to make sure it's flowing, wrapping as you wish. Make sure that's working before you invest completely in the details.
            -Steve
            sigpic

            Comment


            • #21
              Re: List/Grid/whichever - have each group separated in it's own box..?

              steve had a good suggestion

              Establish a single div (or other container) on the UX.

              Then, with a callback, run a query that returns well-structured data. Use that resultset to build a string for output to that div on the UX.
              i am just expanding on his thoughts.
              you could convert the resultset to a json object and build html template and mergedataintotemplate function. this was a call in version 11 but built in version 12 alpha anywhere.
              i have done work with a5_mergedataintotemplate() using version 11 i will try to put a sample to see if it works. but in the meantime if you are curious there are documentation and videos to see:

              http://www.alphasoftware.com/blog/cl...lpha-anywhere/
              thanks for reading

              gandhi

              version 11 3381 - 4096
              mysql backend
              http://www.alphawebprogramming.blogspot.com
              ggandhi344@gmail.com
              Skype:ggandhi344@gmail.com
              1 914 924 5171

              Comment


              • #22
                Re: List/Grid/whichever - have each group separated in it's own box..?

                Going to give this a go now... Thank you gents!

                Comment


                • #23
                  Re: List/Grid/whichever - have each group separated in it's own box..?

                  So, this actually has opened a whole new world up! :) lol Thank you so much. I'm just trying to figure out how to call a javascript function to populate a JSON array from the database (which, I'm assuming would be AJAX, but I can't figure out how to transfer the data from my XBasic function back to the javascript back to the merge routine. I'm muddling though.

                  Thank you again for the great tips!!!! Had no idea how any of that worked with the merge templates but it is AWESOME

                  Comment


                  • #24
                    Re: List/Grid/whichever - have each group separated in it's own box..?

                    Yes, it's very cool and fast. Alpha's components are very nice & rich, but when you can bypass them and just write the specific output you need, it's something to behold. I have a "home" medical page that produces a whole bunch of summary and at-a-glance information. Blows doors off hinges, makes jaws drop.

                    After you get this done, try the same general approach for reports if you have any that'll fit the model.
                    -Steve
                    sigpic

                    Comment


                    • #25
                      Re: List/Grid/whichever - have each group separated in it's own box..?

                      Originally posted by pettechservices View Post
                      but I can't figure out how to transfer the data from my XBasic function back to the javascript back to the merge routine. I'm muddling though.
                      here is another link
                      http://www.alphasoftware.com/blog/json-explained/

                      look somewhere down in the middle sending complex data from server to client, how xb data can be supplied to javascript. that same post describes the use of templates how each one can be grouped, including css. take a look.
                      you can also do http_get and the server will post the response as json, but that will take you to another land, I use that to fashion my mobile app, lot cheaper than thousands of dollars on version 12.
                      thanks for reading

                      gandhi

                      version 11 3381 - 4096
                      mysql backend
                      http://www.alphawebprogramming.blogspot.com
                      ggandhi344@gmail.com
                      Skype:ggandhi344@gmail.com
                      1 914 924 5171

                      Comment


                      • #26
                        Re: List/Grid/whichever - have each group separated in it's own box..?

                        Gandhi, thank you very much! Very helpful!!

                        Steve, I can definitely see how that happens! I'm just amazed at what I can do now.

                        THANK YOU EVERYONE!

                        Comment


                        • #27
                          Re: List/Grid/whichever - have each group separated in it's own box..?

                          Thanks again everyone! This template stuff is absolutely awesome!

                          Comment


                          • #28
                            Re: List/Grid/whichever - have each group separated in it's own box..?

                            Yes it it great -so how did you go? - Achieve what you set out to do?
                            Insanity: doing the same thing over and over again and expecting different results.
                            Albert Einstein, (attributed)
                            US (German-born) physicist (1879 - 1955)

                            Comment

                            Working...
                            X