The objective of this module was to programmatically create a formatter in Drupal 8 to play a You Tube video.
The image below shows the video in a Drupal 8 website.
The objective of this module was to programmatically create a formatter in Drupal 8 to play a You Tube video.
The image below shows the video in a Drupal 8 website.
The objective of this module was to programmatically create a table in a database with four columns and to create an interactive form into which data can be entered and saved in the table.
The image below shows the form with data on clothing materials carried by Moxy Clothing Inc.
The objective of this module was to present a welcome mesage in various formats to a logged in user to a Drupal 8 website.
In the first format, the message is presented on the main content page and in the left sidebar. Two different messages are presented in this format.
In the next format, the welcome message is first written into a configuration form which is saved. This message is them presented to the user when he/she logs in for the first time.
In the third format, the message is changed. The message in the left sidebar is not the same as that in the main content page.
The objective of this module was to programmatically create a database of Metsi employees, their respective departments and the location of the departments. Metsi has sixteen employees in four departments located in two buildings in the Ottawa, Canada region. The departments are software development, new software testing, IT Education, and software promotion.
There are two tables in the database that were created programmatically using hook schema: employee name and department, and department name and location.
The names of the employees were then outputted to a table with 8 employees per page with the option to go to the next page.
The following screenshot shows the table of Metsi employees with a table header and a pager.
New fields and data were added to the tables as updates using Drush.
There are two tables in this database each with four fields. The objective of this project was to extract the information in those fields using Views. Because data in the table fields are different, the tables had to be joined in order to extract the information from both table fields. The relationship feature of Views was used for this.
To get going, a new view was created in the Admin->Structure->Views menu. A table was created in Views and the database table fields were extracted and added to the Views table. The table below shows the result using Views. The information was organized as follows: player ID, player name, team ID, team name and team description. A pager was added to the Views table set to allow 8 items per page.
Provisions were included for filters and sorters to be applied to the extracted data.
Views table showing data from two joined database tables |
This project was created using Visual COBOL 6.0 and Visual Studio 2019. The objective was to interactively extract data from an indexed COBOL datafile and apply the result to a webform.
To begin,
start up Visual Studio. Select File, New, Project. Select ASP.NET Web Application for COBOL as
the template. Framework should be .NET
Framework 4.6.
Give the
project a name and a storage location. Click Create. This should open up a form.
Go to
Solution Explorer and add the projects LegacyBook and BookWrapper to the
application as well as into the reference of the application. LegacyBook is a procedural COBOL project that
contains the business logic which the form can use. LegacyBook uses COBOL types such as PIC X and
PIC 99V99. The BookWrapper project
converts data from .NET types to COBOL types.
Note that
LegacyBook requires a copybook (book-rec.cpy) and so does the BookWrapper
project (book-rec-dotnet.cpy).
At this point, it is time to paint the Webform. Painting the labels, buttons and textboxes on to the form was done by direct coding in the Default.aspx file and not by dragging and dropping them from the Toolbox. The attachment below shows the Default.aspx file with the coding for this project.
The Default.aspx file showing the coding for the webform |
Once the form has been drawn, it is time to add the following code to the Web.config file.
The Web.config file |
Note that
the indexed COBOL data file (bookfile.dat) is added to the Web.config file.
Next add the
following code in the Default.aspx.cbl file.
The Default.aspx.cbl file that activates all the controls on the form |
The completed webform with a search result for book number 2222 |
The form
should be filled up with the results of the search. The following shows a search for book number
2222.
Example Products in the On-Line Store |
Excel Spreadsheet of table generated in Relativity Designer |
Bar graph generated from Excel Spreadsheet by Year |
Table showing results by quarter and by year |
Bar Graph displaying results by Quarter and by Year. |
The table generated with Relativity Designer from the Customer table |
The table generated with Relativity Designer from the orders table |
DataGrid View |
Details View |
Grid View result of the Book table from the Library database |
GridView result from the Employee table of the xtreme database. |
One slide on the frontpage slideshow, a left sidebar, and five tabs on the main menu |
Another slide on the frontpage slideshow |
A third slide on the frontpage slideshow |
When the tab on the front page is clicked, this page opens up showing a sample of men's socks |
When the tab on the front page is clicked, this page opens up showing a sample of women's socks |
Location Map |
This screen capture shows the welcome message when the user logs in, and on the left sidebar as a block |
This screen capture shows a configuration form which is editable; the message can be put in this form, saved, and called up in a block which is placed on a sidebar |
This screenshot shows a message in a block placed in the left sidebar with the name of the user.; a welcome message is also shown when the Welcome tab is clicked. |
Table showing the names of the soccer players. Note also the block on the left sidebar. |
Emily School of Art Student Registration Form |
Registration Form after someone has signed in |