Defect #685
HTML tags arenot recognized any more in dialogs
0%
Description
After updating dialog module to the latest version from repository. I recognized that message area was changed from Label to Text_Area and html tags are not recognizable any more (According to the SVN this changes was applied on 4 Dec 2012 (revision 90)).
We are using several these kind of dialog in Servoy internal system (CRM) but now all of them look like so odd (Please see this http://screencast.com/t/Zmtnm7yHENR).
History
Updated by Harjo Kompagnie about 11 years ago
Please check the latest trunk version.
It is allowed now to use html in the text messages. Also html in i18n labels are allowed.
The only restriction is that your string or i18n string has to start with: '<html>'
Please make sure that you also close your html tags properly!
If you are not using html nothing changes.
Updated by Sovan Misra over 10 years ago
Hi,
I am using Dialog Module V 1.5.6 and showing a HTML message with i18n keys. On the dialog it is coming with the markup tags.
<html>Please confirm that you would like to change your dashboard project status from <b>{0}</b> to <b>{1}</b> as your default.</html>
if(globals.DIALOGS.showQuestionDialog(i18n.getI18NMessage('key.set_default_filter'),i18n.getI18NMessage('key.set_default_filter_message',
[application.getValueListDisplayValue('projects_filter_by_status',project_filter_1)]),'Yes', 'No') == 'Yes')
Am I doing anything wrong here?
Thanks
Sovan
Updated by Harjo Kompagnie over 10 years ago
Did you try the trunk version?
Out of my head, the message need the syntax: 'i18n:key.set_default_filter_message'
I don't know if it works with arguments {0} and {1}
You always can workaround, by getting all your i18nMessages in variables like:
var vTitle = i18n.getI18NMessage('key.set_default_filter')
var vMessage = i18n.getI18NMessage('key.set_default_filter_message'
and than do: if(globals.DIALOGS.showQuestionDialog(vTitle,vMessage,
[application.getValueListDisplayValue('projects_filter_by_status',project_filter_1)]),'Yes', 'No') == 'Yes')