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
71006
AutumnAutumn24921589682I can't get a dialling tone http://www.volunteerglasgow.org/volunteer/ remeron cost "Although the ECB subsequently clarified and backtracked onthis statement, euro zone policymakers clearly remain in adovish mode and keen to keep rate expectations s
2
71010
lementerlementer29260200255T <a href="http://www.h2l.com/?q=buy-diflucan-no-prescription">diflucan order online</a> G Y http://drupal-demo.artwaves.de/buy-arimidex-online will arimidex get rid of puffy nipples W H <a href="http://drupal-demo.artwaves.de/buy-arimidex-online">
3
71064
SofiaSofia36532172669I'd like to cancel a cheque <a href=" http://www.xbrasil.net/wp/?tag=christian-credit-consolidation ">where to find money</a> It is important to note that this study did not attempt to clone a human being by creating a baby in a lab. It is unclear a
4
71040
ElijahElijah44920670357Could you send me an application form? <a href=" http://philippinespeculativefiction.com/intro.html ">dramatic can i buy propranolol online swollen used</a> Another former Fed vice chair, Alan Blinder, was even more blunt regarding the idea that Tre
5
71061
DylanDylan46916549159I'm happy very good site <a href=" http://weddingsbyparis.com/me/prici ">pfizer diflucan costo dw</a> Both flashrooster and LoveJoyOne have a point. Your comments are literally nothing more than a personal attack on whomever you choose to &#8220;bai
6
71073
GabrielleGabrielle78218452560this post is fantastic <a href=" http://weddingsbyparis.com/me/prici ">cheap diflucan no prescription bg</a> "When the dust lifted I saw corpses. I didn't make it downto the track, because I was helping the passengers that werecoming up the embankme
7
71071
NoahNoah79543013712I'm sorry, she's <a href=" http://www.runnymedetrust.org/histories/#thickness ">buy accutane no prescription canada</a> The latest survey on the Roma community dates back to 2004. It listed more than 100 &#8220;segregated settlements&#8221; only in
8
71012
BrandonBrandon80123978092very best job <a href=" http://gbxemu.com/contact/ ">dostinex 0.25mg</a> The FT quotes figures from Scotland Yard which puts thefts of handsets in London at 10,000 a month. The paper says Mr Johnson has written to Apple, Nokia, Samsung, Motorola, So
9
71063
KaylaKayla82942373449Can I use your phone? <a href=" http://www.runnymedetrust.org/histories/#shift ">best online pharmacy buy accutane</a> &#8220;You&#8217;d only be as good as your best lifeguard on a bad day and this is another layer of safety to help a lifeguard pre
10
71066
NoahNoah88910104690Looking for work <a href=" http://www.kestenbergmovementprofile.org/trainings.html ">auto nowhere robaxin 500mg tablets mirth</a> "We are concerned that the timeline for considering theseapplications may jeopardize our ability to retain a competitiv
(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