this should work probably getValueFieldName On Tue, May 4, 2010 at 6:51 PM, rudolf michael <[email protected]> wrote:
> when you are using third party APIs you need to read the docs please > http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/widgets/form/fields/TextItem.html > i have never used smart gwt but check what getValue() returns > http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/widgets/form/fields/FormItem.html#getValue() > <http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/widgets/form/fields/FormItem.html#getValue()> > > On Tue, May 4, 2010 at 6:40 PM, samounas <[email protected]>wrote: > >> thx for the answer. >> but i have already tried "getvalue" than i got this error: >> >> (Uncaught exception escaped : >> com.google.gwt.core.client.JavaScriptException >> (TypeError): self.getValue is not a function >> fileName: http://localhost:8080 >> lineNumber: 195 >> stack: ()@http://localhost:8080:195 >> ....) >> >> this is my code: >> >> numRequestItem = new TextItem("numRequest"); >> osiRequestDS = DataSource.get( "osiRequestDS" ); >> numRequestItem.setOptionDataSource(osiRequestDS); >> numRequestItem.getValue(); >> >> updateButton.addClickHandler( new ClickHandler() { >> public void onClick(final ClickEvent event) { >> >> osiValuesManager.fetchData(new >> Criteria("numRequest",(String) >> numRequestItem.getValue())); //numRequestItem.getValueField() >> } //new Criteria(String field, String value) >> } ); >> >> Can u help me please? >> >> On 4 mai, 15:30, rudolf michael <[email protected]> wrote: >> > textBoxItem.getValue()?? have you tried this taking into account that >> > textBoxItem is an instance of TextBox >> > >> > >> > >> > On Tue, May 4, 2010 at 6:21 PM, samounas <[email protected]> >> wrote: >> > > Can u help me please. >> > >> > > On 4 mai, 15:16, samounas <[email protected]> wrote: >> > > > i want to retrieve the value writed in the textBoxItem .Because i >> want >> > > > to put it in the value of the criteria .like this: new >> > > > criteria(field,value). >> > > > please can u tell me how can i retrieve this value. >> > >> > > > -- >> > > > You received this message because you are subscribed to the Google >> Groups >> > > "Google Web Toolkit" group. >> > > > To post to this group, send email to >> [email protected] >> > > . >> > > > To unsubscribe from this group, send email to >> > > [email protected]<google-web-toolkit%[email protected]> >> <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]> >> > >> > > . >> > > > For more options, visit this group athttp:// >> > > groups.google.com/group/google-web-toolkit?hl=en. >> > >> > > -- >> > > You received this message because you are subscribed to the Google >> Groups >> > > "Google Web Toolkit" group. >> > > To post to this group, send email to >> [email protected]. >> > > To unsubscribe from this group, send email to >> > > [email protected]<google-web-toolkit%[email protected]> >> <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]> >> > >> > > . >> > > For more options, visit this group at >> > >http://groups.google.com/group/google-web-toolkit?hl=en. >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "Google Web Toolkit" group. >> > To post to this group, send email to >> [email protected]. >> > To unsubscribe from this group, send email to >> [email protected]<google-web-toolkit%[email protected]> >> . >> > For more options, visit this group athttp:// >> groups.google.com/group/google-web-toolkit?hl=en. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Web Toolkit" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<google-web-toolkit%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/google-web-toolkit?hl=en. >> >> > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
