Asset Display Name HELP!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2015 08:50 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2015 09:01 AM
Thanks Anurag,
But why is my custom field overriding the default? Do I just need to delete this field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2015 09:03 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2015 09:04 AM
There should be just 1 field on a table with display checked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2015 09:13 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2015 09:17 AM
I would strongly suggest you not to modify anything on the dictionary level on that form, changing form layout and all are okay
