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

Uniface 10 Enterprise Edition: how to redirect FRM files in the ASN?

how to redirect FRM files in the ASN?

Author: ulrichmerkel@web.de (ulrich-merkel)

In older Uniface versions, we created a couple of forms with the same interface and used in the ASN a redirection so each customer got "his local version".

[FILES] ABC.frm    ..\\frm_directory\\ABC_DE.frm

The same was used to replace as an example the SQL editor with some customised version (see $uuu utilities)

Replacement of sql/print statements This component is a better visualisation of the sql/print statement. Mapping as usys:usyssql sys_sql. The form offers a few useful functions like:
  1. save and open sql-commands from a file
  2. history command list (via filedump)
  3. multiple command within one transaction
  4. timing, etc...

Can someone help me what I have to put in my ASN to get the same result under U10? TIA, Uli

14 replies

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

how to redirect FRM files in the ASN?

Author: ulrichmerkel@web.de (ulrich-merkel)

In older Uniface versions, we created a couple of forms with the same interface and used in the ASN a redirection so each customer got "his local version".

[FILES] ABC.frm    ..\\frm_directory\\ABC_DE.frm

The same was used to replace as an example the SQL editor with some customised version (see $uuu utilities)

Replacement of sql/print statements This component is a better visualisation of the sql/print statement. Mapping as usys:usyssql sys_sql. The form offers a few useful functions like:
  1. save and open sql-commands from a file
  2. history command list (via filedump)
  3. multiple command within one transaction
  4. timing, etc...

Can someone help me what I have to put in my ASN to get the same result under U10? TIA, Uli

gypsilon said I'm currently not working with uniface 10, but I would try the following Did you try the [RESOURCES] section? Just use different resources files, while the one with your variations should stay first (and of course the correct $search_resources setting). Wolfgang  

Hi Wolfgang, the problem with all these resource files is that the form in all the variations (former ABC_DE.frm) have to have the same name (ABC.frm). It makes development a real chaos because for every variation, you need a separate development environment. Gruß aus Frankfurt, Uli


Author: ulrich-merkel (ulrichmerkel@web.de)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:45 AM UTC

how to redirect FRM files in the ASN?

Author: ulrichmerkel@web.de (ulrich-merkel)

In older Uniface versions, we created a couple of forms with the same interface and used in the ASN a redirection so each customer got "his local version".

[FILES] ABC.frm    ..\\frm_directory\\ABC_DE.frm

The same was used to replace as an example the SQL editor with some customised version (see $uuu utilities)

Replacement of sql/print statements This component is a better visualisation of the sql/print statement. Mapping as usys:usyssql sys_sql. The form offers a few useful functions like:
  1. save and open sql-commands from a file
  2. history command list (via filedump)
  3. multiple command within one transaction
  4. timing, etc...

Can someone help me what I have to put in my ASN to get the same result under U10? TIA, Uli

Hi Iain, well, creating a form with the same name as the uniface one is a "very dirty" option, but it works (thank you). I tried to avoid interfearing too much in "the Labs" realm all those years, but it looks like U10 forces this way. And for my file replacement with the alternatives ABC.frm    ..\\frm_directory\\ABC_DE.frm this means that I have to use another construct: My actual way would be implementing ABC.frm as a dispatcher which reads a logical and activates the final form. Will cause some change in migrations from U9 to U10 converting the [FILES] section into a [LOGICALS] but it's a one-time effort. But if someone knows a way to keep "the old ASNs" alive; I would prefer this compatibility solution. Greetings from a very cold Frankfurt/Germany ('winter is comming'), Uli


Author: ulrich-merkel (ulrichmerkel@web.de)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:45 AM UTC

how to redirect FRM files in the ASN?

Author: ulrichmerkel@web.de (ulrich-merkel)

In older Uniface versions, we created a couple of forms with the same interface and used in the ASN a redirection so each customer got "his local version".

[FILES] ABC.frm    ..\\frm_directory\\ABC_DE.frm

The same was used to replace as an example the SQL editor with some customised version (see $uuu utilities)

Replacement of sql/print statements This component is a better visualisation of the sql/print statement. Mapping as usys:usyssql sys_sql. The form offers a few useful functions like:
  1. save and open sql-commands from a file
  2. history command list (via filedump)
  3. multiple command within one transaction
  4. timing, etc...

Can someone help me what I have to put in my ASN to get the same result under U10? TIA, Uli

Can you not compile them as ABC_XXX and copy them to ABC.frm on deployment?  I am now using the urm copy/move function to create my own UARs simply and using scripts, meaning its relatively simple to organise. 


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

how to redirect FRM files in the ASN?

Author: ulrichmerkel@web.de (ulrich-merkel)

In older Uniface versions, we created a couple of forms with the same interface and used in the ASN a redirection so each customer got "his local version".

[FILES] ABC.frm    ..\\frm_directory\\ABC_DE.frm

The same was used to replace as an example the SQL editor with some customised version (see $uuu utilities)

Replacement of sql/print statements This component is a better visualisation of the sql/print statement. Mapping as usys:usyssql sys_sql. The form offers a few useful functions like:
  1. save and open sql-commands from a file
  2. history command list (via filedump)
  3. multiple command within one transaction
  4. timing, etc...

Can someone help me what I have to put in my ASN to get the same result under U10? TIA, Uli

That is what I was going to suggest.  If your top resource setting is  [RESOURCES] idf_mods usys...uar   where idf_mods is a folder with the correct structure, and forms with the same name as the ones Uniface uses, then it should use those in preference. 


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

how to redirect FRM files in the ASN?

Author: ulrichmerkel@web.de (ulrich-merkel)

In older Uniface versions, we created a couple of forms with the same interface and used in the ASN a redirection so each customer got "his local version".

[FILES] ABC.frm    ..\\frm_directory\\ABC_DE.frm

The same was used to replace as an example the SQL editor with some customised version (see $uuu utilities)

Replacement of sql/print statements This component is a better visualisation of the sql/print statement. Mapping as usys:usyssql sys_sql. The form offers a few useful functions like:
  1. save and open sql-commands from a file
  2. history command list (via filedump)
  3. multiple command within one transaction
  4. timing, etc...

Can someone help me what I have to put in my ASN to get the same result under U10? TIA, Uli

I'm currently not working with uniface 10, but I would try the following Did you try the [RESOURCES] section? Just use different resources files, while the one with your variations should stay first (and of course the correct $search_resources setting). Wolfgang


Author: gypsilon (wva@gypsilon.de)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:45 AM UTC

how to redirect FRM files in the ASN?

Author: ulrichmerkel@web.de (ulrich-merkel)

In older Uniface versions, we created a couple of forms with the same interface and used in the ASN a redirection so each customer got "his local version".

[FILES] ABC.frm    ..\\frm_directory\\ABC_DE.frm

The same was used to replace as an example the SQL editor with some customised version (see $uuu utilities)

Replacement of sql/print statements This component is a better visualisation of the sql/print statement. Mapping as usys:usyssql sys_sql. The form offers a few useful functions like:
  1. save and open sql-commands from a file
  2. history command list (via filedump)
  3. multiple command within one transaction
  4. timing, etc...

Can someone help me what I have to put in my ASN to get the same result under U10? TIA, Uli

Hi Uli, I have not the U10 version and I did a test with U97 and it worked perfectly. All my compiled forms are into : d:\\svil_97\\frm My asn : [FILES] ........................................................... usys:usyssql.frm    d:\\svil_97\\frm\\sys_sql.frm usys:usys*.frm          usys:usys*.frm ........................................................... ........................................................... ...........................................................  abc.frm          d:\\svil_97\\frm\\abc_de.frm *.frm                d:\\svil_97\\frm\\*.frm Luigi


Author: LG1949 (l_giuliante@shsistemi.it)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:45 AM UTC

how to redirect FRM files in the ASN?

Author: ulrichmerkel@web.de (ulrich-merkel)

In older Uniface versions, we created a couple of forms with the same interface and used in the ASN a redirection so each customer got "his local version".

[FILES] ABC.frm    ..\\frm_directory\\ABC_DE.frm

The same was used to replace as an example the SQL editor with some customised version (see $uuu utilities)

Replacement of sql/print statements This component is a better visualisation of the sql/print statement. Mapping as usys:usyssql sys_sql. The form offers a few useful functions like:
  1. save and open sql-commands from a file
  2. history command list (via filedump)
  3. multiple command within one transaction
  4. timing, etc...

Can someone help me what I have to put in my ASN to get the same result under U10? TIA, Uli

Hi Gianni, on U10201-f113 I gave it a try with

[FILES] usys:usyssql.frm aa3.frm

but still the standard SQL workbench comes up in in the IDE.   Looks like we overlooked something, perhaps someone else has another suggestion? TIA, Uli


Author: ulrich-merkel (ulrichmerkel@web.de)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:45 AM UTC

how to redirect FRM files in the ASN?

Author: ulrichmerkel@web.de (ulrich-merkel)

In older Uniface versions, we created a couple of forms with the same interface and used in the ASN a redirection so each customer got "his local version".

[FILES] ABC.frm    ..\\frm_directory\\ABC_DE.frm

The same was used to replace as an example the SQL editor with some customised version (see $uuu utilities)

Replacement of sql/print statements This component is a better visualisation of the sql/print statement. Mapping as usys:usyssql sys_sql. The form offers a few useful functions like:
  1. save and open sql-commands from a file
  2. history command list (via filedump)
  3. multiple command within one transaction
  4. timing, etc...

Can someone help me what I have to put in my ASN to get the same result under U10? TIA, Uli

Hi Gianni, thanks for your example, I will have a look this evening what it will do with U10. Greetings from Frankfurt/Germany, Uli


Author: ulrich-merkel (ulrichmerkel@web.de)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:45 AM UTC

how to redirect FRM files in the ASN?

Author: ulrichmerkel@web.de (ulrich-merkel)

In older Uniface versions, we created a couple of forms with the same interface and used in the ASN a redirection so each customer got "his local version".

[FILES] ABC.frm    ..\\frm_directory\\ABC_DE.frm

The same was used to replace as an example the SQL editor with some customised version (see $uuu utilities)

Replacement of sql/print statements This component is a better visualisation of the sql/print statement. Mapping as usys:usyssql sys_sql. The form offers a few useful functions like:
  1. save and open sql-commands from a file
  2. history command list (via filedump)
  3. multiple command within one transaction
  4. timing, etc...

Can someone help me what I have to put in my ASN to get the same result under U10? TIA, Uli

Hi Uli, I feel/think "standard deployment" it is involved here, not only for U10 but also with U97... My expectations: - Case1: specialization [FILES] ABC.frm   ABC_DE.frm it should open ABC_DE.frm from your standard frm directory - Case2: substitution [FILES] usys:usyssql.frm   sys_sql.frm it should open sys_sql.frm from your standard frm directory The trick IMHO is to avoid paths to have standard deployment to work the way it is designed to do. Hope it helps... Gianni


Author: gianni (gianni.sandigliano@unifacesolutions.com)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:45 AM UTC

how to redirect FRM files in the ASN?

Author: ulrichmerkel@web.de (ulrich-merkel)

In older Uniface versions, we created a couple of forms with the same interface and used in the ASN a redirection so each customer got "his local version".

[FILES] ABC.frm    ..\\frm_directory\\ABC_DE.frm

The same was used to replace as an example the SQL editor with some customised version (see $uuu utilities)

Replacement of sql/print statements This component is a better visualisation of the sql/print statement. Mapping as usys:usyssql sys_sql. The form offers a few useful functions like:
  1. save and open sql-commands from a file
  2. history command list (via filedump)
  3. multiple command within one transaction
  4. timing, etc...

Can someone help me what I have to put in my ASN to get the same result under U10? TIA, Uli

Hi Iain, in U10 you have no alternatives, the latest U10 helpfile (f114) reads:   $SEARCH_RESOURCES

$SEARCH_RESOURCES

Specifies that Uniface searches for its application resources in the locations specified by the [RESOURCES] assignment file section. The only valid value is resources_only.

$SEARCH_RESOURCES { = } resources_only

Defaults

Assignment file:

usys.asn

Section:

[SETTINGS]

Default value:

None. If not set, the application will not run.


Author: ulrich-merkel (ulrichmerkel@web.de)