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

Report Header dynamic bitmap name

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

    Report Header dynamic bitmap name

    I am now forging on and learning reports. Since my web application is multi tenancy, I have different companies needing to have their logo across the top of my reports.

    I have the path to their bitmaps contained in a session variable and am having trouble directing the report's bitmap to this session variable. I read on another post from Peter Greulich saying that session variables need to be put in calc fields which I have declared rptlogofilename = session.logofilename in the calculated values table. I am getting an error in that table, but when I set the expression in one of the header cells to rptlogofilename, it correctly prints the filename and directory.

    When I set the dynamic file name of a bitmap to rptlogofilename, I get something, but is so small I cannot read it and it is certainly not the jpg file. I have checked the jpg files to make sure they are good.

    Therefore, I think I am close, but not quite there.

    Thanks for looking.

    Andy

    #2
    Re: Report Header dynamic bitmap name

    Hi Andrew,

    If you have uploaded the images why do you need to have their bitmaps contained in a session variable? I have done what you are asking see my site and check out Featured Vacancies. Click on item under Post title.
    Regards
    Keith Hubert
    Alpha Guild Member
    London.
    KHDB Management Systems
    Skype = keith.hubert


    For your day-to-day Needs, you Need an Alpha Database!

    Comment


      #3
      Re: Report Header dynamic bitmap name

      Thanks Keith,
      I did look at your site and am not sure I am following the parallels. If I am understanding your site, it is popping up a dialog or PDF of job vacancies. Though it is quite possible I am missing your demonstration.

      I am trying to have a bitmap control reference an external file at the system level. I am not loading the JPG into Alpha or PostgreSQL. Down the line I will need to do something similar for reports containing pictures of potentially thousands of plants. Therefore, while at this juncture I could conceivably just load the JPG's into Alpha or Postgres, at a later time I will need to know how to reference them in the file system.

      Thanks....Andy

      Comment


        #4
        Re: Report Header dynamic bitmap name

        Hi Andy,

        What I was hoping to show you was, how an image can be used in a report that had been uploaded. The image itself is not stored in a table, only the reference to it.
        Are you trying to reference the image file manually?
        Regards
        Keith Hubert
        Alpha Guild Member
        London.
        KHDB Management Systems
        Skype = keith.hubert


        For your day-to-day Needs, you Need an Alpha Database!

        Comment


          #5
          Re: Report Header dynamic bitmap name

          I am not sure of the proper terminology for what I am trying to do. The best example is that my tabbed ui menu references the session.logofilename variable which then shows the appropriate company logo in the upper left of the tabbed menu. The variable is set when a user logs in by referring to the employee table and seeing which company they work for. Therefore, the end result is a menu that looks like it was custom built for each company, but wasn't.

          I am attempting to do the exact same thing with the layout table reports by allowing the space and control for a company logo in the upper left, yet the exact filename is ?dynamically? set from the session.logofilename variable. Therefore, one report will work for many companies, yet look like it was designed for each individually.

          Hope this makes sense.

          Thanks..

          Comment


            #6
            Re: Report Header dynamic bitmap name

            Hi Andrew

            I am also trying to use an image reference field on a MySql based report - at the moment I only seem to be able to use a Blob saved version of the image rather than the referenced filename, i.e. the relevant datafile is going to get rather large rather quickly.

            I will also be wanting to use an image referenced by a session variable filename in future reports.

            The joys of web programming!

            Comment


              #7
              Re: Report Header dynamic bitmap name

              Hi Andrew

              Did you get anywhere with this?

              I really need to know how to include an "image reference field" image in a report from an SQL database.

              Maurice

              Comment


                #8
                Re: Report Header dynamic bitmap name

                Click on your image, set it to embedded image, choose some dummy image.
                Click on the Report>Calculated Fields

                Do: dim company_logo as C=if(eval_valid("session.__protected__logo"),session.__protected__logo,"placeholderimage.jpg"))

                Click on your image again, in the properties change it to Dynamic

                For the value you do calculated_fields->company_logo

                Or something similar.

                Goodluck

                p.S ive struggled with this too and just had to figure it out myself.
                Scott Moniz - Computer Programmer/Analyst
                REA Inc.
                http://reainc.net
                (416)-533-3777
                [email protected]

                REA INC offers consulting services, programming services, systems design, database design, third party payment gateway integration (CHASE, PAYPAL, AUTHORIZE.NET) and developer support.
                If you need custom code, or 1-to-1 mentoring in any facet of your database/web application design,
                contact us to discuss options.

                Comment


                  #9
                  Re: Report Header dynamic bitmap name

                  Hi Keith,

                  I am trying to do exactly what you mentioned above, have a reference field in one of my SQL tables. I am using the HTML cell content with this syntax; <img src="{logo}" width="2in" alt="Company Logo" /> where {logo} is my reference field with a content of subdirectory/filename.jpg. But no matter what it does not show up.

                  Any ideas?
                  Juan Silva
                  My Small Bizz, LLC
                  sigpic

                  Comment


                    #10
                    Re: Report Header dynamic bitmap name

                    This may help - if you edit the data source definition for the report, there is an Advanced Options button which allows you to override field definitions - see the attached jpg.
                    Here you can say that the field actually holds an image reference.
                    The image will not display on the report preview but, after publishing, it should appear quite happily on the web report.
                    For a multi-tenanted application, I link the tenant information file (which holds this image reference) to the main report files via a tenantid field on all of the datafiles - this link being "added" to the data source definition.

                    $RTTAHJ2.jpg

                    Comment


                      #11
                      Re: Report Header dynamic bitmap name

                      Thank you Maurice,

                      Found it and changed my definition, but my image is still a no show, so far tried laying the field directly on the report and also inserting it as an HTML <img src="{Logo}" style="width:3in;height:px">, but all I get on the web after publishing is the Alpha wait working message.

                      My picture is a png and only 37k, also tried fully qualified file name and root reference.
                      Juan Silva
                      My Small Bizz, LLC
                      sigpic

                      Comment


                        #12
                        Re: Report Header dynamic bitmap name

                        Juan

                        Attached are two images showing my data source definition and the report in design mode - the companylogo record is C:\A5Webroot\Web Accounts\images\complogos\stlogo.BMP.
                        As you will see, I start with the tenant's compinfo record (picked up via a session.tenantid session variable) and then link subsequent files via the tenantid fields.

                        All I do is lay the field from the SQL datasource on to the report - no special HTML code.

                        File type should not be an issue but you could try a different one.

                        rep_design.jpgreport_dsdef.jpg

                        Comment


                          #13
                          Re: Report Header dynamic bitmap name

                          Thank you again Maurice,

                          Turned out I had defined filter conditions at both the report query definition and the report open report action JavaScript and that was preventing any data from loading. This is my first report and I am still getting the hang of it.
                          Juan Silva
                          My Small Bizz, LLC
                          sigpic

                          Comment

                          Working...
                          X