Hi jaggernat,
When the user applies, I assume a new "application" document is created, which includes the user name and the job information. You shoudl be searching those documents. It really has nothing to do with the profile or job listing forms, since theprofile does not contain job info (unless you make that happen), and the job listing contains no applicant data (which probably would not make sense to make happen).
So, just make sure the application document has fields for name and job # and job title and job description, etc., and you can easily search against those fields. Search syntax is [FieldName]=Value.
Cheers!
Main Topics
Browse All Topics





by: Bozzie4Posted on 2004-09-13 at 08:49:53ID: 12045169
Why don't you just create a view sorted by username ?
document.f orms[0].Ro ot.value,d ocument.fo rms[0].Que ry.value); ">Search</ a>
{ +theRoot+" ?Searchvie w&query="+ theQuery+" *";
value == "") { alue; alue;
value == "") { alue; alue; value == "") { alue; alue;
.Root.valu e,document .forms[0]. Query.valu e);
Anyway, you can search on fields if you have the fulltext index enabled (I suppose you already have that). 2 options, really : use url syntax or put the logic in an agent.
This is an example :
Put this somewhere on your form
full text search
<input type=text name=Query value=""><a href="javascript:doSearch(
And add the Query2, Query3 etc. fields in the same way.
Put this in the JS Header
function doSearch(theRoot,theQuery)
//alert( theRoot +" " +theQuery );
if (theQuery == "" ) {
alert( 'Please enter at least 1 criterium for the search');
}else{
document.location.href="/"
return true;
}
}
function buildFieldSearch(aRoot) {
var aQuery = "";
if (document.forms[0].Query3.
// nothing
}else{
if (aQuery == "" ) {
aQuery = '[LastName]=' + document.forms[0].Query3.v
}else{
aQuery = aQuery+'* AND [LastName]=' + document.forms[0].Query3.v
}
}
if (document.forms[0].Query4.
// nothing
}else{
if (aQuery == "" ) {
aQuery = '[FirstName]=' + document.forms[0].Query4.v
}else{
aQuery = aQuery+'* AND [FirstName]=' + document.forms[0].Query4.v
}
}
if (document.forms[0].Query5.
// nothing
}else{
if (aQuery == "" ) {
aQuery = '[EmployeeID]=*' + document.forms[0].Query5.v
}else{
aQuery = aQuery+'* AND [EmployeeID]=*' + document.forms[0].Query5.v
}
}
return doSearch(aRoot,aQuery);
}
And this in the onsubmit:
doSearch(document.forms[0]
return false;
cheers,
Tom