on 01-10-2014 2:14 AM
Hello
How to search the KM Resource files by using these input fields( like as file resource Name, File Description, Created By, Modified by, Created By Date and Modified By Date) in Webdynpro JAVA Application
How to get the File Resource Size and Document Relevance(%) By in Webdynpro JAVA Application
I need to display table in File Resource Size and Document Relevance(%) by using Webdynpro JAVA Application
I’m using EP 7.0 version,
Could you please help me.
Regards
Vijay Kalluri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello friends,
By using FileName and File discription i will search the data from KM.
How to Search the KM resource files from the KM Repository by using these input fileds (Search by CreatedBy, ModifiedBy, CreatedDate and Modified Date)
I used attached Code for search.
When ever i will search the data from (CreatedBy, ModifiedBy, CreatedDate and Modified Date) i will get " IMSRC_MISSARG;location=frvs447a:30203 (Errorcode 2988)" Exception
Is it possible to search the data form KM Repository by usng these input fileds (CreatedBy, ModifiedBy, CreatedDate and Modified Date) in WDJ
How to get the File Resource Size and Document Relevance(%) By in Webdynpro JAVA Application
Document Relevance(%)
ISearchResult result = iter.next();
IResource resource = result.getResource();
float rankValue = result.getRankValue();
float docRelevance = rankValue*100;
int documentRelevance1 = (int)docRelevance;
String perSymbol= "%";
String documentRelevance = String.valueOf(documentRelevance1)+perSymbol;
srcResults.setDocumentRelevance(documentRelevance);
File Resource Size
String fileSize = "0";
try{
// for .html file Size
if(resource.getContent().getContentLength() == -1){
double d1 = 0.0;
d1 = resource.getContent().getInputStream().available();
fileSize = this.getFileSize(d1);
srcResults.setFileSize(fileSize);
}else{
// .jpg, txt, etc .... file Size
fileSize = this.getFileSize(resource.getContent().getContentLength());
srcResults.setFileSize(fileSize);
}
}
catch(Exception ex){
wdComponentAPI.getMessageManager().reportException(ex.getMessage(), false);
}
this.getFileSize () methods returns the KB, MB and GB...
Please tell me, how to search on KM resource files by using CreatedBy and Modified by usernames.
Regards
Vijay Kalluri
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.