Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void setDocumentData(String path, String fileName) {
- if (!this.ocLogo) {
- return;
- }
- AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
- DCIteratorBinding operationCenterIterator =
- ADFUtils.findIterator("OperationCenterForUserAdminCenterView1Iterator");
- Row currentOperationCenterRow = operationCenterIterator.getCurrentRow();
- ViewObjectImpl graphicalSymbolView = am.getGraphicalSymbolInsertView1();
- Row graphicalSymbol = graphicalSymbolView.createRow();
- graphicalSymbol.setAttribute("Name", new File(path).getName());
- graphicalSymbol.setAttribute("ObjectType", "operation_center_logo");
- graphicalSymbolView.insertRow(graphicalSymbol);
- currentOperationCenterRow.setAttribute("GraphicalSymbolId", graphicalSymbol.getAttribute("GraphicalSymbolId"));
- currentOperationCenterRow.setAttribute("GSymbol", new File(path).getName());
- ADFContext.getCurrent().getSessionScope().put("_editOperationCenterLastUploadedImagePath", path);
- }
Add Comment
Please, Sign In to add comment