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

form w/ embedded browse jpeg field = jpeg field

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

    form w/ embedded browse jpeg field = jpeg field

    I have a form with an embedded browse with the following code in the onrowdblclick event. I have a jpeg field in the browse and want to copy the picture to a jpeg field on the form. The line with the comment "this does not work" is what I have come up with after searching the forum and other resources on Alpha5 helps. Any help with this would be appreciated.

    Code:
    temp=CATBROWSE.active() 
    temp2=eval("CATBROWSE:" + temp + ".text") 'CHANGED TO TEXT
    topparent:TEMP_MEMO.value=details.value 'this works
    topparent:TEMP_PIC.value = a5_get_jpeg(pic.value) 'this does not work
    end
    Last edited by AaronBBrown; 11-20-2006, 03:16 PM.

    #2
    Re: form w/ embedded browse jpeg field = jpeg field

    Originally posted by reedorbs View Post
    topparent:TEMP_MEMO.value=details.value 'this works

    topparent:TEMP_PIC.value = a5_get_jpeg(pic.value) 'this does not work
    My take on the documentation is that A5_GET_JPEG() is used to display a dialog box. Did you try
    Code:
    topparent:TEMP_PIC.value = pic.value
    There can be only one.

    Comment


      #3
      Re: form w/ embedded browse jpeg field = jpeg field

      I used that code at first and it didnt work. I have also studied the blob functions. Thanks for your reply.

      Comment


        #4
        Re: form w/ embedded browse jpeg field = jpeg field

        Originally posted by reedorbs View Post
        I used that code at first and it didnt work. I have also studied the blob functions. Thanks for your reply.
        Well, if it is any consolation, I can't figure it out either.

        I was able to do something like what you want by

        Place a bitmap on a form
        Make the field in the child table browse an image reference field (not a jpeg field)
        Populate the image field with bitmaps (not jpg files)
        Make the onrowdblclick code bitmap1.bitmap.filename = browse1:pgj.value where pgj is the fieldname of the image reference field

        Still looking into it.
        There can be only one.

        Comment


          #5
          Re: form w/ embedded browse jpeg field = jpeg field

          Thanks for your reply and study time. I have been testing near something like you suggested. Will use what you added to see if it works. Thanks again.

          Comment


            #6
            Re: form w/ embedded browse jpeg field = jpeg field

            Originally posted by reedorbs View Post
            Thanks for your reply and study time. I have been testing near something like you suggested. Will use what you added to see if it works. Thanks again.
            I did notice that when I tried to populate the image reference field with jpg images and then use the same code to change the image shown in the bitmap field, the first record in the child table would replace the shown image when double clicked. Subsequent double clicks would, in the debugger with debug(1) preceeding the attempt to assign the image reference field value to the bitmap object, throw an error1 which I took to mean that the referenced image was not found. Very strange and I intend to delve further into the reason.
            There can be only one.

            Comment


              #7
              Re: form w/ embedded browse jpeg field = jpeg field

              With your code I came up with this code. The picture copies to the form's bitmap image. Now I need the code to copy to the form's parent table's field.

              temp=CALBROWSE.active()
              temp2=eval("CALBROWSE:" + temp + ".text") 'CHANGED TO TEXT
              topparent:TEMP_MEMO.value=details.value
              topparent:bitmap1.bitmap.filename=Picref.value
              'topparent:temp_memo.refresh()
              end

              On both the details and the Picref fields I have had to put a field from the browse on the form.

              This is what I have come up with so far to get the bitmap into a jpeg field and I also tested with the field Mon1_pic as a image reference field. The code does not work.

              topparent:Mon1_pic.value =ui_get_image_filename(Picref.value)

              Thanks for your help.

              Comment


                #8
                Re: form w/ embedded browse jpeg field = jpeg field

                Originally posted by reedorbs View Post
                With your code I came up with this code. The picture copies to the form's bitmap image. Now I need the code to copy to the form's parent table's field.

                temp=CALBROWSE.active()
                temp2=eval("CALBROWSE:" + temp + ".text") 'CHANGED TO TEXT
                topparent:TEMP_MEMO.value=details.value
                topparent:bitmap1.bitmap.filename=Picref.value
                'topparent:temp_memo.refresh()
                end

                On both the details and the Picref fields I have had to put a field from the browse on the form.

                This is what I have come up with so far to get the bitmap into a jpeg field and I also tested with the field Mon1_pic as a image reference field. The code does not work.

                topparent:Mon1_pic.value =ui_get_image_filename(Picref.value)

                Thanks for your help.

                Try
                Code:
                topparent:Tables:[COLOR="Red"]YourTableNameHere[/COLOR]:Mon1_pic.value =ui_get_image_filename(Picref.value)
                There can be only one.

                Comment


                  #9
                  Re: form w/ embedded browse jpeg field = jpeg field

                  The last code that I suggested along with your code suggestion put the action of my mon1_pic field asking for a choice of file names. I would like the on event of another field in this instance called Mon1 to trigger the bitmap that your code filled to fill the jpeg field to be filled.


                  topparent:MON1.value = temp2 'form field
                  topparent:MON1_MEMO.value = TEMP_MEMO.value 'form field
                  topparent:Mon1_pic.value = a5_get_jpeg(topparent:bitmap1.value) 'form field


                  This code returns the following error:

                  Invalid data-type for this operation



                  Thanks again Stan

                  Comment


                    #10
                    Re: form w/ embedded browse jpeg field = jpeg field

                    Originally posted by reedorbs View Post
                    The last code that I suggested along with your code suggestion put the action of my mon1_pic field asking for a choice of file names. I would like the on event of another field in this instance called Mon1 to trigger the bitmap that your code filled to fill the jpeg field to be filled.


                    topparent:MON1.value = temp2 'form field
                    topparent:MON1_MEMO.value = TEMP_MEMO.value 'form field
                    topparent:Mon1_pic.value = a5_get_jpeg(topparent:bitmap1.value) 'form field


                    This code returns the following error:

                    Invalid data-type for this operation



                    Thanks again Stan

                    I think I'm lost, and wrong. If MON1, MON1_MEMO, and MON1_pic are table fields that you are trying to set the values for you would use lines like

                    Code:
                    topparent:Tables:[COLOR="Red"]YourTableNameHere[/COLOR]:Mon1_pic =ui_get_image_filename(Picref.value)
                    eliminating the ".value" from the assignment.

                    If I'm not close to what you are trying to do, you could attach a sample table with a description of the desired result.
                    There can be only one.

                    Comment


                      #11
                      Re: form w/ embedded browse jpeg field = jpeg field

                      I am not quite clear on the question:
                      Are you trying to copy an image from a browse based on one table to a field in a form based on another table?

                      Comment


                        #12
                        Re: form w/ embedded browse jpeg field = jpeg field

                        Thanks Gabrial for your reply,


                        Yes that is exactly what I'm trying to do. I have the image transfering to a bitmap on the form but cannot get it to the actual jpeg field in the table. The jpeg field is on the form.


                        Thanks

                        Comment


                          #13
                          Re: form w/ embedded browse jpeg field = jpeg field

                          Gabriel,

                          Sorry for the mispell on your name.

                          Comment


                            #14
                            Re: form w/ embedded browse jpeg field = jpeg field

                            Reed:
                            I am sorry but I am still not clear on what you want to do. Browses and Forms aside, Are you transfering an image from one table to a different table? or from one field in a table to another field on the same table?

                            Comment


                              #15
                              Re: form w/ embedded browse jpeg field = jpeg field

                              Gabriel,
                              I have a embedded browse in a form. I'm using the doubelclick event on the browse to transfer the image from the browse table to the form's table.

                              Thanks

                              Comment

                              Working...
                              X