add more lookup display fields

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
danels
User
Posts: 53

add more lookup display fields

Post by danels »

any ideas how to add more display fields?.
In phpmaker program on lookup section there is only 4 Display fields provided.
Display Fields

  1. Display fields #1
  2. Display fields #2
  3. Display fields #3
  4. Display fields #4

is there a way if i want to add some more for me to be able to display more than 4 lookup Display fields from my database?

Thanks in Advance


danielc
User
Posts: 1601

Post by danielc »

Alternatively, you may consider to create another field to store your lookup and use view to concat the two fields to display more than 4.


danels
User
Posts: 53

Post by danels »

i dont understand how to do it. could you please elaborate. and show me step by step.
Actually i just need to add 1 more data to the lookup. Thanks in Advance


danielc
User
Posts: 1601

Post by danielc »

  1. field 1 setup to display 4 fields.
  2. field 2 setup to display 1 field. (need your table to setup additional field)
  3. concat field 1 and field 2 in your view, like
    CONCAT(field1, ",", field2) AS field12

danels
User
Posts: 53

Post by danels »

thank for your kind answered danielc. btw where should i put the concat command? because i would like the user can select the concat lookup field , and auto fill the fields. Thanks in Advance


danielc
User
Posts: 1601

Post by danielc »

CONCAT is used in your sql to create a view. See http://dev.mysql.com/doc/refman/5.0/en/ ... ion_concat


bioaroma
User
Posts: 24

Post by bioaroma »

Did you solve this
I have the same issue
I know how to concatenate field but not clear where should be placed the code
and also what is the link between views and Lookup table?


mobhar
User
Posts: 11703

Post by mobhar »

bioaroma wrote:
what is the link between views and Lookup table?

It means, you may simply use a "Database View" in "Table name" directive of your "Lookup Table" setup.


Post Reply