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

Dialog box Title

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

    Dialog box Title

    How can i change the title of dialog or confirmation boxes in alpha five? e.g. when i made a button and assigned an action script which is delete, and i clicked, the button and prompts me with a conformation if i want to delete the record,what will i do to change title of the dialog box?

    #2
    Re: Dialog box Title

    Found some thread regarding this but they were not answered, I figured it out a bit, but this is okey with me.
    My solution was , i created an action script prompting the user for yes no dialog, then i played a script on yes option,
    the script was just simply an xbasic delete - topparent.delete_record(). maybe this could also be applicable in save confirmation etc,i'l try later.
    This solution could be suited for beginners like.

    Comment


      #3
      Re: Dialog box Title

      Now it's not working, maybe i overlooked a while ago, i thought it's working, but i still see the built in alpha five title in the confirm dialog. Please Help.Thanks!

      Comment


        #4
        Re: Dialog box Title

        I use a script as follow
        Code:
        dim tbl as p
        tbl = table.current()
        tbl.delete_record()
        This will delete the current record without any confirmation.

        Use a action script or xbasic for the confirmation dialog.
        action_sc.PNG

        Cornelius

        Comment


          #5
          Re: Dialog box Title

          Thank you Cornelius. I appreciate it very much!

          Comment


            #6
            Re: Dialog box Title

            I thought the delete that Cornelius shared is working , but when i added a new browse it deletes all the child records instead of the current record in a browse.

            Comment


              #7
              Re: Dialog box Title

              Code:
              dim tbl as p [COLOR="#0000FF"]'establish table pointer variable[/COLOR]
              tbl = table.current() [COLOR="#0000FF"]'get pointer to current table, either the table or parent table of a set on which the layout is based[/COLOR]
              tbl.delete_record() [COLOR="#0000FF"][/COLOR][COLOR="#0000FF"]'delete a record in the table[/COLOR]
              If you are working with a set this will delete the parent record and orphan all related child records. If you want to delete a single child record you need

              tbl = table.current(#)

              where # is the position of the table in the set.
              There can be only one.

              Comment


                #8
                Re: Dialog box Title

                Originally posted by Corelius View Post
                I use a script as follow
                Code:
                dim tbl as p
                tbl = table.current()
                tbl.delete_record()
                This will delete the current record without any confirmation.

                Use a action script or xbasic for the confirmation dialog.
                [ATTACH=CONFIG]30494[/ATTACH]

                Cornelius
                This works fine if it is only 1 table, How do i modify the code so that i can delete in individual tables in a set? Same with add, How do i add on individual tables in a set?Thanks!

                Comment


                  #9
                  Re: Dialog box Title

                  Originally posted by Stan Mathews View Post
                  Code:
                  dim tbl as p [COLOR="#0000FF"]'establish table pointer variable[/COLOR]
                  tbl = table.current() [COLOR="#0000FF"]'get pointer to current table, either the table or parent table of a set on which the layout is based[/COLOR]
                  tbl.delete_record() [COLOR="#0000FF"][/COLOR][COLOR="#0000FF"]'delete a record in the table[/COLOR]
                  If you are working with a set this will delete the parent record and orphan all related child records. If you want to delete a single child record you need

                  tbl = table.current(#)

                  where # is the position of the table in the set.
                  "If you are working with a set this will delete the parent record and orphan all related child records. If you want to delete a single child record you need"
                  Thanks Stan for the quick reply,Yap it did deletes the parent and child records are left.
                  ,How do i get the position of the table in the set? pls. help, i'm still on my third week in learning Alpha five,I have no books , no tutorials, just this forum.

                  "If you are working with a set this will delete the parent record and orphan all related child records. If you want to delete a single child record you need" Yap it did deletes the parent and child records are left.

                  Comment


                    #10
                    Re: Dialog box Title

                    You have access to the same wiki that everyone else does.

                    Wiki
                    .current()
                    There can be only one.

                    Comment


                      #11
                      Re: Dialog box Title

                      Thanks much! Stan I got it, I tried deleting in individual tables and it worked, , I'll try to add also in individual tables.
                      Last edited by JetLi; 01-20-2012, 11:44 AM.

                      Comment


                        #12
                        Re: Dialog box Title

                        Are you not able to use the links I provided?

                        TABLE.CURRENT( [ Slot_Number as N ] )

                        If your current table is part of a set, Slot 1 is the primary table, Slot 2 is the first child, Slot 3 is the grandchild or the primary table's second child, and so on. All open tables, whether or not they are part of a set, will occupy slots in the session.
                        There can be only one.

                        Comment


                          #13
                          Re: Dialog box Title

                          I thought the delete that Cornelius shared is working , but when i added a new browse it deletes all the child records instead of the current record in a browse.
                          I like to setup a button in the embedded browse.
                          browse.png

                          You have to get the right table pointer, please look at script as follow:
                          Code:
                          function Actions0_ButtonClick as v( event as C,data as C, row as N)
                          	this.Set_Viewport_row(row)
                          	IF this.Table_Get().Mode_Get() > 0 THEN
                          		this.Commit()
                          	END IF
                          	
                          	dim tbl as p
                          	dim ret as n
                          	ret = ui_msg_box("L�schen", "Delete this row?",UI_QUESTION_SYMBOL+UI_YES_NO)
                          	if ret = UI_YES_SELECTED then
                          		tbl = this.table_get()
                          		tbl.delete_record()		    
                          	end if
                          
                          	
                          end function
                          Cornelius

                          Comment


                            #14
                            Re: Dialog box Title

                            Thats a very neat concept Cornelius for this type of application
                            It would be nice to get your input in here more often.

                            Comment

                            Working...
                            X