Category Archives: Clarion News

New functionality challenges new release

The new functionality I mentioned in the previous post took a bite out of our planned release timeline.  The functionality in question is the .Net implementation of our Win32 BrowseBox Behavior implementation.  We had aimed to have the support implemented across platforms (desktop/web) and across the data access models (ADO,Linq,FileDrivers).   This is what we have for the web side:

BrowseBox Behavior for the web

 

as you can see its very similar to what we have on the Win32 side of things.  For ASP.Net there are some new properties that are needed.  In particular we have to account for the stateless environment – each page access occurs as if it were the first time it has ever happened.   Hence the options for where the page will get its range limit value (as shown in the dropdown – and sure to expand shortly).

The BrowseBox Behavior implementation will bring a lot of code-free functionality to your web and desktop apps.  We’ll wrap this up tomorrow and release with whatever functionality exists (check the readme for the release state).

Another area where you’ll notice a huge improvement is the processing of the T4 template registry – it is now about 90% faster!

And we also have some nice news for the upcoming Win32 release but I’ll post about that tomorrow.

upcoming releases

We’re delaying the .Net release until Monday so that we can ensure a problem with the Linq model templates is fully resolved, and to hopefully have time to introduce some very useful new functionality across all 3 models (ADO.Net, Linq, ClarionDrivers).

We also have a new Win32 release planned for next week as well as updates to all the drivers and ReportWriter.

C8 update is out

A new release of C8 (build 8973) went out today.  Around 50-60 fixes, changes and improvements.  One of the new features was to implement support for PREVIOUS() for the ASCII and BASIC drivers; that means you can now easily drop ASCII/BASIC files into a Listbox control and “Browse” your text and CSV style files.

On the IDE side a few related new productivity features;
FEATURE: When selecting an image file in the window formatter you can now type in the name of the file and if it can be found via Redirection, the file will be used
FEATURE: When opening the file dialog in the window formatter for the first time the dialog will now open to the first directory where the file type would be found via the Redirection system
FEATURE: When re-opening the file dialog in the window formatter the dialog will now open to the last directory it was previously opened in.

We’re looking at other places where can use the Redirection system to make your programming more productive – have fun with the release.

News and releases

Last Friday (March 2nd) we did a ClarionLive webinar to share the progress on the T4 templates – in particular the ASP.Net templates and the LinqToFileProvider.  Diego also showed a .Net solution that utilized the managed code IP driver to talk with a ported version if the IPExtender class.  We’ll have an update FOR .Net released this week. You can see the recorded webinar at the ClarionLive site

We had planned to release a C8 update today – but ran into a very small problem (at the very last minute), its resolved now but we’ll do the release tomorrow.

Webinar this Friday (Feb 24)

This weeks ClarionLive webinar will focus on quickly putting any of your data onto the web, without knowing (or using) any ADO.Net, and with minimal ASP.Net knowledge.  This expansion on the ASP.Net templates uses your Clarion Dictionary to specify which tables to offer up over the web, and uses the Clarion database drivers for all file access.  This means you can put your .TPS file data and other ISAM data into reach for remote users.  Of course you can use any Clarion drivers, so your SQL data plays equally well. This webinar will focus on using the templates, but we’ll reserve a little time at the end to answer questions regarding writing T4 templates.

If we have sufficient time we’ll show a couple of new features in C8, and then we may have time to ask  webinar attendees a few questions to regarding Windows 8.

The next C8 release is still going through internal testing, and is also out in the hands of several external beta testers.  If the feedback is good, we’ll release it this coming Friday.  We’ll definitely be releasing a new Clarion.Net build with the latest fixes and enhancements to the T4 AppGen (and the latest templates) this coming Friday.

What’s coming up

We’re currently working on updates for both Clarion 8 and Clarion.Net.  On the C8 side we’re focusing on the first maintenance release for 2012 – lots of bug fixes and some popular feature requests.  On the .Net side we’re working on the next iteration of the 3-tier templates for both desktop and ASP.Net apps.  Additionally we’re adding the option to use the Clarion LINQ provider as the data model, bringing in ABC-like FILE access to your TPS (and other ISAM) tables.  We’ve simplified the steps needed to create the 3-tier app such that running the wizard creates both the model and the base application – and attaches all required extensions automatically.  End result – you won’t have to do much more than just select your Dictionary and then select the data model.  And if you choose the Clarion.Linq model there is no ADO.Net connection to configure.

We expect to release C8 next week to external testers, and a general release to follow the week after.  We’ll be ready to release the updated T4 templates around the same timeline, and once we’ve firmed up the changes we’ll schedule a webinar on ClarionLive.  The webinar will focus on how to use the templates (as opposed to how to write T4 templates).

 

.Net AppGen release

Download instructions are going out today for the initial release of the .Net AppGen.  We have two new newsgroups setup;

For questions on writing T4 templates
sv.clarion.T4.WritingTemplates

For questions on using the T4 templates
sv.clarion.T4.TemplateHelp

We’ll make a decision on whether to host the T4 template project on our Subversion server or on Codeplex next week.

Here is an excerpt from the “getting started” document that’s included in the download:

.NET offers many choices for application architecture; from placing the data access code directly in the
UI through datasets and data source controls, to creating a data access layer that talks to the database,
and using an n-tier architecture approach that consists of multiple layers and objects to pass data back
and forth.

While embedding data access and business rule code directly into the UI is generally easier, in some
cases it’s not the best approach for a given project.

.NET supplies a data control structure called the ObjectDataSource which gives us the possibility to use a
3 tier design model. It supports an architecture whereby all Sql commands are embedded into a middle
tier. You only have to supply the underlying object and map the methods from the Business Layer to the
different Sql commands.  And while I am talking about Sql and ADO.Net right now, take a look at the
image below.  The data access layer can (and soon will) support using the Clarion Driver technology;
both direct drivers and thru the IP driver, as well as other access approaches like using a webservice.

n-tier with ObjectDataSource

In this initial release of the .Net AppGen the templates for both Web and WinForm make use of the
same 3 tier architecture using the ObjectDataSource. This first release supports ADO.Net for the data
access, and our next update will utilize the same 3-tier architecture; but the data access layer uses
Clarion drivers and our LinqToFile provider.

We realize that this release can be a bit of a leap – moving from the ABC data access layer or direct
driver use in the Clarion chain to a 3-tier architecture model means there is a bit to learn.  But it’s well
worth exploring it, even if after the fact you choose to keep your development closer to our Win32
model (we intend to support that as well). The same n-tier architecture model will be implemented in
future templates to support using other object-relational mapping frameworks; like Microsoft’s Entity
Framework and nHibernate.

If you follow along with the steps below (for either Web app or WinForm) you’ll end up with a
“Enterprise architecture” style 3-tier app, and possibly find that you like it. Most of the problems that
you will run into come in 2 flavors; ADO.Net connection strings that refuse to connect but return no
errors (usually a backend config issue), and for web apps; IIS configuration issues. Hopefully your trip will
avoid them but don’t be surprised if you have to battle configuration issues.
3 tier Application

We’ll create two projects for our web application.  We’ll first create the Model application; this will
create a reusable assembly (DLL) that defines and contains all of our data access objects to be used in
our Web Application.

………………………..

For the rest of the story refer to the GettingStartedWithT4templates.pdf in the download!

 

New build this weekend

The install team detected a few problems after separating the Win32 and .Net IDE components, and that coupled with a change to the compiled  .tt template path info delayed today’s release – but we’ll be working over the weekend until it “ships”.  Sorry for the delay!

.Net AppGen presentation

We’ll be on Clarion Live! on November 30 at 9-11am (Pacific Time) doing a .Net AppGen presentation, and again on December 16th to pickup wherever we leave off (plus to answer any questions),

Topics for 11/30

An Introduction to AppGen.Net – covering the .Net template registry, WinForm app and WebForm Wizard and code generation, the object datasource data access layer shared by winform/webform, working in AppGen using the current templates both Winform and Webform, writing, editing and debugging the .Net T4 templates and (time permitting) using Subversion to get updates. (presenters: Robert, Diego and Pierre)

And don’t worry if you can’t be there for the live webinar, the presentation is recorded and usually available within 24 hours.  A new Clarion.Net release (with the new .Net AppGen) will be available the same day after the webinar or the day after.

Updates still coming

While the stand-alone ReportWriter is out and available now, we delayed the C8 release to review a report from a dev who had a pre-release and reported a potential problem with some aspects of swapping Reports from/to Landscape mode. We’re also holding onto the AppGen.Net release to finesse a wrinkle with ASP.Net web project files and creation of the IIS virtual dir. We’re working this weekend with the hope and expectation that both releases can go out in the beginning of the next week. Sorry from all of us!