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
70955
KimberlyKimberly97112266426A staff restaurant <a href=" http://www.comerciojustoleon.com/index.php/donde-comprar/tiendas-especializadas#whiskers ">crestor 5 mg equivalent to lipitor</a> Here is the line he began his speech with:  &ldquo;Today is a triumph for freedom as huge
2
70943
KaitlynKaitlyn94786714367Could I borrow your phone, please? <a href=" http://www.comerciojustoleon.com/index.php/noticias ">lipitor online kn</a> Helgen and his team closely observed the animal's habits and environment. Andean cloud forests are considered unique ecosystems
3
70967
MollyMolly59318418943Do you have any exams coming up? <a href=" http://harri-wettstein.de/sexualaufklaerung/ ">thuoc augmentin 500/125mg</a> Bahrain, a majority Shi'ite country ruled by the Sunni alKhalifa family, has been buffeted by unrest since the start ofthe Arab S
4
70928
BrandonBrandon88865411520I'd like to cancel this standing order <a href=" http://www.u-neacfasteners.com/vendors/ ">Cheap Ampicillin</a> Any references to AFC on club branding will be phased out, although AFC will remain on the shirt crest during Hull's first season back in
5
70953
ChloeChloe22960555108I'm doing a masters in law <a href=" http://weimar.edu/do-my-homework-for-menet/ ">do my assignment reviews</a> President Barack Obama, who announced earlier this month he'd delay penalizing businesses who don't offer their employees benefits until
6
70971
JocelynJocelyn79197040231It's a bad line <a href=" http://groovingourmets.com/online-ordering/ ">jumper duty amitriptyline hcl 50 mg t quantity poking</a> As Sir Ken recalls it, once in Ireland Kubrick changed totally. "He saw himself as General Rommel, who he admired great
7
70965
CodyCody86531908942Please wait <a href=" http://www.kaslodesign.com/web.htm ">bimatoprost online consultation</a> One dinghy overturned, with its occupants spilling into the sea. Seven men and a girl suffering from severe hypothermia were plucked out of the water. The
8
70964
goodsamgoodsam70700519521We need someone with qualifications <a href=" http://www.splunteren.nl/actueel/ ">comfortable here zentel 400 mg albendazole pickles</a> Berkshire seized on the pullback, scooping up shares for prices ranging from $112.84 to $116.62. The drop to tho
9
70972
KadenKaden98247266841What do you like doing in your spare time? <a href=" http://www.comerciojustoleon.com/index.php/donde-comprar/tiendas-especializadas#designer ">lipitor 5 mg every other day</a> Mauricio Santoro, a political scientist and human rights adviser with Am
10
70923
MakaylaMakayla47780516959What line of work are you in? <a href=" http://djdinaregine.com/blog/ ">abbreviation lose where can i buy albendazole deeply elderly</a> The years following the publication of Death of a Naturalist saw the outbreak of the Troubles and Heaney, who wa
(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