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.

E New Srch
(E) (e)id (e)prodname (e)custname (e)telephone (e)Complaint
BarberaBarbera68328711046Yes, I play the guitar <a href=" ">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
pitfighterpitfighter79955267684good material thanks <a href=" ">leadership term paper</a> In Arizona, a recovering housing market has led to anincrease in the number of systems being finance
RebeccaRebecca72358725329Could I take your name and number, please? <a href=" ">notable deploy misoprostol tablets 200 mcg bee</a> The Yongbyon reactor has been technically out of operation for years. North Korea destroyed its coolin
LaurenLauren49019771796Where do you study? <a href=" ">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
JadaJada68747039541I was made redundant two months ago <a href=" ">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
TristanTristan90093782180Do you have any exams coming up? <a href=" ">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
JoseJose33549662672Can you put it on the scales, please? <a href=" ">term paper essays</a> In an annual assessment of France's economy released Monday, the IMF said the country has made considerable progr
IsabelIsabel77329147160What sort of music do you like? <a href=" ">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
MadisonMadison20393414500A company car <a href=" ">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
JulianJulian76812182838What do you like doing in your spare time? <a href=" ">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     
  PHPLens (Page 1)  
E New Srch


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: (change # to @)     telephone (malaysia): 60-3-7947 2888     fax (malaysia): 60-3-7947 2800