Iconics Suite - Listing PDF files from a given directory and displaying the selected PDF in Web Browser Control

Iconics Suite - Listing PDF files from a given directory and displaying the selected PDF in Web Browser Control

This article is to show how to create display with dynamic list of the PDF files from exact directory on your hard drive and how to use web browser control to display those files

PDF files folder

Prepare folder with your PDF files under this path:

Reading list of files (Workbench)

Using Workbench prepare Data Source under any SQL Server Native connection:

Prepare custom query (query as text highlighted below):

Declare @T Table (name nvarchar(256), depth int, isFile int)
Insert @T EXEC xp_dirtree 'c:\PDFs', 2, 1
Select * from @T where name like '%pdf'

Display with list of files and files browser (GraphWorX64)

Create new display in GraphWorX64 and put on it Table control and Web Browser control.

Table control configuration

Open Table control configuration popup and in General Tab change Data Source to just created custom query:

Now go to Runtime Tab and activate Commands on Events.
Next select Row Click event and pick command Set Global Aliases.
As global alias please use this sytax (just put in data input) : 
It should look like this:

Apply changes and close configuration popup.

Web Browser control configuration

Click on web browser control and show its properties.
As a Source property put  :

It should look like this:

Now in the runtime when you click on the pdf file name in table it will load pdf file in web browser:

    • Related Articles

    • Iconics Suite - FDA 21 CFR 11

      This article contains information about Iconics funcionalities in compliance with 21 CFR 11. 21 CFR 11 Using Iconics GENESIS64 solutions allows system integrators to create SCADA applications in compliance with FDA 21 CFR Part 11, which is an ...
    • Iconics Suite - Client type check (GraphWorX or web browser)

      This article give you possibility to recognize on which Iconics Suite client type your display is open and use this information for future action like show or hide certain elements Notice quality code 192 is good, 0 is bad Expression for label ...
    • Iconics Suite - Question mark tags (Current etc.)

      This article show the list and usage of ?Current tags and rest of special syntax tags with question mark on beginning of the tag ?Current tags The Security Server exposes several points that expose information about the user, who is currently logged ...
    • Iconics Suite - Table control - Filtering data with Date Picker using DataSource parameter - solving Web Browser Date Picker incompatibility

      This sample Display (attached file) will show you how to proper use DataSource parameters on Data Base queries with Date Picker in GraphWorX64 and Web Browser (AnyGlass technology) The reason of this article is that Date Picker in Web Browsers ...
    • Iconics Suite - Installation guide

      This article will guide you how to prepare your operating system and database to install Iconics Suite. Please note that you will have to have Windows full admin user account to install Iconics properly! To complete Iconics Suite installation without ...