Multiple related fields
- This topic has 4 replies, 2 voices, and was last updated 11 years, 1 month ago by .
Viewing 4 reply threads
Viewing 4 reply threads
- You must be logged in to reply to this topic.
Home › Forums › Autocomplete › Multiple related fields
Hi Alex,
Love this solution, very nice and clean.
I’m after some advice, I want to use this for the purpose of typing in an ID number in the first box, then pulling through all employee information into several other boxes (related to that ID Number) – Is this possible? if so how? I guess it has something to do with the Set Fields argument?
Thanks in advance
Ryan
Or I may just use a lookup/cascading dropdown solution…
Sorry for the delay – I sometimes get a pileup in my inbox…
Yes, this is basically what the solution is designed for.
Here is a basic example:
"applyTo":"EmployeeID",
"helpText":"Enter the Employee number...",
"listGuid":"EmployeeInfo",
"listBaseUrl":"/Sites/MySite",
"showField":"EmployeeNumber",
"rowLimit":15,
"listOptionsOnFocus":false,
"reValidateOnLoad":false,
"setFields":[
{
"fromFIN":"Departmend",
"toFIN":"Departmend",
"skipIfEmpty":false
},
{
"fromFIN":"Manager",
"toFIN":"Manager",
"skipIfEmpty":false
}
]
});
Let me know if you have any questions.
Best regards,
Alexander
Hi Alex,
This solution works best for me, the load times are minimal and even though I am still getting “500” errors, it works for over 5000 items.
Thanks Again.
Thats good. The 500 error is the first query encountering the “throttling threshold”. It then resets and uses another method for querying in chunks of 5000 items.
Alexander