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

Thanks Anurag,



But why is my custom field overriding the default? Do I just need to delete this field?


Albert,



From your custom field, you need to uncheck the 'Display' checkbox. For any table there should be only one field which is a display value


There should be just 1 field on a table with display checked.


-Anurag

So the form I'm trying to create is extended from the Asset [alm_asset] table, does that mean, I cannot alter the display name from the default calculated name?


I would strongly suggest you not to modify anything on the dictionary level on that form, changing form layout and all are okay


-Anurag