[SOLVED] Â Search Master and Details table at the Same Time |
2/13/2020 6:03:25 PM |
ASPRunner.NET General questions | |
I
i.NoLim author
For this project I'm currently using ASPRrunner.net 9.8. I would like to use the "main search field" to search the master and details tables together. For example, if I search for 'Jane' on the Family list page I should receive all the families who have an Individual with 'Jane' as her 'FirstName.'
|
|
T
|
Tim 2/18/2020 |
Hello,
|
I
|
i.NoLim author 2/18/2020 |
Hello, I did get this working and it is very powerful. I use it all the time now. One thing to note is that you need to make sure to reference the master table correctly in the "dynamic srchObj = SearchClause.getSearchObject("Family"); " part. You might try "dbo.Family". Also, the dummy field is case sensitive, though it looks like you got that right. The code says, if search field "firstname" is not null, then add (via concatenate) to the "where" statement in your original SQL. Here is an example of the resulting query:
|
I
|
i.NoLim author 2/26/2020 |
One thing to note is that you need to make sure to reference the master table correctly in the "dynamic srchObj = SearchClause.getSearchObject("Family"); " part. You might try "dbo.Family". Also, the dummy field is case sensitive, though it looks like you got that right.
|