Skip to main content

I have 3 forms components that looks partially same with a sub-part containing 31 fields, 29 labels, 2 vertical lines nicely painted. I had to review them. After doing first form I would like to copy the whole sub-part on the 2 other forms.
Is there a means to copy part of paint tableau to another? (Of course we need to reserve the space in the entity and avoid overlapping).
In Uniface 8 and 9, I did it by exporting the forms in xml , copying the lines in the FORMPIC field and import back.
But doing this in Uniface 10, make that the IDE throws exceptions and propose to close (also after restarting the IDE), despite forms look correct and compile without errors.
PS: I don't want to use a common overlay component as this forms have to run also in character mode.



------------------------------
Bertrand Daene
Senior Developper
Cgm Lab International Gmbh
Koblenz DE
------------------------------

I have 3 forms components that looks partially same with a sub-part containing 31 fields, 29 labels, 2 vertical lines nicely painted. I had to review them. After doing first form I would like to copy the whole sub-part on the 2 other forms.
Is there a means to copy part of paint tableau to another? (Of course we need to reserve the space in the entity and avoid overlapping).
In Uniface 8 and 9, I did it by exporting the forms in xml , copying the lines in the FORMPIC field and import back.
But doing this in Uniface 10, make that the IDE throws exceptions and propose to close (also after restarting the IDE), despite forms look correct and compile without errors.
PS: I don't want to use a common overlay component as this forms have to run also in character mode.



------------------------------
Bertrand Daene
Senior Developper
Cgm Lab International Gmbh
Koblenz DE
------------------------------

In previous uniface version is was possible to copy the graphical painter and paste.  This would put it all at the top right of the graphical painter in the new form.

v10 does not do this.   

FORMPIC in v10 is very similar to all the older versions, so your method should work also for v10.  I would suggest doing a fault finding why you get execpetion errors.  

Maybe testing it first with just a simple field.



------------------------------
Osman Shariff
------------------------------

In previous uniface version is was possible to copy the graphical painter and paste.  This would put it all at the top right of the graphical painter in the new form.

v10 does not do this.   

FORMPIC in v10 is very similar to all the older versions, so your method should work also for v10.  I would suggest doing a fault finding why you get execpetion errors.  

Maybe testing it first with just a simple field.



------------------------------
Osman Shariff
------------------------------

Hello,

I have to experiment a little bit more but it seems that the errors are generated if you change the paint tableau but don't have the corresponding UXFIELD records.

In Uniface 9, you could do a clean up to regenerate/remove corresponding UXFIELDs but I don't see such action in Uniface 10.

Bertrand Daene



------------------------------
Bertrand Daene
Senior Developper
Cgm Lab International Gmbh
Koblenz DE
------------------------------

Hello,

I have to experiment a little bit more but it seems that the errors are generated if you change the paint tableau but don't have the corresponding UXFIELD records.

In Uniface 9, you could do a clean up to regenerate/remove corresponding UXFIELDs but I don't see such action in Uniface 10.

Bertrand Daene



------------------------------
Bertrand Daene
Senior Developper
Cgm Lab International Gmbh
Koblenz DE
------------------------------

I would say that you definately need uxfields.  I did not know a clean would create uxfields.  The uniface 10 clean does remove unwanted ones, so it may add them too.



------------------------------
Osman Shariff
------------------------------

I would say that you definately need uxfields.  I did not know a clean would create uxfields.  The uniface 10 clean does remove unwanted ones, so it may add them too.



------------------------------
Osman Shariff
------------------------------

Patch 10.4.02-028 introduced the ability to copy/past fields in the Form/Report's Resource browser and Structure tree 

Feature: Add multiple (modeled) fields onto the canvas of a Form/Report

You can insert or paste multiple fields into a component structure using this feature. For more details, see Define Frames Worksheet, Copy and Paste Objects and Text, Add Objects from the Resource Browser, and Define the Structure and Layout of Forms and Reports.

Kind regards,

Mike



------------------------------
Michael Taylor
Rocket Internal - All Brands
------------------------------

Patch 10.4.02-028 introduced the ability to copy/past fields in the Form/Report's Resource browser and Structure tree 

Feature: Add multiple (modeled) fields onto the canvas of a Form/Report

You can insert or paste multiple fields into a component structure using this feature. For more details, see Define Frames Worksheet, Copy and Paste Objects and Text, Add Objects from the Resource Browser, and Define the Structure and Layout of Forms and Reports.

Kind regards,

Mike



------------------------------
Michael Taylor
Rocket Internal - All Brands
------------------------------

I nice to have which was lost in v10, is the ability to drag 2 objects in different entities at the same time...

An example is a label and a field where the field is part of a multi occurance entity... so, a simple popup list



------------------------------
Osman Shariff
------------------------------

I nice to have which was lost in v10, is the ability to drag 2 objects in different entities at the same time...

An example is a label and a field where the field is part of a multi occurance entity... so, a simple popup list



------------------------------
Osman Shariff
------------------------------

My aim is to copy a group fields and labels from one form to another by keeping the same layout. It took me nearly one hour to redesign all labels and fields on second form with correct positioning and settings all attributes.

In Uniface9 it didn't work very well either as the fields were put on top left out of the entity. It is why we used to manipulate paint tableau in the exported xml. In Uniface8 we could drop it on the correct place or easily move it inside the entity.

In Uniface9, there was a cleanup on the menu of Component Editor to realign UXFIELDs with painted fields but in Uniface10 it exists only as /cln command line switch. Having back this menu option in place of throwing errors in case of incoherencies would be nice.

In a dreamed world, the UXFIELDs would be copied too but it is less important in our case as we have nearly all triggers in the modeled entity.



------------------------------
Bertrand Daene
Senior Developper
Cgm Lab International Gmbh
Koblenz DE
------------------------------

Patch 10.4.02-028 introduced the ability to copy/past fields in the Form/Report's Resource browser and Structure tree 

Feature: Add multiple (modeled) fields onto the canvas of a Form/Report

You can insert or paste multiple fields into a component structure using this feature. For more details, see Define Frames Worksheet, Copy and Paste Objects and Text, Add Objects from the Resource Browser, and Define the Structure and Layout of Forms and Reports.

Kind regards,

Mike



------------------------------
Michael Taylor
Rocket Internal - All Brands
------------------------------

Hello,

Yes we can copy fields and labels from resource browser  without all presentation attributes but not from another Frame layout .

I small picture may be more clear than a lot of text.

I have this in EI_UN

I want to replace the blue part with this blue part from EI_U

If I copy from resource browser, I get this. And I have to move all labels and fields in place then insert all presentation attributes of each labels and fields one by one.



------------------------------
Bertrand Daene
Senior Developper
Cgm Lab International Gmbh
Koblenz DE
------------------------------