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

x_Dialog Tab Stops

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

    #76
    Re: x_Dialog Tab Stops

    Ray; Thank you for the explanation.

    Al, I will try with your suggestion.

    The question still remains of why all of this work in an xdialog rather than a form that can be opened as a dialog?
    I will apply it on complicated case and the xDialog better than Form.


    btw, this latest version is some what different from the image shown in previous posts where the question was how to give focus to a pop up lookup. Now it's a drop down for product.
    -- I could not solved the Popup problem, so changed to drop-down.

    Comment


      #77
      Re: x_Dialog Tab Stops

      Try this. add this event code to the browse xml
      Code:
      <browse .......
      <code>
      	<OnFetch>
      		dim shared InvId as C
      		If alltrim(Invoice_Number.text) > "" then
      			InvId = Invoice_Number.text
      		End If
      	</OnFetch>
      	<events>
      		function Quantity_OnChange as v ()
      			dim shared Invid as C
      			If alltrim(Invoice_Number.text) = ""
      		 		Invoice_number.value = InvId
      		 	End If
      		end function 
      	</events>
      </code>
      <title ............
      Tim Kiebert
      Eagle Creek Citrus
      A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.

      Comment


        #78
        Re: x_Dialog Tab Stops

        Originally posted by Al Buchholz View Post
        2. Field rule The question still remains of why all of this work in an xdialog rather than a form that can be opened as a dialog?
        I too would like to know, been wondering that for years that john has been on this lone mission.

        "Ours isn't to ask why but answer how" - so sayeth Zarasuthstra.

        Comment


          #79
          Re: x_Dialog Tab Stops

          John's sample database is the closest I've found on how to call the xml browse definition in an XD.

          Not to bogart his thread...but does anyone have an example of displaying multiple browses in an XD? Or preferably an example of a dashboard for the desktop perhaps?
          Robin

          Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

          Comment


            #80
            Re: x_Dialog Tab Stops

            Mo

            Generate the XML dialogs and copy and paste into one dialog.

            Make sure you change the pointer names for each dialog.

            _______________________

            For those playing along at home,

            I prefer Field Rule level code for things like setting link values, but to each his own.

            To modify the previous idea I had so a typical hdr detail set can also work.

            1. remove the default for the HDR id in the lines table.

            2. Replace with code in the Events - Record Events - CanSaveRecord
            to save the hdr id if not already given a value (ie by the hdr detail set relationship)
            Code:
            dim iitbl as P
            iitbl= table.current()
            if iitbl.invoice_number = "" then
               iitbl.invoice_number= Var->vInvHdrId
            end if
            frDefaultId2HdrId.png

            And thanks again Lenny for fixing the upload attachments.

            That is all....
            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


              #81
              Re: x_Dialog Tab Stops

              It is working good. I wrote the variable, as Al suggested, on the <table>event -> OnWroteField and CanSaveRecord.
              Code:
              'set the dim global vgInvhdrId at Invoice_header table and
              <table>event ->OnSaveRecord 
              tbl= table.current()
              vgInvhdrId=tbl.invoice_number
              
              'at Invoice_item table
              dim tbl as P
              tbl= table.current()
              if tbl.invoice_number = "" then
                 tbl.invoice_number= Var->vgInvHdrId
              end if
              Thank you every one.

              xml Invoice dlg.jpg

              Comment


                #82
                Re: x_Dialog Tab Stops

                @AL - you commented on several posts I found about dashboards on the desktop, I was hoping you might have an example? even a screen shot or an XD script?
                Robin

                Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

                Comment


                  #83
                  Re: x_Dialog Tab Stops

                  Originally posted by johnkoh View Post
                  It is working good. I wrote the variable, as Al suggested, on the <table>event -> OnWroteField and CanSaveRecord.
                  Code:
                  'set the dim global vgInvhdrId at Invoice_header table and
                  <table>event ->[B][COLOR="#FF0000"]OnSaveRecord [/COLOR][/B]
                  tbl= table.current()
                  vgInvhdrId=tbl.invoice_number
                  
                  'at Invoice_item table
                  dim tbl as P
                  tbl= table.current()
                  if tbl.invoice_number = "" then
                     tbl.invoice_number= Var->vgInvHdrId
                  end if
                  Thank you every one.

                  [ATTACH=CONFIG]41504[/ATTACH]
                  John

                  You have 2 statements that mention different events.

                  CanSave and OnSave are quite different.

                  CanSave happens prior to the row being saved and OnSave is after the row is saved.

                  I doubt that OnSave works in this case.

                  What are you doing in the OnWrote field? I don't see where that was mentioned and why it is needed.
                  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


                    #84
                    Re: x_Dialog Tab Stops

                    Originally posted by MoGrace View Post
                    @AL - you commented on several posts I found about dashboards on the desktop, I was hoping you might have an example? even a screen shot or an XD script?
                    Can you get me some spare time?
                    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


                      #85
                      Re: x_Dialog Tab Stops

                      @Al - with 8840 posts I figured you had lots of spare time hee hee
                      Robin

                      Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

                      Comment


                        #86
                        Re: x_Dialog Tab Stops

                        Originally posted by MoGrace View Post
                        @Al - with 8840 posts I figured you had lots of spare time hee hee
                        I'll never catch or be as good as those guys ahead of me ( or most of them behind either.....)

                        Check your email.
                        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


                          #87
                          Re: x_Dialog Tab Stops

                          Al,

                          Thank you for your point.
                          I tried only one event which is the CanSaveRecord or OnWroteField Event in Invoice_item table, It works with only one event.


                          'set the dim global vgInvhdrId at Invoice_header table and <== I thought I will get the vgInvHdrId's value (Invoice_Number) at here
                          <table>event ->OnSaveRecord
                          tbl= table.current()
                          vgInvhdrId=tbl.invoice_number

                          'at Invoice_item table * CanSaveRecord or one of field OnWrote event is working well. I do not need the duplicate code.
                          dim tbl as P
                          tbl= table.current()
                          if tbl.invoice_number = "" then
                          tbl.invoice_number= Var->vgInvHdrId
                          end if

                          Comment


                            #88
                            Re: x_Dialog Tab Stops

                            Tim,

                            Code:
                            <code>
                            	<events>
                            		function Quantity_Onchange as v()
                            			If alltrim(invoice_number.text)="" then
                            				invoice_number.value=vgInvHdrId
                            			end if	
                            		end function	
                            	</events>
                            </code>
                            It works well without "<onFetch>" code. The "<OnFetch>" is made an error.

                            Thank you

                            Comment

                            Working...
                            X