11/22/2024 10:55:51 AM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss using & developing the legacy SalesLogix Web Client (For versions 7.0 and earlier). View the code of conduct for posting guidelines.
|
|
|
|
Error on Contacts Advanced Lookup page
Posted: 14 Jun 06 12:51 PM
|
fiogf49gjkf0d My requirement is to remove the "Owner" search picklist on the Contacts Advanced Lookup page and replace it with the "Title" picklist (in our case, the Title field contains titles of school-related occupations, i.e., Teacher, Principal, Superintendant, etc.). This "Title" picklist exists in the customized tab of the SalesLogix Administrator Picklist Manager.
My approach has been to change the conconmpl.htm template as follows:
Replace:
QBEItems[9] = "owner";
with:
QBEItems[9] = "title";
replace:
<td nowrap>Title:</td> <td nowrap> <#PL list="Owners" name="owner" style="width:150px"> </td>
with:
<td nowrap>Title:</td> <td nowrap> <#PL list="Title" name="title" style="width:150px"> </td>
The correct Title picklist information renders when the page displays, but when I try to search by a value selected from that picklist, I get the following JavaScript alert: "Error: Invalid condition string - ". I've displayed the value of the "sURL" variable in the setQueryParams() function, and it indicates that the correct picklist value is being passed to the "title" parameter of the URL.
Does anyone know what I'm doing wrong?
Thank you, - Kent
|
|
|
|
Re: Error on Contacts Advanced Lookup page
Posted: 14 Jun 06 6:54 PM
|
fiogf49gjkf0d You also need to modify the Query that drives the lookup. As I recall its name is "con_conmpl". You will need to add a Title condition. BTW, it might be just as easy to Add the Title condition instead of replacing the Owner condition.
|
|
|
|
Re: Error on Contacts Advanced Lookup page
Posted: 15 Jun 06 10:52 AM
|
fiogf49gjkf0d Frank, you're exactly right! In the "conconmpl.htm" template that controls the Contacts Advanced Lookup, the downBelow() function (which is invoked when the user clicks the magnifying glass hyperlink) references the "searchconmpldata.htm" template, which in turn references the "con_conmpl" query. I added the "contitle" column in the "Columns" tab of the "con_conmpl" query, added "Contact.Title" field with a value of ":title" to the conditions for the "default" row of the "Conditions/Sorting" tab, and now the Contacts Advanced Lookup successfully uses the "Title" field as a search criterion.
That's exactly what I needed. Thank you for the answer, Frank!
|
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|