Uniface Client Server App Development

uniface software, uniface technology, uniface project, uniface forum

Archive for December, 2010

[U-L] "entity" parameters & non-database fields

I’m using Uniface version 7.104.  I activate a service with an entity          
parameter defined as INOUT.  The entity has a couple of non-database            
fields defined in the model.  These fields, as well as all referenced          
database fields, are painted on both the calling form and the service          
component.  The service populates the non-database fields for all              
occurrences of the entity.  Upon return to the calling form, however,          
the fields are null.  If I change any of the database fields, the              
changes ARE reflected in the called form, once control is returned.            
I have analyzed the model prior to compiling the components.  Is                
there anything else I can do to get Uniface to return values in the            
non-database fields?                                                            

Joe Poniatowski                                                                

Joe Poniatowski                                                                

posted by admin in Uncategorized and have Comments (3)

Reading Uniface SQL variable length fields using VB5 / MSVC 5

Has anyone written a class in VB5 or Visual C that reads variable length
fields (overflow table etc) , I have written code that does this for a
simple table, ie only one C*V2. I need a class that you pass the HEX
data, field name and Variable length techniques and it returns the data
in a string format ie.

VB / Pseudo code example:

Read table

Myclass.hexdata.text = field holding data

While not eof overflow table
Myclass.hexdata.text = field in overflow table
End while

MyClass.Fields.Type = C*V2
MyClass.Fields.Name = "FIELD1"

MyClass.Fields.Type = C*V2
MyClass.Fields.Name = "FIELD2"

This would return a collaction of fields.

StrField1 = myclass.returnstr!FIELD1
StrField2 = myclass.returnstr!FIELD2

NOTE, Please reply via email.

Steve Drake MCP
Technical Consultant.
MFT Computer Systems Ltd.
* Steve.Dr…@mft.co.uk

posted by admin in Uncategorized and have No Comments

[U-L] Help System

Hi All,

I would like to give my Users the ability to see the Comments defined in
the Uniface form properties and also field comments from the Model in a
Help screen that they can access. I can see that the comments are stored in
a field called LISTING.UFORM but I can’t see them in the database? How and
where are they stored?

Has anyone got any clues/ideas as to where I should be looking or how to
access them ?  

It seems pointless that I should have to duplicate the form comments &
field descriptions into another entity when Ive already written them in the
model and forms?  Any help gratefully appreciated

Cain Shelley

Hargreaves Lansdown
Clifton, Bristol, UK

posted by admin in Uncategorized and have Comments (2)

Re: & – underlines


I am not yet working with Version 7.x but in 6.1.d.x the field access
through their label’s shortcut works just fine using the percent sign (%)
instead of the ampersand (&). Therefore I assume that it really *is* a fix, that you do
not have to double the ampersand anymore in order to display it.
Or is the percent sign not working anymore?


RS> I see that in U-version 7.2 for Windows, Compuware fixed the "problem" of
RS> duplicating ampersands (&) in labels and such in order to display them.

RS> Background: The standard in Windows is that you prefix characters with an
RS> ‘&’ in order to get the character underlined so it can be used as a
RS> shortcut in conjuction with the Alt key.  In order to display an ‘&’, you
RS> needed to use ‘&&’ and it would display correctly as one ‘&’.

RS> In U-version 6, field labels, titles, etc. had to have the ‘&’ doubled in
RS> order for it to display.  In version 7.2 (and maybe 7.1), this was "fixed"
RS> since you can’t access fields through their labels, so why bother forcing
RS> doubly-entered ‘&’s.

RS> My question:
RS> Was this a real "fix" that will become a permanent part of Uniface (in
RS> which case I should fix all my labels, titles, buttons, etc.)?
RS> Or was this an oversight which will eventually be reverted back to what we
RS> had in version 6 (in which case I should leave everything alone and wait
RS> for the problem to go away)?

RS> Does anyone have any opinions on which way this should go?  Should it be
RS> context-sensitive? (e.g. Use it for buttons, but not for labels.)  Should
RS> it be replaced with the standard menus-function i.e. use a ‘%’ to prefix
RS> underlines on buttons and elsewhere?

RS> —
RS> Rob Spahitz, rspah…@maxwell.com
RS> San Diego, CA
RS> Maxwell Technologies/MBS
RS> Home of JAMIS-open, Gov’t Accounting Software

posted by admin in Uncategorized and have No Comments

[U-L] 7.104 migration to 7.202

Has anyone had any issues in moving from 7.104 to 7.202?                        
We’re using Oracle on HP servers, Windows 95 clients.                          

Joe Poniatowski                                                                

Joe Poniatowski                                                                

posted by admin in Uncategorized and have No Comments

Uniface Building Blocks


Whe are currently investigating the best way to develop a new
client/server application with Uniface 7.2.02
(our current character-based application was built with Uniface 5 to
6.1) .
For this to succeed, is using Uniface Building Blocks a good means
(among others) to improve code quality and
reusability ?
If anybody has tried and deployed a UBB based application, your advice
would be greatly appreciated.

Thank you in advance.

Alex Leguevaques
Software engineer
Supra Caisse maladie

posted by admin in Uncategorized and have Comments (2)

[U-L] Performance

We have Uniface 6 application which has been ported from DB3 to Informix.
Everything is working OK, but the performance has noticably degraded. We
now use Win95 clients, Microsoft TCP  to polyserver on a DG aviion running
Informix Online 7.12. We know we need a faster machine, but does anyone
have any tips to improve performance in our current situation.

Any help would be greatly appreciated.

Colin Blair

posted by admin in Uncategorized and have Comments (3)

[U-L] Uniface as a Data Server

Has anybody had any experience of using Uniface as a 2-way data server.  ie Having the application running in background and having other applications ie Access, Visual Basic or Delphi doing some front end work passing information into Uniface and checking the results or receiving information back.

If anybody has any example code it would be greatly appreciated.  


Andrew R

posted by admin in Uncategorized and have No Comments

Printing in NT – grey fields

I seem to remember seeing somewhere that the default for printing from
Uniface in NT gives grey fields.  Does anyone know how to fix this so
that they are not grey?


Vince Hradil
******** add the NT to my name for my real e-mail address *********

posted by admin in Uncategorized and have Comments (3)

[U-L] Re: Re: Fonts Morphing in the Runtime – Repost

On a related subject…

I’ve found that memory problems have various subtle effects, though
Compuware has yet to accept it.

One thing I’ve noticed is that when I (or various others in our test-group)
run our application, we sometimes get weird display problems.

The three that I’ve noticed are:
1) When label texts overlap an area frame (commonly used in Win95, such as
if you go to Win95′s desktop properties, under the Background Tab and look
at "Pattern" and "Wallpaper" that are placed on top of the frame) under low
resources, the area frame slices THROUGH the text as though it were
"strikeout" text.  The problem does not appear in other Windows
applications.  Sometimes the problem goes away if I minimize the form then
restore it.

2) Sometimes we color our labels’ background, such as color=3 rather than
none.  When resources are low, the labels’ background colors disappear.

3) The more serious problem is that sometimes our control button images
disappear and become inaccessible.  For example, if the form panel contains
an [OK] and [Exit] button on the silver-colored control panel, all we get
is the panel.  If we open another application on top of the panel, we get
the image from that other app in place of the silver color.

After some experimenting, I found that when my Win95 resources drop to as
low as 50% with other things open, I have NO PROBLEM!  But, oddly enough,
as I start **recovering** some of the memory, that’s when the problems
start to occur, even with resources as high as 70%, which is pretty much
with only the Uniface app open.

For this reason, it can be very hard to predict when you will actually
start getting problems, since there seems to be some sort of threashhold
that has to be reached first, after which the only way to ensure stability
is to reboot Windows.

P.S. One of my co-workers is running the IE-4.0 desktop with the "Win-98"
feel.  She still had the first 2 problems (but never reported the third,
which comes less frequently.)  So, I’m not sure if Windows 98 will resolve
this.  At this point, I suspect the problem is a combination of Uniface and
Windows, since the problems ONLY occur in Uniface, but almost never when
the resources are above a certain level.

"Steve Adams" <st…@steker.demon.co.uk> on 04/23/98 11:21:39 AM

Please respond to unifac…@uug.org

To:   unifac…@uug.org
cc:    (bcc: Rob Spahitz/BusSys/ISD/Maxwell)
Subject:  Re: [U-L] Re: Fonts Morphing in the Runtime – Repost

Regardless of the amount of memory that you have in the machine, resources
are controlled by a finite amount of memory (I can’t remember exactly but I
think it is the GDI stack).  You could resolve some of the problems by
changing the minresource level in the ini file/setup options.  If memory
serves me, the default value is at 20% and when windows gets to this level,
uniface starts losing the font details (I think windows does the actual
changes).   You could try lowering this value to between 5 and 10%.  The
actual usage of this area will most probably depend on the number of
non-modal forms open and the number of fields that are on them.

Steve A

jeise…@MNSi.Net wrote in message <199804222243.SAA07…@MNSi.Net>…

I have been getting the same behavior in the IDF (using the same
configuration as you mentioned).  I have seen the answers that
indicate that this problem happens when resources are low.  What
would the threshold be?  I am running with 32MB on Windows 95, with
no other programs running.

- — -

> Date:          Wed, 22 Apr 1998 10:36:08 -0400
> Reply-to:      unifac…@uug.org
> From:          KULK…@kellyservices.com
> To:            unifac…@uug.org
> Cc:            SIMM…@kellyservices.com
> Subject:       [U-L] Fonts Morphing in the Runtime – Repost

> Hi again

> oops sorry. forgot to mention my configuration:
>      Uniface 7 .1.04 on Win 95 connected to Oracle 7.3.3 via SQL*Net

> Thanks

> Vivek Kulkarni
> 04/22/98 09:49 AM

> To:   unifac…@uug.org
> cc:
> Subject:  Fonts Morphing in the Runtime  (Document link not converted)

> Hi All

> We seem to be suffering from a strange phenomenon in our runtime
> application.

> The fonts suddenly and unexpectedly change to a larger size and different
> type, causing incomplete information to be visible.
> The metamorphosis occurs gradually. First the buttons seem to change,
> followed by the labels and then sometime even the fields.
> The problem is inconsistent so I can’t even reproduce for the helpdesk.

> If anybody has suggestions or clues as to where we could look, it would
> great.


> Vivek

Jack Eisenberg

Opinions expressed here are my own, and are not made
on behalf of my employer.

posted by admin in Uncategorized and have No Comments