Thomaslp
2/8/2006 8:14:00 PM
Hello Steen and Alexander,
thank you for your help. Both of your solutions works. But can you explain
to me what the Query(QueryStr(Cust)) actually do?
Thomas
"Alexander Usachev" wrote:
> >
> > SalesTable st;
> > Query q = new Query(QueryStr(Cust));
> replace this line by : Query q = new Query();
>
> > QueryRun qr;
> > QueryBuildDataSource ds = q.addDataSource(TableNum(SalesTable));
> > QueryBuildRange br = ds.addRange(FieldNum(SalesTable, CustAccount));
> > br.value("4008");
> > ds.addSortField(FieldNum(SalesTable, SalesId));
> >
> > qr = new QueryRun(q);
> >
> >
> > if(qr.prompt())
> > {
> > while(qr.next())
> > {
> > st = qr.get(TableNum(SalesTable));
> > print st.CustAccount;
> > print st.SalesId;
> > }
> > }
> >
> > When I execute this code the I can not change the range value. The field
> > is
> > simply locked in the dialog that appears when I call qr.promt() How can i
> > make the range field editable for the user?
> >
> > "Thomaslp" wrote:
> >
> >> Hi,
> >>
> >> I have created a query from scratch. When I call the qr.promt() method I
> >> cant change the value that I have defined through the qbr.value() method.
> >> How
> >> do I enable this?
> >>
> >> Also I think that the dialog that appears is pretty lousy. Is there some
> >> way
> >> to call the standard query dialog through some super call or??
>
>
>