Skip to main content

I am trying to follow the training from learn.rocketsoftware.com about ux widgets. 

When I try to tun the example dsp UX-1 I get a Uniface RIA Exception "No widget found for files PERSONID.WIDGETS.UX". 
I have copied the uniface\\common folder from the installed uniface to the runtime webapps\\uniface folder. What file(s) am I missing? I have tried inspecting the page code, and I can't see anywhere it directly references the ux\\unifaceux.min.js. 

Regards, 

Iain



------------------------------
Iain Sharp
Head of Technical Services
Jonas Metals Software Limited
Sheffield GB
------------------------------

I am trying to follow the training from learn.rocketsoftware.com about ux widgets. 

When I try to tun the example dsp UX-1 I get a Uniface RIA Exception "No widget found for files PERSONID.WIDGETS.UX". 
I have copied the uniface\\common folder from the installed uniface to the runtime webapps\\uniface folder. What file(s) am I missing? I have tried inspecting the page code, and I can't see anywhere it directly references the ux\\unifaceux.min.js. 

Regards, 

Iain



------------------------------
Iain Sharp
Head of Technical Services
Jonas Metals Software Limited
Sheffield GB
------------------------------

Hi Iain, 

I did it a while back and it worked.... I remember the need to modify the ini file to include the uxwidgets.



------------------------------
Osman Shariff
Freelance Uniface Consultant - France

Private message me if you need help with a project
English, French, German
------------------------------

Hi Iain, 

I did it a while back and it worked.... I remember the need to modify the ini file to include the uxwidgets.



------------------------------
Osman Shariff
Freelance Uniface Consultant - France

Private message me if you need help with a project
English, French, German
------------------------------

Hi Iain,

As Osman said, you likely have a configuration issue, most likely in usys.ini or web.ini.

The error report identifies the field that uses the widget for which the error was identified.

A quick summary:

usys.ini defines the logical widget in [webwidgets] or [webentitywidgets] so you can select it in the IDE. You'll need to recompile if you make changes.

web.ini defines the corresponding physical widget definition. Remember that JavaScript is case sensitive, and don't forget to restart the server (e.g. urouter restart) if you make changes.

This references the JavaScript file (updates just require a refresh). If you've got an error in the location you'll see an 404 (not found) error in the web browser debugger network tab.

Also note that Uniface 10.4.03 patch 15 modifies the format of some of the parameters used by the UX Interface. If building your own widgets you'll need to make some code changes or use the compatibility API. I'm currently in the process of updating the learning exercises and giving some documentation feedback.

Kind Regards,



------------------------------
David Akerman
Principal Solution & Enablement Architect
Rocket Internal - Uniface
------------------------------

Hi Iain,

As Osman said, you likely have a configuration issue, most likely in usys.ini or web.ini.

The error report identifies the field that uses the widget for which the error was identified.

A quick summary:

usys.ini defines the logical widget in [webwidgets] or [webentitywidgets] so you can select it in the IDE. You'll need to recompile if you make changes.

web.ini defines the corresponding physical widget definition. Remember that JavaScript is case sensitive, and don't forget to restart the server (e.g. urouter restart) if you make changes.

This references the JavaScript file (updates just require a refresh). If you've got an error in the location you'll see an 404 (not found) error in the web browser debugger network tab.

Also note that Uniface 10.4.03 patch 15 modifies the format of some of the parameters used by the UX Interface. If building your own widgets you'll need to make some code changes or use the compatibility API. I'm currently in the process of updating the learning exercises and giving some documentation feedback.

Kind Regards,



------------------------------
David Akerman
Principal Solution & Enablement Architect
Rocket Internal - Uniface
------------------------------
So, it was something to do with web.ini. I copied it to the asns folder for
my app, and also to the common\\adm folder in the uniface installation, and
restarted the urouter and tomcat. It's working now.



Regards,

Iain








Iain Sharp | Head of Technical Services
Jonas Metals Software
iains@jonasmetals.com
tel +44 (0) 114 201 2200
www.jonasmetals.com

@pcisystems.co.uk?anonymous&ep=pcard> Book Time With Me




s-1358677082729?aff=oddtdtcreator>




--


STATEMENT OF CONFIDENTIALITY: This email and any files transmitted with
it are confidential and intended solely for the use of the individual or
entity to whom they are addressed. If you have received this email in error
please notify the sender immediately and do not copy, distribute or take
any action in reliance upon it. Please note that any views or opinions
presented in this email are solely those of the author and do not
necessarily represent those of the company. Finally, the recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.



Jonas Metals Software Limited is a limited company
registered in England and Wales with registered number 02648289. Our
registered office is at Hithercroft Road, Wallingford, Oxfordshire OX10
9BT. Our VAT number is 691 3168 24. Jonas Metals Software is part of the
Jonas Group of companies.

We use Google Workspace and this email has been
sent using Gmail.

So, it was something to do with web.ini. I copied it to the asns folder for
my app, and also to the common\\adm folder in the uniface installation, and
restarted the urouter and tomcat. It's working now.



Regards,

Iain








Iain Sharp | Head of Technical Services
Jonas Metals Software
iains@jonasmetals.com
tel +44 (0) 114 201 2200
www.jonasmetals.com

@pcisystems.co.uk?anonymous&ep=pcard> Book Time With Me




s-1358677082729?aff=oddtdtcreator>




--


STATEMENT OF CONFIDENTIALITY: This email and any files transmitted with
it are confidential and intended solely for the use of the individual or
entity to whom they are addressed. If you have received this email in error
please notify the sender immediately and do not copy, distribute or take
any action in reliance upon it. Please note that any views or opinions
presented in this email are solely those of the author and do not
necessarily represent those of the company. Finally, the recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.



Jonas Metals Software Limited is a limited company
registered in England and Wales with registered number 02648289. Our
registered office is at Hithercroft Road, Wallingford, Oxfordshire OX10
9BT. Our VAT number is 691 3168 24. Jonas Metals Software is part of the
Jonas Group of companies.

We use Google Workspace and this email has been
sent using Gmail.

Okay, that got me further into the learning module. And I come to inputting the properties for a UX widget. 

However, the properties editor (from the elipsis on the DSP Widget properties), doesn't look like the example.  I have checked the setting $HFM_BASE_DIR and reset it to usysuniface:HTML, no joy. 

Any ideas? 




------------------------------
Iain Sharp
Head of Technical Services
Jonas Metals Software Limited
Sheffield GB
------------------------------

Okay, that got me further into the learning module. And I come to inputting the properties for a UX widget. 

However, the properties editor (from the elipsis on the DSP Widget properties), doesn't look like the example.  I have checked the setting $HFM_BASE_DIR and reset it to usysuniface:HTML, no joy. 

Any ideas? 




------------------------------
Iain Sharp
Head of Technical Services
Jonas Metals Software Limited
Sheffield GB
------------------------------

Another ini file. uproperties.ini, also needed copying from the uniface\\adm folder to the common\\adm folder. 



------------------------------
Iain Sharp
Head of Technical Services
Jonas Metals Software Limited
Sheffield GB
------------------------------

Another ini file. uproperties.ini, also needed copying from the uniface\\adm folder to the common\\adm folder. 



------------------------------
Iain Sharp
Head of Technical Services
Jonas Metals Software Limited
Sheffield GB
------------------------------

If you use the installer to upgrade instead of directly applying patch zip files, I think it does this automatically for you (although it is prudent to make a backup of your existing configuration files in case of any issues).



------------------------------
David Akerman
Principal Solution & Enablement Architect
Rocket Internal - All Brands
------------------------------

If you use the installer to upgrade instead of directly applying patch zip files, I think it does this automatically for you (although it is prudent to make a backup of your existing configuration files in case of any issues).



------------------------------
David Akerman
Principal Solution & Enablement Architect
Rocket Internal - All Brands
------------------------------

Hi, 

I think the issue is that, for whatever reason, stuff in the uniface\\adm folder is not read by my IDE/Runtime, and it needs to be in the common\\adm folder instead. 
Once I determined that this was the case, and copied the ini files across, all the training modules worked if I only changed the ini files in the common\\adm folder. 

I now need to work out a strategy for the use of /adm in my deployment runtimes, so I know where the updated files need to live. 

Iain



------------------------------
Iain Sharp
Head of Technical Services
Jonas Metals Software Limited
Sheffield GB
------------------------------