Selector page error only in French

Posted by dora.husaru on 05-Oct-2018 08:32

Hi,

We have an application in English, Dutch and French and 2 objects with a one to many relation. When opening the selector page I get an error at the marked line below: Uncaught SyntaxError: missing ) after argument list. This only happens when we use the app in French.
From what I can see the message in the alert uses single quotes and also has a ' in the message.

function selMultiObj(){
    if(rbf_isNewUI()){
        var allInputs = $('input.rbs-selector-rec-check:checked');
        if(allInputs.length > 0){
            if (allInputs.length > 99 ) {
                rbf_showAlert('Le nombre maximal d'enregistrements pouvant être attachés a été dépassé.', 'Le nombre maximal d'enregistrements pouvant être attachés est de 99');
                return;
            }
            
                $(allInputs).each(function(i){
                    var objId = $(this).attr('data-rec-id');
                    var objName=$(this).attr('data-rec-name');
                    if(objId!==undefined && objId!==null && objId!=='' && objName!==undefined && objName!==null && objName!==''){
                        callSelectObjMethod(objId,objName,true);
                    }
                });
                window.parent.$.event.trigger(rb.newui.util.customEvents.rbs_multiObjectSelectedOnSelectorView);
                
            
        }
        closeSelectorDlg();
    }
    return false;
}

Posted by Srinivas Panyala on 08-Oct-2018 01:30

This is a defect (RB-8790) and will fix it in a future release. Thanks for reporting.

As a workaround on private cloud, you can modify the selector.jsp. Replace single quotes with double quotes in the following line.

rbf_showAlert("<%=params.getLanguage().s("newui.eu.Max_Limit_Reached")%>", "<%=params.getLanguage().s("newui.eu.Max_Limit_Reached_Message_0",SharedProps.getMaxSelectableRecords())%>");

Thanks

Srinivas

All Replies

Posted by Srinivas Panyala on 08-Oct-2018 01:30

This is a defect (RB-8790) and will fix it in a future release. Thanks for reporting.

As a workaround on private cloud, you can modify the selector.jsp. Replace single quotes with double quotes in the following line.

rbf_showAlert("<%=params.getLanguage().s("newui.eu.Max_Limit_Reached")%>", "<%=params.getLanguage().s("newui.eu.Max_Limit_Reached_Message_0",SharedProps.getMaxSelectableRecords())%>");

Thanks

Srinivas

This thread is closed