% if (tabOption == "DB") { %>
|
<%
var label = i18n.databasePartition.oTImportUnitGroupsSQL;
var searchID = "oTImportUnitGroupsSQL";
if (mappingType == "users")
{
label = i18n.databasePartition.oTImportUnitUsersSQL;
searchID = "oTImportUnitUsersSQL";
}
else if (mappingType == "mappings")
{
label = i18n.databasePartition.oTImportUnitMappingsSQL;
searchID = "oTImportUnitMappingsSQL";
}
%>
<%= label %> |
|
<% }
for (var doitTwice = 0; doitTwice < 2; doitTwice++)
{
if (doitTwice == 0 || ((doitTwice == 1) && (mappingType != "mappings"))) {
%>
<%= (doitTwice == 0) ? i18n.mappingsPage.OTDSAttributeMandatory : i18n.mappingsPage.OTDSAttributeOptional %> |
<% if (tabOption == "DB") { %>
<%= i18n.mappingsPage.DatabaseColumn %> |
<% } else if (tabOption == "XML") { %>
<%= i18n.mappingsPage.XMLAttribute %> |
<% } %>
<% var lineCounter = 0;
for (var cnt = 0; cnt < otdsAttributes.length; cnt++)
{
if ((otdsAttributes[cnt].MustContain && doitTwice == 0) || (!otdsAttributes[cnt].MustContain && doitTwice == 1))
{
var actualID = mappingType + otdsAttributes[cnt].Name;
var visibleID = otdsAttributes[cnt].Name;
var rowStyle = "";
if (lineCounter % 2 == 1)
rowStyle = "background: #f2f5f7";
lineCounter++;
%>
<%= visibleID %> |
|
<% }
}%>
<% } } %>