51
Points
Questions
0
Answers
7
-
Iterator attItr = change.getTable(ItemConstants.TABLE_ATTACHMENTS).iterator();
while (attItr.hasNext()) {
IRow row = (IRow) attItr.next();String fileName = row.getValue(new Integer(“1046”)).toString();
File file = new File(MAIN_PATH+fileName);
System.out.println(“Downloading “+fileName+” from “+change.getName());
InputStream stream = ((IAttachmentFile) row).getFile();
try (FileOutputStream outputStream = new FileOutputStream(file, false)) {
int read;
byte[] bytes = new byte[8192];
while ((read = stream.read(bytes)) != -1) {
outputStream.write(bytes, 0, read);
}
}
}- 2038 views
- 1 answers
- 0 votes
-
- 1150 views
- 1 answers
- 0 votes
-
those are called stubs, check for those in the path
<<version>>_Java_Webservice_Samples\JavaWebserviceSamples\build\built
for some reason I couldn’t upload the screen shot those will be in ws_stubs.jar
-Raj M
This answer accepted by Sabarish. on January 3, 2021 Earned 15 points.
- 1159 views
- 1 answers
- 0 votes
-
- 1024 views
- 3 answers
- 0 votes
-
- 3700 views
- 2 answers
- 0 votes
-
- 1756 views
- 5 answers
- 0 votes
-
There are multiple work arounds,
- export the results from the search query, writhe sdk to update the values as desired, much simpler way is to write a agile query and update the data in sdk itself.
- if you are aware of how database tables are organized in the backend, you can you simple sql statements.
- 1095 views
- 1 answers
- 0 votes