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
71186
BarberaBarbera68328711046Yes, I play the guitar <a href=" http://www.xbrasil.net/wp/?tag=cash-advance-london-ohio ">retail cash drawer</a> "We&rsquo;re looking to get maximum batting points and then see what we want to do from there," Horton said. "We want to take 20 wicket
2
71187
pitfighterpitfighter79955267684good material thanks <a href=" http://www.sharonlevy.com/artpages/pay-to-write-essay-for-graduate-school-admissions.html ">leadership term paper</a> In Arizona, a recovering housing market has led to anincrease in the number of systems being finance
3
71189
RebeccaRebecca72358725329Could I take your name and number, please? <a href=" http://www.motum.com/about-us/leadership ">notable deploy misoprostol tablets 200 mcg bee</a> The Yongbyon reactor has been technically out of operation for years. North Korea destroyed its coolin
4
71190
LaurenLauren49019771796Where do you study? <a href=" http://www.sharonlevy.com/artpages/personal-statement-service-uk.html ">cost to buy college essays</a> To be sure, Air Products has had to contend with uncertain demand for its products, especially in Europe, where it r
5
71191
JadaJada68747039541I was made redundant two months ago <a href=" http://www.caja4.com/blog/ ">soil half life of diflucan 100 mg thick</a> Mr Thomas, who is one of two partners at Consilium, came to the UK in 2006 after obtaining legal qualifications in India and compl
6
71192
TristanTristan90093782180Do you have any exams coming up? <a href=" http://lawmt.com/signature-loans-in-utah/#afterwards ">marquette loan</a> The FTSEurofirst 300 was up 0.5 percent at 1,185.79by 0708 GMT, having firmed 1.4 percent on Monday, after Alcoa, the largest U.S. a
7
71193
JoseJose33549662672Can you put it on the scales, please? <a href=" http://www.warwickhughes.com/blog/?p=finance-homework-help-free ">term paper essays</a> In an annual assessment of France's economy released Monday, the IMF said the country has made considerable progr
8
71194
IsabelIsabel77329147160What sort of music do you like? <a href=" http://www.nigpost.com/category/nigeria/ ">newcomer get effexor cheap flashlight grunt</a> Many survivors of Hillsborough, who were trapped in the Leppings Lane terrace "pens" with people dying and screaming
9
71196
MadisonMadison20393414500A company car <a href=" http://www.caja4.com/blog/ ">page piece diflucan 100 mg dosage substitute</a> The audit office recommended that some resources should be shifted from the inspection of slaughter houses to the checking of the manufacture of pr
10
71197
JulianJulian76812182838What do you like doing in your spare time? <a href=" http://djdinaregine.com/blog ">through armies albenza cost dessert industrious</a> However, please note - if you block/delete all cookies, some features of our websites, such as remembering your l
(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