Tech Tip: Customize Columns in WebLink 7.0.5

As an administrator, you can create a better WebLink experience for you and your users by limiting the amount of configuration needed on the user’s part.

January 12th, 2009 Comment on this article

As an administrator, you can create a better WebLink experience for you and your users by limiting the amount of configuration needed on the user’s part. Specifically, you can customize your WebLink installation to display specific columns by default, to save users from having to add each column themselves, and you can prevent users from modifying the default columns you have configured.

For example, you might want to add the “Date Created” column so users can see when a document was created. Or you might want to add a field as a column, such as adding the “Author” field to display the author next to each entry. Currently, by default, the only column displayed is “Name.” Follow the steps below to add the “Date Created” and “Author” columns (or you can substitute other column names in this example) and prevent users from changing this configuration.

Note: The following instructions use Microsoft Visual Studio 2008. If using a different programming environment, these steps may vary.

Note: Make a copy of the Web Files folder just in case you need to revert to it.

To add “Date Created” and “Author” as default columns

1. Browse to C:Program FilesLaserficheWebLink 7Web Files and open WebLink7.vbproj.

2. From the Solution Explorer, expand the WebLink7 project, right-click on Login.aspx, and select View Code.

3. Scroll down to the bottom of the file.

4. Under Insert code to set the default columns below, add the following code

conn.AddDefaultColumn(Column_Type.COLUMN_TYPE_EVENTDATE)

conn.AddDefaultColumn(”Author”)

5. Save the Login.aspx page.

To prevent column modification by removing the Browse and Search Options

1. Navigate to C:Program FilesLaserficheWebLink 7Web Files and open WebLink7.vbproj.

2. From the Solution Explorer, expand the WebLink7 project, right-click on MyWebLink.aspx and select View Code.

3. Scroll down to line 80 of the file.

4. Comment out lines 80-84 by adding an apostrophe (’) at the beginning of each line.

2009-01-12-commented-out

5. Save the MyWebLink.aspx page.

6. In the menu, select Build, then Rebuild WebLink7.

7. Users will now see the Name, Date, and Author columns when opening WebLink. The Search and Browse options will be hidden from users preventing them from changing the default columns.

Custom Default Columns

2009-01-12-custom-columns

The Browse and Search Options have been removed

2009-01-12-hidden-browse-search

Tags:

Comment on this article