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
72409
MitchMitch48498562369An estate agents <a href=" http://greenwoodsstatebank.com/personal-loans/ ">direct payday loan lenders online no teletrack</a> Rizvi declined to comment for this article. Sacca, a longtime friend, gave him an entree into tech investing in 2011 - whe
2
72445
ErickErick82202383387How much does the job pay? <a href=" https://badgesforvets.org/buy-celecoxib-online.html#lofty ">buy celecoxib online</a> On June 5, a federal judge issued a temporary restraining order to prevent U.S. Health and Human Services Secretary Kathleen Se
3
72404
SantiagoSantiago31376097783Very interesting tale <a href=" http://artsandaging.org/index.php?s=can-you-buy-ativan-online-legally ">ativan mg/kg</a> It took years for Keith to get to this much healthier point in his life at age 58. He struggled with alcoholism for much of his
4
72451
MosesMoses91942978056Is it convenient to talk at the moment? <a href=" http://www.acimps.org/content/blogsection/4/10/#sunset ">Cheap Ditropan</a> "The Internship," a comedy starring Vince Vaughn and OwenWilson based on the antics of nerds in search of a job atinternet
5
72414
KennithKennith84387027258I'd like to transfer some money to this account http://www.groenservicebvba.be/aldactone-25-mg-per-acne aldactone 25 mg tablet Baldor has annual revenue above $200 million, over 800 employees, and 200 trucks delivering produce, but the recent rise i
6
72447
JesseJesse92372462994What are the hours of work? http://www.afceco.org/benicar-generic-equivalent benicar coupons After a lower court refused to issue an injunction,Conestoga appealed, and its lawyer told the 3rd Circuit that thecompany was complying with the law during
7
72440
LilyLily62025924467Are you a student? <a href=" http://www.healthynh.com/publications.html#aye ">clomid generic buy</a> “When I was doing ‘ER,’ we’d joke about the ‘episode 13 to 17 malaise’,” says Noah Wyle. “You’d feel like you were sleepwalking an
8
72438
SamuelSamuel57115815386I can't hear you very well <a href=" http://greenwoodsstatebank.com/personal-loans/ ">ezpayday</a> Robert Zimmerman testified that he heard his son screaming in the background of a 911 call from the night of the shooting. Martin's family has said it
9
72446
LeonardoLeonardo54019418061Languages <a href=" http://www.turkpdristanbul.com/istanbul-subesi/ ">valium 10mg cost</a> Airline fees are also on the rise. IdeaWorks Company, a Shorewood, Wisc., consulting firm, reported that in 2012, airlines made $27.1 billion from airline fee
10
72449
IvoryIvory53340158248I'm at Liverpool University <a href=" http://artsandaging.org/index.php?s=ativan-dosage-5 ">ativan withdrawal duration</a> Business customers have been wary about signing up to Royal Mail and have switched some business to competitors while the thre
(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