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

 

Perhaps it would be easier to run the complete compile into a special resource output. And here comes the postprocessing part: duplicate this resources directory into your different resources_W, resources_P, ... In these direcories, just DELETE frm and sig files whose prefix doesn't match the postfix.


Author: ulrich-merkel (ulrichmerkel@web.de)
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 Roger

Hi, The standardized deployment is better and more flexible than the classic.

For sure :-)

[RESOURCES] \\\\server\\uar97\\myapp20202patch001.uar      ;This uar contains only the recompiled form(s) \\\\server\\uar97\\myapp20202.uar                   ;This contains the whole version

 This is for loading sources on runtime, not for creating components

Ingo: You will probably have to do the dividing only at the deployment stage: Make a bat-file idf.exe /asn=w_frms.asn /ini=usys9704.ini /frm w*

Didn't solve the problem when compiling all components belong to one on table. Some of the depeing components are W ones, other are P ones. And I dont' want to miss a component but compile them as a whole bunch.

This is especially efficient for small patches as you know the frms that you want to patch. 

Small patches? We do have over 5000 components, where about 1000 of the W type. (there are much more then only w*.frm ) If there is a need to recompile all components for some tables, there are over 500 components involved. And a normal patch contains much more then 1 data structure change. Our application is not "fixed" as some schoolbooks describe it in there isolated islands :-) [Think about the german tax laws and how often they change ...] Ingo


Author: istiller (i2stiller@gmx.de)
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, The standardized deployment is better and more flexible than the classic. Knut: Didn't you understand this way of doing the deployment, last time we discussed it: [RESOURCES] \\\\server\\uar97\\myapp20202patch001.uar      ;This uar contains only the recompiled form(s) \\\\server\\uar97\\myapp20202.uar                   ;This contains the whole version Ingo: You will probably have to do the dividing only at the deployment stage: Make a bat-file idf.exe /asn=w_frms.asn /ini=usys9704.ini /frm w* The "w_frms.asn" will contain a  $RESOURCES_OUTPUT = \\uar\\w_frms.uar Or then use the "Pulldown -> Goto -> Administration -> Deployment Archive" to make the uars. This is especially efficient for small patches as you know the frms that you want to patch. 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

 

This is exactly the reason we're sticking with the good ol' way of doing things - all of our components are 'drop-from-memory' in order to facilitate hot-fixes during the day without having to have 4000+ users exit the app and log back in.... We simply distribute the fix - replacing the component on the fly so to speak. Of course, we still have the issue with DOL/URR - but that's something we don't play with (or I should say - have had to play with for the last 4 years)... Knut


Author: Knut (knut.dybendahl@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

 

adkinsl said This certainly limits my flexibility. I fail to understand why I can't make the determination myself where to send the Uniface files to fit my needs. I guess now I can only hope that this gets changed to give more flexibility back to developers. Larry   

Oh shit. So I have to implement N environments? Environment for A-Files Environment for B-Files Environment for C-Files .... And what about, if I compile all components depending to a table? Some of them are P-Files, some W-Files Is it true, that I have to go through Z:\\ufs\\u_dtf\\frm\\ (and all other subdirectories) to find all files matching P* resp W* and copy them to other directories? Super, makes it much more complicated to bundle necassary files for deploy Yell As Larry sad: "flexibility is gone" So UnifAce, bring back good old things. Not every "Neuland" (german for new land) is a better land Ingo


Author: istiller (i2stiller@gmx.de)
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

 

Daniel, I see what you are saying and you're correct....Uniface isn't paying attention to my redirection in the [FILES] section. I just found this in the documentation:

Description

Use the [FILES] section to identify any non-DBMS files that are required by the application, and their locations.

This section only needs to list files that are not controlled by Uniface, such as HTML and text files. . This certainly limits my flexibility. I fail to understand why I can't make the determination myself where to send the Uniface files to fit my needs. I guess now I can only hope that this gets changed to give more flexibility back to developers.

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

 

adkinsl said Ingo, I agree with Peter but I have chosen not to use the uar method at all. While I understand the concept and usefulness of it, it is a bit more than what I'd like to manage. I'm using U10.2 and while I'm not happy with the changes in the IDF/UDE, I've come to appreciate the way that the $resources_output and [FILES] section can work together to be very similar to the classic approach. [SETTINGS] $resources_output = Z:\\customer\\comp\\ [FILES] usys:*.xml usysuniface:misc\\*.xml usys:ResourceBundle.def $RES:fil\\ResourceBundle.def *.frm Z:\\customer\\comp\\*.frm *.svc Z:\\customer\\comp\\*.svc *.aps Z:\\customer\\comp\\*.aps [RESOURCES] usys:ide.uar usys:ide_messages.uar usys:ide_classic.uar I think you get the picture.....and I'm sure I'm not the only one using this method as a way to cross the bridge from classic to "standard" deployment. Everyone has to do what they can in the box that the lab dreams up for us and this is my answer. I will have to say that the one thing I've asked for since Uniface 8.2 was "hot deployment". It was promised to us in 9.2 but never realized until 10.2. And even though most would not consider it a true hot deployment (no need to exit and log back in) it's close enough for my needs and it is the one and ONLY thing I can say they got right with Uniface 10. True hot deployment is still possible if that passenger still has his notes from our conversation at the Vdara Uniface conference. Good luck, Larry  

Thanks for your reply, Larry. But are you sure that the file-redirections of the FRM, SVC, and APS-files really work? As mentioned in an earlier post: file redirection will only work for non-Uniface files when using the Standardized Approach. Thanks, Daniel


Author: diseli (daniel.iseli@uniface.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

 

istiller said To deploy, I cann still pack all (not special) FRMs into one ZIP-File an renamed it to UAR :-)

 Hi Ingo, I don't want to rain on your parade, but creating a UAR-file with non-Uniface tools is not such a great idea. We had several reports from customers that had problems (stability or performance related) when using UAR-files that were created with normal archiving tools. If you want to be on the safe side then it's best to use the command line tool urm.exe (Uniface Resource Manager). Just a friendly advice. Hope this helps. Daniel


Author: diseli (daniel.iseli@uniface.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

 

adkinsl said Ingo, I agree with Peter but I have chosen not to use the uar method at all. While I understand the concept and usefulness of it, it is a bit more than what I'd like to manage. I'm using U10.2 and while I'm not happy with the changes in the IDF/UDE, I've come to appreciate the way that the $resources_output and [FILES] section can work together to be very similar to the classic approach. ... I think you get the picture.....and I'm sure I'm not the only one using this method as a way to cross the bridge from classic to "standard" deployment. Everyone has to do what they can in the box that the lab dreams up for us and this is my answer. I will have to say that the one thing I've asked for since Uniface 8.2 was "hot deployment". It was promised to us in 9.2 but never realized until 10.2. And even though most would not consider it a true hot deployment (no need to exit and log back in) it's close enough for my needs and it is the one and ONLY thing I can say they got right with Uniface 10. True hot deployment is still possible if that passenger still has his notes from our conversation at the Vdara Uniface conference. Good luck, Larry  

Hi Larry This is the first usefull answer to my problem :-) We not only have W-files but much more other "special"-names. And I don't want to switch the environment every time I compile such a special file To deploy, I cann still pack all (not special) FRMs into one ZIP-File an renamed it to UAR :-) Such easy it is ThanX for your answer Ingo


Author: istiller (i2stiller@gmx.de)
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

 

Ingo, I agree with Peter but I have chosen not to use the uar method at all. While I understand the concept and usefulness of it, it is a bit more than what I'd like to manage. I'm using U10.2 and while I'm not happy with the changes in the IDF/UDE, I've come to appreciate the way that the $resources_output and [FILES] section can work together to be very similar to the classic approach. <idfU10.asn> [SETTINGS] $resources_output = Z:\\customer\\comp\\ [FILES] usys:*.xml usysuniface:misc\\*.xml usys:ResourceBundle.def $RES:fil\\ResourceBundle.def *.frm Z:\\customer\\comp\\*.frm *.svc Z:\\customer\\comp\\*.svc *.aps Z:\\customer\\comp\\*.aps [RESOURCES] usys:ide.uar usys:ide_messages.uar usys:ide_classic.uar I think you get the picture.....and I'm sure I'm not the only one using this method as a way to cross the bridge from classic to "standard" deployment. Everyone has to do what they can in the box that the lab dreams up for us and this is my answer. I will have to say that the one thing I've asked for since Uniface 8.2 was "hot deployment". It was promised to us in 9.2 but never realized until 10.2. And even though most would not consider it a true hot deployment (no need to exit and log back in) it's close enough for my needs and it is the one and ONLY thing I can say they got right with Uniface 10. True hot deployment is still possible if that passenger still has his notes from our conversation at the Vdara Uniface conference. Good luck, Larry


Author: adkinsl (adkins.larry@gmail.com)