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

Pass value from Grid to Dialog that is bound to a different table

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

    #16
    Re: Pass value from Grid to Dialog that is bound to a different table

    Just a random thought...do you think my trigger on the Transaction table is causing the issue? I can't see why it would but stranger things have happened...
    Never take a ride to the edge of your mind unless you've got a ticket back - Jon Oliva - Savatage.

    Comment


      #17
      Re: Pass value from Grid to Dialog that is bound to a different table

      I looked at that, but I doubt it. Alpha is just going after the a record.

      The problem is with the keys... both what you define in the Dialog call and what's in the table.

      In the dialog, you have Transact_Id specified as the key to the Limits table. This isn't right. But fixing this doesn't fix your problem. In effect, you're trying get around the real key, but Alpha's not falling for it.

      Alpha is taking what you give it - Transact_Id, and uses this value to get into the Limits table. When I change the key of the Limits table to be the Transact_Id, it all works. When I change the key to a 2 part key in the table and specify just the Transact_ID in the call then the grid throws an error. With just Limit_Id set at the key in the table, and Transact_ID used in the call, then the grid goes after the Key of the table... Limit_Id and pulls (what seems) like the wrong record - but it is actually correct. It's grabbing the key of the Limits table.

      I would say that the setup you want is not right. Limits has a key... Limit_Id. There could be 10 records in there with the same Transact_Id. Therefore, you'd be pulling 10 records if this worked the way you set it up.

      It seems that you need to to after a dialog table with just the Transact_Id as the key.

      Does this make any sense?
      Last edited by Davidk; 04-05-2012, 05:32 PM.

      Comment


        #18
        Re: Pass value from Grid to Dialog that is bound to a different table

        Yes, but the setup I think is correct for what I want. A Transaction can have many Limits over time. Think of it this way. You buy Auto Insurance. On the transaction level you would be the Insured and the Broker...whomever. Your policy has Limits. The new year rolls around and you renew the policy. You now have a new set of Limits. Nothing has changed at the Transaction level for the policy you bought. We just add a new Limits record. This now shows us a history for your coverage that was purchased year after year.

        In fact you can have many Transactions as well. Each for its own Policy (Auto, Home, Umbrella)...each would have its own Limits and Renewals. Does that make sense?

        I may be wrong still in my thinking/design as I'm still very "Green" to developing. This is my first attempt.

        I really appreciate your help.
        Joe
        Never take a ride to the edge of your mind unless you've got a ticket back - Jon Oliva - Savatage.

        Comment


          #19
          Re: Pass value from Grid to Dialog that is bound to a different table

          Originally posted by Davidk View Post
          In the dialog, you have Transact_Id specified as the key to the Limits table.
          Sorry...I'm confused by this. I'm looking at my limitsd dialog and under Specify Primary Key and Sequences I have LIMIT_ID set as the Primary key.
          Never take a ride to the edge of your mind unless you've got a ticket back - Jon Oliva - Savatage.

          Comment


            #20
            Re: Pass value from Grid to Dialog that is bound to a different table

            Maybe it's me then... I thought I saw Transact_Id in there. Regardless, it's not going to work because you're passing in the value of Transact_Id and Alpha is grabbing the Key - Limit_Id - and grabbing the value of that key - 17 - and it's not what you're after. In the Limits table, is Transact_Id unique?

            Comment


              #21
              Re: Pass value from Grid to Dialog that is bound to a different table

              I don't believe I have anything specifying the Transact_Id on the Limits table as unique. I would think it couldn't be given the one to many that is needed.
              Never take a ride to the edge of your mind unless you've got a ticket back - Jon Oliva - Savatage.

              Comment


                #22
                Re: Pass value from Grid to Dialog that is bound to a different table

                So... you're in the Transaction Grid... you pull up a record... and the Limits button is displayed. You click the Limits button... do you expect one record in the Limits dialog, or many?

                Comment


                  #23
                  Re: Pass value from Grid to Dialog that is bound to a different table

                  Over time it will be many, as an Insured renews their policy.
                  Never take a ride to the edge of your mind unless you've got a ticket back - Jon Oliva - Savatage.

                  Comment


                    #24
                    Re: Pass value from Grid to Dialog that is bound to a different table

                    So you can't go after that table based on Transact_ID - because you'll get more than one record returned in the dialog. Is that what you want?

                    Comment


                      #25
                      Re: Pass value from Grid to Dialog that is bound to a different table

                      If the Transact_id field is equal in both tables then I want muliple limits returned. Remember the relationship of tranaction to limits table is expected to be one to many.

                      Joe
                      Never take a ride to the edge of your mind unless you've got a ticket back - Jon Oliva - Savatage.

                      Comment


                        #26
                        Re: Pass value from Grid to Dialog that is bound to a different table

                        Ok... I wasn't sure. However, it looks like Alpha is going after the Key field in the Limits table... and the Key field is Limit_Id. Alpha is NOT performing a select on the Transact_ID field in the Limits table.

                        In the Open Dialog Component settings, Alpha is very specific in their help message about defining the Primary Keys. These are the keys where Alpha is getting the data from in the Grid. They are very specific because Alpha goes directly to the table and just grabs the keys, in order... they are not looking at field names at all. Therefore, if your key in Limits is Limit_ID, then Alpha is grabbing the value in that key.

                        If I were you, I would email them making the suggestion that they allow a target table field name definition in which you can specify the exact field you want to use to select data from in the target dialog.
                        Attached Files

                        Comment


                          #27
                          Re: Pass value from Grid to Dialog that is bound to a different table

                          You are correct. I did pose the question to Alpha. Personally I think the wording at the bottom of the Action Javascript could be a little clearer. Simply state that the value chosen from the Grid will be passed against the Primary Key of the Dialog. I'm also going to make you suggestion as I think it would be a nice enhancement.

                          Thanks
                          Joe
                          Never take a ride to the edge of your mind unless you've got a ticket back - Jon Oliva - Savatage.

                          Comment


                            #28
                            Re: Pass value from Grid to Dialog that is bound to a different table

                            You can still get what you what, though. You can write an onDialogInitialize event to get the data you need. There are a few video on the subject. Going to have a look at those.

                            Comment


                              #29
                              Re: Pass value from Grid to Dialog that is bound to a different table

                              Thanks...Selwyn has suggested creating the Grid based on an SQL statement joining Transaction to Limits so that I can pass the Limits value. I'm not sure yet if that will work as Limit_ID does not have a value until a Transaction is created and my Trigger fires creating the related record.
                              Never take a ride to the edge of your mind unless you've got a ticket back - Jon Oliva - Savatage.

                              Comment


                                #30
                                Re: Pass value from Grid to Dialog that is bound to a different table

                                I was thinking of that as well, but figured you didn't have the Limit_Id when you needed it. I think letting the Dialog get the data would be good. Passing in the Transact_Id is easy - lots of ways to do that.

                                Comment

                                Working...
                                X