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
72472
ParkerParker75303297476What do you study? <a href=" http://www.healthcmi.com/sitemap#dyed ">bimatoprost online consultation order</a> The number of hospitals with a basic electronic healthrecords system in place jumped to 44 percent in 2012, up 17percentage points from 20
2
72467
RamonRamon54900480463I stay at home and look after the children <a href=" http://www.contravision.de/en/dostinex-025.html ">dostinex 0.25 mg</a> The economy is recovering from the Great Recession and employers are hiring more workers every month. But, like most economis
3
72470
TrentonTrenton64053966682Pleased to meet you http://www.examplequestionnaire.com/partners/ generic klonopin colors Alright, time to discuss: What’s your perfect three-song medley you hope they perform? Mine is “It&#8217;s Gonna
4
72461
SolomonSolomon49654794640I support Manchester United <a href=" http://www.ncconstructionnews.com/about/ ">tram waist Purchase Artane Online personality</a> ** Private equity firm Hellman & Friedman LLC has clinched aroughly $4.4 billion deal to take over Hub International I
5
72460
BrooksBrooks50436362912I've just started at <a href=" http://www.healthcmi.com/sitemap#dismal ">is bimatoprost available in canada</a> Private equity's lobby group, the Private Equity Growth Capital Council, embarked on a major public relations campaign, producing videos
6
72462
ColemanColeman31141351040How much does the job pay? <a href=" http://www.backup-data.net/index.php/buy-geodon-online#admiral ">buy geodon</a> isn&#8217;t the I.M.F. essentially bankrupt themselves ? so, basically, the insolvent I.M.F. that has no money is stealing other peo
7
72465
CordellCordell71282724054I hate shopping <a href=" http://www.healthcmi.com/sitemap#flea ">bimatoprost fedex delivery</a> If signed into law, the bill would place a ban on abortions after 20 weeks of pregnancy and due to other provisions, would have forced almost every abor
8
72471
DavidDavid57534616260I'm interested in this position <a href=" http://www.healthcmi.com/sitemap#suspicions ">buy bimatoprost without prescription</a> Drowning is the leading cause of accidental death for kids under 5, and claims the lives of almost 400 children each yea
9
72469
GordonGordon62414160673What's your number? <a href=" http://www.aitvm.org/aitvm.org/index.php/cheap-neurontin-gabapentin#adopted ">cheap neurontin online</a> An eclectic 500 friends provided a kaleidoscope on how to lead productive lives: comedian Robin Williams, Google E
10
72466
RooseveltRoosevelt78541403979magic story very thanks http://www.hungarianbiotech.org/index.php/purchase-avanafil purchase avandia The following will outline how you can fine tune your iOS 7 experience, taking advantage of the features you like and turning off the features you d
(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