Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Custom table lost u_

servicetrout
Tera Expert

When creating a custom table the Column Name use to prepopulate with u_ in front of the variable name.

This no longer happens.   Any idea how to restore that functionality?

1 ACCEPTED SOLUTION

This is what happend after u write label , are u sure   that u don't have some kind of block to Javascript? ScriptLoader.getScripts(['DBNameSanitizer.js'], function() { var sanitizer = new DBNameSanitizer(); var label = sanitizer.trimName(newValue); var oldLabel = sanitizer.trimName(previousValue); var prefix = getPrefix(sanitizer.MAINT_PREFIX,     sanitizer.CUSTOMER_PREFIX,     sanitizer.VENDOR_PREFIX_DELIMCHAR); var defaultNewColumnName = prefix + label; var defaultOldColumnName = prefix + oldLabel; //if the column is still using the default value, then update it to the new default value if (columnName == defaultOldColumnName) { sanitizer.setValueOnTargetElement('element', defaultNewColumnName, 'Column'); return; } Please Hit Correct, Helpfull etetc


View solution in original post

4 REPLIES 4

sergiodecristo1
Mega Expert

Are u sure to don't used a Scoped Application 😄 ?


Made Attention that if your field don't start with u_   can be overwritten at next upgrade 🙂


I am adding the u_ manually for that reason, just wondering why it isn't coming up automatically.


Table is a global table.


This is what happend after u write label , are u sure   that u don't have some kind of block to Javascript? ScriptLoader.getScripts(['DBNameSanitizer.js'], function() { var sanitizer = new DBNameSanitizer(); var label = sanitizer.trimName(newValue); var oldLabel = sanitizer.trimName(previousValue); var prefix = getPrefix(sanitizer.MAINT_PREFIX,     sanitizer.CUSTOMER_PREFIX,     sanitizer.VENDOR_PREFIX_DELIMCHAR); var defaultNewColumnName = prefix + label; var defaultOldColumnName = prefix + oldLabel; //if the column is still using the default value, then update it to the new default value if (columnName == defaultOldColumnName) { sanitizer.setValueOnTargetElement('element', defaultNewColumnName, 'Column'); return; } Please Hit Correct, Helpfull etetc


Javascript is enabled in my browser.