phpLens
 home  products examples manual  faq support forum  contact news  login store

More Examples:   View Source:   searchInEditNew

Free Download

This demo allows you to enter complaint records for products you are supporting. You can perform a search in the both the EDIT/NEW record forms for the product the customer is complaining about. Hint: search on R in the "prodname" field below.

  PHPLens
E New Srch
(E) (e)id (e)prodname (e)custname (e)telephone (e)Complaint
1
72595
JacobJacob25849606822Do you play any instruments? http://www.ambassadordivers.com/imigran-cost.html order imigran It’s the eighth recall of the car since it was introduced in September, 2010, according to records compiled by the National Highway Traffic Safety Adm
2
72593
BrandenBranden34243428784Enter your PIN http://www.contravision.de/en/dostinex-025.html dostinex 0.25 The BDP expects legislative action by October, when parliament reconvenes after a summer recess, on demands for the release of thousands of party members in detention on te
3
72601
TommyTommy81145154286Good crew it's cool :) <a href=" http://www.ambassadordivers.com/imigran-cost.html ">bridge imigran cost steer</a> Quarterbacks typically show their appreciation to offensive linemen in material ways. Tom Brady once bought Audi SUVs for his professi
4
72591
HiltonHilton38796292029Have you seen any good films recently? <a href=" http://arcsolutions.de/de/cabergoline-dostinex-buy#punishment ">cabergoline dostinex price</a> On the other side are the culture war dead-enders, the members of the conservative media-entertainment co
5
72592
KirbyKirby94047215644I do some voluntary work <a href=" http://www.coloadaptationprofile.org/index.php?buy-himplasia-online ">buy himplasia </a> A month ago, few would have predicted Auburn would be one of the last two teams standing. But the Tigers beat Georgia 43-38 o
6
72596
MackenzieMackenzie91640600422I support Manchester United <a href=" http://arcsolutions.de/de/neurontin-buy-line#brush ">buy neurontin online no prescription</a> The regulations, contained in a 606-page HHS rule, allowed state-run exchanges to accept an enrollee's "attestation r
7
72598
WendellWendell55358179058I'm doing an internship http://www.afsbt.org/index.php/clonidine-mg purchase clonidine online “People are really helped by being able to share their experiences with other people who’ve been through similar experiences,â€
8
72599
StevenSteven78480372672i'm fine good work http://caribbean-airlines.com/index.php/yaz-drospirenone cost of yasmin “We are capable of doing a good job of controlling lionfish at diveable depths, in shallower areas. Divers and spearfishers can go in and remove the fish. B
9
72597
PlankPlank68609730026magic story very thanks <a href=" http://www.coloadaptationprofile.org/index.php?buy-himplasia-online ">buy himplasia </a> The second match, in which Tasmania were South Australia's opponents, saw even more runs, 1,286 but 32 wickets, although the g
10
72600
RodneyRodney45053747671Until August <a href=" http://www.eden-patio.com/index.php/taxus-30-tabs-tamoxifeno-20-mg#regulate ">nolvadex 20mg uk</a> Stravinsky himself conducted the Los Angeles Philharmonic Orchestra for the cartoon film, which debuted in prime time on Americ
(E) Edit Record     
(e)productid  
(e)prodname
(e)custname
(e)telephone
(e)address1
(e)address2
(e)Complaint
 
  PHPLens (Page 1)  
E New Srch

Notes

This feature is available since 3.1.

This demo show to create complaint records, retrieving the product id and product name using a search form built into the NEW/EDIT record form. This is particularly useful when we have a 100,000 product table and we don't want to pull every product record in a normal lookup, but allow the user to enter the first few characters of the product name, then we perform a search.

The key property is:

$lens->searchInEditNew = 
"PRODNAME^select concat(productname,' (',productid,')'),productname,productid,productid 
	from products where productname like '{#}%'^prodname^productid^>1";
		

There are two modes for searchInEditNew. The first is when no lookupLens is defined as in this example. The second is discussed in ex920.

The searchInEditNew generates the search field. The key to understanding this is the prodname^productid list above, which defines the fields that receive searched values.

Now look at the SQL SELECT statement. The {#} in the SQL is substituted with what the user entered in the input field.

The SQL statement retrieves 3 fields, the first being what we show the end-user in the popup.

The 2nd is what we store in the prodname, the first field of the list prodname^productid.

The 3rd field of the SQL is stored in productlist, the second field of the list prodname^productid.

Now if 3 items were defined in the above list, say prodname^productid^more3 then the SQL statement would have had 4 fields, the 4th field storing into more3.

The >1 in the property means the field requires at least 1 character before a search can occur.

Lastly, this example has the details being displayed below the grid, using $lens->showRecNo = 5;

email: contact#phplens.com (change # to @)     telephone (malaysia): 60-3-7947 2888     fax (malaysia): 60-3-7947 2800