Manage Template Edit not working

If you think that something doesn't work in Aware IM post your message here
Post Reply
himanshu
Posts: 722
Joined: Thu Jun 19, 2008 6:24 am
Location: India
Contact:

Manage Template Edit not working

Post by himanshu »

Hi Support,

Under Manage Import Templates I am trying to edit the existing the template and it's not working.

Can you please confirm at your end?

I am using version 8.7 3017
From,
Himanshu Jain


AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Manage Template Edit not working

Post by aware_support »

It's a bug. Will be fixed in the next release. In the meantime you can fix it yourself by changing the file AwareIM/Tomcat/webapps/AwareIM/aware_kendo/udit.js

Inside the buildColumnRecords method you will find this (the new code is in bold) - don't forget to clear the browser cache after:

var count = this.m_columnStore.total ();
if (colNmb < count)
{
// remove existing
// check existing rules - make sure they don't have removed columns and confirm with the user
var usedInRules = this.checkRemoveColumns (count - colNmb, count);
if (usedInRules.emptyOnly === false &&
(usedInRules.usedInMappingRules.length > 0 || usedInRules.usedInRules.length > 0) &&
! window.confirm (this.strConfirmColumnUsedInRules))
{
return false;
}

for (var i = 0; i < count - colNmb; ++ i)
this.m_columnStore.remove (this.m_columnStore.at (colNmb));

for (var i = 0; i < usedInRules.usedInMappingRules.length; ++ i)
this.m_mappingStore.remove (usedInRules.usedInMappingRules);

for (var i = 0; i < usedInRules.usedInRules.length; ++ i)
this.m_rulesStore.remove (usedInRules.usedInRules);
}
else
{
...
}

Change it to this:
var count = this.m_columnStore.total ();
if (colNmb < count)
{
// remove existing
// check existing rules - make sure they don't have removed columns and confirm with the user
var usedInRules = this.checkRemoveColumns (count - colNmb, count);
if (usedInRules.emptyOnly === false &&
(usedInRules.usedInMappingRules.length > 0 || usedInRules.usedInRules.length > 0) &&
! window.confirm (this.strConfirmColumnUsedInRules))
{
return false;
}

for (var i = 0; i < count - colNmb; ++ i)
this.m_columnStore.remove (this.m_columnStore.at (colNmb));

for (var i = 0; i < usedInRules.usedInMappingRules.length; ++ i)
this.m_mappingStore.remove (usedInRules.usedInMappingRules);

for (var i = 0; i < usedInRules.usedInRules.length; ++ i)
this.m_rulesStore.remove (usedInRules.usedInRules);
}
else if (colNmb == count)
{
return true;
}
else
{
...
}
Aware IM Support Team
Post Reply