Welcome!
This community is for professionals and enthusiasts of the Genio platform.
Share your questions and challenges, and help your partners!
How to utilize static texts and their respective translations?
I was trying to utilize a static text that was manually inserted through "Texts" menu in a form.
When I add the static text field on the form and specify the identifier (TestStaticText) manually, it generates and compiles the solution but when I visit the form the application crashes:
> 'GenioMVC.Resources.Resources' does not contain a definition for 'TESTSTATICTEXT39290'
This seems to be caused by the text string not being included in Resources.resx file.
The popup window that lets the user visualize which texts are available doesn't seem to work and instead of "selecting" the static text identifier it just opens the static text for modification. The modification area is also a bit weird since it doesn't let me save the content.
When I add a static text through the form editor, it seems to work and the string is properly included in Resources.resx
Can someone help me figure out why if I don't open the "translations" popup and just type some text in the field description it works? If I try to use an identifier/code from a text I inserted through "Texts" it fails.
Thanks in advance!
Just figured out that inserting a random text string in the Designation of the form field, and avoiding the translations popup menu forces Genio to "recompile" the Resources.resx and it will include the TestStaticText string that was previously inserted manually.
1. Inserted TestStaticText through "Texts"
If I immediately use "TestStaticText" as the Designation for the form field, the string will not be found in Resources.resx and causes the application to crash on runtime (generates and compiles the solution).
2. If I insert a random string in the Designation without going through "Texts" menu:
It not only generates the string TEST_123XXXX, but also generates the string for TestStaticText that was inserted through "Texts":
3. Now if I go back to Genio and change back the Designation of the static text field to "TestStaticText" it works properly and no longer crashes on runtime.
Keep Informed
About the Community
Question tools
Stats
Asked: 30/06/2020 16:15 |
Seen: 1615 times |
Last updated: 22/08/2020 15:40 |