Holger Knublauch

Added additional customization to Log viewer

......@@ -178,15 +178,21 @@ function appLoad(id, args) {
appInsertLoadingIndicator(e);
// TODO: Error handling may not work yet
e.load(uispinServlet, url, function() {
appLoadPostProcess(e, 'north');
appLoadPostProcess(e, 'east');
appLoadPostProcess(e, 'south');
appLoadPostProcess(e, 'west');
appLoadPostProcess(e, 'center');
appLoadPostProcessAll(e);
});
}
// Private
function appLoadPostProcessAll(e) {
appLoadPostProcess(e, 'north');
appLoadPostProcess(e, 'east');
appLoadPostProcess(e, 'south');
appLoadPostProcess(e, 'west');
appLoadPostProcess(e, 'center');
}
// Private function to make sure that the scrollbars are
// updated if a ui:loadable has been loaded into a layout pane
function appLoadPostProcess(e, pane) {
......@@ -255,10 +261,22 @@ function appLoadSearchResultsGrid(formId, targetId, onSelect) {
$.get(uispinServlet + '?_viewClass=app:SearchResultsGrid&_snippet=true&' +
params + escaped, function(data) {
$('#' + targetId).html(data);
appLoadPostProcessAll($('#' + targetId).parent());
});
}
function appResizeGrid(pane, $Pane, paneState) {
/*
if(grid = $('.ui-jqgrid')) { //}-btable:visible')) {
grid.each(function(index) {
var gridId = $(this).attr('id');
$('#' + gridId).setGridWidth(paneState.innerWidth - 2);
});
}*/
}
/**
* Loads a given ui:loadable with a given variable pre-bound to
* a given URI resource.
......
......@@ -54,15 +54,13 @@
{= ?onSelect }
},
</ui:if>
autoWidth: true,
height: '100%',
autowidth: true,
height: 'auto',
rowNum: 10,
rowList:[5,10,20],
pager: '#{= ?pagerId }',
shrinkToFit: false,
sortorder: 'asc',
viewrecords: true
//width: '100%'
}).jqGrid('navGrid', '#{= ?pagerId }', {
add:false,
del:false,
......@@ -70,8 +68,5 @@
search: false
});
$("#{= ?tableId }").parent().resize(function() {
alert('Resized');
});
</script>
</ui:group>
\ No newline at end of file
......
......@@ -232,8 +232,8 @@ log:LogEventFormBody
] ;
ui:child
[ rdf:type app:ColumnLayout ;
arg:colWidths "66%,34%"^^xsd:string ;
arg:width "500px"^^xsd:string ;
arg:colWidths "50%,50%"^^xsd:string ;
arg:width "600px"^^xsd:string ;
ui:child
[ rdf:type app:Object ;
arg:label "Created"^^xsd:string ;
......@@ -274,6 +274,83 @@ log:LogEventFormBody
]
] .
log:ReportDownloadEvent
app:keyProperties (<http://purl.org/dc/terms/created> rdf:type log:reportType log:ownerId log:initiatedBy log:onBehalfOf log:outcome rdfs:comment) ;
ui:instanceView
[ rdf:type ui:group ;
default:subject spin:_this ;
ui:child
[ rdf:type log:LogEventFormBody ;
arg:resource spin:_this ;
ui:childIndex 0
] ;
ui:child
[ rdf:type app:ColumnLayout ;
arg:colWidths "50%,50%"^^xsd:string ;
arg:width "600px"^^xsd:string ;
ui:child
[ rdf:type app:Object ;
arg:label "Report type"^^xsd:string ;
arg:predicate log:reportType ;
ui:childIndex 0
] ;
ui:child
[ rdf:type app:Object ;
arg:label "Licence/BAA id"^^xsd:string ;
arg:predicate log:ownerId ;
ui:childIndex 1
] ;
ui:childIndex 1
]
] .
log:ReportEvent
app:keyProperties (<http://purl.org/dc/terms/created> rdf:type log:reportType log:initiatedBy log:onBehalfOf log:outcome rdfs:comment) ;
ui:instanceView
[ rdf:type ui:group ;
ui:child
[ rdf:type log:LogEventFormBody ;
arg:resource spin:_this ;
ui:childIndex 0
] ;
ui:child
[ rdf:type app:Object ;
arg:label "Report type"^^xsd:string ;
arg:predicate log:reportType ;
ui:childIndex 1
]
] .
log:ReportUploadEvent
app:keyProperties (<http://purl.org/dc/terms/created> rdf:type log:reportType log:wellBoreName log:initiatedBy log:onBehalfOf log:outcome rdfs:comment) ;
ui:instanceView
[ rdf:type ui:group ;
default:subject spin:_this ;
ui:child
[ rdf:type log:LogEventFormBody ;
arg:resource spin:_this ;
ui:childIndex 0
] ;
ui:child
[ rdf:type app:ColumnLayout ;
arg:colWidths "50%,50%"^^xsd:string ;
arg:width "600px"^^xsd:string ;
ui:child
[ rdf:type app:Object ;
arg:label "Report type"^^xsd:string ;
arg:predicate log:reportType ;
ui:childIndex 0
] ;
ui:child
[ rdf:type app:Object ;
arg:label "Well bore name"^^xsd:string ;
arg:predicate log:wellBoreName ;
ui:childIndex 1
] ;
ui:childIndex 1
]
] .
<http://www.reportinghub.no/system/swp/SWP-logging>
rdf:type owl:Ontology ;
owl:imports <http://appschema.org> , <http://www.reportinghub.no/system/schema/logging> ;
......