Skip to main content
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:39 AM UTC

Uniface 9: $RSO and redirection of compiled forms

$RSO and redirection of compiled forms

Author: i2stiller@gmx.de (istiller)

Guude Just a simple question :-) I'm on switching a classic development to a standardized one  (as UnifAce calls it) In the classic version we redirect some forms - dependig on prefixes- to different directories. This is done by lines like w*.frm Z:\\\\ufs\\u_DTF\\frm_w\\w*.frm But how to rebuild the behavior with the standard approach? Any hints are welcome :-) Ingo

 

27 replies

Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:39 AM UTC

$RSO and redirection of compiled forms

Author: i2stiller@gmx.de (istiller)

Guude Just a simple question :-) I'm on switching a classic development to a standardized one  (as UnifAce calls it) In the classic version we redirect some forms - dependig on prefixes- to different directories. This is done by lines like w*.frm Z:\\\\ufs\\u_DTF\\frm_w\\w*.frm But how to rebuild the behavior with the standard approach? Any hints are welcome :-) Ingo

 

Iain Sharp said It is very probably horses for courses.  Our app is deployed to 40 independent customer servers, and from within those to 800 some clients, and we haven't the resource to chase those up manually, therefore it is imperative that we can have something we can 'roll out' easily using automated scripts. We have 2 testing versions for each installation (latest patch, and next release), so that's 120 server installs, and all the clients.  I understand that some people are managing one production installation of the software and using file sharing for client access to the code etc.  So yes, we are patching maybe twice a month max, and new versions can be a year apart and the important thing to us is that the patch level be obvious for bug tracking.  Different world it would appear.  Iain  

Ian, For one of our customers, your environment that you describe (above) is very similar....servers are closer to 25 or so (same number of end users though). We have a promote program that sends out the updated components including the asn files. We also support a test and production environment at the customer site. I agree that it is different in that we are constantly adding features / functionality daily as well as bug fixes or just changes in preferences from one administration change to another. Db changes are handled in a precise manor so we only compile the components that have the entity or entities painted on them. The only time we re-compile everything is when Uniface forces us to do so. The classic approach works very well for my needs. I openly admit that I'm not an expert on the standard method of deployment. That being said, I am always looking for ways to improve on existing processes so I'm open to more efficient ways to get things done. I have yet to hear any aspect of the standard method that would result in less steps than the process I currently employ.....but I will keep looking and waiting for improvements to the product that perhaps one day, might turn out a better mouse trap. Thanks, Larry


Author: adkinsl (adkins.larry@gmail.com)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:39 AM UTC

$RSO and redirection of compiled forms

Author: i2stiller@gmx.de (istiller)

Guude Just a simple question :-) I'm on switching a classic development to a standardized one  (as UnifAce calls it) In the classic version we redirect some forms - dependig on prefixes- to different directories. This is done by lines like w*.frm Z:\\\\ufs\\u_DTF\\frm_w\\w*.frm But how to rebuild the behavior with the standard approach? Any hints are welcome :-) Ingo

 

Hi,  one of the great things with the uar-patching is that we can describe every patch and it's possible to put a resources.asn file (asn sub-file) and sql-scripts in the same place as the patch (although we until now have done the resource.asn change manually). It's also easy to remove a patch (not containing sql-scripts). When you install the application to let's say 50 customers, it's also easy to investigate what patch-level each customer has. I think this isn't as important for those managing just one installation. Regards RogerW.


Author: rogerw (roger.wallin@abilita.fi)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:39 AM UTC

$RSO and redirection of compiled forms

Author: i2stiller@gmx.de (istiller)

Guude Just a simple question :-) I'm on switching a classic development to a standardized one  (as UnifAce calls it) In the classic version we redirect some forms - dependig on prefixes- to different directories. This is done by lines like w*.frm Z:\\\\ufs\\u_DTF\\frm_w\\w*.frm But how to rebuild the behavior with the standard approach? Any hints are welcome :-) Ingo

 

It is very probably horses for courses.  Our app is deployed to 40 independent customer servers, and from within those to 800 some clients, and we haven't the resource to chase those up manually, therefore it is imperative that we can have something we can 'roll out' easily using automated scripts. We have 2 testing versions for each installation (latest patch, and next release), so that's 120 server installs, and all the clients.  I understand that some people are managing one production installation of the software and using file sharing for client access to the code etc.  So yes, we are patching maybe twice a month max, and new versions can be a year apart and the important thing to us is that the patch level be obvious for bug tracking.  Different world it would appear.  Iain


Author: Iain Sharp (i.sharp@pcisystems.co.uk)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:39 AM UTC

$RSO and redirection of compiled forms

Author: i2stiller@gmx.de (istiller)

Guude Just a simple question :-) I'm on switching a classic development to a standardized one  (as UnifAce calls it) In the classic version we redirect some forms - dependig on prefixes- to different directories. This is done by lines like w*.frm Z:\\\\ufs\\u_DTF\\frm_w\\w*.frm But how to rebuild the behavior with the standard approach? Any hints are welcome :-) Ingo

 

 Hi, Iain said: Presumably for the db changes, everyone has to be off system anyway? How do you handle it otherwise? If so, why isn’t your main uar replaced then and all patches wiped down… You’d only get up to (on average) about 6 patches between db changes by your numbers.  Larry said: We don’t recompile components if it’s not necessary so replacing a patchX.uar file will probably never make sense (for me).  We have often discussed how often the main uars, should be replaced. We don't replace the whole uars with every database change. Actually we have had customers with over 100 patches, before the main  uars are replaced. And at least I think that this is not an ideal situation, it will probably be slower. We have also applications/uars that we always replace with the main uar. It really depends how you organize your source and applications, how active the programming is and how many programmers are involved. As I said earlier, you shouldn't necessary have only one source. I wouldn't though say that we have an ideal situation Confused.  I really think Iain has a point above. Larry, the standardized deployment isn't for you, if you won't rethink your statement that I quote above. Regards RogerW.  


Author: rogerw (roger.wallin@abilita.fi)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:39 AM UTC

$RSO and redirection of compiled forms

Author: i2stiller@gmx.de (istiller)

Guude Just a simple question :-) I'm on switching a classic development to a standardized one  (as UnifAce calls it) In the classic version we redirect some forms - dependig on prefixes- to different directories. This is done by lines like w*.frm Z:\\\\ufs\\u_DTF\\frm_w\\w*.frm But how to rebuild the behavior with the standard approach? Any hints are welcome :-) Ingo

 

Iain, Thanks for taking me through that exercise, but I think your steps are an over-simplification of the process and as I think through our normal procedures for promoting programs to test then to the production environment -- it would get easy to get lost in what was included in a uar and why. For new tables, no one has to leave the system and in most other db changes, we restrict access to the db during the update. We don't recompile components if it's not necessary so replacing a patchX.uar file will probably never make sense (for me). If all the uar files are for is to replace the components that are zipped up inside them then we're replacing one thing for another without a real good reason to do so. So having a list of a couple of hundred uar files in the resources directory (which is the only replacement for what I'm doing now) doesn't sound like a more efficient way of managing applications. Sure, in the end, you're still pointing to the same components to run your application.....but can't you do the same thing in a less complicated way with just putting your components in a folder like we used to do? No offense to those that use this new way to manage deployments, but I do look for the most efficient ways to manage applications and I've tried using the standard method and found it to involve more steps and harder to manage than the classic method for my applications. That's just me and my opinion (I know I'm not alone), but it is very hard for me to hear someone explain using the urm to create a uar then updating the asn file referencing that new uar file versus copying formX, serviceY and reportZ from one folder to another (essentially that's it with no asn update) and somehow claiming the uar method as "easier" or "better" is a very hard sell. I've had these conversations at conferences with other developers and with people that work for Uniface and my conclusion is that I can see the need for having the uar files, but I will always need the classic way to stick around until a replacement is shown to be more efficient. I also want the classic method to be improved upon -- such as giving me the flexibility to put the compiled components in a folder that I specify as a file redirection. Larry


Author: adkinsl (adkins.larry@gmail.com)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:39 AM UTC

$RSO and redirection of compiled forms

Author: i2stiller@gmx.de (istiller)

Guude Just a simple question :-) I'm on switching a classic development to a standardized one  (as UnifAce calls it) In the classic version we redirect some forms - dependig on prefixes- to different directories. This is done by lines like w*.frm Z:\\\\ufs\\u_DTF\\frm_w\\w*.frm But how to rebuild the behavior with the standard approach? Any hints are welcome :-) Ingo

 

Hi Larry, So what we would do there is something like this.  Take a base system and compile it into one (or more) uar files.  Set the $resources_output to point to an actual folder rather than a uar (kind of necessary for multi developer/idf working anyway).  Compile the new programs as changed, which builds contents in this folder.  To release a patch use winzip or windows compressed folders to create a zip file. (PatchX.uar) Port the uar to production, and change the asn to point at it.  DO NOT clear out the patch folder.  Continue to compile, creating new programs in the patch folder, (and overwriting any changed more than once).  For next patch, zip up as before to PatchY.uar,  Change the asn to remove patchX.uar and point to PatchY.uar.  When all clients/uservers have had a chance to cycle, remove PatchX.uar from the production environment,  You can then create a new patch. and put it in as PatchX.uar.  If you keep your patch files archived, you can still roll back (db changes notwithstanding).  Presumably for the db changes, everyone has to be off system anyway? How do you handle it otherwise? If so, why isn't your main uar replaced then and all patches wiped down... You'd only get up to (on average) about 6 patches between db changes by your numbers.    Iain


Author: Iain Sharp (i.sharp@pcisystems.co.uk)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:39 AM UTC

$RSO and redirection of compiled forms

Author: i2stiller@gmx.de (istiller)

Guude Just a simple question :-) I'm on switching a classic development to a standardized one  (as UnifAce calls it) In the classic version we redirect some forms - dependig on prefixes- to different directories. This is done by lines like w*.frm Z:\\\\ufs\\u_DTF\\frm_w\\w*.frm But how to rebuild the behavior with the standard approach? Any hints are welcome :-) Ingo

 

rogerw said Hi Ingo, We have over 8000 frm files, and a lot of different applications. Unfortunately many of them are in the same source. I would have preferred more sources, especially with the standardized deployment it would have been easy to make uars to use as self-contained component libraries. However, the standardized deployment has made our Uniface life a lot more easy. Hope you understand that I meant that the deployment archive is useful as you want to patch just some small errors in some forms with no database changes. Hope you also understand the connection between  loading sources on runtime and creating components [RESOURCES] \\\\server\\uar97\\wforms20203.uar                    ;This contains a new version of all w-forms ;\\\\server\\uar97\\wforms20202patch001.uar      ;This uar contains only the patched form(s), eg w0001.frm and w0002.frm ;\\\\server\\uar97\\wforms20202.uar                   ;This contains the w-forms \\\\server\\uar97\\pforms20202.uar                    ;This contain all the p-forms Have a beer in the sauna, start testing on monday and you will notice how flexible the standardized deployment is Laugh. Regards RogerW.  

Roger, How many patches do you deploy in a month with your applications (typical average)? And how many db changes are processed each month (again typical average)? Do you think the standard approach is easier in an environment with 4k+ components where there are at least 2 "patches" released per day (with anywhere between 2 and 400 components in each patch) with approximately 15 db changes per month? Honestly, I can't imagine having to add a new line to the resources section of the asn file multiple times a day. I would think at some point, there would be a performance hit with Uniface tracking down through those layers of compressed files? I guess I'm really trying to grasp where standard is easier/better than classic and reading through these posts I'm actually being convinced that standard might be better for the small shops or for the large shops with few changes/releases and classic for those with "special needs". So I hope that both will continue to be supported and that they will both be expanded to handle more situations to best meet the needs of developers. I'll cross my fingers I guess. Thanks, Larry


Author: adkinsl (adkins.larry@gmail.com)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:39 AM UTC

$RSO and redirection of compiled forms

Author: i2stiller@gmx.de (istiller)

Guude Just a simple question :-) I'm on switching a classic development to a standardized one  (as UnifAce calls it) In the classic version we redirect some forms - dependig on prefixes- to different directories. This is done by lines like w*.frm Z:\\\\ufs\\u_DTF\\frm_w\\w*.frm But how to rebuild the behavior with the standard approach? Any hints are welcome :-) Ingo

 

Hi, as a wish to Uniface. The "Define Deployment Archive -> Add -> Select Components" would need a search-function (on ObjectName) or at least a range selection. Being able to search forms/services containing specific entities would be really nice. Regards RogerW.


Author: rogerw (roger.wallin@abilita.fi)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:39 AM UTC

$RSO and redirection of compiled forms

Author: i2stiller@gmx.de (istiller)

Guude Just a simple question :-) I'm on switching a classic development to a standardized one  (as UnifAce calls it) In the classic version we redirect some forms - dependig on prefixes- to different directories. This is done by lines like w*.frm Z:\\\\ufs\\u_DTF\\frm_w\\w*.frm But how to rebuild the behavior with the standard approach? Any hints are welcome :-) Ingo

 

We compile our entire system using $resources_output, and then use urm move to split it down to the UAR files we want. (Admittedly only frms over here, and svcs over there, and that only to make the files a more manageable size for deployment over the internet.) It should be possible (nearly easy) to make a repository tool which loops through your UFORM/UXGROUP files and uses your internal rules to decide which archive to move the files to post compilation. Run it as a  regular thing or post compilation for release and you're away.  I do think that $resources_output needs work though, having something which allows for splits like this automatically is WAY more useful than having the manual manager provided in the IDF.  Rules should be coded into the settings, not written down and manually implemented....    Iain


Author: Iain Sharp (i.sharp@pcisystems.co.uk)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:39 AM UTC

$RSO and redirection of compiled forms

Author: i2stiller@gmx.de (istiller)

Guude Just a simple question :-) I'm on switching a classic development to a standardized one  (as UnifAce calls it) In the classic version we redirect some forms - dependig on prefixes- to different directories. This is done by lines like w*.frm Z:\\\\ufs\\u_DTF\\frm_w\\w*.frm But how to rebuild the behavior with the standard approach? Any hints are welcome :-) Ingo

 

Hi Ingo, We have over 8000 frm files, and a lot of different applications. Unfortunately many of them are in the same source. I would have preferred more sources, especially with the standardized deployment it would have been easy to make uars to use as self-contained component libraries. However, the standardized deployment has made our Uniface life a lot more easy. Hope you understand that I meant that the deployment archive is useful as you want to patch just some small errors in some forms with no database changes. Hope you also understand the connection between  loading sources on runtime and creating components [RESOURCES] \\\\server\\uar97\\wforms20203.uar                    ;This contains a new version of all w-forms ;\\\\server\\uar97\\wforms20202patch001.uar      ;This uar contains only the patched form(s), eg w0001.frm and w0002.frm ;\\\\server\\uar97\\wforms20202.uar                   ;This contains the w-forms \\\\server\\uar97\\pforms20202.uar                    ;This contain all the p-forms Have a beer in the sauna, start testing on monday and you will notice how flexible the standardized deployment is Laugh. Regards RogerW.


Author: rogerw (roger.wallin@abilita.fi)