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

Browse Like Control in Xdialog

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

    Browse Like Control in Xdialog

    I am doing a sample invoicing application using xdialog. is there a way to enter products data like the alphasports sample application that use the browse control to display items ordered in xdialog. I have seen some samples in xdialog and the samples uses only a form type that displays only 1 record, I want to gather more data and save it when the order is complete and not to save the invoice items 1 by 1.

    Edit:
    I saw a listview control, I want this rather than the browse control, my problem is how to select the items and move it to the listview control with the item name, price, qty and lie total.
    Last edited by JetLi; October 02, 2013, 02:21 PM.

    #2
    Re: Browse Like Control in Xdialog

    There's a reason it is named listview and not listrecordseditable.

    I want to gather more data and save it when the order is complete and not to save the invoice items 1 by 1.
    It is the nature of tables to save one record at a time. If you place an embedded browse on an xdialog and the embedded browse is based on a "temporary" table then you could append to your actual table, emptying the temporary table when done. The only other choice seems to be to gather data entry into multiple variables and create records from those variables when done.
    Last edited by Stan Mathews; October 02, 2013, 02:50 PM.
    There can be only one.

    Comment


      #3
      Re: Browse Like Control in Xdialog

      Originally posted by Stan Mathews View Post
      There's a reason it is named listview and not listrecordseditable.

      The only other choice seems to be to gather data entry into multiple variables and create records from those variables when done.
      thanks Stan, Just like the alpha sports sample invoice form, with 1 to many data entry, the header has maybe 4 fields so it is fine with me to create an xdialog data entry for that, the invoice details has maybe five fields, You mean If I have 5 fields for the invoice details and if I want to enter 25 invoice items then I would need to have 25 * 5 = 125 variables to hold those items and later save it?

      Comment


        #4
        Re: Browse Like Control in Xdialog

        I created a dialog that may be similar to what you want.

        When we create client records, we have the option to add household members into a separate table that is linked to the client.

        Data entry happens in a dialog, and the members are accumulated and displayed each time the user clicks "more".

        When done, the user is prompted to verify their entry, then the members are added to the household table as individual records, linked o the client record.



        Is this something like what you want to do??

        Tom
        Attached Files
        Last edited by Tom Henkel; October 02, 2013, 05:39 PM. Reason: better picture

        Comment


          #5
          Re: Browse Like Control in Xdialog

          You could do it with 6 variables, the sixth storing the contents of the other 5 in list form. Then process the rows in the list variable into records. It would be a lot of programming for such little if any benefit.
          There can be only one.

          Comment


            #6
            Re: Browse Like Control in Xdialog

            Tom,

            That looks interesting. Have you tried implementing a "remove line" feature?

            Your attachment gives an Invalid error.
            There can be only one.

            Comment


              #7
              Re: Browse Like Control in Xdialog

              browseinXdialog.PNG

              You can put a browse in an xdialog...

              open the browse in design mode
              Al Buchholz
              Bookwood Systems, LTD
              Weekly QReportBuilder Webinars Thursday 1 pm CST

              Occam's Razor - KISS
              Normalize till it hurts - De-normalize till it works.
              Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
              When we triage a problem it is much easier to read sample systems than to read a mind.
              "Make it as simple as possible, but not simpler."
              Albert Einstein

              http://www.iadn.com/images/media/iadn_member.png

              Comment


                #8
                Re: Browse Like Control in Xdialog

                Originally posted by Stan Mathews View Post
                It would be a lot of programming for such little if any benefit.
                Yes indeed. The reason why I want to try xdialog is that, I experience very slow response from the other computer that uses shadow database. There are only 2 computers doing data entry. This is my biggest problem using alpha five eversince, even if there are only 2 computers , the shadow database is very slow. Speed is a very big issue for a grocery application (POS), or a user taking orders by phone, other applications like maybe financial app, a user can wait for 5 to 10 sec.

                Comment


                  #9
                  Re: Browse Like Control in Xdialog

                  Originally posted by Tom Henkel View Post
                  [ATTACH=CONFIG]36890[/ATTACH]I created a dialog that may be similar to what you want.

                  When we create client records, we have the option to add household members into a separate table that is linked to the client.

                  Data entry happens in a dialog, and the members are accumulated and displayed each time the user clicks "more".

                  When done, the user is prompted to verify their entry, then the members are added to the household table as individual records, linked o the client record.

                  [ATTACH=CONFIG]36891[/ATTACH]

                  Is this something like what you want to do??

                  Tom
                  I received an error "Invalid attachment"

                  Comment


                    #10
                    Re: Browse Like Control in Xdialog

                    lets retry the attachment.

                    I did try to remove the old copy and add the new, but obviously, something went wrong.

                    household.jpg

                    There is a fair amount of code underneath this, but it works pretty well.

                    The reason why I want to try xdialog is that, I experience very slow response from the other computer that uses shadow database.
                    This makes little sense. Shadowed databases should run faster as they don't have to load all that dictionary stuff across the network. I think something else is going on...

                    Tom

                    Comment


                      #11
                      Re: Browse Like Control in Xdialog

                      Stan,

                      Once the household members are added, I refresh the client info screen which contains a browse of the household. If a member needs to be edited or removed, a simple doubleclick will get us to where we need to be.

                      Tom

                      Comment


                        #12
                        Re: Browse Like Control in Xdialog

                        Originally posted by Tom Henkel View Post
                        lets retry the attachment.

                        I did try to remove the old copy and add the new, but obviously, something went wrong.

                        [ATTACH=CONFIG]36893[/ATTACH]

                        There is a fair amount of code underneath this, but it works pretty well.



                        This makes little sense. Shadowed databases should run faster as they don't have to load all that dictionary stuff across the network. I think something else is going on...

                        Tom
                        I have sent my entire application before to a veteran of Alpha who is no longer here. I will not mention his name. He suspects that something is really going on, he suspects design issues. And after he reviewed the app, he just commented on one thing on the field rule, that I will change the default to Date() because the original was Now(), and I will not use alltrim in indexes. I followed his tip but still the same issue.

                        Comment


                          #13
                          Re: Browse Like Control in Xdialog

                          Hi Stan and Tom,

                          Can I locate a line (like as <tbl>.Fetch_Next action ) from a list which made by table.external...() function?

                          When I click a button then move a record up or down within the list. see an attachment.

                          move_line.jpg

                          Comment


                            #14
                            Re: Browse Like Control in Xdialog

                            Jetson,

                            You mean If I have 5 fields for the invoice details and if I want to enter 25 invoice items then

                            see "Displaying Data from a Set" from help or learning xdialog which will shows the from alphasports invoice. but I am not sure how to add or edit data into the many list.

                            Comment


                              #15
                              Re: Browse Like Control in Xdialog

                              Jet,
                              to display all the entered household members, I created an array of 10 ( you could make more) records as they were entered.

                              Comment

                              Working...
                              X