EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
  • 1.  EGL - href link not working inside td tag

    Posted Mon December 04, 2017 10:19 AM

     

    Hi 

    I am new to EGL.I am trying to create a link on the webpage to the IFS folder. The intention is to bring the documents from AS400 IFS folder and display them in a new browser on the web page.

    But the link does not work when I click on it. But when I copy and paste the link on a browser it works.

    Any suggestion would help.

    Thanks in advance.

    Shown is the code below.

     

    <td colspan="2" valign="middle" height="132" align="center" nowrap width="195"><input id="form1:text1" type="text" name="form1:text1" value="" class="inputText" size="4" /><br>
    <br>
    <input type="submit" value="Process Year" id="form1:button1" name="form1:button1" class="commandExButton" /><br><br><span id="form1:text5" class="outputText">Click on Link below for documents</span><br><br>
    <a href="\\qsbl\SBLUSER\EmployeeFiles\" target="_blank">\\qsbl\SBLUSER\EmployeeFiles\</a>
    </td>

     

    Web.MQI


  • 2.  Re: EGL - href link not working inside td tag

    Posted Tue December 05, 2017 02:23 AM

    Hi,

    this won't work because of some security reasons of the browser.

     

    You have to work with the HTTP Server.

    You could copy something like this in the config of your http server to allow directoy listing.

    #DATEN FolderAlias /Daten /Daten<Directory /Daten>Order allow,denyAllow from allOptions Indexes FollowSymLinks</Directory>

    Now you can display the files of the folder 'daten'.

    In EGL you could use the HyperLink widget like this:

    HyperLink HyperLink{text = "IFS", href = "http://192.168.10.3:80/Daten", target = "_blank"};

     

     

    Kind Regards!

     

    Marcel-D


  • 3.  Re: EGL - href link not working inside td tag

    Posted Fri May 04, 2018 11:20 PM

    Thank you for the response.

    The request to display the files have changed. It is no longer coming from IFS.

     

    Will post the new request below.

    Web.MQI


  • 4.  Re: EGL - href link not working inside td tag

    Posted Fri May 04, 2018 03:04 AM

    If the files are available on the machine the Websphere Application Server is, it is also possible to use Redirects on the HTTP server.

    1. Via Server properties , container management, directories you can add the library which is trusted.
    2. Then you have to add an alias via: Server properties, url-mapping, aliases.

    This way it is possible to open files from this location.

    Greetings, Jeroen.

    Jerrycan


  • 5.  Re: EGL - href link not working inside td tag

    Posted Fri May 04, 2018 11:21 PM

    Thank you for your response.

    Web.MQI


  • 6.  Re: EGL - href link not working inside td tag

    Posted Fri May 04, 2018 11:22 PM

    The new requirement by the user is to create a new EGL page and then link it to a folder in the network which is password protected.

    But the link should be able to either bypass password or default the password. 

    Is that possible?

    Web.MQI