Mailing List Archive

RT 4.4.1, Assets, empty names
This seems like such a silly thing, that I must be missing something.
If I create an Asset, but leave the Name field blank, how do I later
select that Asset?

I can see it in Search results, but there are no clickable spots in its
line except the show-related-tickets links.

Thanks,
Kyle

--
Kyle Dippery
Engineering Computing Services
219 RMB
859-257-1346
Re: RT 4.4.1, Assets, empty names [ In reply to ]
I'm pretty sure I'm not a fraud. Did I fail the checks because my
address is @uky.edu but the server is outlook.com or something?

Anyway I re-discovered, after sending, how to link to a different field
in the search results, so nevermind.

(
...
Set($AssetSearchFormat, q[.
'<a
href="__WebHomePath__/Asset/Display.html?id=__id__">__Name__</a>/TITLE:Name',
'<a
href="__WebHomePath__/Asset/Display.html?id=__id__">__CustomField.{Unique
Asset Number}__</a>/TITLE:UA #',
'__CustomField.{User}__/TITLE:User',
Description,
'__Status__/TITLE:Status',
'__CustomField.{MAC}__/TITLE:MAC',
'__CustomField.{IP Address}__/TITLE:IP Address',
'__CustomField.{Property Tag}__/TITLE:Property Tag',
'__CustomField.{Serial Number}__/TITLE:Serial Number',
'__ActiveTickets__ __InactiveTickets__/TITLE:Related tickets',
]) unless $AssetSearchFormat;
...
)

Thanks again,
Kyle

On 12/20/2016 10:33 AM, Kyle Dippery wrote:
> This sender failed our fraud detection checks and may not be who they
> appear to be. Learn about spoofing at http://aka.ms/LearnAboutSpoofing
>
> This seems like such a silly thing, that I must be missing something.
> If I create an Asset, but leave the Name field blank, how do I later
> select that Asset?
>
> I can see it in Search results, but there are no clickable spots in its
> line except the show-related-tickets links.
>
> Thanks,
> Kyle
>
> --
> Kyle Dippery
> Engineering Computing Services
> 219 RMB
> 859-257-1346
>

--
Kyle Dippery
Engineering Computing Services
219 RMB
859-257-1346
Re: RT 4.4.1, Assets, empty names [ In reply to ]
Le 20/12/2016 à 16:33, Kyle Dippery a écrit :
> This seems like such a silly thing, that I must be missing something.
> If I create an Asset, but leave the Name field blank, how do I later
> select that Asset?
>
> I can see it in Search results, but there are no clickable spots in its
> line except the show-related-tickets links.

What you see in Search results depends on $AssetSearchFormat settings.
By default (RT_Config.pm) it is:

q[.
'<a
href="__WebHomePath__/Asset/Display.html?id=__id__">__Name__</a>/TITLE:Name',
Description,
'__Status__ (__Catalog__)/TITLE:Status',
Owner,
HeldBy,
Contacts,
'__ActiveTickets__ __InactiveTickets__/TITLE:Related tickets',
]

with the link (href) on the name field.

To solve your issue, you can redefine $AssetSearchFormat with __id__
instead of __Name__.
--
Easter-eggs Spécialiste GNU/Linux
44-46 rue de l'Ouest - 75014 Paris - France - Métro Gaité
Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 43 35 00 76
mailto:gsedrati-dinet@easter-eggs.com - http://www.easter-eggs.com