<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>StudioWorks - Features</title> <meta name="keywords" content="omnis studio, raining data, studioworks documentation" /> <link rel="stylesheet" type="text/css" href="http://www.studiotips.net/css/codedoc.css" /> <link rel="stylesheet" type="text/css" href="http://www.studioworks-dev.net/css/codedoc.css" /> </head> <body> <div id="container"> <p><a href = ../index.html > Sw4 </a> &nbsp &gt; &nbsp <a href = index.html > About </a> &nbsp &gt; &nbsp Features</p> <a name="features" /> <h2>Features</h2> The following is an overview of the features in StudioWorks. This is not an all inclusive list of the features in StudioWorks. <a name="sqlmetadata" /> <h3>SQL Meta-Data</h3> <p>The schema classes in Omnis are used to map list and row variables in your application to the SQL database. Each schema class is mapped to a database table and the schema class columns are mapped to database table's columns.</p> <p>The Omnis schema classes keeps track of the column name, datatype, whether on not the column is a primary key column, and whether or not null values are allowed. However, the Omnis schema classes are <strong>not</strong> able to keep track of whether or not the column is indexed, if it is a foriegn key and if so what table and column the foreign key references, and other column constraints.</p> <p>The <span class="nav">StudioWorks SQL Meta-Data Editor</span> allows you to store addition information (meta-data) about each schema class column. The meta-data is kept in a row variable which is stored in the <span class="code">$userinfo</span> of each schema class column.</p> <p class="image"><img src="./images/sqlmetadataeditor.gif" alt="sqlmetadataeditor.gif" /></p> The <span class="nav">StudioWorks SQL Meta-Data Editor</span> not only stores database meta-data, it also stores GUI meta-data. The GUI meta-data allows you to preset if and how the column will be displayed in lists and entry fields, when and how users can edit the field, whether to include the field in prompts, default sorting, etc. Even the label, tooltip, and abbreviation (for list and report column headings), are stored with the GUI meta-data. Storing the label and tooltip text in the meta-data ensures that where ever the column is displayed in a window or on a report the label will be consistent and if it is used in several windows you only need to change it in a single location. <a name="databaseadministrator" /> <h3>Database Administrator</h3> <p>Setting up and keeping your database in sync with your Studio application can be a lot work. The Database Administrator tool makes it easy. Using the SQL meta-data the Database Administrator can intelligently add tables, add columns, alter column datatypes, add indexes, add primary and foreign keys, set constraints, and collations.</p> <p class="image"><img src="./images/databaseadministrator.gif" alt="databaseadministrator.gif" /></p> In an ideal world the SQL92 standard would be the same for every DBMS, but unfortunately we aren't living in an ideal world. The SQL used to rename a column for one DBMS is not necessarily the same as the next. The database administrator is structured so that custom SQL can easily be added for each DBMS. <a name="signinwindow" /> <h3>Sign In Window</h3> <p>StudioWorks provides you with a prebuilt Sign-In (Logon) window.</p> <p class="image"><img src="./images/signinwindow.gif" alt="signinwindow.gif" /></p> <p>The code that is included with the Sign-In window supports using the DBMS users security as well as the list of application users which you store a table in the database. The application users table is where you would store the user's formal name, group memberships, user security settings, email address, etc.</p> The Sign-In window defaults to the last session. Users can change session settings. <a name="sessionsmanager" /> <h3>Sessions Manager</h3> <p>Getting the session settings correct for different DBMS back ends can be difficult for developers, let alone end users. The StudioWorks Session Manager assists both developers and end users.</p> <p class="image"><img src="./images/sessionsmgrfrontbase.gif" alt="sessionsmgrfrontbase.gif" /></p> <p>Templates are provided for each DAM with text explaining what information to fill in which field. If the Omnis DAM is select the fields which don't apply are hidden and the host name field is resized accordingly.</p> <p class="image"><img src="./images/sessionsmgromnis.gif" alt="sessionsmgrfrontbase.gif" /></p> Session settings are automatically saved to the local preference data file. <a name="concretizer" /> <h3>Concretizer</h3> <p>StudioWorks reduces development and maintenance time by generating window instances on the fly based on the SQL meta-data. Lists, entry files, labels, and tooltips are added to windows the instance they are opened.</p> <p>The disadvantage of generating window instances on the fly is that window instantiation time suffers. There is a performance hit which the user experiences. To overcome this the <span class="nav">Concretizer</span> creates 'concrete window classes' for each of the window instances. Prior to releasing a runtime version you 'runtimize' the window instances. The runtimized window classes are put in a separate library which is then released with the development libraries. If a runtimized class is available it will be used.</p> <p class="image"><img src="./images/concretizer.gif" alt="concretizer.gif" /></p> The <span class="nav">Concretizer</span> can also be used to create a developer window class that is mapped to a schema class or a query class. The developer simply selects the window instance in the Concretizer and clicks the Developerize button. A window class with all of the fields and labels is created in the same library as the schema or query class. The window class can then be modified by the developer. <a name="errorhandler" /> <h3>Error Handler</h3> <p>Object-oriented programming places code in visual and non-visual classes. Visual classes are windows, menus, toolbars, reports, and remote forms. Non-visual classes are table classe, object classes, and task classes. By making a clear separation between visual and non-visual classes your classes can be much more reuseable. Non-visual classes used by a window class can also be used by a remote form, or even a web page that communicaes with a remote task. Non-visual classes can not have prompts, okay messages, working messages, or error messages. The dilema we run into is what to do inside a non-visual class method when it hits an error. How can it easily communicate the error back to the visual class that called the method in the non-visual class. The call quite often will have been passed through several different methods.</p> <p>One solution is to develop a large series of error codes and return the appropriate error code back to sender, however developing and remembering a table of error codes is a lot of work to create and maintain. And how do pass an error code back to a method which is expecting a list or a result value?</p> <p>The solution to all of this in StudioWorks is the error handler object. The error handler sits on the sidelines waiting for any method to log an error. The first parameter sent the log message is a reference to the method where the error occurred. Additionally the error message text, optional details, and an optional error code are sent by the method where the error occurred. The method where the error occured return false or null as may be appropriate to its sender. The error handler immediately writes the error to a log file and stores the error in a list. When the visual object where the request originated receives a returned false or null value it sends a message to the error handler asking it for the last error which was logged. The visual object then prompts the user with the error or makes an appropriate decision based on the error code.</p> By making a clear distinction between visual and non-visual classes and using the StudioWorks error handler you are able to easily develop non-visual classes which can be used by different visual classes. <a name="iconsbrowser" /> <h3>Icons Browser</h3> <p>Finding the icon you need in the Omnis icons can be tedious and time consuming. Keeping track of icons you create or trying to share icons among different libraries is a hassle. Remembering the icon by its number isn't much fun.</p> <p>The <span class="nav">StudioWorks Icons Browers</span> solves all of the above.</p> <p class="image"><img src="./images/iconsbrowser.gif" alt="iconsbrowser.gif" /></p> <p>The icons are stored in a single library. You assign a name and number to each icon. You can also assign search words and synonyms in a search list. When you need to find an icon, you open the Icons Browser, enter a search word, and hit return. The Icons Browser displays a list of icons which march or are related to your search word.</p> <p>An icons object in the StudioWorks icons library can be instantiated by any of your application's libraries. You can ask the icons object to return to you the <span class="code">iconid</span> of any named icon.</p> <p class="code">Do oIcon.$retIconID('BookPencil') Returns IconID <span class="omcomment">;; The iconid 2143 will be returned.</span></p> The StudioWorks icons library makes it easy for StudioWorks members to add icons and share icons. <a name="preferences" /> <h3>Preferences</h3> <p>Most applications need to store various user preferences on the local client computer. It make for a nicer user experience if your application remembers the last user ID, the last session settings, the last language, etc. when the user reopens your application.</p> <p>The StudioWorks preferences object provides you with this functionality. You simply add the preferences you wish to store on the local client computer to the preferences schema list definition. StudioWorks adds the appropriate getter and setter methods to the preferences object. When you close your application StudioWorks looks for a local preferences Omnis data file, and if necessary creates it, and then saves the preference values to the file. When you reopen your application StudioWorks loads the preferences from the local Omnis data file into the preferences object where they can easily be access by the your application code.</p> The local preferences data file is stored away from your application to that reinstalling the application or updating it won't wipe out the user's preferences. <a name="prompts" /> <h3>Prompts</h3> <p>The built in OK, Yes/No, No/Yes, Prompt for input prompts which come with Omnis Studio are a bit behind the times. With a 255 character limit your messages are often truncated. If you want to prompt the user with list, radio buttons, check boxes, mutliple inputs... you have to create your own prompt windows.</p> <p>StudioWorks version 4 has flexible prompt window which supports unlimited length text message, an option for including additonal message details in small text, list prompts, any mix of radio buttons, check boxes, and multiple inputs in a single prompt. Often used prompts such as Delete Record? or Save Changes? are already built for you and designed to look good on multiple platforms.</p> <p class="image"><img src="./images/promptsave.gif" alt="promptsave.gif" /></p> <p>The above prompt was opened with the following line of code:</p> Do prmpt.$promptSave('Save Changes?) Returns ButtonPressed <a name="referencesmodule" /> <h3>References Module</h3> <p>Often times in application development you need a simple lookup with optional or mandatory values which the user can enter in a field. (e.g. Mr, Ms, Mrs, Dr, Lord, Duke,...) Hard coding these into your application is not a a good idea. Creating a table in your database for each of these is overkill.</p> <p>Another scenario is that you might need a counter to keep track of the last purchase order, last invoice number, last customer ID, or last primary key assigned in each table.</p> <p>The References module is the solution for these and many more situations.</p> <p>You simply declare a unique group/subgroup combination of values (e.g. PO/PONum), a datatype (integer), and a reference type (counter). When you need the next PO number you simply an appropriate message to the references object:</p> <p class="code">Do refs.$retNextNum('PO','PONum') Returns NextPO</p> <p>or for a lookup list of name titles</p> <p class="code">Do refs.$retLookupList('NameTitles','UK') Returns UKNameTitlesList</p> There's plenty more than you can do with the references library. Store user preferences for reports, user defined businesss rules, soft coded SQL query text for reports,... the list goes on and on. <a name="reportbuilder" /> <h3>Report Builder</h3> <p>Making end user reports can be a time consuming job. Adding fields to a report class, positioning, sizing, and setting the field properties, adding report titles and column headings... use up your valuable time doing rather low level work. Time better spent elsewhere.</p> <p>The report builder object is able to generate reports on the fly for you. The StudioWorks Report Builder creates a report class and based the SQL meta-data of the schema or query class used to fetch the report records it adds the fields, labels, and titles to the report class and then prints the report. The developer can further customize the report class after it has been generated by the report builder.</p> The column heading labels use the same text as the headed list heading which is all sources from the meta-data. <a name="security" /> <h3>Security</h3> <p>Most applications require some form of security. Control over which users can access which windows and what reports. Which users can view, edit, insert, or delete records in which tables. If the DBMS supports grant and revoke privileges keeping your application's users in sync with the database privileges can be a lot work.</p> <p>Administering security on a user by user basis can be time consuming and require constant updating. Being able to put users into groups and then administernig security on a group by group basis is simpler and more practical.</p> <p>The StudioWorks Security Manager helps out with all of the above. Users can be added to groups. Both users and groups can be assigned schema class, window instance, and report instance privileges. The schema class privileges can be synchronized with the database. Users who are members of multiple groups are given the highest level of authority for each schema, window, and report for the summary of all the groups they are in.</p> <p class="image"><img src="./images/securitymanager.gif" alt="securitymanager.gif" /></p> <p>The Security Manager window provides you with simple user interface and can be instantiated as a subwindow in one of your own window classes.</p> <div class="image_sideline"><img src="http://www.studiotips.net/css/images/note.gif" alt="Note" /><p>Report instance security and DBMS synchronization is not yet implemented as of 2005-04-20.</p> </div> <a name="stringtables" /> <h3>String Tables</h3> <p>If now or at some point in time you wish to sell your application in another county, or even different region of one country, you'll need to be translate the labels, tooltips, column headings, menus, and window titles throughout your application. This can be a huge job.</p> <p>StudioWorks utilizes OMST's string tables for the labels, tooltips, column headings, menus, and wnidow titles. For the first language you develop the text is stored in the SQL meta-data.</p> <p class="image"><img src="./images/stringtablesviewer.gif" alt="stringtablesviewer.gif" /></p> <p>When it comes time to translate your application to another language you simply export all of the string table IDs and the current language text to a tab delimited file. The translator simply needs to add a column for each additional language and enter the translated text in that column. The file with the additional columns of translated text is added to the <span class="file">startupsettings</span> folder and loaded by StudioWorks during startup.</p> End users can localize your StudioWorks application by changing labels and tooltips to suit their business. One business refers to 'clients', another calls them 'customers'. Localized labels and tooltips are stored directly in the customer's database and loaded during startup. <p class="footer">StudioWorks Documentation - Copyright 2005 Vencor Software </p></div> </body> </html>