Skip to content

Commit

Permalink
Merge pull request #68 from infor-cloud/databaseOperationsUpdateNew
Browse files Browse the repository at this point in the history
DatabaseAPI readAll update to include nrOfRecords
  • Loading branch information
filiphakansson1 authored Feb 15, 2024
2 parents e6def9b + 1197c45 commit 6203e3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions docs/examples/Templates/DatabaseOperations_Temaplate.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ void multiRead() {
DBContainer container = query.getContainer();
container.set("FIELD1", "DATA1");
container.set("FIELD2", "DATA2");
query.readAll(container, NUMBERofRECORDS, callback);
int nrOfKeys = 2;
int nrOfRecords = mi.getMaxRecords() <= 0 || mi.getMaxRecords() >= 10000? 10000: mi.getMaxRecords();
query.readAll(container, nrOfKeys, nrOfRecords, callback);
}
Closure<?> callback = { DBContainer container ->
String message = container.get("FIELD3");
Expand All @@ -93,7 +95,9 @@ void filteredMultiRead() {
DBContainer container = query.getContainer();
container.set("FIELD1", "DATA1");
container.set("FIELD2", "DATA2");
query.readAll(container, NUMBERofRECORDS, callback);
int nrOfKeys = 2;
int nrOfRecords = mi.getMaxRecords() <= 0 || mi.getMaxRecords() >= 10000? 10000: mi.getMaxRecords();
query.readAll(container, nrOfKeys, nrOfRecords, callback);
}
Closure<?> callback = { DBContainer container ->
String message = container.get("FIELD3");
Expand Down
4 changes: 3 additions & 1 deletion docs/getting-started/xtendm3-activation.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,6 @@ Note that though customers are allowed access to the Infor Campus training mater
- M3: v2020.001 XtendM3 - Use Cases Walk-through
- M3: v2020.12 XtendM3 Overview and Use Cases
- Watch a recorded onboarding that you will get once you have completed the campus courses
- Participate actively in monthly workshops which you will receive the invitations to after completion of courses
- Participate actively in monthly workshops which you will receive the invitations to after completion of courses

To recieve the invitation to the workshop series and the XtendM3 Community head over to this page [Workshop and Community](../workshop-and-community) and fill in the form.

0 comments on commit 6203e3f

Please sign in to comment.