function isWidgetValid(widget_id) {
var tmp_is_valid = true;
try {
tmp_is_valid = widget_id.isValid();
} catch (err) {}
return tmp_is_valid;
}
function getWidgetLabel(widget_id) {
var tmp_widget_label = "";
try {
tmp_widget_label = widget_id.getLabel();
} catch (err) {}
return tmp_widget_label;
}
function getWidgetType(widget_id) {
var tmp_widget_type = "";
try {
tmp_widget_type = widget_id.getType();
} catch (err) {}
return tmp_widget_type;
}
function displayMsgValidWidgets() {
//return an html message displaying fields not properly filled in
var a_all_widgets = RMPWidgets.getAllWidgets();
var html_msg_valid = "";
for (var i = 0; i < a_all_widgets.length; i++) {
if (getWidgetType(a_all_widgets[i]) != "RMP_Array") {
if (!isWidgetValid(a_all_widgets[i])) {
html_msg_valid = html_msg_valid + "<tr>" +
"<td><i>" + getWidgetLabel(a_all_widgets[i]) + "</i></td>" + "</tr>";
}
} else {
//is there any invalid field in the array?
for (var j in a_all_widgets[i]) {
var index_key = 0;
if ((j != "name") && (j != "type") && (j != "index")) {
var is_column_valid = true;
for (var k = 0; k < a_all_widgets[i][j].length; k++) {
is_column_valid = is_column_valid && isWidgetValid(a_all_widgets[i][j][k]);
if (!is_column_valid) {
html_msg_valid = html_msg_valid + "<tr>" +
"<td><i>" + a_all_widgets[i].getHeader(index_key) + "</i> (array column)</td>" + "</tr>";
}
}
}
index_key++;
}
}
}
if (html_msg_valid != "") {
html_msg_valid = "<div style='color:red;font-weight: bolder;'>The following fields are required:</div><table>" + html_msg_valid + "</table>";
}
//replace id_html_valid_widgets by your own html widget id
id_html_valid_widgets.setHtml(html_msg_valid);
}
Along with this html code to show the missing required fields: <!-- id_html_valid_widgets -->
However this does not happen for all of the fields of screens.
I have make available and active the js as well as the html but it still doesn't seem to be working after the first screen. Am I missing something?
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/f7450d16-34a3-44e0-9250-d7be87a24459%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/groups/opt_out.
You received this message because you are subscribed to a topic in the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/29VWPRT9Gvw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/CAKDixUiG_WXgZ_wuUqJvtyqspWOFh9ZWcPzDWuBSV-at4AFAcQ%40mail.gmail.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/groups/opt_out.