babyto
2/19/2006 12:30:00 PM
This checkbox represents a datamethod in the form CustTransOpen called
markTrans(this a method for the datasource CustTransOpen). I tried to write
something like:
select count(recid) from CustTransOpen where CustTransOpen.checkboxvalue ==
NoYes::Yes but i don't know how to get the value of the checkbox since it's
not a field, but a method for the datasource.
"Sebastian Draese" wrote:
> sorry......
> selected records in a grid are the lines in "blue", selected eg. with ctrl +
> "click"
>
> try a "select count(RecID) .... where table.checkboxfield == NoYes::Yes"
> the result will be at table.recid.
>
> bxe,
> Sebastian
>
> "babyto" <babyto@discussions.microsoft.com> schrieb im Newsbeitrag
> news:4827600B-EBD0-4112-8FD7-CDC8F6206ECB@microsoft.com...
> >I did read this article but it still gives me i = 1 all the time
> > This is the code i'm using in the click method of a display menu item to
> > see
> > what is the number of marked lines:
> >
> > for (CustTransOpen = CustTransOpen_ds.getFirst(true) ?
> > CustTransOpen_ds.getFirst(true) :
> > CustTransOpen_ds.cursor(); CustTransOpen; CustTransOpen =
> > CustTransOpen_ds.getnext())
> > {
> > i ++;
> > }
> >
> > info(int2str(i));
> > I don't know what the problem is,.,,,please help, I have a checkbox
> > infront
> > of every record and i would like to get the number of the lines with
> > marked
> > checkboxes,,,,
> >
> > "babyto" wrote:
> >
> >> Hi there does any body know how to get the number of selected records in
> >> a
> >> grid.
> >> For example CustTransOpen_ds.mark() does not return it. Please help. I
> >> would
> >> like to check if the number is > 1 so that i can throw error.
>
>
>