Hi All,
I have created a web-based application for the first time. This is a web-site just like Job-site. There are lot-of users register himself with their complete detail. These details contains:-
FName
LName
DBO
Location
Last three Company Name where he worked
Current Company
Designation
Job Location
Industry Area
Role
Qualification
Salary
etc.
What my client requires there should be a form which contains several option to search the candidates.
Like:-
Candidates Include from following companies: Oracle, Microsoft
Candidates Exclude from following companies : IBM
Qualification: MBA
Experience : 5-10 yrs.
Functional Area: Account/HR/Finance
Role:
Industry Type: Auto Components
Location: UK, USA
etc…
Just Like a search Engine.
now what I have done is i have created a from which contains Text box, List box, Radio button etc which is suitable for the
above parameters. There is a button named Search which is hot-spot button. At the click event of the button
I wrote a Javascript which gets the value from the field and create a selection formula of a view and passed it as a
query string which calling an agent. This agents sets the selection formula to the view and redirects the page which contains embedded view in which i sets this selection formula.
The JavaScript code is written here:
document.location=“/User.nsf/” + “agSearchadvance” + “?Openagent&qrString=”+qryString+“”;
where query String Contains:
qryString=
SELECT ((Form = “UserRegistration”)) & (@Contains(@LowerCase(presentCompany);@LowerCase(“Oracle, Microsoft”)))& !@Contains(@LowerCase(presentCompany);@LowerCase(“IBM”)) & @Contains(@LowerCase(currDesignation);@LowerCase(“Project Manager”))& (@ToNumber(ctc)>=@ToNumber(“700000”) & @ToNumber(ctc)<=@ToNumber(“700000”))& (@ToNumber(year)>=@ToNumber(“9”) & @ToNumber(year)<=@ToNumber(“20”))& (@Contains(@LowerCase(currentlocation);@LowerCase(“Beijing”: “Hongkong”: “Shanghai”)))& (@Contains(@LowerCase(FunctionalArea);@LowerCase(“Accounts / Finance / Tax / CS / Audit”: “Engineering Design / R&D”)))& (@Contains(@LowerCase(CurrRole);@LowerCase(“Auto Components”)))& (@LowerCase(qualificationmaster)=@LowerCase(“B.Com” ) | @LowerCase(qualificationbachelor)= @LowerCase(“B.Com”))
This is the workaround what I had done…
My anticipations and thought:
1.) As I think, while passing query string through agent this is not so good. It will work for small string but as you see this is very huge and it may also be increase.
2.) Run time settings selection formula to the view will also be not good because at the same moment multiple search will occur from different location of the world.
3.) As I read query string has some limitation in terms of length.
4.) This also doesn’t give me exact data what I want.
I know this is very bad programing or technique what i did, but this is due to lack of my knowledge and technique about web-based.
That’s why posted this query to the forum so that one can help me.
What should be alternative to this and what are the different ways to search the exact document based on the given parameters?
Please help me. This is the moment where i get stuck into it
So please you are requested to help me…
With Regards,
Vikas K Sinha