Adding field in search criterion
I have got an issue,we execute VD03 to display the customer record, now when I hit F4 to look out for the customer number... I can select a customer based on several categories such as "Customers (general code), customers (by company code), customers by country " and we also have one custom one as ****custom and now I need to add an extra field field in this custom category. so can you please help me in where can I add the logic to add field.
Thank you.
HI
You must customize the serch Help from se11 transaction.
Copy the standard and set your new matchcode for the your transaction
regards
Marco
Similar Messages
-
Adding a new field to search of Service Contracts
Hi Experts,
I have a requirement where in to add an existing field i.e your ref (sold_to) your_ref_sold field into the search criteria of Service Contrct .
How to add the field to the Search .
I have few questions here.
1 need I use EEW to add the field to Search but its already existing?
2 If not How to append the Structure crmst_query_src_btil and enhace it with field required?
3 how to implement the BADI crm_rf_search_eew?
Thanking You,
Sree.The search help exit allows you to modify functionality of search help. If you add a new field to the
parameter list that is not contained on the selection method you can manually populate it within the search
help exit.
This would be performed within the u2018STEP DISPu2019 section. Once within this section all search help
data has been retrieved and is stored in table RECORD_TAB (record_tab-string) as one long string value.
Therefore you need to read table SHLP in-order to locate position of value within string.
Example:
To find position of personnel number (PERNR) within elemenory search
help M_PREMN you would use the following code:
Loop at record_tab.
read table shlp-fielddescr into wa_shlp
with key tabname = 'M_PREMN'
fieldname = 'PERNR'.
You could then use this information in the following way, for
example, to find a persons organisation unit:
select orgeh endda
up to 1 rows
from pa0001
into (ld_orgeh,ld_endda)
where pernr eq record_tab-string+wa_shlp-offset(8)
u201Cpernr length is 8
order by endda descending.
endselect.
select single orgtx
from t527x
into ld_orgtxt
where orgeh eq ld_orgeh and
sprsl eq sy-langu and
( endda ge sy-datum and
begda le sy-datum ).
If you have added a new field to the end of the parameters list
the next step is to populate it by adding this data to the end of
the record_tab string:
concatenate record_tab-string ld_orgtxt into record_tab-string.
modify record_tab.
endloop. -
Adding Fields to People Search Results Page
Hi
Working in SharePoint Online, I've been able to add a few fields to the People Search results page successfully:
Organization
Office Locator
Office Location
Work Phone
Mobile Phone
Home Phone
Work Email
All of the above fields are working and display on the People search results page.
I tried to add these and they simply do not display. There is no error:
University Email
Assistant
Calendar/Scheduling
I set them up the same way. I created the Property in the User Profile area. I then populated the data for each user. I then added the property as a Managed property (search schema) linked to the Crawled property from the People category.
Made sure that they were query able, retrievable, searchable, etc. Then I edited the People Search code and then I waited over the weekend for the search to pick them up. I came into work this morning and they still do not display. Here is
my code, just in case I missed something. Thanks.
<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
<head>
<title>UIF People Item with Work Phone</title>
<!--[if gte mso 9]><xml>
<mso:CustomDocumentProperties>
<mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
<mso:MasterPageDescription msdt:dt="string">Displays a result tailored for a person.</mso:MasterPageDescription>
<mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId>
<mso:TargetControlType msdt:dt="string">;#SearchResults;#</mso:TargetControlType>
<mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated>
<mso:CrawlerXSLFile msdt:dt="string"></mso:CrawlerXSLFile>
<mso:ManagedPropertyMapping msdt:dt="string">'AboutMe':'AboutMe','AccountName':'AccountName','BaseOfficeLocation':'BaseOfficeLocation','Department':'Department','HitHighlightedProperties':'HitHighlightedProperties','Interests':'Interests','JobTitle':'JobTitle','Organization':'Organization','LastModifiedTime':'LastModifiedTime','Memberships':'Memberships','PastProjects':'PastProjects','Path':'Path','PictureURL':'PictureURL','PreferredName':'PreferredName','Responsibilities':'Responsibilities','Schools':'Schools','ServiceApplicationID':'ServiceApplicationID','SipAddress':'SipAddress','Skills':'Skills','UserProfile_GUID':'UserProfile_GUID','WorkEmail':'WorkEmail','UniversityEmail':'UniversityEmail','OfficeNumber':'OfficeNumber','OfficeLocator':'OfficeLocator','WorkPhone':'WorkPhone','MobilePhone':'MobilePhone','HomePhone':'HomePhone','Assistant':'Assistant','CalendarScheduling':'CalendarScheduling','WorkId':'WorkId','YomiDisplayName':'YomiDisplayName'</mso:ManagedPropertyMapping>
<mso:HtmlDesignStatusAndPreview msdt:dt="string">https://uif.sharepoint.com/search/_catalogs/masterpage/Display Templates/Search/UIF_Item_Person.html, Conversion successful.</mso:HtmlDesignStatusAndPreview>
<mso:HtmlDesignConversionSucceeded msdt:dt="string">True</mso:HtmlDesignConversionSucceeded>
<mso:HtmlDesignPreviewUrl msdt:dt="string"></mso:HtmlDesignPreviewUrl>
</mso:CustomDocumentProperties>
</xml><![endif]-->
</head>
<body>
<div id="Item_Person">
<!--#_
if(!$isNull(ctx.CurrentItem) && !$isNull(ctx.ClientControl)){
var id = ctx.ClientControl.get_nextUniqueId();
var itemId = id + Srch.U.Ids.item;
var hoverId = id + Srch.U.Ids.hover;
$setResultItem(itemId, ctx.CurrentItem);
var container_id = id + "_peopleContainer";
var hhProps = Srch.U.createXMLDocument("<root>" + ctx.CurrentItem.HitHighlightedProperties + "</root>");
var encodedPath = $urlHtmlEncode(ctx.CurrentItem.Path);
var has_pn = !$isEmptyString(ctx.CurrentItem.PreferredName);
var has_sip = !$isEmptyString(ctx.CurrentItem.SipAddress);
var has_email = !$isEmptyString(ctx.CurrentItem.WorkEmail);
var has_universityemail = !$isEmptyString(ctx.CurrentItem.UniversityEmail);
var has_onumber = !$isEmptyString(ctx.CurrentItem.OfficeNumber);
var has_bolocation = !$isEmptyString(ctx.CurrentItem.BaseOfficeLocation);
var has_olocator = !$isEmptyString(ctx.CurrentItem.OfficeLocator);
var has_wphone = !$isEmptyString(ctx.CurrentItem.WorkPhone);
var has_mphone = !$isEmptyString(ctx.CurrentItem.MobilePhone);
var has_hphone = !$isEmptyString(ctx.CurrentItem.HomePhone);
var has_assistant = !$isEmptyString(ctx.CurrentItem.Assistant);
var has_calendarscheduling = !$isEmptyString(ctx.CurrentItem.CalendarScheduling);
var has_jt = !$isEmptyString(ctx.CurrentItem.JobTitle);
var has_dp = !$isEmptyString(ctx.CurrentItem.Department);
var has_org = !$isEmptyString(ctx.CurrentItem.Organization);
var has_abme = !$isEmptyString(ctx.CurrentItem.AboutMe);
var has_resp = !$isEmptyString(ctx.CurrentItem.Responsibilities);
var has_pp = !$isEmptyString(ctx.CurrentItem.PastProjects);
var has_ski = !$isEmptyString(ctx.CurrentItem.Skills);
var has_sch = !$isEmptyString(ctx.CurrentItem.Schools);
var has_int = !$isEmptyString(ctx.CurrentItem.Interests);
var has_vlm = !$isEmptyString(ctx.CurrentItem.ProfileViewsLastMonth);
var has_vlw = !$isEmptyString(ctx.CurrentItem.ProfileViewsLastWeek);
var has_query = !$isEmptyString(ctx.CurrentItem.ProfileQueriesFoundYou);
var isSelfSrch = (has_vlm == true || has_vlw == true || has_query == true);
var delimiter = "";
var userPersonaId = $htmlEncode(id) + "_peopleUserPersona";
var uSip = ctx.CurrentItem.SipAddress;
var uEmail = ctx.CurrentItem.WorkEmail;
var uName = ctx.CurrentItem.PreferredName;
var uPicUrl = ctx.CurrentItem.PictureURL;
var hoverUrl = "~sitecollection/_catalogs/masterpage/Display Templates/Search/Item_Person_HoverPanel.js";
_#-->
<div id="_#= $htmlEncode(container_id) =#_" class="ms-srch-people-outerContainer ms-srch-resultHover">
<div id="_#= $htmlEncode(itemId) =#_" name="Item" class="ms-srch-people-item" onmouseover="EnsureScriptParams('SearchUI.js', 'HP.Init', event, '_#=$scriptEncode(itemId) =#_', '_#=$scriptEncode(hoverId) =#_', '_#=$scriptEncode(hoverUrl) =#_');" onmouseout="EnsureScriptParams('SearchUI.js', 'HP.Hide');">
<div id="_#= $htmlEncode(hoverId) =#_" class="ms-srch-hover-outerContainer"></div>
<div id="UserPersonaContainer">
<div id="UserPersona">
<div id="_#= userPersonaId =#_"></div>
</div>
</div>
<div id="UserInfoContainer">
<div id="ContactInfo">
<div id="NameField">
<!--#_
var encodedName = (has_pn == true) ? $htmlEncode(ctx.CurrentItem.PreferredName) : $htmlEncode(ctx.CurrentItem.YomiDisplayName);
var displayName = Srch.U.getSingleHHXMLNodeValue(hhProps, "preferredname");
if ($isEmptyString(displayName)) { displayName = encodedName }
_#-->
<div id="NameValue" class="ms-srch-ellipsis ms-textLarge">
<a clicktype="Result" id="NameFieldLink" href="_#= encodedPath =#_" title="_#= encodedName =#_">_#= displayName =#_</a>
</div>
</div>
<!--#_
if(has_jt == true) {
_#-->
<div id="JobTitleField">
<!--#_
var encodedJtitle = $htmlEncode(ctx.CurrentItem.JobTitle);
var displayJtitle = Srch.U.getSingleHHXMLNodeValue(hhProps, "jobtitle");
if ($isEmptyString(displayJtitle)) { displayJtitle = encodedJtitle }
_#-->
<div id="JobTitleValue" class="ms-srch-ellipsis" title="_#= encodedJtitle =#_"> _#= displayJtitle =#_ </div>
</div>
<!--#_
_#-->
<!--#_
if(has_dp == true) {
_#-->
<div id="DepartmentField">
<!--#_
var encodedDept = $htmlEncode(ctx.CurrentItem.Department);
var displayDept = Srch.U.getSingleHHXMLNodeValue(hhProps, "department");
if ($isEmptyString(displayDept)) { displayDept = encodedDept }
_#-->
<div id="DepartmentValue" class="ms-srch-ellipsis" title="_#= encodedDept =#_"> <b>_#= displayDept =#_</b> </div>
</div>
<!--#_
_#-->
<!--#_
if(has_org == true) {
_#-->
<div id="Organization">
<!--#_
var encodedorg = $htmlEncode(ctx.CurrentItem.Organization);
var displayorg = Srch.U.getSingleHHXMLNodeValue(hhProps, "Organization");
if ($isEmptyString(displayorg)) { displayorg = encodedorg }
_#-->
<div id="OrganizationValue" class="ms-srch-ellipsis" title="_#= encodedorg =#_"> _#= displayorg =#_ </div>
</div>
<!--#_
_#-->
<hr>
<!--#_
if(has_olocator == true) {
_#-->
<div id="OfficeLocator">
<!--#_
var encodedolocator = $htmlEncode(ctx.CurrentItem.OfficeLocator);
var displayolocator = Srch.U.getSingleHHXMLNodeValue(hhProps, "OfficeLocator");
if ($isEmptyString(displayolocator)) { displayolocator = encodedolocator }
_#-->
<div id="OfficeLocatorValue" class="ms-srch-ellipsis" title="_#= encodedolocator =#_"> <b>Office Locator:</b> <a clicktype="Result" id="NameFieldLink" href="_#= ctx.CurrentItem.OfficeLocator =#_">_#= ctx.CurrentItem.OfficeNumber =#_</a></div>
</div>
<!--#_
_#-->
<!--#_
if(has_bolocation == true) {
_#-->
<div id="OfficeBaseLocation">
<!--#_
var encodedbolocation = $htmlEncode(ctx.CurrentItem.BaseOfficeLocation);
var displaybolocation = Srch.U.getSingleHHXMLNodeValue(hhProps, "BaseOfficeLocation");
if ($isEmptyString(displaybolocation)) { displaybolocation = encodedbolocation }
_#-->
<div id="BaseOfficeLocationValue" class="ms-srch-ellipsis" title="_#= encodedbolocation =#_"> <b>Office Location:</b> _#= displaybolocation =#_ </div>
</div>
<hr>
<!--#_
_#-->
<!--#_
if(has_wphone == true) {
_#-->
<div id="WorkPhone">
<!--#_
var encodedwphone = $htmlEncode(ctx.CurrentItem.WorkPhone);
var displaywphone = Srch.U.getSingleHHXMLNodeValue(hhProps, "WorkPhone");
if ($isEmptyString(displaywphone)) { displaywphone = encodedwphone }
_#-->
<div id="WorkPhoneValue" class="ms-srch-ellipsis" title="_#= encodedwphone =#_"> <b>Office Phone:</b> _#= displaywphone =#_ </div>
</div>
<!--#_
_#-->
<!--#_
if(has_mphone == true) {
_#-->
<div id="MobilePhone">
<!--#_
var encodedmphone = $htmlEncode(ctx.CurrentItem.MobilePhone);
var displaymphone = Srch.U.getSingleHHXMLNodeValue(hhProps, "MobilePhone");
if ($isEmptyString(displaymphone)) { displaymphone = encodedmphone }
_#-->
<div id="MobilePhoneValue" class="ms-srch-ellipsis" title="_#= encodedmphone =#_"> <b>Mobile Phone:</b> _#= displaymphone =#_ </div>
</div>
<!--#_
_#-->
<!--#_
if(has_hphone == true) {
_#-->
<div id="HomePhone">
<!--#_
var encodedhphone = $htmlEncode(ctx.CurrentItem.HomePhone);
var displayhphone = Srch.U.getSingleHHXMLNodeValue(hhProps, "HomePhone");
if ($isEmptyString(displayhphone)) { displayhphone = encodedhphone }
_#-->
<div id="HomePhoneValue" class="ms-srch-ellipsis" title="_#= encodedhphone =#_"> <b>Home Phone:</b> _#= displayhphone =#_ </div>
</div>
<!--#_
_#-->
<hr>
<!--#_
if(has_email == true) {
_#-->
<div id="WorkEmail">
<!--#_
var encodedemail = $htmlEncode(ctx.CurrentItem.WorkEmail);
var displayemail = Srch.U.getSingleHHXMLNodeValue(hhProps, "WorkEmail");
if ($isEmptyString(displayemail)) { displayemail = encodedemail }
_#-->
<div id="WorkEmailValue" class="ms-srch-ellipsis" title="_#= encodedemail =#_"> <b>Foundation Email:</b> _#= displayemail =#_ </div>
</div>
<!--#_
_#-->
<!--#_
if(has_universityemail == true) {
_#-->
<div id="UniversityEmail">
<!--#_
var encodeduniversityemail = $htmlEncode(ctx.CurrentItem.UniversityEmail);
var displayuniversityemail = Srch.U.getSingleHHXMLNodeValue(hhProps, "UniversityEmail");
if ($isEmptyString(displayuniversityemail)) { displayuniversityemail = encodeduniversityemail }
_#-->
<div id="UniversityEmailValue" class="ms-srch-ellipsis" title="_#= encodeduniversityemail =#_"> <b>University Email:</b> _#= displayuniversityemail =#_ </div>
</div>
<!--#_
_#-->
<hr>
<!--#_
if(has_assistant == true) {
_#-->
<div id="Assistant">
<!--#_
var encodedassistant = $htmlEncode(ctx.CurrentItem.Assistant);
var displayassistant = Srch.U.getSingleHHXMLNodeValue(hhProps, "Assistant");
if ($isEmptyString(displayassistant)) { displayassistant = encodedassistant }
_#-->
<div id="AssistantValue" class="ms-srch-ellipsis" title="_#= encodedassistant =#_"> <b>Assistant:</b> _#= displayassistant =#_ </div>
</div>
<!--#_
_#-->
<!--#_
if(has_calendarscheduling == true) {
_#-->
<div id="CalendarScheduling">
<!--#_
var encodedcalendarscheduling = $htmlEncode(ctx.CurrentItem.CalendarScheduling);
var displaycalendarscheduling = Srch.U.getSingleHHXMLNodeValue(hhProps, "CalendarScheduling");
if ($isEmptyString(displaycalendarscheduling)) { displaycalendarscheduling = encodedcalendarscheduling }
_#-->
<div id="CalendarSchedulingValue" class="ms-srch-ellipsis" title="_#= encodedcalendarscheduling =#_"> <b>Calendar/Scheduling:</b> _#= displaycalendarscheduling =#_ </div>
</div>
<!--#_
_#-->
<hr>
</div>
<!--#_
if(has_resp == true || has_ski == true || has_pp == true || has_int == true || has_sch == true) {
_#-->
<div id="MoreInfoShort">
<!--#_
if(has_resp == true) {
var encodedVal = Srch.U.getMultipleHHXMLNodeValues(hhProps, "responsibilities", 3, delimiter);
if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Responsibilities, 3, delimiter))}
if (!Srch.U.e(encodedVal)) {
_#-->
<div id="ResponsibilitiesValue" class="ms-srch-ellipsis">
<span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Responsibilities) =#_ </span>
_#= encodedVal =#_
</div>
<!--#_
_#-->
<!--#_
} else if(has_ski == true) {
var encodedVal = Srch.U.getMultipleHHXMLNodeValues(hhProps, "skills", 3, delimiter);
if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Skills, 3, delimiter))}
if (!Srch.U.e(encodedVal)) {
_#-->
<div id="SkillsValue" class="ms-srch-ellipsis">
<span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Skills) =#_ </span>
_#= encodedVal =#_
</div>
<!--#_
_#-->
<!--#_
} else if(has_pp == true) {
var encodedVal = Srch.U.getMultipleHHXMLNodeValues(hhProps, "pastprojects", 3, delimiter);
if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.PastProjects, 3, delimiter))}
if (!Srch.U.e(encodedVal)) {
_#-->
<div id="PastProjectsValue" class="ms-srch-ellipsis">
<span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_PastProjects) =#_ </span>
_#= encodedVal =#_
</div>
<!--#_
_#-->
<!--#_
} else if(has_int == true) {
var encodedVal = Srch.U.getMultipleHHXMLNodeValues(hhProps, "interests", 3, delimiter);
if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Interests, 3, delimiter))}
if (!Srch.U.e(encodedVal)) {
_#-->
<div id="InterestsValue" class="ms-srch-ellipsis">
<span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Interests) =#_ </span>
_#= encodedVal =#_
</div>
<!--#_
_#-->
<!--#_
} else if(has_sch == true){
var encodedVal = Srch.U.getMultipleHHXMLNodeValues(hhProps, "schools", 3, delimiter);
if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Schools, 3, delimiter))}
if (!Srch.U.e(encodedVal)) {
_#-->
<div id="SchoolsValue" class="ms-srch-ellipsis">
<span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Schools) =#_ </span>
_#= encodedVal =#_
</div>
<!--#_
_#-->
<!--#_
_#-->
</div>
<!--#_
_#-->
<!--#_
if(has_abme == true || has_ski == true || has_pp == true || has_int == true) {
_#-->
<div id="MoreInfoLong">
<!--#_
if(has_abme == true) {
var encodedVal = Srch.U.getTrimmedProcessedHHXMLString(Srch.U.getSingleHHXMLNodeValue(hhProps, "aboutme"), 125);
if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getTrimmedString(ctx.CurrentItem.AboutMe, 125)) }
if (!Srch.U.e(encodedVal)) {
_#-->
_#= encodedVal =#_
<!--#_
_#-->
<!--#_
} else if(has_ski == true && has_resp == true) {
var encodedVal = Srch.U.getTrimmedProcessedHHXMLString(Srch.U.getMultipleHHXMLNodeValues(hhProps, "skills", 3, delimiter), 125);
if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getTrimmedString(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Skills, 3, delimiter), 125)) }
if (!Srch.U.e(encodedVal)) {
_#-->
<span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Skills) =#_ </span>
_#= encodedVal =#_
<!--#_
_#-->
<!--#_
} else if(has_pp == true && (has_ski == true || has_resp == true)) {
var encodedVal = Srch.U.getTrimmedProcessedHHXMLString(Srch.U.getMultipleHHXMLNodeValues(hhProps, "pastprojects", 3, delimiter), 125);
if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getTrimmedString(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.PastProjects, 3, delimiter), 125)) }
if (!Srch.U.e(encodedVal)) {
_#-->
<span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_PastProjects) =#_ </span>
_#= encodedVal =#_
<!--#_
_#-->
<!--#_
} else if(has_int == true && (has_pp == true || has_ski == true || has_resp == true)) {
var encodedVal = Srch.U.getTrimmedProcessedHHXMLString(Srch.U.getMultipleHHXMLNodeValues(hhProps, "interests", 3, delimiter), 125);
if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getTrimmedString(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Interests, 3, delimiter), 125)) }
if (!Srch.U.e(encodedVal)) {
_#-->
<span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Interests) =#_ </span>
_#= encodedVal =#_
<!--#_
_#-->
<!--#_
_#-->
</div>
<!--#_
_#-->
<!--#_
if(isSelfSrch == true) {
_#-->
<hr class="ms-srch-people-item-separator" />
<div id="SelfSearchInfo">
<div id="Heading">
<a id="EditProfileLink" href="_#= $urlHtmlEncode(ctx.CurrentItem.EditProfileUrl) =#_"> _#= $htmlEncode(Srch.Res.item_People_EditProfileLink) =#_ </a>
</div>
<div id="Frequency">
<span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_SelfSearchFrequency) =#_ </span>
<ul id="FrequencyCard">
<li id="MonthlyViews">
<!--#_
var encodedVal = (ctx.CurrentItem.ProfileViewsLastMonth == 1) ? $htmlEncode(String.format(Srch.Res.item_People_SelfSearchFrequency_ViewsMonths_Singular, ctx.CurrentItem.ProfileViewsLastMonth)) :
$htmlEncode(String.format(Srch.Res.item_People_SelfSearchFrequency_ViewsMonths_Plural, ctx.CurrentItem.ProfileViewsLastMonth));
_#-->
_#= encodedVal =#_
</li>
<li id="DailyViews">
<!--#_
var encodedVal = (ctx.CurrentItem.ProfileViewsLastWeek == 1) ? $htmlEncode(String.format(Srch.Res.item_People_SelfSearchFrequency_ViewsWeeks_Singular, ctx.CurrentItem.ProfileViewsLastWeek)) :
$htmlEncode(String.format(Srch.Res.item_People_SelfSearchFrequency_ViewsWeeks_Plural, ctx.CurrentItem.ProfileViewsLastWeek));
_#-->
_#= encodedVal =#_
</li>
</ul>
</div>
<!--#_
if(has_query == true) {
_#-->
<div id="Keywords">
<span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_SelfSearchKeywords) =#_ </span>
<!--#_
var encodedVal = $htmlEncode(Srch.U.getTrimmedString(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.ProfileQueriesFoundYou, 5, delimiter), 84));
if (!Srch.U.e(encodedVal)) {
_#-->
_#= encodedVal =#_
<!--#_
_#-->
</div>
<!--#_
_#-->
<!--#_
if(!Srch.U.n(ctx.CurrentItem.LastModifiedTime))
var lastModifiedTime = ctx.CurrentItem.LastModifiedTime;
var encodedLastModifiedTimeId = $htmlEncode(id + "_lastModifiedTime");
AddPostRenderCallback(ctx, function()
Srch.U.renderFriendlyTimeIntervalString(lastModifiedTime, encodedLastModifiedTimeId);
_#-->
<div id="LastModifiedTime">
<span class="ms-textSmall">_#= $htmlEncode(Srch.Res.item_People_LastModified) =#_</span>
<span id="_#= encodedLastModifiedTimeId =#_" class="ms-textSmall ms-srch-ellipsis"></span>
</div>
<!--#_
_#-->
</div>
<!--#_
_#-->
</div>
</div>
</div>
<!--#_
AddPostRenderCallback(ctx, function(){
EnsureScriptFunc("clienttemplates.js", "RenderUserFieldWorker", function() {
var getUserPersona = function() {
var renderCtx = new ContextInfo();
renderCtx.Templates = {};
renderCtx.Templates["Fields"] = {};
var fieldSchemaData = { "PictureOnly":"1", "PictureSize": "Size_72px"};
var listSchema = {"EffectivePresenceEnabled": "1", "PresenceAlt": Srch.Res.item_People_NoPresenceAvailable};
var userData = {"title": uName, "email": uEmail, "picture": uPicUrl, "sip": uSip};
var personaControlElement = document.getElementById(userPersonaId);
if (!Srch.U.n(personaControlElement))
personaControlElement.innerHTML = RenderUserFieldWorker(renderCtx, fieldSchemaData, userData, listSchema);
if(typeof(ctx.EnqueueImnRequest) == "undefined") { ctx.EnqueueImnRequest = false; }
if (ctx.EnqueueImnRequest == false) {
ctx.ClientControl.add_oneTimeResultRendered(function(){ if (typeof(ProcessImn) != "undefined") { ProcessImn(); } });
ctx.EnqueueImnRequest = true;
getUserPersona();
_#-->
<!--#_
_#-->
</div>
</body>
</html>Hi,
According to your post, my understanding is that you have an issue about adding fields in people search results page.
Per my knowledge, there is no issue in your steps, and the issue may be related to the search crawl in SharePoint online.
For SharePoint server on-premise, we can start the search full crawl, however, for SharePoint online, we could not start the search full crawl manually.
You can wait for some time to complete the search full crawl in SharePoint online, then check whether it works.
As this is the forum for SharePoint server on-premise, I’m not familiar with the SharePoint online search crawl, for this issue, I recommend you can post a new question in the forum for Office 365/SharePoint online.
http://community.office365.com/en-us/forums/154.aspx
More experts will assist you, then you will get more information relation to SharePoint Online.
Thank you for your understanding and support.
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support -
Bug after adding fields in advanced search mode of af:query
We are migrating from JDeveloper 11.1.1.6 to 11.1.1.7.
I noticed the following issue:
In a page with search criteria (based on a view object), when the user adds an additional field in advanced search mode and clicks on a full submit button in the page, the following browser popup appears:
"This page is asking you to confirm that you want to leave - data you have entered may not be saved."
This was logged as a bug in Oracle Support but we have not been able to find a workaround yet.
This is the only issue currently blocking us from migrating to 11.1.1.7. Has anyone else faced this issue? Any ideas on how we can bypass this behavior?
Thank you,
Gabriel.Unfortunately, the latest update from Oracle Support was that they no longer consider this a bug!
SR 3-7706485141: Additional Fields in af:query problem - JDeveloper 11.1.1.7
Bug 17346704 - ADDING FIELD TO AF:QUERY ADVANCED SEARCH CAUSES SPURIOUS WARNING DIALOG POPUP
1. I cannot understand how something that blocks user actions and cannot be bypassed in any way could be considered "acceptable behavior".
2. I also do not understand how a Bug can be lodged and then have its status changed to "Not a Bug".
3. Even if we were to ignore this issue and convince our customers that they should be delayed by meaningless popups while working (which we cannot), their is still another issue that makes this functionality dysfunctional. When the user clicks on "Stay on Page" the popup closes and the page freezes and becomes unresponsive.
Off course this is another issue and a different SR should open, but I think it shows that something is going very wrong with this functionality.
I wonder if anyone else is considering using JDeveloper 11.1.1.7.0 in a production system. -
Adding new field in search screen (In drop down field)
Hi,
I have added a new field as search criteria in searching sales order. (means in drop down this field will be displayed.).
But, now I want to restrict the operators to only 'IS'. Can anybody help me, how to do this.
Thanks,
SandeepHi ,
You need to go to transaction code BSP_WD_CMPWB transaction, and then open up the component in your case it might be BT115S_SLSO and then go to the view BT115S_SLSO/SlsOrdSQ , and then go to the Configuration tab and then click on Copy Configuration (if there is no customer configuration) , assign the Role Config Key, and then it will go into the change mode and then you can default the value of IS for the field.
try out this, and let me know if it meets your requirement.
Hope it helps.
Regards
Sidd -
Adding new field in search help result view
Dear Experts,
I want to include one more field in search help result. The field shoud give description.
How can i do this in UI result view?
If I try to add attribute in result view, the result view is of type table, and it does not allow us to add value node. It will allow us to add model attribute. If I add attribute in search help resut table view then will i be able to see it in table form.
Thanks and regards
Pankaj KumarHi Pankaj,
Its not that difficult.
There are two ways
1. You can enhance your Result BOL object through EEWB and append your z-field to std. BOL result object. This then appears automatically for your result context node and then you can pull it to the view in config tool.
2. Directly go to your context node class (CN00 , CN01 etc ) , now copy method GET_S_XYZ , paste it and rename as GET_yourfieldname. Similarly copy SET_S_XYZ, GET_M_XYZ and GET_I_XYZ and paste and rename. Once activated. Quit the component browser completely. Open again using bsp_wd_cmpwb. open you view and then your node. You can find you new attribut present as struct.YourField.
You can then copy code from available setter-getter methods for this attribute. You must handle setter getter by urself in this case. In may std. nodes, this is done for description field. I have personally done this for product descripton field.
if you dont want the field to be part of structure ( i.e. as struct.Yourfield ) then you can also copy paste GET_XYZ, SET_XYZ methods. your filed then do not appear as Struct.YourField but it just appears as YourField name under context node.
Hope this helps you.
Thanks & Regards.
You can check PRODUCTDESCRIPTION attribute of BTAdminI node of BT115QIT_SLSQ/Items view of BT115QIT_SLSQ component. They have added it the same way as i described above. You see the GET_ method to see how they are retrieving product description. In my object, i wrote direct query to Comm_prshtext table to retriev short_text by passing product guid and then assigen it to value variable of Get method.
Edited by: suchita P on Sep 20, 2008 2:22 AM -
CL20N can not display added fields in the search result ?
Hi,
In needs of displaying storage location for each material in the transaction CL30N , we use the user exit CLCLRS01 and CLCLRS02 to add new field. But after that the added field is not displayed
Have you ever tried this ?
thanksHi,
Please find below the code for adding the fields. This code is present in the FM 'EXIT_SAPLCLRS_001'.
If the field added is from database, then the field needs to be added in table 'LT_ONLY_THIS_FIELDS'(see below FM). Else, the fields needs to be added in the table 'ET_FIELDS' as shown below.
CALL FUNCTION 'CLRS_GET_FIELDS_OF_STRUCTURE'
EXPORTING
I_STRUCTURE = 'MARC'
I_LANGUAGE = I_LANGUAGE
TABLES
IT_ONLY_THIS_FIELDS = LT_ONLY_THIS_FIELDS
IT_EXCLUDE_FIELDS =
ET_FIELDS = ET_FIELDS
ET_FIELDS_TEXT = ET_FIELDS_TEXT.
CALL FUNCTION 'CLRS_GET_FIELDS_OF_STRUCTURE'
EXPORTING
I_STRUCTURE = 'DRAW'
I_LANGUAGE = I_LANGUAGE
I_FIRST_CALL = 'X'
TABLES
IT_ONLY_THIS_FIELDS = LT_ONLY_THIS_FIELDS
IT_EXCLUDE_FIELDS =
ET_FIELDS = ET_FIELDS
ET_FIELDS_TEXT = ET_FIELDS_TEXT.
ENDCASE.
Here a field which are not from a database table is added
ET_FIELDS-FIELDNAME = 'JUST_TEST'.
ET_FIELDS-GROUPKEY = 'C'.
ET_FIELDS-DATATYPE = 'NUM'.
ET_FIELDS-LENGTH = 2.
ET_FIELDS-DECIMALS = 0.
APPEND ET_FIELDS.
Regards,
Rajesh -
We are adding field GAMNG ( Target Quantity ) in the Data Source 2LIS_04_P_ARBPL ( Work Center View from PP/PP-PI )
The field GAMNG is available in the communication structure maintainace.
The problem is- We are not able to drag & drap field GAMNG from the Communication structure LBWE. Getting the error - End phase 002 ***********************************************************
Message no. D0322 ..
We deleted Setup table , Meins field already exist in comm str.
1. How we able to drag the field from the communication structure as getting the above error. We searched SDN & try to follow that method but not working.
2. We can add the field in SE11 - Structure -Manually, then we have to write ABAP code.
Kindly suggest correct answer.
Edited by: sk kamaruzzaman on Dec 20, 2011 2:08 PMHi,
There could be a number of reasons why you are getting the error:
1. Fields are not assigned to datatypes.
- Check structure in SE11 and assign to datatypes.
2. There are inactive appends in the extract structure.
- Double-click one of the includes. You will get a new screen with the INCLUDE structure. Click the button append-structure. Check if the append is inactive.
3. The appended structure is in a different development class from the one of the structure it is being appended to.
Please review and apply the following notes carefully :
766603 Activation problems with extract structures
623411 LBWE: Gener. terminates with D0 322 (end phase 002)
757923 LBWE: Generation terminates with D0 322 (end phase
600708 D0 322: End phase 002
It is not possible to enhance the datasource 2lis_04_MATNR with the field GAMNG (so its possible that its the same for 2LIS_04_P_ARBPL) because GAMNG has the reference field AMEIN, which has a STATE F (forbidden) in table TMCEXCFS .
Check to see if this is the same on your system.
Rgds,
Colum -
Added field in repository does not show in Web UI
Hi,
How do I make a new (added) field to the Catalog Item table in my SRM-MDM Repository showup in the Web UI?
I have added a field 'Interval' to the Catalog Item tabel in my Repository SRM_MDM_Catalog. This field is of type 'Measurment'.
After change I load the reporitory.
When I logon to Config UI for the above repository I do not find the added field as a selectable reporitory field. Only the standard (original) fields show up.
What do I have to dofor my newly added field to show up as selectable repository field in Config UI in order tospecify that it should be displayed in teh Search UI?
Regards
JanDear colleagues,
the same issue solved just restarting all the JAVA components.
There is a SAP note "1028343 - Changes in the repository not reflected in Catalog UI" indicating just one of them but in our case it was not enough. We restarted all the JAVA components and it worked fine.
Kind regards,
Agus. -
Af:query component added field not removed when remove icon is clicked
I have an af:query component on a popup dialog. In advanced mode when I add a field, the new field appears in the searchRegion followed by a red X remove icon. If I subsequently click that remove icon, the query refreshes, the red icon is gone, but the newly added field still remains. The query component is linked to a standard VO query executable in the bindings. There is no custom processing of the value, model, queryListener or the queryOperationListener. In all other respects the query component works fine. The only problem is a newly added field not being removed when the remove icon is clicked. Here's how the component is setup (an added wrinkle is that the query component is hosted in a Declarative Component, so that makes this code a little harder to decipher).
Does anyone know where I should start looking for this? Hopefully I don't have to implement my own queryOperationListener.
JDev version is Build JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923
--- snippet from the page fragment ------
<af:popup id="frmsLstPU" contentDelivery="lazyUncached">
<af:dialog id="d1" type="ok"
styleClass="AFStretchWidth" resize="on"
stretchChildren="first" contentWidth="840"
contentHeight="480"
title="#{UnifiedResourceBundle['FORMSLIST.DIALOG.TITLE']}">
<idmkr_adf:Correspondence_Formslist_Query idmkr_query_model="#{bindings.FormVOFlatQueryCriteriaQuery}"
idmkr_table_binding="#{viewScope.FormsListBacking}"
idmkr_table_model="#{bindings.FormVOFlatQuery1}"
idmkr_bindings="#{bindings}"
idmkr_resourcebundle="#{preferences}"
idmkr_printStreamBean="#{viewScope.FormsList}"
id="cf1">
</idmkr_adf:Correspondence_Formslist_Query>
</af:dialog>
</af:popup>
-- snippet from the Correspondence_Formslist_Query declarative component ------
<af:query id="qryId1"
headerText="#{UnifiedResourceBundle['FORMSLIST.QUERY.SEARCH.TEXT']}"
disclosed="true"
value="#{attrs.idmkr_query_model.queryDescriptor}"
model="#{attrs.idmkr_query_model.queryModel}"
queryListener="#{attrs.idmkr_query_model.processQuery}"
queryOperationListener="#{attrs.idmkr_query_model.processQueryOperation}"
resultComponentId="::resId1" displayMode="default"
styleClass="AFStretchWidth"
rows="4" maxColumns="2"/>I have changed the contentDelivery from "lazyUncached" to "immediate" and the same problem occurs. Thank your for your suggestion.
-
How to concatenate fields in Search help exit
Hi,
My requirement is i have to create a search help for a field in cj20n transaction.
when i press f4 on that field i should get a popup of 4 fields from custom table,when user selects any 1 row,
first 3 field values should be concatenated and appear in screen field . in search hlp i added 1 more field so that i can concatenate
all 3 field values and place in it.I can use search help exit so i can concatenate but there are steps like selone,presel etc i am not able to understand .
I saw some examples in wiki, but not able to understand what to do for my requirement.
regards.
Edited by: vnamamala on May 27, 2010 12:22 PMYou would use the step 'SELECT' to control the data selection into an internal table. You would use the step 'DISP' to map the records in the internal table to the search help record table. In your case, I would already have a field in the internal table with the values concatenated together prior to the hit list display (do this in SELECT step) which is not displayed in the hit list but is flagged as the EXPORT field in the search help definition; otherwise just put the field at the end of the hit list.
Map your results in DISP as follows:
* Map the internal table to RECORD_TAB
CALL FUNCTION 'F4UT_RESULTS_MAP'
TABLES
SHLP_TAB = SHLP_TAB
RECORD_TAB = RECORD_TAB
SOURCE_TAB = GT_DOCUMENT
CHANGING
SHLP = SHLP
CALLCONTROL = CALLCONTROL
EXCEPTIONS
ILLEGAL_STRUCTURE = 1
OTHERS = 2.
CALL FUNCTION 'F4UT_OPTIMIZE_COLWIDTH'
TABLES
SHLP_TAB = SHLP_TAB
RECORD_TAB = RECORD_TAB
CHANGING
SHLP = SHLP
CALLCONTROL = CALLCONTROL. -
Extra fields in search help window in Record working time EHP5
Hi Experts,
Can you please let me know how to add additional fields/select options in search help window for Record Working Time ?
My system is EHP5 NW 7.02
I have added the custom search help for the respective filed in table " TCATS_SHLP_ITS".
I can see this table is having entry for only 4 selection options and 6 value fields for search help display.
But in my custom search help programme is having 8 select options(for advance search) and 10 display fields on the search window. It's working from CAT2 transaction but when I am running through webdynpro timesheet, I can only get 4 select options and 6 value fields.
Please let me know how to make the other fields available.
Thanks in advance.
SoniaHi Siddharth,
Thanks for your response. In that modify possible entries screen (Details view) I can see the search help is only having 4 select options and 6 display fields.
So as per my understanding max 6 display fields/4 select options can only be displayed on search window.
My requirement is to display more fields on search help OVS window.
Can you please suggest.
Thanks ,
Sonia -
Adding field in Report Painter
Hello Gurus,
I am working in the Report Painter PR20-001.
My requirement is to add a new column in the output of the report but even when i am able to add a new field and save it on the reports execution i am unable to view the added field in the output.
Kindly tell me the entire procedure to add a new field in the output of the respective report painter output.
Regards,
Swati.Hi,
Go to Global Parameters Definitaion in report painter, variable will be used only along with the field, just in global paramerters enter your desired field and click in next column, system will show you a pop up select your variable for that field...
now its just done run the report and test it!
If you still not make it refer to standard report of such kind, you will surely get it....
Regards,
Sayujya -
Unable to capture data from drop down list in custom added field in migo tcode at item level
Hi guys,
need bit help in resolving query related to custom added field in Tcode migo.
i have added a field in migo at item level ,in this i have used drop down list
to get data but unable to capture data from drop down list.gown through
many blogs in scn but unable to resolve.
Please help me out in this.
Thanks,
Umakant.Hi,
U can use following code to fill the list box
write this code in PBO
In layout editor please select listbox in dropdown attribute of input field and put some fctcode attribute
TYPE-POOLS vrm.
DATA values TYPE vrm_values WITH HEADER LINE.
TABLES: <ur custom Database table>.
clear values, values[].
SELECT * FROM <ur custom Database table>.
values-text = <TABLE FIELD TO DISPLAY IN DROPDOWN> .
values-key = <TABLE KEY FIELD TO DISPLAY IN DROPDOWN>.
APPEND values.
ENDSELECT.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = '<SCREEN INPUT FIELD NAME>'
values = values[]
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
Also please define the following before accessing the listbox value
data: <listbox input field name> type <table field name>,
<inputfield name where text to display> type string in top include
In PAI, select the text from the table into <inputfield name where text to display> depending on value selected which will be called when enter key is pressed or any vale is selected -
Newly added field not getting displayed in ALV output
Hi All,
I'm adding one more field/column to be displayed in an old existing program that uses REUSE_ALV_FIELDCATALOG_MERGE to generate the ALV fieldcat.
DATA: BEGIN OF it_salary OCCURS 0,
pernr LIKE pa0000-pernr,
ename LIKE pa0001-ename,
rtext like lv_rtext, -
added field
waers LIKE pa0008-waers
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = driver
i_internal_tabname = 'IT_SALARY'
i_client_never_display = 'X'
i_inclname = driver
CHANGING
ct_fieldcat = lv_fieldcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = driver
it_fieldcat = lv_fieldcat[]
i_default = 'X'
i_save = 'A'
is_variant = lv_tmplt
is_layout = lv_ls_layout
i_callback_user_command = 'USER_COMMAND'
TABLES
t_outtab = it_salary
EXCEPTIONS
program_error = 1
OTHERS = 2.
The newly added field is not getting populated in the lv_fieldcat table. Tried running programs BALVBUFDEL,
BCALV_BUFFER_DEL_SHARED then logging off and logging in but of no help.
Please provide suggestion for this issue.
Regards,
Sridevi SHi,
Fieldcat is buffered - so use
I_BYPASSING_BUFFER = 'X'
Since a while CL_GUI_ALV_GRID is available which does NOT need any fieldcat (is determined internally using RTTI). It is worth playing around whith this class if you have some time. This class is recommended for ALV Output by SAP (but no edit is possible - was never supported officially).
A simple use would be:
data: gt_output type standard table of (adjust!).
*simple ALV output
data go_alv type ref to cl_salv_table.
data go_functions type ref to cl_salv_functions_list.
data go_columns type ref to cl_salv_columns_table.
data go_column type ref to cl_salv_column_table.
*Exceprion handlig
data: go_exception type ref to cx_root,
gv_errortext type string.
** fill table gt_output ...
** ALV output
if not gt_output is initial.
try.
call method cl_salv_table=>factory
importing
r_salv_table = go_alv
changing
t_table = gt_output.
catch cx_salv_msg into go_exception.
gv_errortext = go_exception->get_text( ).
message gv_errortext type 'A'.
endtry.
* enable all standard ALV functions
go_functions = go_alv->get_functions( ).
go_functions->set_all( ).
* hide MANDT
go_columns = go_alv->get_columns( ).
go_column ?= go_columns->get_column( columnname = 'MANDT' ).
go_column->set_technical( ).
go_alv->display( ).
Kind regards,
Holger
Maybe you are looking for
-
CASE statement in Oracle 8i PL/SQL
I'm in the process of doing an upgrade from 8i to 10g and have the necessary instructions in performing it. however, after running the pre upgrade tasks (run utlu102i.sql) to show the preupgrade information, i found out that there are some INVALID ob
-
I have just encountered a problem with GB08 - when ever I stop recording, I get the coloured wheel of death and have to force quit every time, losing my recording. It happens whether I use space bar, mouse click on record button, mouse click on play
-
I received an gift card for the Australian i-tunes and I have the American version on my computer. The code will not be accepted, and I can't download the AU version as I have a season pass on my American store. How can I use my gift card???
-
Any info on store arrival time for 64gb?
Just wondering if there is any new info on arrival time.. I've heard on a board that stores in FRANCE already have thier shipments.. so what on earth is up with Canadian shipments? Does Apple hate BB? Do the BB stores wait till everyone has a shipmen
-
Hi Im looking for Primavera SDK XLS files. Anyone can help with the download link? Where can the SDK XLS files can be downloaded from? Im currently using Primavera Version 8.3. It would be useful if i could get the download link for the appropriate v