Hello Everyone
I am facing problem in WLineEdit. I have create more than one
WlineEdit in one function. but i am able to entry in Database throgh
only on WLineEdit.
for example
void WtApplication::Name()
{

root()->addWidget(new  WText("<h1>update</h1> "));
  nameEdit_ = new WLineEdit(root());
  nameEdit_1 = new WLineEdit(root());
nameEdit_2 = new WLineEdit(root());


  WPushButton *b = new WPushButton("Save", root());
  b->setMargin(5, Left);

  root()->addWidget(new WBreak());

  greeting_ = new  WText(root());

 b->clicked().connect(this, &WtApplication::populate);
nameEdit_->enterPressed().connect
    (boost::bind(&WtApplication::populate, this));
}
void WtApplication::populate() {
         greeting_->setText( nameEdit_->text());
In one time one entry is possible. no action perform on other
WLineEdit. How to mannage all the Wline Edit

        ptrA a;
        { A *tuple = new A();
                        tuple->store  =   greeting_->text().toUTF8();

                     try { Transaction tt(session_);
                      a = session_.add(tuple);
                        tt.commit();
                    } catch (...) {}

  }
}

please help me.
-- 
Parvinder Rajput
website:- www.parvinder.co.in

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to