Toggle navigation
Toggle navigation
This project
Loading...
Sign in
data.posccaesar.org
/
npd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Authored by
Holger Knublauch
2012-01-05 09:29:31 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5e39f55e20112a1fcfdccb75ebe822b370c3d78f
5e39f55e
1 parent
52c9e062
Added additional customization to Log viewer
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
104 additions
and
14 deletions
appschema.org/app.www/app.js
appschema.org/imports/searchResultsGrid.uispin.html
www.reportinghub.no/system/swp/SWP-logging.ui.ttl
appschema.org/app.www/app.js
View file @
5e39f55
...
...
@@ -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.
...
...
appschema.org/imports/searchResultsGrid.uispin.html
View file @
5e39f55
...
...
@@ -54,15 +54,13 @@
{
=
?
onSelect
}
},
<
/ui:if
>
auto
W
idth
:
true
,
height
:
'
100%
'
,
auto
w
idth
:
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
...
...
www.reportinghub.no/system/swp/SWP-logging.ui.ttl
View file @
5e39f55
...
...
@@ -232,8 +232,8 @@ log:LogEventFormBody
]
;
ui:
child
[
rdf:
type
app:
ColumnLayout
;
arg:
colWidths
"
66%,34
%"
^^
xsd:
string
;
arg:
width
"
5
00px"
^^
xsd:
string
;
arg:
colWidths
"
50%,50
%"
^^
xsd:
string
;
arg:
width
"
6
00px"
^^
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>
;
...
...
Please
register
or
login
to post a comment