Asset Display Name HELP!!!!

Albert Chan
Mega Expert

I'm not sure how I did this, but I somehow made the Display Name field on the Asset[alm_asset] table start with "Calling Card - ".

Here's what I did:

1. Opened the dictionary entry for Display Name

2. Insert and Stay

3. In the new entry:

        a. Changed the column name to: Calling Card Name

        b. Modified the original code from:

                            var values = [current.asset_tag + ' -' ,current.model.display_name];

                            var display_name = "";

                           

                            for (var x=0;x<values.length;x++) {

                                    if (values[x] != undefined && values[x] != "" && values[x] != " -") {

                                    display_name = display_name + ' ' + values[x];

                                    }

                            }

                           

                            current.display_name = display_name.trim();

                  to:

                            var values = ['Calling Card -' ,current.serial_number];

                            var display_name = "";

                            for (var x=0;x<values.length;x++) {

                                if (values[x] != undefined && values[x] != "" && values[x] != " -") {

                                    display_name = display_name + ' ' + values[x];

                                }

                            }

                            current.display_name = display_name.trim();

Now all of the Display name fields start with "Calling Card - ". I deleted the custom table that I created to use the Calling Card Name field. Also, now in the Hardware Assets, all the Display names start with "Calling Card - ".

1. What did I do to cause this?

2. How do I fix it?

Thanks in advance!

9 REPLIES 9

manikorada
ServiceNow Employee
ServiceNow Employee

Albert,



If its in Dev, I would suggest to restore the instance from the back up. Hi Support can help you on that.


Is a restore the same as a instance clone?


Albert Chan
Mega Expert

OK, here's some new info. When I look at the dictionary entry for Display name, it shows the column label is "Display Name", but when I try to insert or insert and stay, I get an error saying "column u_display_name already exists in this table or a table extended from it" and then the column label changes to "Calling Card Name" and the column name changes to "u_display_name."


Anurag Tripathi
Mega Patron
Mega Patron

Go to System Definition ->Tables, Open alm_asset table and check the Label there.


-Anurag