0 votes

When we want to link a contact to an entity in edit mode, we see that when we search in grey and between brackets the main company is shown in the results.

This is done in ListColumns.txt in td.EPSEARCHNAME.Comp

But for the recent contacts this is not present.

in ListColumns.txt in td.RECENTNAMEZZ.Comp
The field is not available and there is no sys_query for recents.

Where can we (if possible) add a field for use in these recent lists ?

asked in Efficy/ Client side by (618 points)

1 Answer

+2 votes
Best answer

The <%GetRecentGrid()%> can be extended with extrafields. Here a two examples from the standard files.

<%GetRecentGrid(
  columndefs="%%Evaluate(|<%Macro('SearchResultColumnDefs')%>|)", 
  entity="%%GetEntity()", 
  key="K_1", 
  noheader=true,
  extrafields=|%%OnEntity(comp="OPENED,PHONE1,WEB1", cont="PHONE1,EMAIL1,OPENED", docu="ATTACHMENTS,OPENED")|,
  columns="%%OnEntity(
    comp='N,TEXT{NAMESEARCH}'
    prod='N,TEXT{NAMESEARCH}'
    proj='N,TEXT{NAMESEARCH}'
    else='N,TEXT{NAMESEARCH}')"
)%>

Idem dito for <%GetFavoriteGrid()%>

<%GetFavoriteGrid(
  columndefs='ListColumns', 
  entity='$detail$', 
  entityfilter='%%GetEntity()', 
  key='K_1', 
  filter@='filter', 
  extrafields='%%OnDetail(Tmpl="SERVER,K_REFERENCE")', 
  noheader='true', notable='true', columns='FAVODELETE,NAME{FAVONAME}',
  norecords=|<li><a href="#"><%GetLabel('(no favorites)', 
  context=TEXT
)%>
answered by (7.4k points)
selected by
1,249 questions
1,518 answers
1,858 comments
328 users