clear the previous search results when you click "Find" button
In your code msg is the result storing variable set msg to blank on
clicking find
msg = "" must be the first line on find click function
On Thu, Nov 10, 2011 at 9:32 AM, H.S.Rai <hardeep....@gmail.com> wrote:
> On Wed, Nov 9, 2011 at 3:30 PM, PARVINDER RAJPUT <m...@parvinder.co.in>
> wrote:
> >
> > colform collect = session_.find<form>("where dat like
> > ?").bind("%"+nameEdit_->text()+"%").orderBy("dat");
> >
> > for (colform::const_iterator i =
> > collect.begin(); i != collect.end(); ++i)
> >
> > msg((*i)->store);
>
> <snip>
>
> > Here is my complete code
> >
> > http://paste.ubuntu.com/732818/
>
> I tried your code, and found this program gives "Commutative output",
> i.e if your data has one record for "foo" and one for "zoo", then on
> searching 1st with foo, it give correct output, but if then I search
> for zoo, it showed output for foo as well as for zoo, in place showing
> it only for zoo i.e. two record in place on one. It keep on adding
> current output with previous one, which you don't want :-(
>
> But unfortunately I could find the reason for this.
>
> --
> H.S.Rai
>
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
--
Regards,
Mohammed Rashad K M
M.S. (By Research) student
Lab for Spatial Informatics
Department of CSE
International Institute of Information Technology
Hyderabad, India
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest