[x]

Site Alert(s):

  • Server maintenance Saturday Nov 22, 2008, 12:00 PM - 3:00 PM. The Knowledge Center will be unavailable during this time.
Rate this Article:
You must be signed in to rate again
Article Feedback Print View
Alternate Languages:

How to Set a Default Folder in Web Interface 4.x

Document ID: CTX107175   /   Created On: Aug 1, 2005   /   Updated On: Jul 1, 2008
Average Rating: 2

Summary

This document describes how to set a folder as the default folder in Web Interface 4.x.

Background

Some users prefer to open a folder in Web Interface as the default folder. This is a setting that can’t be configured in the Access Center Console, it requires a code modification.

Procedure

Warning! Modify the source code at your own risk. Making modifications can cause serious problems that might require you to reinstall your Web Interface.

1. Locate the applist.cs file in the following directory:

x:\Inetpub\wwwroot\citrix\metaframe\site\serverscripts\

2. Open the applist.cs file with a text editor and browse to the following line:

if (currentFolder == null) { currentFolder = ""; }

3. Put the name of the folder you wish to set as the default between the quotation marks. For example:

if (currentFolder == null) { currentFolder = "Microsoft Office Applications"; }

4. Disable the Remember Folder Location feature.

5. In applist.cs locate the following section and add excluding tags. Change the following lines:

    if (currentFolder == null) {
        currentFolder = retrieveCurrentFolderName();
        if (currentFolder == null) {
          if( !java.lang.Boolean.FALSE.Equals(
userPrefs.getRememberFolder() ) ) {
                currentFolder = userPrefs.getCurrentFolder();
            }
        }
    }

To what is shown below:

    if (currentFolder == null) {
        currentFolder = retrieveCurrentFolderName();
/*
        if (currentFolder == null) {
           if( !java.lang.Boolean.FALSE.Equals(
userPrefs.getRememberFolder() ) ) {
                currentFolder = userPrefs.getCurrentFolder();
            }
        }
*/
    }

6. Save the changes and restart Internet Information Services (IIS).

More Information

In Web Interface 4.5, the file is called applist.aspx and is located in the following directory:

C:\Inetpub\wwwroot\Citrix\AccessPlatform\app_data\site\serverscripts

In Web Interface 4.6, the file is called applist.aspxf and is located in the following directory:

C:\Inetpub\wwwroot\Citrix\AccessPlatform\app_data\site\serverscripts

To adjust the setting on a per-user basis, you must actually log on and select Customize the user interface > Presentation Preferences. Refer to the following screen shots:


Search
Knowledge Center
XenApp
XenApp Plugins (Clients)
XenServer
XenDesktop
NetScaler Application Delivery
Access Gateway
EdgeSight
Provisioning Server
WANScaler
Password Manager
Does it work with Citrix? Verify it - introducing the new Citrix Ready Community Verified