Archive for November, 2009

Crystal Reports – Dynamic Images

November 10, 2009 Leave a comment

In Ultrabot Product, we show Ultrabot logo on the top right corner of the page header. This image is embedded into the crystal report file. Some time when a product instance is customized for a client, client asks to replace the Ultrabot logo with some other image. Changing the logo for a customized instance was a manual and time consuming process. We had to open each crystal report file and replace the logo image.

Now, we have used a crystal report property to load the image dynamically. Image path is stored into setup_constants.asp file and is loaded on the reports. So now if we want to change the logo on all reports, we will just need to change the constant in the setup_constants.asp file. This technique will help us to change the logo quickly and to have different logos for different instances by just changing the path in the setup_constants.asp file.

With the addition of this functionality, please note the following steps for each new report that is designed for Ultrabot Product and other versions:

· Add a new Parameter Field: pMainReportLogo

· Copy the Logo from one of the existing reports and place it in the appropriate position on the report

· Edit the Format Formula

o “Right Click logo à Format Graphic… à Picture (Tab 2) à Change Location”

o Enter {?pMainReportLogo} in the above mentioned format formula

Please note that, without performing the above mentioned steps the report cannot be displayed properly.

If you have any further questions, please let me know. Thanks.

Categories: ASP.Net Tags:

Retain Searh/Filter Values in ASP

November 10, 2009 Leave a comment

Hi All,

I have recently added a long awaited feature in ultrabot to retain the search filters on the list pages. E.g. Previously, if you search for a specific user set and edit one of the user, on coming back to the main users list the search criteria was lost and users had to re-search.

This problem is fixed now and Ultrabot retains the search filters in the above mentioned (and other similar) cases. Search filters for a list are cleared on either pressing the clear and search buttons or navigating away from the list form by clicking on the links in the main menu.
The usage of this functionality is quite straight forward, but we need to take care of this while adding/modifying any field on the search section of the list forms.

For now, all main lists support this functionality and it can be further added to any list. If you want to see from code, if the list supports search cache or not, just search for the variable “mainListName” in the source code. if this variable is defined then all future items in the search area must be compatible with this technique. Please follow the following instructions:

mainKeywords = Request.Form(“txtKeywords”)

Replace this with

mainKeywords = GetSearchField(mainListName,


Search fields for the drop-downs can be used as:

mainCategoryID = CLng(GetSearchField(mainListName, “Category”, “cbCategory”, “-1”))
Categories: ASP