G
|
GeddyLee 12/11/2006 |
Where is the WHERE clause? i.e. in a lookup Wizard, the SQL edit page, an event? |
L
|
larsonsc author 12/11/2006 |
Where is the WHERE clause? i.e. in a lookup Wizard, the SQL edit page, an event?
|
J
|
Jane 12/12/2006 |
Shawn, |
L
|
larsonsc author 12/12/2006 |
I have a "report" that I need to run. I created a View that take a user to a search page where the user inserts a single value. The view is based on an SQL query that goes to each table that has information I need and gets the information, however, I am getting a bit of a Cartesian join effect the way the query is coded currently. I should get a single copy of the information assembled on the screen, but I actually get 15 complete copies of the record. What I want to do is take the value that is submitted by the user, and use it as part of my query so that I can eliminate the cartesian results and get a single record report. select `inventory`.`Intake_ID`, |
![]() |
Alexey admin 12/12/2006 |
Shawn, |
L
|
larsonsc author 12/12/2006 |
Alexey, |
J
|
Jane 12/13/2006 |
Shawn,
and add $newvalue1="";
// FieldName - $value=""; $value = ProcessLargeText(GetData($data,"FieldName", ""),"field=FieldName".$keylink,MODE_PRINT); $row[$col."FieldName_value"]=$value;
// FieldName - $value=""; $value = ProcessLargeText(GetData($data,"FieldName", ""),"field=FieldName".$keylink,MODE_PRINT); if ($value!=$newvalue) $row[$col."FieldName_value"]=$value; $newvalue=$value;
|
L
|
larsonsc author 12/13/2006 |
Jane, |
L
|
larsonsc author 12/13/2006 |
Jane I tried the method you suggested and received the following error on my server: while($data && $recno<=$PageSize) $newvalue1="";
|
L
|
larsonsc author 12/13/2006 |
Well, I figured out where to add the newvalue1=""; statement and added in the code you suggested for the multiple records, but it does the same thing it did before. It still returns each individual medical with all the other data that I do not want to repeat. Is there any way I could send you the _list.php and _print.php files and have you examine them to see if I have misapplied your suggested configuration? Or perhaps I could create a login for you on my server so that you could see what is happening and maybe get a better idea of my desired results? Please let me know. Thank you. |
L
|
larsonsc author 12/13/2006 |
Everyone, the more I think about this "problem", the less I think it is as much of a neccessity as I originally thought. Therefore, I would like to take this opportunity to thank everyone for their effort on this, but I am going to let this requirement slide and just inform the users that they will have to run two searches/reports to get the data rather than just the one I had hoped to be able to code for them. |
J
|
Jane 12/14/2006 |
Shawn, |