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
71442
PaytonPayton23307700181A First Class stamp <a href=" http://www.cafsowrag4development.org/english-helper-online/ ">writing assignment for compass test</a> At £110, the 2DS is £30 cheaper than the 3DS, and £50 cheaper than the 3DS XL. The 3DS XL is still the best
2
71402
KylieKylie27604633920I was made redundant two months ago <a href=" http://www.sharonlevy.com/artpages/help-me-write-my-research-paper.html ">gentle negotiate help me write a narrative essay producing</a> The system, backed by technology giant Parker Hannifin Corp, will
3
71456
JulianJulian61948360701I was made redundant two months ago http://weimar.edu/who-can-i-pay-to-write-my-essay/ non plagiarized custom essay Europe, which led development of the globally used GSM standard in the 1980s, now lags the United States, Japan and South Korea in ne
4
71439
JenniferJennifer66674937186The line's engaged <a href=" http://buffalonavalpark.org/installment-loans-in-missouri/#displeased ">hard money lenders in connecticut</a> Stone said speculation that central banks, particularly the United States Federal Reserve, would scale down th
5
71432
KimberlyKimberly77503961423Yes, I love it! <a href=" http://www.cornwallfoodanddrink.co.uk/college-essay-help-nj/ ">online case writting</a> The researchers compared them to more than 1,600 typical teenagers in the same age range, measuring their autistic traits using a score
6
71452
MasonMason77812752985I want to report a <a href=" http://www.videogameconsolelibrary.com/blog/?p=essay-writing-services-scams ">onward droop dissertation help co uk cannon poem</a> NEW YORK, Sept 20 (IFR) - Dell has set price talk on itsUS$2 billion seven-year non-call
7
71453
WyattWyatt79496860449I'm doing a masters in law <a href=" http://www.xbrasil.net/wp/?tag=payday-loans-that-dont-verfiy-banking-information ">inventory lending</a> The Australian company and Germany's Allianz aremost exposed to the crash. Allianz's Spanish subsidiary, wh
8
71436
nogood87nogood8781831023186I like watching football <a href=" http://bikinginbarcelona.net/dallas-home-loans/ ">tax refund credit</a> Also interested in Japan as a supplier is Raytheon Co., which is seeing revived demand for its Patriot missiledefense system. Tapping firms th
9
71444
RebeccaRebecca82200003254How much will it cost to send this letter to ? http://weimar.org/technical-writing-service/ best writing essay &#x93;I would not expect that,&#x94; said Carol Johnson, a National Park Service spokeswoman for National Mall and Memorial Parks. &#x93;A
10
71411
EliEli94079490793I live here <a href=" http://www.xbrasil.net/wp/?tag=license-loan-processor ">sunset finance loans</a> A coalition of industry and environmental groups - including the European Climate Foundation and Danish advanced biofuel producer Dong Energy - ha
(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