selection of several records in a grid (Multi select)

To unnecessary code to avoid duplications, we can even with a for-loop work:
void clicked() Void clicked ()
{ (
CustTable custTable; CustTable custTable;
;
for (custTable = CustTable_ds.getFirst(true) ? For (custTable = CustTable_ds.getFirst (true)?
CustTable_ds.getFirst(true) : CustTable_ds.getFirst (True):
CustTable_ds.cursor(); CustTable_ds.cursor ();
custTable; CustTable;
custTable = CustTable_ds.getNext()) CustTable = CustTable_ds.getNext ())
{ (
//do something with custTable / / Do something with custTable
info(custTable.accountNum); Info (custTable.accountNum);
} )
} )

CustTable_ds.getFirst() gibt nur etwas zurück, wenn mehrere Datensätze markiert sind. CustTable_ds.getFirst () is only slightly back when several records are marked. Man kann sich also die Abfrage nach CustTable_ds.anyMarked() sparen. It is also the query () CustTable_ds.anyMarked save.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: