Skip to main content

Dynamic Button Representation

Author: ncolmart@medinfo.fr (ncolmart)

In my application, I would like to dynamically change the representation of some buttons from Uniface to Windows depending on the $oprsys.
In our usys.ini, the Commandbutton widget is defined with Representation = 'Uniface' (as many of our buttons have glyphs)

I've tried to change it by $fieldproperties(MyField)="Representation=Windows" in the trigger before the 'edit' (as described in the documentation : http://frontline.compuware.com/doc/UF/UF94/html/library/Representation.html)

But the representation of the field is not changed.
The button is always displayed as a Uniface button.

Any idea ?
Thanks
Nicolas

Dynamic Button Representation

Author: ncolmart@medinfo.fr (ncolmart)

In my application, I would like to dynamically change the representation of some buttons from Uniface to Windows depending on the $oprsys.
In our usys.ini, the Commandbutton widget is defined with Representation = 'Uniface' (as many of our buttons have glyphs)

I've tried to change it by $fieldproperties(MyField)="Representation=Windows" in the trigger before the 'edit' (as described in the documentation : http://frontline.compuware.com/doc/UF/UF94/html/library/Representation.html)

But the representation of the field is not changed.
The button is always displayed as a Uniface button.

Any idea ?
Thanks
Nicolas

Hello Nicolas,

$fieldproperties will (only) set the dynamic widget properties for the specified field in the current occurrence. You have to use $properties instead to set this particula property.

I hope the provided information is helpful.

Kind regards,
Daniel


Author: diseli (daniel.iseli@uniface.com)

Dynamic Button Representation

Author: ncolmart@medinfo.fr (ncolmart)

In my application, I would like to dynamically change the representation of some buttons from Uniface to Windows depending on the $oprsys.
In our usys.ini, the Commandbutton widget is defined with Representation = 'Uniface' (as many of our buttons have glyphs)

I've tried to change it by $fieldproperties(MyField)="Representation=Windows" in the trigger before the 'edit' (as described in the documentation : http://frontline.compuware.com/doc/UF/UF94/html/library/Representation.html)

But the representation of the field is not changed.
The button is always displayed as a Uniface button.

Any idea ?
Thanks
Nicolas

Hi Daniel,

That works !!
Thank you very much for your help.

Regards,
Nicolas


Author: ncolmart (ncolmart@medinfo.fr)