IBM/ibmi-oss-examples

[Node Books Example] Parse ini file to determine Systems

Closed this issue · 0 comments

Currently the books examples hard codes servers to use as DSNs

<div class="form-group">
<label for="username">Server:</label>
<div class="btn-group">
<button id="server_selection" type="button" class="btn btn-secondary dropdown-toggle"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">oss72dev</button>
<div class="dropdown-menu dropdown-menu-right">
<button id="server_oss72dev" class="dropdown-item" type="button">oss72dev</button>
<button id="server_oss73dev" class="dropdown-item" type="button">oss73dev</button>
<button id="server_oss74dev" class="dropdown-item" type="button">oss74dev</button>
</div>
</div>
</div>

We should instead check if there any DSNs defined by parsing the .odbc.ini file

If DSNs are not found then allow the user to specify the host, username, password to establish the odbc connectinon