You are viewing limited content. For full access, please sign in.

Question

Question

Weblink Explorer View option available ?

asked on August 26, 2014

We are trying to do some iframe work on weblink but we want to have windows explorer file browser view, on weblink there seems to be only one view and there is no option to change its view like windows explorer view.

 

Example page 2 bottom right on this pdf

http://www.citiesdigital.com/documents/Laserfiche_WebLink.pdf

0 0

Replies

replied on August 26, 2014

That tree is still included as part of the controls toolkit, but it's not included in browse.aspx.  You would have to edit the page where you want to insert it and wire it up to the rest of the controls (so that e. g. clicking a folder there updates the entry grid).  It will require some programming so you might want to consult with your reseller.

1 0
replied on August 26, 2014

Controls toolkit ? Are we talking about SDK toolkit here, if i were to edit browse.aspx, I simply cannot without sdk ?

0 0
replied on August 26, 2014

I probably shouldn't have said "toolkit", but WebLink the web application is really two separate parts: an assembly called WebLinkControls that contains a collection of controls (like folder listings, breadcrumbs, search inputs) and some pages that embed them and wire them together.  The idea is that it's possible to add or remove these controls and recompile the pages.  Unfortunately it's not as simple as say dragging an activity into Workflow, so you need someone who is comfortable with ASP.Net.

0 0
replied on August 27, 2014

The solution file included can be opened in which version of VS i tried 2010, 2013 they area all asking for conversion.  I am not even sure if that is the correct file i should be trying to open.

0 0
replied on August 27, 2014

Also to add to that, even if you try to debug/build you run into errors ahoy. I am not sure if we are even given the entire solution so we can modify weblink.

 

0 0
replied on August 27, 2014

First, I'd recommend that you use WebLink 8.2.2, so if you are on an earlier version, please upgrade if possible. Next, use Visual Studio 2008 to open the project. Otherwise, newer versions of VS will prompt you to convert the project. Lastly, regarding the missing references, please see KB 1012912.

0 0
replied on August 28, 2014 Show version history

Another way of implementing this without the need to recompile or tinkering with existing code:

 

1. Open up "Browse.aspx" file and add the following above the line that reads "<weblink:FolderMetadata id="TheFolderMetadata" runat="server"></weblink:FolderMetadata>"

 

<div id="TheFolderBrowser" class="FolderMetadataDiv">
<div class="FolderSectionHeader">
<a title="Hide" id="__FoldersExpando" class="FolderExpandoClass" href="javascript:void(0);" onclick="ToggleSectionVis('__FoldersDataSection','__FoldersExpando');">
<img src="https://www.cityofaikensc.gov/WebLink8/images/chevronup.gif" class="FolderSectionExpando">
<span class="FolderSectionTitleText">Folders</span>
</a>
</div>
<div id="__FoldersDataSection" class="FolderSectionBody">
<div class="DataSection">
<weblink:FolderTree id="TheFolderTree" runat="server" Width="218px" Height="100%"></weblink:FolderTree>
</div>
</div>
</div>

2. At the bottom of the "Browse.aspx" file after the "</html>" element add the following code:

<script language="vbscript" runat="server">
Private Sub Page_LoadComplete(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.LoadComplete, Me.LoadComplete

If Not Page.IsPostBack Then
 Dim StartFolderID As Integer = 1
 If Not IsNothing(Request.QueryString("startid")) Then
  StartFolderID = Request.QueryString("startid")
 ElseIf Not IsNothing(Session(OpenFolderSessionVariable)) Then
  StartFolderID = Session(OpenFolderSessionVariable)
 End If
 TheFolderTree.OpenFolder(StartFolderID)
End If

End Sub

Private Sub Page_Init() Handles MyBase.Init, Me.Init
 TheFolderTree.Connection = m_Conn
End Sub

Private Sub TheFolderTree_SelectedEntry(ByVal sender As Object, ByVal e As EventArgs) Handles TheFolderTree.SelectedEntry

 TheDocumentBrowser.FolderID = TheFolderTree.SelectedFolderID
 FolderBreadcrumbNavigation.EntryID = TheFolderTree.SelectedFolderID
 DocBrowseSearch.CurrentFolder = TheFolderTree.SelectedFolderID
 TheFolderRssLink.FolderId = TheFolderTree.SelectedFolderID
 Session(OpenFolderSessionVariable) = TheFolderTree.SelectedFolderID
 TheFolderMetadata.SetFolder(TheFolderTree.SelectedFolderID)
End Sub

Private Sub TheFolderTree_Disconnected(ByVal sender As Object, ByVal e As EventArgs) Handles TheFolderTree.Disconnected
 RedirectToLogin()
End Sub
</script>

3. Save and reload the page.

 

Now I must warn you that although this has been tested locally and works just fine you will notice that there are some issues with placement of the folder tree. Also, it has not been heavily tested to ensure that there are no major issues that will crop up either.

 

Hope this helps!

2 0
replied on August 29, 2014

Thanks I was able to achieve the folder tree structure by going right inside the browse.aspx.vb , and mine looked similar to yours but I cannot figure out how to pass the system events, example when i open a folder on the documentbrowser panel side of things the foldertree will not expand automatically to open that respective folder/location.

 

So its like having two ways to open a folder but only 1 way will actually work (the foldertree) document browser will not open the respective tree :(. It be great to sync both document browser and folder tree with each other.

 

Thanks though, I was able to compile the solution in VS 2008 and was able to get the tree but cannot figure out syncing !!! maybe RSS feeds or xml might be way to go..

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.