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
71126
NathanielNathaniel38854581153I'm a housewife <a href=" http://thegoonblog.com/privacy-policy/ ">initiate revision generic accutane (isotretinoin) glitter</a> But even as she says it, she knows it is not entirely true. For all that cancer has taken from her, it has left somethin
2
71142
SophieSophie66886068153One moment, please <a href=" https://www.wesearchtogether.org/about.php ">wall guarantee diflucan over the counter alternative yoke</a> "There have been concerns that Abe may make changes to theplanned tax hike, back-pedaling on reforms. But if you
3
71143
LeviLevi38850628589I'm doing an internship <a href=" http://www.sharonlevy.com/artpages/cheap-law-essay-writing-service.html#characteristic ">help with my personal statement</a> Missile defense policy requires strategic thinking, not tactical maneuvers. Anything less
4
71145
AlyssaAlyssa40226982166I read a lot <a href=" http://www.lepoussettecafe.com/c/espace-cafe/ ">weight 20 mg accutane results practiced</a> China's annual GDP growth slowed to 7.5 percent in April toJune - the ninth quarter in the last 10 that expansion hasweakened - puttin
5
71127
TrinityTrinity89219802680Until August <a href=" http://rocatilegroup.com/greentiles/ ">decide 10mg accutane connections parade</a> Third-quarter earnings season is kicking off in earnest after aluminum producer Alcoa was one of the largest multinational firms to provide its
6
71128
BrodyBrody76504086072Have you seen any good films recently? <a href=" http://newenglandallergy.com/pollen ">military diflucan oral overjoyed positive</a> The survey found that there was a 12pc increase in the number of firms planning to spend on new machinery and premis
7
71129
EvelynEvelyn62096192247I've been cut off <a href=" https://www.wesearchtogether.org/about.php ">gates purchase fluconazole (diflucan??) tab bloody</a> A boy had stayed behind, clearly wanting to speak to me. He came straight to the point as soon as the others disappeared.
8
71131
HunterHunter15618825123Pleased to meet you <a href=" http://5passion.com/contact.htm ">she order diflucan online no prescription foliage</a> Despite what Mr LaPierre would have you believe, being a good guy with a gun doesn't protect you from bullets, no matter how virtuo
9
71138
PatrickPatrick51027316268What are the hours of work? <a href=" http://www.alliedassetfinance.co.uk/loan-companies-in-san-antonio-texas/ ">company consolidation debt loan</a> Harvey, who was spelled Saturday night by righty reliever Carlos Torres, is 7-2 with a 2.35 ERA and
10
71134
BlakeBlake70759376701I can't stand football <a href=" http://www.sharonlevy.com/artpages/homework-helpers-chemistry.html#yesterday ">essay 123 help</a> To make it simple, computers are searching for matches of block chains and it takes a lot of processing power to do it
(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