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

Record search issues and editing

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

    Record search issues and editing

    I'm working on a phone directory application. Currently I'm experiencing the following issues:
    1. The firsrt issue is with a form. This form is order by employee number. Now this form has multiple searchable fields. So when I run a find on the first name "John" the find sends me to the first John it comes across by order of employee number however when click to go to to the record it takes me to the next record by employee number instead of taking me to the next first name 'John' record. Is there a way I can view all the John record after a find?

    2. My second issue is that when an browse view is opened it still allows any potential end user to edit records. I want to avoid that. My question is this how do I make sure that nobody can edit these records upon opening a browse in my app.

    #2
    Re: Record search issues and editing

    I can help with one a little. Users should not be allowed access in most cases to anything they can mess up.

    2. My second issue is that when an browse view is opened it still allows any potential end user to edit records. I want to avoid that. My question is this how do I make sure that nobody can edit these records upon opening a browse in my app.
    Restrict access to the Alpha control panel from any form or elsewhere, Provide a browse(imbedded?) in a/your form that has restrictions in it that users cant get to. In other words, a browse where they can look or maybe edit, but not enter a new record.

    --------------------------------------

    This one is a little harder. I don't use a form filter. I do use a query which is kinda the same thing, but done different.

    1. The firsrt issue is with a form. This form is order by employee number. Now this form has multiple searchable fields. So when I run a find on the first name "John" the find sends me to the first John it comes across by order of employee number however when click to go to to the record it takes me to the next record by employee number instead of taking me to the next first name 'John' record. Is there a way I can view all the John record after a find?
    I do this with a drop down on a button and works great. Pay special attention to the part in red. I think it will do what you want. I gave the whole button push so maybe there are other ideas to help you. any reference to fields would have to be changed, of course.

    ONPUSH
    Code:
    'Date Created: 24-Nov-2007 06:05:08 PM
    'Last Updated: 27-Oct-2009 04:46:49 PM
    'Created By  : dave
    'Updated By  : dave
    dim dopath as c
    dopath = a5.Get_Exe_Path()
    vmenuitems = <<%a%
    Active Customers
    Pending Customers
    Sold Customers
    Sold Customers by Last Name
    Sold Customers By Last Name with Good Address
    Sold Businesses
    Ordered Vehicles
    Dead Deals
    Special Sorting
    Find Text in field
    %a%
    a_command = ui_popup_menu(vmenuitems)
    select case
    '=====================================================================================================
    case a_command = "Active Customers"
     dim shared numbs as n
     numbs = A5_get_records_in_query("names","scode=var->scode.and.status='A'")
     if numbs <= 0 then
      ui_msg_box("None Found","There are no Active Customers Found")
      goto end
     end if 
     tbl=table.current()
     query.description = "Active"
     query.order = "date"
     query.filter = "scode=var->scode.and.status='A'"
     query.options = "N"
     tbl.query_create()
     parent.fetch_last()
     topparent.Resynch()
     topparent.Refresh_Layout()
    '=====================================================================================================
    case a_command = "Sold Customers"
     dim shared numbs as n
     numbs = A5_get_records_in_query("names","scode=var->scode.and.status='S'")
     if numbs <= 0 then
      ui_msg_box("None Found","There are no Sold Customers Found")
      goto end
     end if 
     tbl=table.current()
     query.description = "Sold"
     query.order = "date"
     query.filter = "scode=var->scode.and.status='S'"
     query.options = "N"
     tbl.query_create()
     parent.fetch_last()
     topparent.Resynch()
     topparent.Refresh_Layout()
      
    '=====================================================================================================
    case a_command = "Sold Customers By Last Name with Good Address"
     dim shared numbs as n
     numbs = A5_get_records_in_query("names","scode=var->scode.and.status='S'")
     if numbs <= 0 then
      ui_msg_box("None Found","There are no Sold Customers Found")
      goto end
     end if 
     tbl=table.current()
     query.description = "Sold Customers"
     query.order = "buyer+fname"
     query.filter = "scode=var->scode.and.status='S'.and.nomail<>'N'"
     query.options = "N"
     tbl.query_create()
     parent.fetch_first()
     topparent.Resynch()
     topparent.Refresh_Layout()
    '=====================================================================================================
    case a_command = "Sold Customers by Last Name"
     dim shared numbs as n
     numbs = A5_get_records_in_query("names","scode=var->scode.and.status='S'")
     if numbs <= 0 then
      ui_msg_box("None Found","There are no Sold Customers Found")
      goto end
     end if 
     tbl=table.current()
     query.description = "Sold Customers"
     query.order = "buyer"
     query.filter = "scode=var->scode.and.status='S'"
     query.options = "N"
     tbl.query_create()
     parent.fetch_first()
     topparent.Resynch()
     topparent.Refresh_Layout()
    '=====================================================================================================
    case a_command = "Sold Businesses"
     dim shared numbs as n
     numbs = A5_get_records_in_query("names","scode=var->scode.and.status='S'")
     if numbs <= 0 then
      ui_msg_box("None Found","There are no Sold Business Units Found")
      goto end
     end if 
     tbl=table.current()
     query.description = "By Business"
     query.order = "fname+buyer"
     query.filter = "scode=var->scode.and.status='S'"
     query.options = "N"
     tbl.query_create()
     topparent.Resynch()
     topparent.Refresh_Layout()
    '=====================================================================================================
    case a_command = "Ordered Vehicles"
     dim shared numbs as n
     numbs = A5_get_records_in_query("names","scode=var->scode.and.status='O'")
     if numbs <= 0 then
      ui_msg_box("None Found","There are no Order Customers Found")
      goto end
     end if 
     tbl=table.current()
     query.description = "Order Customers"
     query.order = "acct"
     query.filter = "scode=var->scode.and.status='O'"
     query.options = "N"
     tbl.query_create()
     parent.fetch_last()
     topparent.Resynch()
     topparent.Refresh_Layout()
    '=====================================================================================================
    case a_command = "Dead Deals"
     dim shared numbs as n
     numbs = A5_get_records_in_query("names","scode=var->scode.and.status='D'")
     if numbs <= 0 then
      ui_msg_box("None Found","There are no Dead Deals Found")
      goto end
     end if 
     tbl=table.current()
     query.description = "Dead Deals"
     query.order = "date"
     query.filter = "scode=var->scode.and.status='D'"
     query.options = "N"
     tbl.query_create()
     parent.fetch_last()
     topparent.Resynch()
     topparent.Refresh_Layout()
    '=====================================================================================================
    case a_command = "Special Sorting"
     'Custom Sort dialog in current form at parent level.
     topparent.QuickSortMultiFld()
    '=====================================================================================================
    [COLOR=darkred]Case a_command = "Find Text in field"
     dim pObj as p 
     pObj = topparent.this 
     dim TextToLocate as c 
     TextToLocate = ui_get_text("Locate What","Select text to locate")
     if TextToLocate = "" then 
       end 
     end if 
     if TextToLocate = "" then 
      ui_msg_box("Error","You must specify non-blank text to Locate.",UI_STOP_SYMBOL)
     end
     end if 
     dim tbl as p 
     tbl = pObj.table_get()
     dim locateFlag as l 
     locateFlag = tbl.fetch_loc_next(TextToLocate)
     if locateFlag = .t. then 
      pObj.resynch()
     else
      ui_msg_box("Note","Text not found.",UI_INFORMATION_SYMBOL)  
     end if [/COLOR]
    '=====================================================================================================
    case a_command = "Pending Customers"
     dim shared numbs as n
     numbs = A5_get_records_in_query("names","scode=var->scode.and.status='P'")
     if numbs <= 0 then
      ui_msg_box("None Found","There are no Pending Sales Found")
      goto end
     end if 
     tbl=table.current()
     query.description = "Pending"
     query.order = "date"
     query.filter = "scode=var->scode.and.status='P'"
     query.options = "N"
     tbl.query_create()
     parent.fetch_last()
     topparent.Resynch()
     topparent.Refresh_Layout()
    '=====================================================================================================
     
    end:
    end select
    Dave Mason
    [email protected]
    Skype is dave.mason46

    Comment

    Working...
    X