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.

E Nxt End New Srch
(E) (e)id (e)prodname (e)custname (e)telephone (e)Complaint
BryanBryan88311352430Good crew it's cool :) <a href=" ">order an essay online</a> Talk about the Fed's next step escalated on Tuesday when Atlanta Fed President Dennis Lockhart said it was too early to detail plans for a tapering, but d
HaleyHaley51789811286Could I have an application form? <a href=" ">clomid clomiphene citrate 50 mg tablets ta</a> "My preference, and I think the American people’s preference, would have been for a lawful, orderly examination of the
PlankPlank94483444206This is your employment contract <a href=" ">brewing robaxin online eyebrow scenery</a> The Chinese state news agency Xinhua excoriated the United States for putting international financial stability at risk with dom
DavidDavid64092720043Have you got any ? <a href=" ">mifepristone misoprostol qq</a> "Chris Christie appears strong everywhere but in the swing states, which means that any Republican running against Hillary Clinton would still ha
NathanNathan93090554585I'd like to apply for this job <a href=" ">save robaxin 500 mg starling</a> Chabert's breakout role was at the young age of 12, when she played Claudia in the fox hit drama "Party of Five," alo
ElijahElijah67372822270An envelope <a href=" ">do you need prescription albendazole tg</a> This marked the industry's first year-on-year sales declinein more than two years. There were two fewer shopping days inSeptember compared with the prev
LaurenLauren98164107771Could I have an application form? <a href=" ">where can i buy albendazole 200 mg pk</a> “Coach Terry knew how to motivate people,” said former Boys High runner Jim Ja
NicoleNicole79416260330What do you do for a living? <a href=" ">buy generic albendazole qb</a> The Arab League's own peace proposals, launched over a decade ago, foundered on the issue of a return to 1967 borders, but it confirmed on W
DEDE11437203207Very funny pictures <a href=" ">fast short term loans no credit check</a> The opposition received a morale boost on Friday when opposition leader Sam Rainsy returned after four years in exile in F
ZoeyZoey63451399465I need to charge up my phone <a href=" ">cost loan</a> Figures show the surplus has been built up by the HFEA from the £75 fee paid by the NHS and private clinics to
(E) Edit Record     
(e)productid 956696 
  PHPLens (Page 1)  
E Nxt End New Srch


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: (change # to @)     telephone (malaysia): 60-3-7947 2888     fax (malaysia): 60-3-7947 2800