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

Script just stops

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

    Script just stops

    Can anyone please tell me why this script does not proceed to open the form 'Tx_Form_Open'?????
    Form is valid and everything else works up to that point.
    thanx
    D

    Date Created: 13-Sep-2004 12:22:56 AM
    'Last Updated: 13-Sep-2004 08:54:16 AM
    'Created By : Dick Coleman
    'Updated By : Dick Coleman

    'Open a Form layout, displaying all records in the layout. Set sort order.
    query.filter = ".t."
    query.order = "Cus_name_last+Cus_name_spouse_1+Cus_name_spouse_2"
    'Open the layout_type showing all the records that satisfy the filter
    DIM Shared varP_cusform_tabbed as P

    DIM layout_name as c
    layout_name = "cusform_tabbed"
    varP_cusform_tabbed = :Form.viewqueried(layout_name,query.filter, query.order )

    'Create an XDialog dialog box to prompt for last name. ----- Progressive Lookup Code Below.... Find and pick Customer record by name...
    repeat_lookup:
    DIM SHARED vTypeIn as C
    DIM SHARED vSelect as C
    DIM SHARED varC_result as C
    ok_button_label = "&OK"
    cancel_button_label = "&Cancel"
    DIM vSelect_rl_def_orig as C
    vSelect_rl_def_orig = "kl=c_customers,{keylist_build(\"H=.025,1:25[Last Name],2:25[Husband],3:25[Wife]\",''+recno(),left(''+Cus_name_last,25),left(''+Cus_name_spouse_1,25),left(''+Cus_name_spouse_2,25))}{Cus_name_last "= [varC-"vTypeIn]}"
    DIM vSelect_rl_def as C
    vSelect_rl_def = replace_parameters(vSelect_rl_def_orig,local_variables())
    varC_result = ui_dlg_box("Customer_Select",""%dlg%
    {region}
    Enter a Last Name:| [.40vTypeIn!vTypeIn_changed];
    | [%@vSelect_rl_def%.60,15vSelect];
    {endregion};
    {line=1,0};
    {region}
    "*15=ok_button_label!OK" "15=cancel_button_label!CANCEL"
    {endregion};
    %dlg%,""%code%
    If a_dlg_button = "vTypeIn_changed" then
    vSelect_rl_def = replace_parameters(vSelect_rl_def_orig,local_variables())
    a_dlg_button = ""
    end if
    %code%)

    'Now go to the customer record picked above.... display all data
    'Conditional code follows. Executes only if the condition expression is True.
    IF a5_eval_expression("=Var-"varC_result=\"OK\"") THEN
    'Go to a specified record number in Form 'cusform_tabbed' .
    DIM var_recno_target as N
    var_recno_target = val(vSelect)
    DIM object_name as C
    object_name = ":"+"cusform_tabbed"
    DIM varP_Object as p
    'Get a pointer to the specified object
    varP_Object = obj(object_name)
    'Check if the specified object exists
    if .not. is_object(varP_Object) then
    ui_msg_box("Error","The object '"+object_name+"' does not exist.",ui_stop_symbol)
    else
    varP_Object.recno_goto(var_recno_target)
    end if
    END IF

    'Display a message box (style:'OK, Cancel Buttons', image: 'Question symbol', id: 'cusOK').
    DIM SHARED cusOK_result as N
    DIM SHARED cusOK_OK_Button as L
    DIM SHARED cusOK_CANCEL_Button as L
    cusOK_OK_Button = .F.
    cusOK_CANCEL_Button = .F.

    title_var = "Correct Customer?"
    message_text_var = ""%text%
    If Customer is correct then Press 'OK'
    to continue with making appointment.
    %text%
    cusOK_result=ui_msg_box(title_var,message_text_var,UI_OK_CANCEL+ UI_SECOND_BUTTON_DEFAULT+ UI_QUESTION_SYMBOL)

    'Test to see which button on the message box was pressed....
    SELECT
    CASE cusOK_result = UI_OK_SELECTED
    cusOK_OK_Button= .t.
    CASE cusOK_result = UI_CANCEL_SELECTED
    cusOK_CANCEL_Button= .t.
    END SELECT

    'Conditional code follows. Executes only if the condition flag is True.
    if .not. cusOK_OK_Button
    goto repeat_lookup
    end if
    '---------------------------------------------------------------------------------------------------------------- works to here....then just stops...........
    IF cusOK_OK_Button THEN
    'Get 'Value' property of multiple objects in Form 'cusform_tabbed' .
    DIM window_name as C
    window_name = ":"+"cusform_tabbed"
    DIM varP_Object as p
    'Get a pointer to the specified window
    varP_Object = obj(window_name)
    'Check if the specified window exists
    if .not. is_object(varP_Object) then
    ui_msg_box("Error","The window '"+window_name+"' does not exist.",ui_stop_symbol)
    else
    DIM GLOBAL vcNextApptNum AS c
    vcNextApptNum = varP_Object:Cus_nxt_appt_num.value
    DIM GLOBAL vcOpenTx AS c
    vcOpenTx = varP_Object:Cus_open_tx_number.value
    DIM GLOBAL vcCusLastName AS c
    vcCusLastName = varP_Object:Cus_name_last.value
    DIM GLOBAL vdNextAppt AS d
    vdNextAppt = varP_Object:Cus_next_appt.value
    DIM GLOBAL vcCusHomePhone AS c
    vcCusHomePhone = varP_Object:Cus_home_phone.value
    DIM GLOBAL vcCusID AS c
    vcCusID = varP_Object:Cus_id.value
    ui_msg_box("",vcNextApptNum,ui_ok)
    ui_msg_box("",vcOpenTx,ui_ok)
    ui_msg_box("",vcCusLastName,ui_ok)
    ui_msg_box("",vdNextAppt,ui_ok)
    ui_msg_box("",vcCusID,ui_ok)
    end if
    END IF




    end
    'Conditional code follows. Executes only if the condition flag is True.
    IF cusOK_OK_Button THEN
    'Open a Form or Browse layout, displaying all, or selected records in the layout.
    query.filter = ".t."
    query.order = "Tx_id_number"
    '===============================================================do i need to change varP_Tx_Form_Open to varP_open_tx_form???
    'Open the layout_type showing just the records that satisfy the filter
    DIM Shared varP_Tx_Form_Open as P
    DIM layout_name as c
    layout_name = "Tx_Form_Open"

    ' dim tempP as p
    ' 'Get pointer to existing window. In case layout_name is qualified with a dictionary name, extract up to first @. In case formname has spaces, normalize it
    ' tempP=obj(":"+object_name_normalize(word(layout_name,1,"@")))
    ' 'Test if pointer is valid
    ' if is_object(tempP) then
    ' 'Test if pointer refers to a form or browse
    ' if tempP.class() = "form" .or. tempP.class() = "browse" then
    ' 'Apply the query to the form or browse as the Base query. (this means that
    ' 'the user cannot turn the query off, only add to the query)
    ' tempP.BaseQueryRun(query.filter,query.order)
    ' 'then activate the already open window
    ' tempP.activate()
    ' else
    ' 'Window is not already open, so open it
    ' varP_Tx_Form_Open = :Form.viewqueried(layout_name,query.filter, query.order )
    ' end if
    ' else
    varP_Tx_Form_Open = :Form.viewqueried(layout_name,query.filter, query.order )
    ' end if
    END IF

    'Conditional code follows. Executes only if the condition flag is True.
    IF cusOK_OK_Button THEN
    'Enter new record in Form 'Tx_Form_Open' at parent level.
    DIM object_name as C
    object_name = ":"+"Tx_Form_Open"
    DIM varP_Object as p
    'Get a pointer to the specified object
    varP_Object = obj(object_name)
    'Check if the specified object exists
    if .not. is_object(varP_Object) then
    ui_msg_box("Error","The object '"+object_name+"' does not exist.",ui_stop_symbol)
    else
    varP_Object.new_record()
    end if
    END IF

    #2
    RE: Script just stops

    NEVER MIND, I FOUND OUT WHAT THE PROBLEM WAS....

    Thanx anyway
    D

    Comment


      #3
      RE: Script just stops

      and it was?????
      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


        #4
        RE: Script just stops

        the original problem was caused by a 'mis-named' form.
        That was fixed, but now a later, shorter thread describes additional problems...
        I'm trying to enhance some action scripting to accomplish specific steps that (at least by me) cannot be accomplished in action scripting.

        D

        Comment

        Working...
        X