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

Search Grid On A Desktop Form

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

    #31
    Re: Search Grid On A Desktop Form

    Sorry...Didn't see your update.

    I now understand what I was doing wrong.

    Thank you very much for your continued help!

    Comment


      #32
      Re: Search Grid On A Desktop Form

      Hi Stan

      Using this same search method, how do I search I by date?

      I have tried by using a variable of
      v_created = " / / "
      with the below coding.

      filt = ""
      if var->v_fnme > ""
      filt = filt + quote(var->v_created) +" $ crtd_date"
      filt = ltrim(filt," .and. ")
      parentform.QueryRun(filt)
      end if
      Not sure what I am doing wrong?

      Comment


        #33
        Re: Search Grid On A Desktop Form

        Originally posted by ADCO Service View Post
        Hi All

        I have created a Search Grid web component and embedded it on a desktop form. This Search Grid is designed to allow the user to search for a specific customer in the database. (Please see pic) I'm looking to create a link between the search grid and the customer desktop form. The idea being that when the user comes across the customer they are looking for, they can simply click either on the row or a link that would then open the related customer form.

        Is this possible? And if so, how do I build it?
        No I don't think it's possible. I've tried this several times and have yet to get it to work. I wish it could because it is very easy to set up and is quite powerful. Aside from doing as Ted suggested, you could show the grid. You can use buttons to go from there.
        TYVM :) kenn

        Knowing what you can achieve will not become reality until you imagine and explore.

        Comment


          #34
          Re: Search Grid On A Desktop Form

          Originally posted by ADCO Service View Post
          Hi All

          I have created a Search Grid web component and embedded it on a desktop form. This Search Grid is designed to allow the user to search for a specific customer in the database. (Please see pic) I'm looking to create a link between the search grid and the customer desktop form. The idea being that when the user comes across the customer they are looking for, they can simply click either on the row or a link that would then open the related customer form.

          Is this possible? And if so, how do I build it?

          [ATTACH=CONFIG]32199[/ATTACH]
          Originally posted by forskare View Post
          No I don't think it's possible. I've tried this several times and have yet to get it to work. I wish it could because it is very easy to set up and is quite powerful. Aside from doing as Ted suggested, you could show the grid. You can use buttons to go from there.
          Actually this can be done. See video http://www.ajaxvideotutorials.com/V1...TheDesktop.swf which is DT6 on this page http://news.alphasoftware.com/v11pre...opApplications See also the videos in DT5

          I made an example using Melvins previous sample. The form Search_grid contains the embedded grid. Clicking the link(Svc_id) in the grid will open a desktop form filtered to the correct record. See the javascript code in the OnClick event in the grid. This runs the function defined in the code tab on the desktop side with the id passed in.

          Hope this helps.
          Attached Files
          Last edited by Tim Kiebert; 11-18-2012, 04:19 PM. Reason: spelling
          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


            #35
            Re: Search Grid On A Desktop Form

            This is one time when I am happy I was wrong. Actually, half wrong. Thank you for looking into this. I really appreciate your efforts as I'm sure, many others will as well. I give you five gold stars

            Update: I added an autosuggest look-up to the Svc_nme field. It works fine except when I click the Search button, it says there are no records in the query. I haven't a clue how that could be but I'll try to figure it out.

            Update2: I added a record the the Svce_nme would be short, "smith". I a lookup is used, either the auto-suggest or the Edit-Combo, it returns an empty query. Remove the lookup and it works fine. It causes me to wonder there it itch is located. Does the lookup conflict with the code in the OnClick event or is there a bug?

            I added a detail section and removed the code in the on click event and the tried the lookup and got the same result, no records in the query. The should rule out the code as a problem but is it a bug? Hmmm, more experimenting to do. Stay tuned.
            Last edited by forskare; 11-18-2012, 01:01 PM.
            TYVM :) kenn

            Knowing what you can achieve will not become reality until you imagine and explore.

            Comment


              #36
              Re: Search Grid On A Desktop Form

              I've actually abandoned the idea of embedding a search grid, although Tim your post was really excellent and I'll need to look into it in more detail.

              At the moment my search form is based on Stan's code. I'm just having problems with modifying it to search for a date field.

              See post #32 for my details.

              Comment


                #37
                Re: Search Grid On A Desktop Form

                Hi Tim

                I've been reviewing the sample app you uploaded.

                Your method for linking the grid to a desktop form is fantastic!!!

                I tried to duplicate your work in my application but sadly nothing happens after clicking the link.

                I've attached a sample of my app. Any idea as to what I'm doing wrong?

                Athena_2.0.zip

                Originally posted by Tim Kiebert View Post
                Actually this can be done. See video http://www.ajaxvideotutorials.com/V1...TheDesktop.swf which is DT6 on this page http://news.alphasoftware.com/v11pre...opApplications See also the videos in DT5

                I made an example using Melvins previous sample. The form Search_grid contains the embedded grid. Clicking the link(Svc_id) in the grid will open a desktop form filtered to the correct record. See the javascript code in the OnClick event in the grid. This runs the function defined in the code tab on the desktop side with the id passed in.

                Hope this helps.

                Comment


                  #38
                  Re: Search Grid On A Desktop Form

                  You missed one minor detail. The script in the code tab called 'Open_Cust_Form' should be a function with the same name. The string that gets created in the click event in the grid will be in the form of - Open_Cust_Form("1") This is what the A5 function genericXbasicUIFromWorkingPreview(xb) runs when you click the id. As you can see the code is simply a function call with the id passed to it, in contrast to a scriptplay.
                  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


                    #39
                    Re: Search Grid On A Desktop Form

                    Tim...You are a gentleman and scholar.

                    Thank you very very much!

                    Comment


                      #40
                      Re: Search Grid On A Desktop Form

                      Your welcome.
                      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


                        #41
                        Re: Search Grid On A Desktop Form

                        Hi Tim

                        Quick Question...

                        I want to use this method to add the "svc_id" field value from my search grid to a desktop form called "form_interaction_service".

                        I've added a button to the grid component and tried to run a javascript code to store the "svc_id" as a variable (usesvcrid) and run a function called "Use_Svcr". (See Code Bellow)

                        Code:
                        var rn={Grid.RowNumber};
                        var usesvcrid = {grid.object}.getValue('G','svc_id',rn);
                        
                        
                        var xb = 'Use_Svcr("'+usesvcrid+'")'; 
                        
                        genericXbasicUIFromWorkingPreview(xb);
                        The "Use_Svcr" function is designed to add the usesvcrid variable to a field called "svc_id" on the "form_interaction_service" form.

                        Code:
                        FUNCTION Open_Svcr_Form AS C (id AS C )
                        
                        'Set 'Value' property of 'Svcr_id' in Form 'form_interaction_service' .
                        DIM window_name as C
                        window_name = ":"+"form_interaction_service"
                        DIM varP_Object as p
                        'Get a pointer to the specified window
                        varP_Object = obj(window_name)
                        varP_Object:Svcr_id.value = convert_type(usesvcrid,"numeric")
                        
                        END FUNCTION
                        At the moment the button doe nothing when I press it.

                        Any suggestions?

                        Comment


                          #42
                          Re: Search Grid On A Desktop Form

                          Yes, a couple of suggestions.

                          Your code to get the usesvcrid is ok.

                          Firstly, the name of the function you have created in the code tab to do the work is not named the same as the function you are calling from the button. (Open_Svcr_Form instead of Use_Svcr)

                          Secondly the variable you are passing in to the convertType function should be 'id' (the varname that you are passing in to the Use_Svcr function)


                          Although the word 'numeric' seems to work in the convert type function, the documentation says to use a single letter.
                          Last edited by Tim Kiebert; 01-31-2013, 05:24 PM.
                          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

                          Working...
                          X