// Script to test the security/access rules of your Mendix application. It shows all the data that the user has access to. // If the user is allowed to modify the data, the background is green. White for read-only. function addCellText(p_document,p_row,p_text,p_head,p_readonly) { var l_cell=p_row.insertCell(); l_cell.appendChild(p_document.createTextNode(p_text)); l_cell.style.border='solid 1px #000'; if(p_head) l_cell.style.backgroundColor='#ddd'; if(!p_readonly) l_cell.style.backgroundColor='#00ff00'; } var l_window=window.open(); var l_map=mx.meta.getMap(); var l_document=l_window.document; var l_parent=l_document.body; var l_select=l_document.createElement("select"); var l_option; var l_options=[]; var l_key; var l_cnt; l_parent.appendChild(l_select); l_option=document.createElement("option"); l_option.value=""; l_option.text=""; l_select.add(l_option); for(l_key in l_map) l_options.push(l_key); l_options.sort(); for(l_cnt=0;l_cnt0) { l_att=mx.meta.getEntity(l_name).getAttributes(); l_tab=l_document.createElement("table"); l_tab.id='tab'; l_tab.style.borderCollapse="collapse"; l_parent.appendChild(l_tab); l_row=l_tab.insertRow(); l_cols=p_data[0].jsonData.attributes; addCellText(l_document,l_row,"guid",true,true); var collie=""; for(l_key=0;l_key