This topic is locked
[SOLVED]

 Concat for views

1/16/2011 6:36:28 AM
PHPRunner General questions
V
Vienna author

After learning how to get a Custom Dropdown with Concat I wish PHPRunner then automatically offered the equivalent lookup for VIEW and LIST pages.
Thanks to Sergey's help here in the forum I got a primary id number representing a specific doctor record in another table to give me the first name and last name concated together for a dropdown selector in an Edit page.
And when I use the dropdown wizard as a lookup selector for other values I will see the text values in a record instead of its numeric value, which is exactly what I want.
But the Custom expression -- here is what worked for me: concat(first_name, ' ',second_name) -- in the Lookup Wizard that gave me a dropdown list only gives me dropdown that works for editing pages---it does not affect the read-only views of the List and View pages.
When I view records on the first list page I still see the doctor_id as a numeric value even though the lookup wizard gives me the text equivalents in the other fields from different look up tables. Every field in a row that I used the Lookup Wizard for to give me a text value from another table looks fine. Only the field where I used the concat expression in the Lookup Wizard stays the same...a numeric value rather than the firstname and lastname that matches the Dropdown table for Editing.
I would like the read-only equivalent for doctor_id 2006 to read on the View and List pages as "Lynette Wilson", for example.
How can I get the equivalent code that makes the Dropdown list of Doctors first and last names to also produce the same effect on non-edit views?
I hope I have expressed this clearly enough?
Thank you for helping me to see my way through this.

V
Vienna author 1/16/2011

I now have a NEW problem with one User...Charlotte... her queries and tables and settings appear to be identical to the other 4 users.
However, when I look at her Doctors Records tab in the LIST page and click on the link to see a foldout section of the associated reports filed for that doctor I can only go that far. When I then select to ADD INLINE REPORTS I get the following error
Error requesting page reporting_charlotte_k_add.php?rndval=0.9455426137560274&editType=inline&id=52&isNeedSettings=false&table=&field=&category=&mastertable=doctor_address_charlotte&masterkey1=1001&masterkey2=1
If I go straight into the Reportings LIST page I see all the reports listed but ADD or INLINE ADD produce nothing visible...no Floating Addd page, no complete INLINE row, presumably due to the same error.
Login as another person and things work fine for Adding and INLINE INSERTS as reports. However, in the Users logins that ARE working the only thing that does not work on the ADD page and INSERT INLINE editing forms is the dropdown values list for the Doctors. Yet, in PHPRunner when I go to these same pages in the Editor I see that the "Test It" shows the text values (doctors first and last names). In one build hours ago this was working.

V
Vienna author 1/16/2011

I think I have this squared away now. I think my error had to do with an inconsistency of fields shown in the Add and Edit pages and Inline Add and Inline Edit pages.
MUCH BETTER NOW! <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=55707&image=1&table=forumreplies' class='bbc_emoticon' alt=':P' />