Generate statistics from repository database
Hi all,
We need to deliver a montly report to the customer including information about the alerts that GC has generated over the whole month.
Righ now we are doing it counting manually the received mails, since the process is quite slow and innacurate, is it possible to access directly to the repository DB and get all this information automatically?
Help will be really appreciated
Regards,
Luis
Have a look at the sysman@repository objects:
MGMT$ALERT_CURRENT
MGMT$ALERT_HISTORY
MGMT$ALERT_NOTIF_LOG
MGMT$POLICY_VIOLATION_HISTORY
MGMT_VIOLATIONS
Regards,
Martin
Similar Messages
-
i wish to generate reports from the database an out put it
but i need to enter a date from and to ina html input box
in the input box a data of range will be input from a start
to latest
latest being the default as today's date.
any help tips snipplets, concepts , turot=rails.
thankseasycfm.com has tutorials for people who are brand new.
If you don't know much about sql, I have heard good things
about the book, Teach Yourself SQL in 10 Minutes by Ben
Forta. -
Generating XML From the Database
I'm having trouble formatting xml generated from the database. Here is the format I am trying to generate:
<ADB_DOCUMENT DataSource="CUSTOM_ATTR" FormatVersion="1.1">
<CUSTOM Table="LOT" Name="K12345.01">
<ATTR Name="LOT_GROUP_ID" Value="FU023" />
<ATTR Name="INGOT_ID" Value="FU023-002001" />
<ATTR Name="VENDOR_LOT" Value="F98765-1" />
</CUSTOM>
<CUSTOM Table="PRODUCT" Name="KT5499">
<ATTR Name="PHOTOCODE" Value="P-89" />
<ATTR Name="DIE_STATUS" Value="" />
<ATTR Name="WAFER_SIZE" Value="200" />
</CUSTOM>
<CUSTOM Table="EQUIPMENT" Name="KLA21XX">
<ATTR Name="VENDOR" Value="KLA-Tencor" />
<ATTR Name="GRADE" Value="A" />
<ATTR Name="SERVICE" Value="NICE" />
<ATTR Name="QUALITY" Value="WORLD-CLASS" />
</CUSTOM>
</ADB_DOCUMENT>
The data is selected from a view. The SQL looks like this:
SELECT ADB_DOCUMENT_DATASOURCE as "DataSource",
ADB_DOCUMENT_FORMATVERSION AS "FormatVersion",
CUSTOM_TABLE as "Table",
CUSTOM_NAME AS "Name",
ATTR_NAME AS "Name",
ATTR_VALUE AS "Value"
FROM EXPORT_TABLE;
Here is an insert statement for the data:
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','ApcDicdPriority','1');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','ApcOvlPriority','1');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','ApcOvlThread','353V1A1_XXXX');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','ApcOvlTypUsed','45');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','ERFID','EXECUTED');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','GateCD_Target_PLN','MEDIUM');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','GateCD_Value','48.29');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','LastReticle','3365DK0A0A1');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','LastStepper','STP1308');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','OOC','DDT');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','PPCD','MD201020001UN');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','PPCDLevel','1');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','SAPMaterialNumber','50000392');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','ShipDelay','1');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','TurnkeyType','J');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','YMSStepID','M2-MSKADI');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','ApcDicdPriority','0');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','ApcOvlPriority','0');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','ApcOvlThread','354V4C1_XXXX');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','ApcOvlTypUsed','45');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','GateCD_Target_PLN','HOT');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','GateCD_Value','47.634');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','LastReticle','3250CU0TJC1');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','LastStepper','STP403');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','SAPMaterialNumber','50001396');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','ShipDelay','5');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','TurnkeyType','J');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','YMSStepID','TJ-MSKADI');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','SUB_LOT_TYPE','PROD-PO');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','SUB_LOT_TYPE','PROD-PX');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','STF_VERSION','3365DI.C0');
Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','STF_VERSION','3250CN.C0');
This is the sqlxml that I have created.
SELECT XMLElement(
"ADB_DOCUMENT" ,
XMLAttributes(ADB_DOCUMENT_DATASOURCE as "DataSource", ADB_DOCUMENT_FORMATVERSION AS "FormatVersion"),
XMLElement(
"CUSTOM",
XMLAttributes(CUSTOM_TABLE as "Table", CUSTOM_NAME AS "Name"),
XMLAgg(
XMLElement(
"ATTR",
XMLAttributes(ATTR_NAME AS "Name", ATTR_VALUE AS "Value")
) AS XML
FROM EXPORT_TABLE
GROUP BY ADB_DOCUMENT_DATASOURCE, ADB_DOCUMENT_FORMATVERSION, CUSTOM_TABLE, CUSTOM_NAME;
And this is the output generated from the sqlxml:
<ADB_DOCUMENT DataSource="CUSTOM_ATTR" FormatVersion="1.1"><CUSTOM Table="LOT" Name="U0C28.00"><ATTR Name="ApcDicdPriority" Value="1"></ATTR><ATTR Name="STF_VERSION" Value="3365DI.C0"></ATTR><ATTR Name="SUB_LOT_TYPE" Value="PROD-PO"></ATTR><ATTR Name="YMSStepID" Value="M2-MSKADI"></ATTR><ATTR Name="TurnkeyType" Value="J"></ATTR><ATTR Name="ShipDelay" Value="1"></ATTR><ATTR Name="SAPMaterialNumber" Value="50000392"></ATTR><ATTR Name="PPCDLevel" Value="1"></ATTR><ATTR Name="PPCD" Value="MD201020001UN"></ATTR><ATTR Name="OOC" Value="DDT"></ATTR><ATTR Name="LastStepper" Value="STP1308"></ATTR><ATTR Name="LastReticle" Value="3365DK0A0A1"></ATTR><ATTR Name="GateCD_Value" Value="48.29"></ATTR><ATTR Name="GateCD_Target_PLN" Value="MEDIUM"></ATTR><ATTR Name="ERFID" Value="EXECUTED"></ATTR><ATTR Name="ApcOvlTypUsed" Value="45"></ATTR><ATTR Name="ApcOvlThread" Value="353V1A1_XXXX"></ATTR><ATTR Name="ApcOvlPriority" Value="1"></ATTR></CUSTOM></ADB_DOCUMENT>
<ADB_DOCUMENT DataSource="CUSTOM_ATTR" FormatVersion="1.1"><CUSTOM Table="LOT" Name="U100M.00"><ATTR Name="ApcDicdPriority" Value="0"></ATTR><ATTR Name="STF_VERSION" Value="3250CN.C0"></ATTR><ATTR Name="SUB_LOT_TYPE" Value="PROD-PX"></ATTR><ATTR Name="YMSStepID" Value="TJ-MSKADI"></ATTR><ATTR Name="TurnkeyType" Value="J"></ATTR><ATTR Name="ShipDelay" Value="5"></ATTR><ATTR Name="SAPMaterialNumber" Value="50001396"></ATTR><ATTR Name="LastStepper" Value="STP403"></ATTR><ATTR Name="LastReticle" Value="3250CU0TJC1"></ATTR><ATTR Name="GateCD_Value" Value="47.634"></ATTR><ATTR Name="GateCD_Target_PLN" Value="HOT"></ATTR><ATTR Name="ApcOvlTypUsed" Value="45"></ATTR><ATTR Name="ApcOvlThread" Value="354V4C1_XXXX"></ATTR><ATTR Name="ApcOvlPriority" Value="0"></ATTR></CUSTOM></ADB_DOCUMENT>
The problems I am trying to resolve are:
1. THE <ADB_DOCUMENT> tag is generated for each row. I just want 1 <ADB_DOCUMENT> tag to wrap the entire document.
2. I need a linefeed character (\n in c) at the end of each tag as in the sample output in the beginning of the post. I tried concatenating a chr(10) to the end of the </ATTR> tags, but sqlplus truncates anything after the chr(10) in the output file. (I am piping this output to a file using a table function).
Any help would be greatly appreciated!1. THE <ADB_DOCUMENT> tag is generated for each row. I just want 1 <ADB_DOCUMENT> tag to wrap the entire document.You have to deal with two levels of aggregation, so here's one way to do it :
SELECT XMLElement("ADB_DOCUMENT",
XMLAttributes(adb_document_datasource as "DataSource", adb_document_formatversion as "FormatVersion"),
XMLAgg(custom_element)
) as xmlresult
FROM (
SELECT adb_document_datasource
, adb_document_formatversion
, XMLElement("CUSTOM",
XMLAttributes(custom_table as "Table", custom_name AS "Name"),
XMLAgg(
XMLElement("ATTR",
XMLAttributes(attr_name AS "Name", attr_value AS "Value")
) as custom_element
FROM export_table
GROUP BY adb_document_datasource
, adb_document_formatversion
, custom_table
, custom_name
GROUP BY adb_document_datasource
, adb_document_formatversion
2. I need a linefeed character (\n in c) at the end of each tag as in the sample output in the beginning of the post.Do you really need to introduce whitespaces in your document?
Depending on your database version, there are two methods to serialize your output and pretty-print it :
11g : XMLSerialize function, with the INDENT option
10g : Extract function
For example,
SELECT XMLSerialize(document
XMLElement("ADB_DOCUMENT",
as clob indent size = 2
FROM ...
SELECT XMLElement("ADB_DOCUMENT",
).extract('/*').getclobval()
FROM ...You can then use DBMS_XSLPROCESSOR.clob2file to write the file with a single call.
Edited by: odie_63 on 18 août 2011 22:14 -
How to Programmatically generate .asdatabase from SSAS database from SSAS server?
Is there a way to Programmatically generate .asdatabase file and other ssas config files from SSAS database? Not by devenv .dwproj.
Thank you very much for your answer.
I know how to generate the asdatabase: (I can do it by devenv.exe project.dwproj
or build the ssas project manually). How ever I want to programmatically generate
.asdatabase by C#.
I
programmatically did
some modifications on the SSAS database(drop some dimension and measures), then I want to generate .asdatabase so that i can deploy it to the server. I know i can do it by xmla as well. But I really like deploying the cube by .asdatabase, not xmla.
Any thoughts?
Thanks,
Jackie -
Generate ERD from Existing Database
Hi,
i need some help getting an ERD from an already existing database.... i'm pretty sure there are tools available... so if any one could suggest some, i'd really appreciate it.
thanksuser9285365 wrote:
Sorry about the vague reply.... i created two different data sources... the first using the "Oracle in XE" driver and the second using the "Microsoft ODBC for Oracle driver" when i try connecting using the first i get the following error: _ODBC Error: 08004 [Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified_So what you specified as the "server" was not found in the tnsnames.ora
the second gives me the following: _ODBC Error: NA000 [Microsoft][ODBC driver for Oracle][Oracle]ORA-06413: Connection not open_
Not familiar with that one
i am using: Oracle 10g express and MS Visio 2007 my operating system is Windows 7
Is your oracle product certified for windows 7?
thanksFWIW, I once had an issue where two supposedly identical desktops, running the same access (odbc) file (same, as in same, from a shared server) and one had to use the oracle driver, the other the MS driver .... I avoid odbc every chance I get. -
Generating ERD from existing database
hi,
i'm trying to get an ERD for a release 9.2 database. i've been told that using the designer tool is the best way to do this - is this true?
where can i pick up documentation/instructions on how to use the designer to get the ERD?
do i need a specific version?
thanks for the help
santosh sewlalhi,
i've been trying to generate an ERD using 9i Designer. i've been able to capture a server model diagram, but i get errors (eg. CDS-1504, RME-0020). i've checked metalink, and apparently designer does not support spatial data types or clob/blob datatypes.
is there a workaround or some other tool i could use? -
Generate report from database using .xsl style sheet
I am trying to view test result histories for specific uut serial numbers.
We are logging all test data to the default access database template that was provided with Teststand.
Is there a method of generating reports from the database that match the format of those generated at runtime?
I was surprised to find that the default access database did not contain any gui or pre-made reports matching the xsl style sheets chosen in the report options dialog.
My database skills are weak, I am able to browse the raw data and I see the relationships between some of the tables, but the prospect of recreating one of the xml report formats in access seems daunting. Am I missing something? what is the best way to print a uut report from test data stored in access?Hello msears,
Thank you for posting on the NI Discussion Forums. Unfortunately there are no tools available in TestStand for directly converting an Access database to a formatted .xsl report. It is possible to have a step in a sequence that reads the information from the database, and create the .xsl report as if it had been generated at sequence run-time, by writing those values directly to Locals.ResultList. Admittedly, this would require some knowledge of Microsoft Access, and the ability to write a program that will extract information from the database, in order to include it as a step in the sequence.
Is there anything stopping you from creating a formatted .xsl report when the sequence is run (instead of trying to create it from previous data stored in an Access database)?
Chris_G
Sr Test Engineer
Medtronic, Inc. -
Hi there,
i am a jsp novice and i am looking to generate chart using data in a dbase. can anyone point me in the right direction how to use JChart(in jsp) to generate chart from a database? I am looking to generate Barcharts and Line charts.
it is my first attempt and i do not know where to start from. Any help would be greatly appreciated.
thanks
ravikiran
mail : [email protected]hai man,
will generating of the graphs take time... what will be the execution tie of a graph... for example if i want to generate the work performance of a team from the performance sheet i have and wanted it to be dynamically displayed( how much time it will take) since when I am doing the same in excel it is taking around 5 minutes to display the graph.will it take the same time when i use the technologies that were mentioned here ...
i need ur help is it possible to generate the graphs online with dynamic data.
SUGGEST ME ABOUT PROCEEDING FURTHER..
THANKS
RAVI -
To find out the history of alerts generated from repository .
Hi,
I have my grid control repository database with following details:
Version:- Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit
OS:- AIX
How can I find out the alerts generated in the past. For example, currently i need following two informations :
1. How many critical alerts where generated related to temp tablespace in last three months and for which database ?
2. During a os patching activity, it was found that targets where not blacked out properly. How do we find that what where the targets that were not balcked out properly ?
Is there any way to find the above two information from the repository database?
Regards
VinitaI think you might have the wrong forum.
-
How can I generate a real-time highchart from my database data?
I have looked several links; however, I couldn't find a working demo showing how to implement a highchart using data from a database.
Objective: I want to generate a real time highchart line graph getting data from my database. What I want is very similar to the
HighChart Demo which provides a real-time highchart with randomly generated values. It is also similar by X-axis and Y-axis, for I want my x-axis to be "Time" (I have a DateTime column in my database) and y-axis to be an integer (I have
a variable for that as well in my database).
Please I need help in sending the model data to my razor view.
Note that I am already using SignalR to display a realtime table. I also want to know if it can be used to automatically update the highchart as well.
Below is the code snippet of my script in the view. I have used the code provided in
HighChart Demo link for generating the highchart. Please tell me where should I apply the changes on my code.
@section Scripts{
<script src="~/Scripts/jquery.signalR-2.2.0.js"></script>
<!--Reference the autogenerated SignalR hub script. -->
<script src="~/SignalR/Hubs"></script>
<script type="text/javascript">
$(document).ready(function () {
// Declare a proxy to reference the hub.
var notifications = $.connection.dataHub;
//debugger;
// Create a function that the hub can call to broadcast messages.
notifications.client.updateMessages = function () {
getAllMessages()
// Start the connection.
$.connection.hub.start().done(function () {
alert("connection started")
getAllMessages();
}).fail(function (e) {
alert(e);
//Highchart
Highcharts.setOptions({
global: {
useUTC: false
//Fill chart
$('#container').highcharts({
chart: {
type: 'spline',
animation: Highcharts.svg, // don't animate in old IE
marginRight: 10,
events: {
load: function () {
// set up the updating of the chart each second
var series = this.series[0];
setInterval(function () {
var x = (new Date()).getTime(), // current time
y = Math.random();
series.addPoint([x, y], true, true);
}, 1000);//300000
title: {
text: 'Live random data'
xAxis: {
type: 'datetime',
tickPixelInterval: 150
yAxis: {
title: {
text: 'Value'
plotLines: [{
value: 0,
width: 1,
color: '#808080'
tooltip: {
formatter: function () {
return '<b>' + this.series.name + '</b><br/>' +
Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x) + '<br/>' +
Highcharts.numberFormat(this.y, 2);
legend: {
enabled: false
exporting: {
enabled: false
series: [{
name: 'Random data',
data: (function () {
// generate an array of random data
var data = [],
time = (new Date()).getTime(),
i;
for (i = -19; i <= 0; i += 1) {
data.push({
x: time + i * 1000,
y: Math.random()
return data;
function getAllMessages() {
var tbl = $('#messagesTable');
var data = @Html.Raw(JsonConvert.SerializeObject(this.Model))
$.ajax({
url: '/nurse/GetMessages',
data: {
id: data.id,
contentType: 'application/html ; charset:utf-8',
type: 'GET',
dataType: 'html'
}).success(function (result) {
tbl.empty().append(result);
$("#g_table").dataTable();
}).error(function (e) {
alert(e);
</script>Hi Sihem,
Thank you for contacting National Instruments. Using the LabVIEW Real-Time module, you can do development without actually having a target. While viewing the project explorer window, you can do the following steps:
Right click on the project
Select New >> Targets and Devices
Select the "New Target or Device" radio button
Select the target you would like to develop on.Information about the LabVIEW Real-Time Module can be found here.
Regards,
Kevin H
National Instruments
WSN/Wireless DAQ Product Support Engineer -
Generating an Entity Bean from a Database Table
I am following the tutorial "How Do I: Generate an Entity Bean from a Database
Table?" and in that process doing the "Configuring a Data Source". This is the
message I get when I configure a data source per the tutorial and click OK. This
data source exists and the information is correct that I have supplied.
Do I need to put the MS jars somewhere to enable this?
See attached fileI've just figured it out. An input source also takes a Reader in its constructor. I was thinking that it only took an InputStream, and as the Serializer requires you to set a Writer on it, I was finding it impossible to convert between bytes and chars. Now, I have simply set a blank CharArrayWriter on the Serializer, got a char[] from it once the Serializer has written the Document to the stream, and then constructed a CharArrayReader with this char[]. It works fine now. Not that anyone read the problem anyway cos I solved it a few minutes after I posted it. Considering it first cropped up about 4 months ago and it has been niggling ever since, I am pleased!
-
I'm a total newbie in XML DB and need advice on generating XML from database.
The situation is the following: there is a legacy web application which uses an XML document as a configuration file. This document conforms to some well-defined schema. For instance:
<config>
<title value="TITLE" />
<subtitle value="SUBTITLE" />
<style url="default.css" />
<widgets>
<widget id="1" opened="true" />
<widget id="2" opened="false" />
</widgets>
</config>
It contains portions of static data which are common for all users as well as dynamic personal data.
Dynamic data comes from two sources:
1) security considerations (for instance, not all widgets are available for some users) - thus the "master" configuration content must be filtered, but not otherwise modified;
2) user preferences (for instance, user can set widget2 to be opened by default) - thus values of some attributes must be different for each user. When the user saves her preferences, the entire document with new values is posted back to server.
We want to try to store user preferences, apply security and generate personalized configuration documents using XML DB.
So we need advice on storage models and generation procedures - which should be more efficient and easy to support or extend.
Please note, that there is no requirement to actually store data as XML.
Thanks in advance!
P.S.: Sorry for the incomplete initial post.
Edited by: WxD on 27.09.2010 11:45Hi,
See this link for more details
http://www.stanford.edu/dept/itss/docs/oracle/10g/appdev.101/b10790/xdb13gen.htm -
Generating tables from database
Hello,
What Im trying to do is generate table information from my
database. What Im doing right now is retrieving the information
this way, which is combersome because alot of pages would be
different because they dont all have the same number of columns.
this is how the code looks now:
<cfloop
query="addtobom">#toppage#</a></td></cfloop>
<td><div
align="center">#column1#</a></div></td>
<td><div
align="center">#column2#</a></div></td>
<td><div
align="center">#column3#</a></div></td>
<td><div
align="center">#column4#</a></div></td>
<td><div
align="center">#column5#</a></div></td>
<td><div
align="center">#column6#</a></div></td>
<td><div
align="center">#column7#</a></div></td>
</tr>
</cfoutput>
If there an easy line of code I can put in here that queries
the database for columns that have info and avoiding null columns.
Thanks for any helpNormally the table of data you display matches the query.
Your code will not run the way you have it. This should run
but I am not
sure what you are doing here.
<cfoutput query="addtobom" maxrows="1"
startrow="1">#toppage# </cfoutput>
<table>
<cfoutput query="addtobom">
<tr>
<td align="center">#column1#</td>
<td align="center">#column2#</td>
<td align="center">#column3#</td>
<td align="center">#column4#</td>
<td align="center">#column5#</td>
<td align="center">#column6#</td>
<td align="center">#column7#</td>
</tr>
</cfoutput>
</table>
You can check rows for null but I do not think you can check
columns /
fields.
It depends on the database but
WHERE (NOT (Cat IS NULL))
"dennisquery" <[email protected]> wrote in
message
news:ekbcf5$7nm$[email protected]..
> Hello,
>
> What Im trying to do is generate table information from
my database. What
> Im
> doing right now is retrieving the information this way,
which is
> combersome
> because alot of pages would be different because they
dont all have the
> same
> number of columns.
>
> this is how the code looks now:
>
> <cfloop
query="addtobom">#toppage#</a></td></cfloop>
>
> <td><div
align="center">#column1#</a></div></td>
> <td><div
align="center">#column2#</a></div></td>
> <td><div
align="center">#column3#</a></div></td>
> <td><div
align="center">#column4#</a></div></td>
> <td><div
align="center">#column5#</a></div></td>
> <td><div
align="center">#column6#</a></div></td>
> <td><div
align="center">#column7#</a></div></td>
> </tr>
> </cfoutput>
>
> If there an easy line of code I can put in here that
queries the database
> for
> columns that have info and avoiding null columns.
>
>
> Thanks for any help
> -
I need to auto-generate an XSD file from a database. I'm told there are free tools out there to do this but haven't had any luck finding any. Any ideas? I don't want to have to write this by hand.
Thanks, I'll take a look at that. Are there any free tools available to do this? I heard a rumor that Hibernate will do this. Let me know if anyone has any other ideas.
-
i am new to the flex. i want to generate the mxml file from
the data feched from the database. e.g account info conatains the
account_id and account_type then i want to generate the flex page
contains info about the account having only 2 fields. these fields
may differ as per account information is considered. Any body
having sample app.
any pointers how we can do it??Flex doesnt really work like a ColdFusion or ASP type page
where you insert dynamic variables to render the page. With Flex
the best way to do is build the application and setup those
variables in your MXML files before you compile to SWF. Then in
your HTML page wrapper you pass what is called Flash Variables or
Flash Vars to the application. So for example you pass your
account_id and account_type to the Flex movie and the Flex
application can then use them based on how you set them up. Do a
search for Flex and Flash Vars.
Maybe you are looking for
-
Dear gurus, What is the steps of process for change the excise duty from 14 % to 10 %. Regards R.Rajendran
-
Where i can set the path to retreive the Km files
Hello All, How to access the KM content files in my portal Application. Where I can set the path to retrieve any file from KM. Please can any one help me. Thanks in Advance
-
Easy way to remove duplicate songs
After a no of ITunes disasters (most of which I suspect were my fault) I have no ended up with a full library which has a lot of duplicates songs. Being an essentially lazy person is there an easier way to sort them rather than simply displaying the
-
Exif data gets stripped exporting to camera roll
I import pics from camera roll to edit in PST. I then export back to camera roll so tha I can use another picture management app to sort my edited pics into files. However the original exif data seems to get stripped out, especially the original date
-
Hi, I am trying to deploy some xsds to the SOA MDS .. I am following the SOA developer's guide (http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10224/toc.htm - 43.4 Deploying and Using Shared Metadata Across SOA Composite Applications)