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
72462
ChristoperChristoper15004820549On another call http://www.ahastudyabroad.org/purchase-cyclophosphamide-online.html cytoxan tablets Ackermann said the family of chief financial officer Pierre Wauthier, who had worked at Europe’s No. 3 insurance group for 17 years, believed h
2
72404
ClintClint72222639295Not available at the moment <a href=" http://www.healthcmi.com/sitemap#craft ">bimatoprost eye drops uk</a> Under pressure to deliver a rapid timetable to restore democracy, Adli Mansour, the judge named head of state by the army when it brought dow
3
72461
EldridgeEldridge84630060126Where are you from? <a href=" http://www.backup-data.net/index.php/cheap-indocin ">count 1.indocin indocin (indomethacin) mumble</a> Speaking outside the court, Mr Shah, of Chippenham, Wiltshire, said the case was brought because of “cheap policin
4
72465
JadenJaden70620777483Photography <a href=" http://www.healthcmi.com/sitemap#purposes ">do you need a prescription for bimatoprost</a> In an impassioned plea, Zimmerman's defense attorney Mark O'Mara stated that the state did not produce direct or circumstantial evidence
5
72467
JesusJesus55732693718An accountancy practice <a href=" http://www.healthcmi.com/sitemap#tears ">bimatoprost online prescriptions with no membership</a> Romney's critics scrutinized his investment record and often portrayed Bain as a corporate raider which profits at the
6
72409
MichealMicheal10753423757Is it convenient to talk at the moment? <a href=" http://www.healthcmi.com/sitemap#ten ">purchase cheap bimatoprost</a> Nathan Brown, a leading expert on Egypt's constitution at George Washington University in Washington, said that while Monday's de
7
72466
MontyMonty58666296099I'm doing a masters in law <a href=" http://artsandaging.org/index.php?s=costco-pharmacy-modafinil ">modafinil dosage reddit</a> SPRINGFIELD, Ill. (AP) — The passage of a landmark bill to address Illinois' worst-in-the-nation pension crisis mea
8
72470
StaceyStacey30694231006It's OK <a href=" http://www.contravision.de/en/buy-levaquin.html ">unlike fashioned levaquin mg laurie soot</a> It was unclear how Bezos - the world's 19th richest personwith a fortune of $25.2 billion, according to Forbes magazine -would manage hi
9
72460
StevieStevie13301678454A First Class stamp http://fanggle.com/partner/partner-program/ what is carisoprodol generic for Since Summers' withdrawal amid deep opposition from Senate Democrats, there has been speculation that Obama could turn to others who have been seen as l
10
72469
TheodoreTheodore73718542598How long are you planning to stay here? <a href=" http://www.cthtech.com/index.php/solutions ">pictures messenger provera online input sleepy</a> The Social Democrat (SPD) trails Merkel's conservatives by some 15 points in opinion polls with just si
(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