Web UI Extensions
There have been several changes to Cradle web UIs provided by the Cradle Web Access facility. Most of these are internal to the web UIs are will not be relevant to the general user. These changes have been reflected in the web UIs supplied by 3SL, and can be applied in users’ custom web UIs.
If you have created any custom web UIs with the Cradle Web Access facility, then you may need to change the code for your web UIs for them to continue to work with Cradle-5.6. Please contact 3SL, directly or via your Cradle supplier for more information. Direct Login from URL
Users can optionally login to a web UI as part of the initial URL, bypassing the Login screen. This allows Cradle web UIs to be launched from another web page with pass-through of login details by, for example, using Javascript or PHP to construct the full URL based on login details previously supplied by the user.
An example of the URL is shown below (folded onto several lines for improved readability): http://localhost:8015/pdb/direct-login?
username=manager&
password=manager&
projectcode=demo&
access=rw&
action=login Direct Login and Open Item from URL
You can optionally open an item as part of this single action, specified either by its type and identity, such as for a requirement (a pre-defined type of item): http://localhost:8015/pdb/direct-login?
username=manager&password=manager&projectcode=demo&access=rw&
action=itemview&
type=INFO_REQUIREMENT&
namenum=1.2.1.2&
version=&
draft=a or the item could be specified by its PDUID (Project Database Unique ID): http://localhost:8015/pdb/direct-login?
username=manager&password=manager&projectcode=demo&access=rw&
action=itemview&
pduid=16B08F9CAADEMO010000000001 Embed Cradle Web UIs in Frames
Cradle web UIs (including those supplied by 3SL), can now be run in an iFrame, so they can be embedded in other web UIs, such as dashboards. An example is supplied with Cradle-5.6 as the file: www\pdb\default\default\examples\iFrameDDALINK.htm in the Cradle software distribution: 
This example can be used as is, or it can be used as a basis for linking Cradle Web Access into your own dashboard or portal environment. This example HTML code illustrates some ways of embedding and linking Cradle Web Access in an iFrame:
- Standard login
- Standard login specifying an item to open
- Direct login to our example DEMO database
- Direct login to our example DEMO database opening an item
Centralised Style Information All style information for web UIs can now be defined in a single set of three CSS files, rather than being spread throughout the web UI, to ease development and maintenance. Centralised Scripts Scripts (typically Javascript) for Cradle web UIs can be held in one place referenced from the web UI, to improve runtime performance and ease development and maintenance.
|