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

initializing field

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

    #31
    Re: initializing field

    Not sure how you're going to do that. It doesn't really make sense. Using a bound data Grid with a Detail View to perform CRUD operations on the parent and 4 different child tables. For example... let's say you have 2 ApplicantAddresses for 1 Applicant. How is the Grid going to show that? You'd be better off working with a UX to edit the related children of the Grid parent.

    Comment


      #32
      Re: initializing field

      http://screencast.com/t/O8IutDmJJOj

      http://screencast.com/t/B3bDqij7JBz

      I am able to update three secondary tables and update without any code.
      take a look.
      thanks for reading

      gandhi

      version 11 3381 - 4096
      mysql backend
      http://www.alphawebprogramming.blogspot.com
      [email protected]
      Skype:[email protected]
      1 914 924 5171

      Comment


        #33
        Re: initializing field

        Originally posted by GGandhi View Post
        may be I missed the whole thing in the last 29 posts. I never realized that you have four child tables, not clear to me.
        if you can post an example diagram of parent and child tables one of us will be able to help. I am sure.
        Take a look at the database schema,

        Database Diagram.doc. Please Note, i have APPLICANTS table with existing records before i created the rest of the three tables and the code for this insertion. In your last video cast, the AplicantId was inserted to the Address table before updates was carried out on the table. but in this case, the ApplicantId records was not in existence.

        Comment


          #34
          Re: initializing field

          i have APPLICANTS table with existing records before i created the rest of the three tables ...
          the ApplicantId records was not in existence.
          then, i do not know to fix easily, i don't even know how the records will relate to each other in the query, grid and detail view without the linking field to be present.
          you could do probably well with a dialog that opens up to edit the current record from the grid, since the fields are mapped properly it will update properly. you could write a javascript code on dialogExecute function to see if the applicantID is blank then copy the applicantId to that field then save to update. when you use dialog then you will need to pick action edit current record from the popup.
          I do not have any clue, otherwise.
          Last edited by GGandhi; 07-15-2015, 09:11 AM.
          thanks for reading

          gandhi

          version 11 3381 - 4096
          mysql backend
          http://www.alphawebprogramming.blogspot.com
          [email protected]
          Skype:[email protected]
          1 914 924 5171

          Comment


            #35
            Re: initializing field

            Originally posted by GGandhi View Post
            then, i do not know to fix easily, i don't even know how the records will relate to each other in the query, grid and detail view without the linking field to be present.
            you could do probably well with a dialog that opens up to edit the current record from the grid, since the fields are mapped properly it will update properly. you could write a javascript code on dialogExecute function to see if the applicantID is blank then copy the applicantId to that field then save to update. when you use dialog then you will need to pick action edit current record from the popup.
            I do not have any clue, otherwise.
            Okay, Thank you very much for your time spent, i really appreciated your effort towards helping to achieve this. In the course of this, if you later have any clue towards achieving it finally, please let me know. Because the whole thing was messed up initially. Just that the parent table has more than 20,000 records, and i don't really know how to discard it and starting mapping the records with the new application and the database. it was messed up by the initial developer whom i took over from.

            Kind regards,

            Chinedu

            Comment


              #36
              Re: initializing field

              if you later have any clue towards achieving it finally, please let me know
              you could do it. persistence has its rewards.
              here are the steps. if you cannot do it let me know, the computer where I figured this out does not have mic to record sound for now. so if you definitely need it I will connect and record later.
              create the grid and the detail as usual, but make the address fields ( all of them read only by enable/disable expression 1=2. so it cannot be edited by self. next to the address put a button. call that add address. the button will have show/hide expression name field !="" and street field = "".(essentially you are eliminating all the records where the data is present the button will not be visible). onClick of that button will open the dialog you created just now which will have the following actions defined.
              next create a dialog based on the address table and add two functions.
              on client side, onInitializeComplete
              Code:
              var po = {dialog.Object}.getParentObject();
              if (po) {
              var id = po.getValue('D','ID');
              {dialog.Object}.setValue('APPLICANT_ID',id);
              }
              afterAjaxCallbackComplete
              Code:
              var po = {dialog.Object}.getParentObject();
              if (po) {
              po.detailViewRefresh();
              }
              and finally on the dialog afterValidate event add this line before the save action
              Code:
              e.dirtyColumns = e.dirtyColumns + crlf()+ "applicant_id"
              so what will happen:
              when you open the grid then the detail if the address is present, it will show and the add address button will not show, if the address fields are empty but the applicant data is present then the add address button will show, when you click it, it will open the dialog and you fill in the info and close the dialog and the detail view will refresh with the new data and you will go on.
              I may be able to close the dialog onSubmit a little later.
              edit: I need to fix it when you add totally new record. may be later.
              second edit: add the new record via toolbar action button. it all works.
              Last edited by GGandhi; 07-15-2015, 08:33 PM.
              thanks for reading

              gandhi

              version 11 3381 - 4096
              mysql backend
              http://www.alphawebprogramming.blogspot.com
              [email protected]
              Skype:[email protected]
              1 914 924 5171

              Comment


                #37
                Re: initializing field

                Originally posted by GGandhi View Post
                you could do it. persistence has its rewards.
                here are the steps. if you cannot do it let me know, the computer where I figured this out does not have mic to record sound for now. so if you definitely need it I will connect and record later.
                create the grid and the detail as usual, but make the address fields ( all of them read only by enable/disable expression 1=2. so it cannot be edited by self. next to the address put a button. call that add address. the button will have show/hide expression name field !="" and street field = "".(essentially you are eliminating all the records where the data is present the button will not be visible). onClick of that button will open the dialog you created just now which will have the following actions defined.
                next create a dialog based on the address table and add two functions.
                on client side, onInitializeComplete
                Code:
                var po = {dialog.Object}.getParentObject();
                if (po) {
                var id = po.getValue('D','ID');
                {dialog.Object}.setValue('APPLICANT_ID',id);
                }
                afterAjaxCallbackComplete
                Code:
                var po = {dialog.Object}.getParentObject();
                if (po) {
                po.detailViewRefresh();
                }
                and finally on the dialog afterValidate event add this line before the save action
                Code:
                e.dirtyColumns = e.dirtyColumns + crlf()+ "applicant_id"
                so what will happen:
                when you open the grid then the detail if the address is present, it will show and the add address button will not show, if the address fields are empty but the applicant data is present then the add address button will show, when you click it, it will open the dialog and you fill in the info and close the dialog and the detail view will refresh with the new data and you will go on.
                I may be able to close the dialog onSubmit a little later.
                edit: I need to fix it when you add totally new record. may be later.
                second edit: add the new record via toolbar action button. it all works.

                Thanks

                I will appreciate more if you get me the video clip of it.

                Comment


                  #38
                  Re: initializing field

                  part1:
                  http://screencast.com/t/JpXUBxFS
                  part2:
                  http://screencast.com/t/L7Vkr39gFN
                  part3:
                  http://screencast.com/t/QT2K5LOpDl
                  part4:
                  http://screencast.com/t/8c2r6tUEsoS
                  take a look at these screencasts, since lot needs to be done they are broken into 4 parts.
                  I will keep the components for additional week, then delete them. if you have any questions please let me know.
                  I said I will show you how to close the dialog after submit, I am going to leave that to you.
                  not to rob you of the fun in hunt.
                  when all working to your satisfaction you can hide all the fields that are not necessary for the data entry person to see.
                  thanks for reading

                  gandhi

                  version 11 3381 - 4096
                  mysql backend
                  http://www.alphawebprogramming.blogspot.com
                  [email protected]
                  Skype:[email protected]
                  1 914 924 5171

                  Comment


                    #39
                    Re: initializing field

                    Originally posted by GGandhi View Post
                    part1:
                    http://screencast.com/t/JpXUBxFS
                    part2:
                    http://screencast.com/t/L7Vkr39gFN
                    part3:
                    http://screencast.com/t/QT2K5LOpDl
                    part4:
                    http://screencast.com/t/8c2r6tUEsoS
                    take a look at these screencasts, since lot needs to be done they are broken into 4 parts.
                    I will keep the components for additional week, then delete them. if you have any questions please let me know.
                    I said I will show you how to close the dialog after submit, I am going to leave that to you.
                    not to rob you of the fun in hunt.
                    when all working to your satisfaction you can hide all the fields that are not necessary for the data entry person to see.
                    Please, how did you create your Edit and Add button with there javascript? Mine is throwing error.
                    I use the action button and I choose "Open a UX as an alternate editing view for current record"

                    Comment


                      #40
                      Re: initializing field

                      create toolbar action buttons for those.
                      in javascript action open the dialog component for that particular function.
                      take a look at the screencast again.
                      thanks for reading

                      gandhi

                      version 11 3381 - 4096
                      mysql backend
                      http://www.alphawebprogramming.blogspot.com
                      [email protected]
                      Skype:[email protected]
                      1 914 924 5171

                      Comment


                        #41
                        Re: initializing field

                        Originally posted by GGandhi View Post
                        create toolbar action buttons for those.
                        in javascript action open the dialog component for that particular function.
                        take a look at the screencast again.
                        I have gone through it several times, you did not show that part. what particular function of the javascript did u make use of, for Edit and Add?
                        Last edited by eduduru; 07-18-2015, 07:13 PM.

                        Comment


                          #42
                          Re: initializing field

                          go to grid properties then select toolbar action button the give it a name then on the javascript ( few lines down) click and define the action to p=open the dialog and select enter new record.
                          do the same with detail but select edit.\and then double click to add to the component.
                          thanks for reading

                          gandhi

                          version 11 3381 - 4096
                          mysql backend
                          http://www.alphawebprogramming.blogspot.com
                          [email protected]
                          Skype:[email protected]
                          1 914 924 5171

                          Comment


                            #43
                            Re: initializing field

                            http://screencast.com/t/HglbTzUiS7
                            take a look.
                            thanks for reading

                            gandhi

                            version 11 3381 - 4096
                            mysql backend
                            http://www.alphawebprogramming.blogspot.com
                            [email protected]
                            Skype:[email protected]
                            1 914 924 5171

                            Comment


                              #44
                              Re: initializing field

                              Originally posted by GGandhi View Post
                              I have done it.But if i click a record to view the details, it throws the following error;

                              XHTTPRequest Error:

                              500 Internal Server Error
                              Script ErrorError:Script:" /TUSEN-CHINEDU/__a5RunGrid.a5w" line:62
                              x_out = a5_ajax_grid(tmpl)
                              Result set row requested not found while getting result set data column 'MinSalaryReqmtId'.

                              Alpha Anywhere Development Server/12.0 Build/2970-4510 at ALPHA5INTERN1 Port 450

                              applicant.PNG


                              which means i cant view the detail view part after submitting.

                              Comment


                                #45
                                Re: initializing field

                                may be it is time for you to take a screencast or something to show what you are doing.
                                thanks for reading

                                gandhi

                                version 11 3381 - 4096
                                mysql backend
                                http://www.alphawebprogramming.blogspot.com
                                [email protected]
                                Skype:[email protected]
                                1 914 924 5171

                                Comment

                                Working...
                                X