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
71436
RileyRiley30027587288Your account's overdrawn <a href=" http://www.cafsowrag4development.org/writting-papers/#foresight ">best site for writing physics paper</a> The NCAA is also opposing a new state law requiring the $60 million fine to be spent within the commonwealth
2
71453
CameronCameron62320414656I'm not working at the moment <a href=" http://www.alliedassetfinance.co.uk/cash-store-hours/#produced ">on line fast cash loan</a> Anne is related to Bliss and his helper Phyllis. Her interest began in 1988 when she was asked by a cousin if she wou
3
71452
JaneJane80013602528Do you need a work permit? <a href=" http://www.vision-ar.com/mediablog/credit-score-personal/#scent ">check cashing loans</a> Just like the rest of us, CEOs want to be good. But all too often, the way global capitalism works requires themâ€Â
4
71411
IsabelIsabel70258164295What sort of music do you listen to? http://ziplinegear.biz/buy-mla-essays/ write my thesis for me But when he couldn’t finish off the Bears on Thursday night − he threw a crushing interception in the la
5
71444
KaitlynKaitlyn71192771718Is this a temporary or permanent position? <a href=" http://www.jacquelot.com/arm-refinance-loan ">rescue debt</a> The sol has weakened more than 9 percent so far this yearafter appreciating to historically high levels in 2012 asinvestors sought bet
6
71442
JaydenJayden67150337492I'd like a phonecard, please <a href=" http://www.vision-ar.com/mediablog/loan-me-money-com/#collision ">tummy tuck financing</a> Private equity's lobby group, the Private Equity Growth Capital Council, embarked on a major public relations campaign,
7
71450
JenniferJennifer80736193095How much is a First Class stamp? <a href=" http://www.cafsowrag4development.org/cambridge-essay-writing-service/ ">arrive allen write essay outline should</a> The Oct. 1 debut of the exchanges was marred by technicalglitches that have kept many from
8
71402
unloveunlove18049052877I study here <a href=" http://www.pensionfreedom.ie/short-term-loans-with-low-apr ">lenders cash</a> "There is talk in some areas of Berlin of prohibiting it," he told Reuters. "But can you really prevent people from using their privately owned home
9
71439
EvelynEvelyn60240138978Is it convenient to talk at the moment? <a href=" http://www.theges.com/?page=goverment-debt#fowl ">unsecured no credit check loans</a> &#8220;Both patients have been very involved in the research,&#8221; Henrich said at the International AIDS Socie
10
71432
MadisonMadison53538676715Have you got any qualifications? http://ziplinegear.biz/buy-mla-essays/ what is writing paper The most famous figure that bears that name is Alexander the Great, who famously cobbled together an enormous empire, founding some twenty cities across As
(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