Simple data collector
First off, its been years since I've written any code and that was 1st and 2nd year college programming classes with Visual Basic 6 (I still have the install CDs). So basically I remember only concepts of IF THEN ELSE, etc not the nuts and bolts of
writing the code :)
I am wanting to create a simple data collector for my photography business. I want the students to enter their names and emails into forms and the app to enter the info into an excel spreadsheet. When the student hits enter, the app prints a page with their
name in large letters which I include in their first shot (so later I can put a face with a name)
I have created a form that has the visual look of my desired app, I need help with the nuts and bolts...
Thanks so much for any help... Tom
Tom,
When I'm done with this I'll zip up the project folder and upload it for you (if you want me to). That will be easier that copy/paste.
I have a start on it and a preliminary test so that you can see what I have here. I have namespace called "Student" and some classes in that namespace as shown on a
page of my website here.
The way that I have it set up, the parent's e-mail(s) is optional. If you want it to be mandatory I can make it that way, but you might want to re-think that - not all parents will have one. Anyway, the following shows my first test:
Option Strict On
Option Explicit On
Option Infer Off
Public Class Form1
Private studentList As New List(Of Students.StudentData)
Private Sub Form1_Load(sender As System.Object, _
e As System.EventArgs) _
Handles MyBase.Load
' Test it here
Try
Students.StudentData.AddNewStudent(studentList, _
"Frank", _
"Smith", _
Students.StudentData.StudentLevel.Senior, _
"[email protected]")
' Uncomment the following out and it will
' throw an exception about the e-mail being
' a duplicate:
'Students.StudentData.AddNewStudent(studentList, _
' "John", _
' "Doe", _
' Students.StudentData.StudentLevel.Graduate, _
' "[email protected]")
Students.StudentData.AddNewStudent(studentList, _
"Mary", _
"Jones", _
Students.StudentData.StudentLevel.UnderGrad, _
"[email protected]")
Students.StudentData.AddNewStudent(studentList, _
"Jim", _
"Anderson", _
Students.StudentData.StudentLevel.UnderGrad, _
"[email protected]", New String() _
{"[email protected]", _
"[email protected]"})
Students.StudentData.ExportToEncryptedXML(studentList)
Students.StudentData.ImportFromEncryptedXML(studentList)
Stop
Catch ex As Exception
MessageBox.Show(String.Format("An error occurred:{0}{0}{1}", _
vbCrLf, ex.Message), _
"Program Error", MessageBoxButtons.OK, _
MessageBoxIcon.Warning)
End Try
End Sub
End Class
The XML file is saved into the program's Application Data folder which one of the classes automatically creates for you. Even if that were to be discovered, it wouldn't do anyone a lot of good.
This is what they'd find based on the data entered as shown above in my test.
Tell me your thoughts of this so far please?
Still lost in code, just at a little higher level.
Similar Messages
-
Stats of Data Collector from Profiler Trace
Hi,
I managed to successfully create a data collector. The collection set/item definitions are generated from the SQL Server Profiler tool.
The trace definition is simple and is as follows.
SELECT @trace_definition = convert(xml,
N'<ns:SqlTraceCollector xmlns:ns="DataCollectorType" use_default="0">
<Events>
<EventType name="Stored Procedures">
<Event id="10" name="RPC:Completed" columnslist="1,8,11,12,13,35" />
</EventType>
<EventType name="TSQL">
<Event id="12" name="SQL:BatchCompleted" columnslist="1,11,8,12,13,35" />
</EventType>
</Events>
<Filters>
<Filter columnid="8" columnname="HostName" logical_operator="AND" comparison_operator="NOTLIKE" value="XXXX" />
<Filter columnid="11" columnname="LoginName" logical_operator="AND" comparison_operator="LIKE" value="YYYY" />
<Filter columnid="35" columnname="DatabaseName" logical_operator="AND" comparison_operator="LIKE" value="ZZZZ" />
</Filters>
</ns:SqlTraceCollector>
The data collection is scheduled and started. There are no errors shown in the logs.
I created this collection to store the execution time of various SQL statements executed by a particular user connecting from particular machine in a particular database? I am struggling to find out the SQL query to query Management data warehouse to see
the stats. Could anyone let me know which table/view can be used to find out the stats? I can't find the data in snapshots.performance_counter_values table.
Thanks,
SreeCheck this link and this link is having few more details and see if this may help you..
http://blogs.msdn.com/b/sqlprogrammability/archive/2009/01/29/using-sql-server-2008-management-data-warehouse-for-database-monitoring-in-my-application.aspx
Raju Rasagounder Sr MSSQL DBA -
Error Detail
Exception CX_DBA_ADBC in program RAGS_SISE_ACTIVITY_JOB line 0
Kernel Error ID:
WP ID: 23
WP PID: 28977
SYSID: CR5
SY-SUBRC: 0
SQL statement:
Database: CR5
caused by
Exception CX_SQL_EXCEPTION in class CL_SQL_STATEMENT
Kernel Error ID:
DB Error: Yes
SQL Code: 444-
SQL Message: SQL0444N Routine "*TASK_ADD" (specific name "SQL140704080729140") is implemented with code in library or path "...ib/function/SYSPROC.ADMIN_TASK_ADD", function "*" which cannot be accessed. Reason code: "4". SQLSTATE=42724 row=1
DB Object Exists: No
Duplicated Key: No
Internal Error: 1
Invalid Cursor: No
Unknown Connection: No
Connection Closed: No
System Detail:
Solman 7.1
ST 710 0010 SAPKITL710 SAP Solution Manager Tool
SAP_BASIS 702 0013 SAPKB70213 SAP Basis Component
Managed system:
SAP CRM ABAP 7.0
SAP_BASIS 701 0005 SAPKB70105 SAP Basis Component
SAP_ABA 701 0005 SAPKA70105 Cross-Application Component
PI_BASIS 701 0005 SAPK-70105INPIBASIS Basis Plug-In
ST-PI 2008_1_700 0008 SAPKITLRD8 SAP Solution Tools Plug-In
CRMLOY 700 0005 SAPK-70005INCRMLOY CRM Loyalty Management 700
SAP_BS_FND 701 0005 SAPK-70105INSAPBSFND SAP Business Suite Foundation
SAP_BW 701 0005 SAPKW70105 SAP Business Warehouse
LCAPPS 2005_700 0007 SAPKIBHD07 LC Applications (LCAPPS) 2005_700
Database DB2
db2level
DB21085I Instance "db2cr5" uses "64" bits and DB2 code release "SQL09016" with
level identifier "01070107".
Informational tokens are "DB2 v9.1.0.6", "s081007", "U817474", and Fix Pack
"6".
Activity detail:
We are performing managed system configuration for CRM into Solman by using solman_setup transaction. While performing the Database Extractor Setup in step 8 we have observed above error.
Action take at our end:
1. Clean the LMDB and restart the configuration. - no luck
2. Upgrade the hostagent at CRM - No luck
3. Update the SLD for CRM entry - no luck
4. implemented SAP notes:
875986 Note Assistant: Important notes for SAP_BASIS up to 702
1246964 Note Assistant: Master language of notes incorrect
1262653 SPAU: New object is deleted after note is reset
1309424 DB6: DBA Cockpit Correction Collection SAP Basis 7.01 / 7.11
1335017 DB6:"Remove Redundant Restrictions" can return wrong results
1349277 Note Assistant: Method cannot be implemented
1365677 Note Assistant: Runtime error MOVE_CAST_ERROR during implmtn
1372652 DB6: Short dump when viewing diaglog due to NULL bytes
1373957 DB6: CX_SY_CONVERSION_OVERFLOW in new EXPLAIN
1376543 DB6: OPTIONS parameters for backup jobs in DB13
1378499 DB6: CLI error CLI0112E with "REORGCK_ALL" job
1379260 DB6: Add BW query name as comment to SQL statements
1379346 DB6: Scheduling of data collectors fails
1381179 DB6: Incorrect values for 'number of objects in tablespace'
1382634 DB6: Unable to create view 'SAPTOOLS.DBH_TABCLASS'
1382996 DB6: Update of DPW Back-End in Monitored DBs does not work
1384238 DB6: Defect scheduler on DB2 9.1 FP7/FP8 for LUW on Linux
1387022 DBA Cockpit: Month displayed incorrectly in DB13C
1387297 DB6: SQL-Fehler 901 during RUNSTATS and REORGCHK
1397709 Ignore Dynpro element fields AGLT and ADEZ in SNOTE/CWB
1398258 DB6: Job REORGCK_ALL places load on package cache
1400843 DB6: Incorrect display of key fields in EXPLAIN
1412719 SNOTE: error when implementing enhancement implementations
1413008 DB6: SQL0206N in function module DB6_PM_LOCKSNAP
1414624 DB6: Performance views if database monitors are deactivated
1414626 DB6: Incorrect display of file system sizes of containers
1415680 Note Assistant: Incorrect status in subsequent systems
1421157 DB6: SQL error 204 when accessing table DBSTATC
1425487 SE24: Error regarding READ-ONLY for complex attributes
1426092 DB6: Incorrect DROPPED TABLE clause for tablespaces
1426480 DB2: Incorrect display of registry values for DPF systems
1427030 DB6: Container specifications for tablespaces not changeable
1429082 DB6: No REORG after deactivating compression
1429687 DB6: SQL cache performance
1438168 DB6: REORGCHK recommendations for indexes are missing
1444373 DB6: Loading the package cache with monitor functions
1449482 DB6: Error message 'Command LIST_DB2DUMP failed'
1451958 DBA Cockpit: Incorrect start time for jobs
1452197 DB6: SQL error 100 in job REORGCK_ALL
1452502 DBA Cockpit: Jobs are missing in central planning calendar
1455897 DB6: Display of data classes is not updated
1456379 DB6: No display of indexes in data classes
1460895 DB6: SQL0104N during creation of WLM threshold
1462415 DB6: SQL -444 error messages in system log
1462855 DB6: Incorrect database name in HA environment
1464800 DB6: SQL Commands executes automatically on system change
1464858 DB6: COMPUTE_BCD_OVERFLOW during EXPLAIN Test Execute
1469515 DB6: Runtime error GETWA_NOT_ASSIGNED_RANGE in SAPLSDB6MON
1485313 DBA Cockpit: Incomplete system entries after SLD import
1486972 DB6: Parameters for DB/DBM configuration cannot be changed
1489968 DBA: DBA Cockpit WebDynpro does not care about HTTPURLLOC
1496515 DB6: SQL error 1428N when starting the DBA Cockpit
1501130 DB6: SQL error 802 in DB6_DIAG_COUNT_TABLE_ENTRIES
1508074 RZ20: 'Connection' attribute does not report alerts
1509121 DBA Cockpit: Endless loop occurs when starting DBA Cockpit
1511803 DB6: DB_TABLE_DATA_READ does not return data
1521525 DB6: Table display is not sorted
1522617 DB6: Availability of BW-specific functions in DBA Cockpit
1532114 DB6: Too many locks when collecting table history
1536787 DBA Cockpit: WebDynpro Explain - LOADDATA requires a model
1542311 DB6: Runtime error BCD_OVERFLOW in auto maintenance display
1546866 DB6: Runstats_DBSTATC interprets runtime param. incorrectly
1551729 DB6: Incorrect number of key fields in EXPLAIN
1552812 DB6: Use of db2sap functions
1559699 DB6: Missing data in SQL cache display
1559967 DB6: SQL error 206 when collecting the table history
1563327 DB6: SQL error SQL0551N when accessing SYSSTAT.TABLES
1568800 DB6: Error when deleting alert messages
1569592 DB6: SQL error SQL0433N in EXPLAIN
1569669 DB6: Incomplete history for performance data
1571365 DB6: SQL error SQL0443N in alert monitoring of DPF system
1576094 DB6: Database error SQL1751N in partitioning wizard
1597281 DB6: Incorrect compression displays for tables
1599764 DB6: SQL error 1428 when calling transaction SM50
1602403 DB6: No VOLATILE attribute after RUNSTATS or REORG job
1613270 DB6: Runtime error DYNPRO_FIELD_CONVERSION in DBA cockpit
1615698 DBA Cockpit: Incorrect date selection in DB13C
1619084 DBA Cockpit: Runtime err MESSAGE_TYPE_X when alert displayed
1619636 DBA Cockpit: Daily scheduling is not deleted
1624436 DBA Cockpit: Errors when accessing SHM area CL_DBA_SHM_AREA
1639631 DBA Cockpit: Failed schedulings in DB13
1720495 Invalid deimplementation of obsolete notes by Snote tool
Kindly suggest the correct solution to fix the issue.Dear Deepak
Thanks for quick response.
Note 1462415 - DB6: SQL -444 error messages in system log ( SAP_BW 701 SP7 suggested)
This is already implemented and updated in my 1st message.
Note 978319 - DB6: Incorrectly cataloged table functions
This note can not be implemented due to version issue.
Kindly suggest some more hints on top of what I already did.
Regards
Bipin -
Activity Reporting X Activity Data Collector
Hi,
there are two types of activity reporting in SAP Enterprise Portal, Activity Data Collector and Activity Reporting. The SAP documentation for the Activity Data Collector
(http://help.sap.com/saphelp_nw70/helpdata/EN/47/8ac2e51b141e1ee10000000a42189d/content.htm) specifies that the "Directory Name" property can be either a relative path or an absolute path on the server (<drive>:\dir).
However, the SAP documentation for the Activity Reporting (http://help.sap.com/saphelp_nw70/helpdata/en/45/74eeda9ba26975e10000000a114a6b/frameset.htm) does not explicitly specify that the "Directory Name" property can be an absolute path on the server.
I've started the Activity Reporting for KM documents, but I don't have permissions to re-start the server anytime in order to test all the possible configurations. For now, the "Directory Name" is an absolute path. Can the "Directory Name" property of Actitity Reporting (KM) be an absolute path on the server? In order to start the Activity Reporting (KM), is it required to first start the Activity Data Collector?
Thanks in advance,
DanielHi Daniel,
I don't think you need to activate the first Active Data Collector you mentioned,
there are two ADC releases - one for Portal and one for KM
Does your requeriments specify you must use an absolute path? Otherwise I'd
suggest using a relative path (/usr/sap/<SID>/...) - haven't tested absolute paths though.
so I don't know if that'd work.
There is How-To guide at SDN with detailed explanation of these topics, search and
elearning pages isn't working for me atm else I'd paste you the link but look for it:
SAP Enterprise Portal Usage Reporting (or Portal Activity Reporting)
by John Polus, Jan 14th, 2009
PDF 1.04Mb
regards,
Rafael -
Dynamic Drop Down creation using simple data types
Hi all,
I have got a requirement in which i have to create an iView which is going to have 6 drop down values and with in that 1 value is going to have sub values which needs to get displayed in the similar drop down fashion.
I have created a simple data type having enumeration of the 6 values and linked the same to iView with drop down by key which is working successfully. And for the purpose of sub values i have created a similar simple data type with two values and linked the same with a value attribute.
Well, can any one tell me the further process to proceed ?
Thanks in advance ...
VipinVipin,
There are quite some steps to achieve what you need. Since you have both your DropDownByKey elements defined and bound to context elements, it may make sense to keep the Second DropDownByKey element invisible and make it visible only when user selects a specified key from first DropDownByKey. To achieve this, follow these steps.
1. Create an action with a parameter "key" of type string.
2. Bind this action with onSelect event of your First DropDownByKey UI Element.
3. Do mapping of parameter "key" in your wdDoModifyView with following code.
if (firstTime)
final IWDDropDownByKey dk = (IWDDropDownByKey)view.getElement("DropDownByKey1");
// Replace DropDownByKey1 with id of your DropDownByKey Element.
dk.mappingOfOnSelect().addSourceMapping("key", "key");
4. Create a context attribute of type WDVisibility say "DDVisible" and bind to "visible" property of your second DropDownByKey.
5. Set DDVisible to NONE in wdInit().
wdContext.currentContextElement().setDDVisible(WDVisibility.NONE);
6. In onSelect action write this code to make second visible
if(key.equalsIgnoreCase("Two")){
//Replace "Two" with your required value.
wdContext.currentContextElement().setDDVisible(WDVisibility.VISIBLE);
else{
wdContext.currentContextElement().setDDVisible(WDVisibility.NONE);
This should give the desired results.
Hope this helps.
Vishwas. -
Differences between the Portal Data Collector and the Activity Data Collect
Hello,
I want to know what are the differences between the Portal Data Collector and the Activity Data Collector?
Best Regards.
Pablo Mortera.All of my SQL Server instances are sql server 2008r2 standard edition(10.50.2500). MDW is existing database, I try to setup collection sets for multiple instances and store data in one central MDW database
I create MDW in one instance, then run run configure Management Data Warehouse in target intance. collection sets were created successfully, but job failed with following error:
Executed as user: COCAD\INTDEPT01SQLAgentC10. The Management Data Warehouse version "00.00.0000.00" is not supported by the current data collector. Please upgrade the Management Data Warehouse by running the Management Data Warehouse Configuration
Wizard. Process Exit Code 5. The step failed.
Thanks
PAULqaz -
Hi,
I have an entity object with some attributes, one of them is called "CREATED_ON", which i have specified as a history column (created on).
I have specified a format type of Simple Date in my Control hint and a format of dd-MM-yyyy. I then created a view based on my entity and dragged the view as an adf creation form. I also dragged a commit button to commit my record.
However, the date that is stored in my database have a non-zero time component (e.g. 10-JUL-2007 10:46:22). This is a problem becuase in my search form, the search criteria does not work (it requires the exact time also to work). I do not want to use TRUNC in my SQL query.
Instead i want the date to be stored with the format mask that i have specified.
Can you please help me?
Thank youDo you really want to lose the time component altogether, or just make the query on date-without-time work?
There would be no way of recovering the information about when during the day the row was created if you truncate the time information, but it's possible to achieve if that's what you want. Both are possible to achieve.
To achieve the "losing the current time info forever" approach, add the following overridden method in your entity impl class that slightly changes the way the history attribute value is returned, in my case, for the HIREDATE attribute of an Emp example:
protected Object getHistoryContextForAttribute(AttributeDefImpl attributeDefImpl) {
Object ret = super.getHistoryContextForAttribute(attributeDefImpl);
if (attributeDefImpl.getIndex() == HIREDATE) {
ret = new Date(new java.sql.Date(((Date)ret).getValue().getTime()));
return ret;
}To achieve # 2 instead, just add a SQL-derived attribute to the view object with formula:
TRUNC(HIREDATE)and then use that sql-derived attribute in the query form instead of the normal HIREDATE attribute. -
I think the issue is with a long query in XML. Please, how to make this work?
Here are the definitions I used:
STEP 1 --- Find Collecter TYPE ID from
SELECT collector_type_uid ,* FROM [msdb].[dbo].[syscollector_collector_types_internal]
STEP 2 -- find the schedule
STEP 3 -- create collection SET using a SP
DECLARE @collectionsetid int
DECLARE @collectionsetuid uniqueidentifier
EXEC [msdb].[dbo].[sp_syscollector_create_collection_set]
@name=N'Index Fragmentation Usage Report3',
@collection_mode=1, -- Non-cached mode
@description=N'Records fragmentation of indexes over 100 pages AGAIN',
@days_until_expiration=30, -- 400=A year and a month --number of days
@schedule_uid='C40E90DE-5ECC-4B89-9DF8-424DD6160A0A',
@collection_set_id=@collectionsetid OUTPUT,
@collection_set_uid=@collectionsetuid OUTPUT
STEP 4 --- Create the job definition and QUERY
DECLARE @parameters XML
Set @parameters=' <ns:TSQLQueryCollector xmlns:ns="DataCollectorType">
<Query>
<Value>Select
db_name([database_id])+''.''+Sch.[Name]+''.''+T.[Name]+''.''+Indexes.[Name] as [IndexName], S.
[FragmentationPercentage]
FROM (Select
[database_id], [object_id], [index_id],
Sum(avg_fragmentation_in_percent *
page_count)/Sum(page_count) as [FragmentationPercentage]
FROM sys.dm_db_index_physical_stats( db_id(), NULL, NULL, NULL,
''DETAILED'')
Where index_type_desc IN (''CLUSTERED INDEX'',''NONCLUSTERED INDEX'')
AND alloc_unit_type_desc=''IN_ROW_DATA''
Group by [database_id],[object_id],[index_id]
) S
Join Sys.objects T On S.[object_id] = T.[object_id]
Join Sys.schemas sch On Sch.[schema_id] = T.[schema_id]
Join Sys.Indexes On Indexes.[Object_id] = S.[Object_Id] And
Indexes.[Index_id] = S.[Index_id] </Value>
<OutputTable>IndexFragmentation</OutputTable>
</Query>
<Databases UseUserDatabases="true" />
</ns:TSQLQueryCollector> '
DECLARE @collectionitem INT
EXEC [msdb].[dbo].[sp_syscollector_create_collection_item]
@name=N'Index Fragmentation3',
@parameters=@parameters,
@collection_item_id=@collectionitem OUTPUT,
@collection_set_id=10,
@collector_type_uid='302E93D1-3424-4BE7-AA8E-84813ECF2419'
After the Data Collector is created, and I run it by right clicking it and select "collect and upload now", it isn't creating the custom_snapshot table that it should create????? PLease what am I doing wrong????Can you please fix your query? . I was getting Divide by Zero error. you need to check if SUM(page_count) is 0, and replace it with non-zero value
Here is the sample script :
https://gist.github.com/sethusrinivasan/1bc23477936be4677e61#file-custom_collectionset
Thanks
Sethu Srinivasan [MSFT]
SQL Server -
What can be considered as the business logic of simple data entry form
Hi all,
I want to separate my applications logic into layers. It is a simple data entry form and doesn't contain any complex business logic. So I want to get this simple business logic to different layer. But the problem is, I cannot clearly identify what are business logic of this kind of simple data entry form.
How do I separate business logic of this simple data entry form to another layer?
any help is appreciated,
Thanks in advance,
Dil.dcminter wrote:
It is a [form] and doesn't contain any complex business logic. So I want to get this simple business logic to different layer. But the problem is, I cannot clearly identify what are business logic of this kind of [form].Are you asking which bits are business logic?
Suppose that the data comes into your system immaculate from some external system. Imagine that it will go out into some other system. The bits that you would still have to write are your business logic.That's a nice practical definition. Thank you, I'm stealing it.
Also interesting to note that validation falls into that category... say you're recieving data from a magical external source... you still have to validate it.
And of course you'd still have to store it somewhere, ans retrieve it.
Yep, I definately like that definition.
Cheers. Keith. -
Simple Data Base Program for Mountain Lion
Does anyone have a recommendation for a simple data base program that will import comma delimited fields from early versions of Filemaker Pro (v 3.0, v5.0)
The ability to import Filemaker Templates and Layouts would be a big plus.
I do not need the a highly sophisticated program just something with the ability to import data from several different data bases and create layouts that look like I want them to look.
Also what is the earliest version of Filemaker that will run well on Mountain Lion ?
Thanks....KenI suggest Bento (by Filemaker), simple database, imports Filemaker Pro files and doesn't cost very much
-
Info about the log traces in Activity Data Collector
Hi,
I have configured the activity data collector by setting the following properties in ADC and restarted the service
Activate Data Collection :true
Additional File Formats: --(not set anythng left blank)
Base File Name: Portal Activity
Directory Name: portalActivityTraces
File Encoding : UTF-8
Hour in the day to close all files, in GMT : 0
Main File Format : %Orfo.t(dd-MM-yyyy HH:mm:ss,GMT+5.5)%%Stab%%Orfo.ct%%Stab%%Orfo.in%%Stab%%Orfo.un%%Stab%%Orfo.bt%%Stab%%Orfo.pu%%Stab%%Orfo.rh(referer)%%Snl%
Max Buffer size :500KB
Max File Size : 10240 KB
The files are created in the folder called "Portal Activity Traces" But the issue is with the name of the log files getting created
Since i have not set any additional file formats, The log files consist of main file formats
the file names are like this
portalActivity_29893750_1254305061537.txt.open in this
wat does the time stamp "1254305061537" refer? Plz explain
some files are of type text document and some are of type "open" wat does tis mean?
If i set t "Hour in the day to close all files"
to 0 wen does it write the log files? Is it at 12? after that will it create a new file?
n in the main file format i have set the time to GMT5.5 (since IST is GMT5.5) but im not getting the proper time format
Plz help me out
Thanks in Advance
Regards,
Sowmya
Edited by: Sowmya B on Sep 30, 2009 1:43 PMHi Prasanna,
Thanks for the reply.
Actually there are about 3 to 4 files which are of type .open and they have created long back.Are those files still getting populated.If we set the "hour to close all files" to 0 it should close the open files and create the new(fresh) files for the next day right?
According to the documentation in help portal, "Files may be closed before reaching this limit(Max File Size), as all files are closed at the hour specified in the Hour in the day to close all files property."
Then how come some old files are still getting populated?
Midnight means wat time in particular? Plz explain
About timestamp is it the time the file was created in some format?
If anyone knows plz explain the format of timestamp
Edited by: Sowmya B on Sep 30, 2009 2:13 PM -
How to create an event/incident from data collector on agent?
Hi,
I would like to be able to create an event or incident for a target type/name, from its data collector script on the Agent.
On the OM Server I would be able to use emcli publish_event but emcli is not available on the Agent of course.
Thanks,
EdAndy;
If you are using Labview to do that, you can take advantage of the shipping example named "Measure Buffered Period.vi". You can set that counter's source to be the 100K interanl time base, and route the events line to that counter's gate pin. At each event, the counting number will be stored at the buffer, and you can keep reading those numbers. as you know the frequency of the timebase, the elapsed time will be the counting number you read, times 1/100k. As you probably don't need much accuracy on the 10minutes counter, you can do that opeartion by Software, and stop the while loop after that time has been reached.
Hope this heslps.
Filipe
Applications Engineer
National Instruments -
Simple Data Type in CAF of SAP NetWeaver DevStudio 7.1 SP3
Hallo
Anybody knows about the use of Enumeration for simple Data Type in CAF of SAP NetWeaver DevStudio 7.1 SP3?
I've defined an attribute "status" for the Entity "Project" with the following values
0: NEW;
1: ACTIVE;
-1: INACTIVE.
As you see the data type is short.
In the program I want to use the following code:
Project myProject = new Project();
myProject.setStatus(Status.NEW)
But I found it out, it is inpossible to to use Status.NEW.
On the other side I read the article of https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/085098ea-0c01-0010-12a8-80ac838bec85. This article is again not updated with the version 7.1 SP 3.
I cannot understand about the whole changes. In the previous release we can define a DDIC type and use it as Simple Data type and in the new Release we just use the XSD-Facet to define an enumeration, but the problem is: we can not reference it in the program. I don't see any advantage. And I tried to find out how I can define the attibute using DDIC type. I didn't get it.
Thanks for any Hints!
Kind Regards!
PingHi Oliver,
Thanks for the reply!
I have login into the system, using User Id and Password.
I have tried unsinstalling everything but the result remains the same.
Previously only one service SAPCE_01 was showing up in the services explorer. But when I tried the
Instance 00:
sc create SAPRKT_00 binPath= "C:\usr\sap\RKT\SYS\exe\uc\NTI386\sapstartsrv.exe pf=C:/usr/sap/RKT/SYS/profile/CE1_SCS00_xxxxx" start= auto obj= "NT AUTHORITY\LocalService" password= abcd1234
Instance 01:
another service SAPCE1_00 was created. But when I tried to retry the instlattio, the installation again stopped at the point while starting the service and when I tried to retry it terminted with the following error.
Please guide.
sapinst.exe - Application Error
The instruction at "0x00cbf040" referenced memory at "0x0072006d". The memory could not be "read".
Click on OK to terminate the program
Click on CANCEL to debug the program
Selfextractor error
iaextract.c:888: child has signaled an exec error. Keeping directory C:/DOCUME1/I047488/LOCALS1/Temp/sapinst_exe.1448.1196681060
OK
Manish -
Hello,
I have used Simple Date extensively and have recently found what I think may be a bug.
The API says that any string or character can be ignored in the input pattern by simply putting single quotes around it.
If I have a date in raw format as follows: 2007-07-19T08:00:00
I can use the input format yyyy-MM-dd'T'hh:mm:ss to parse this raw format above correctly. The single quotes around the T ignore this character in the parsing. This is fine.
However, now I have a new raw format I have to deal with, it appears like this: 2007-07-19 08:00:00Z
Now, SimpleDate handles the space just fine, however when I try to use this pattern, SimpleDate complains it cannot parse it.
yyyy-MM-dd hh:mm:ss'Z'
I have tried with many different characters and configurations but it seems there is a common bug here. If there is a character that is surrounded by single quotes at the END of the pattern, SimpleDate throws an exception.
My question is should I be able to add ignored text in single quotes at any point in the pattern? Or are certain areas of the pattern off limits like the very end of the pattern?
Thank you in advance for your response.
TRjverd,
Further research showed our app was running in J#. Run the command calls directly worked fine for each example. I am looking into how our app translates the text entered in the input field. Thank you for testing though.
TR -
Reg:Activity Data Collector
Hi All,
Greetings!!!
Happy New Year!!!
Coming to the query, i need to implement Activity Data Collector Report, but the configuration needs an application named "com.sap.portal.activitydatacollector"; but that is not available in our enterprise portal 6.0. So kindly tell whether this comes under which support package. Or to resolve this issue.
Thanks
PiiyushHello,
If you needed a graphical front-end or multiple reporting capabilities, one would need to build something themselves as described at the link above, which may not be convenient, nor offer all the usage stats you are looking for. The ADC simply does not offer a graphical front-end and does not come with integrated reports.
Otherwise a far easier solution is to switch to a 3rd party application like Click Stream SAP Portal analyzing solution from Sweetlets. (http://www.sweetlets.com/click_stream_overview.html or http://ecohub.sdn.sap.com/irj/ecohub/solutions/clickstream) This plug n' play application offers various SAP Portal usage reports complete with a visually appealing Flex frontend.
Good luck.
Burt
Maybe you are looking for
-
How can I get my iTunes playlists to sync with my iP4? Everything else syncs fine but my iPod is empty!
-
How do you remove duplicates in iPhoto
I just upgraded from the original Mac mini to the new one, when moving my photo library it appears to have included all the photos i have deleated in the past. I not have multiples of most photos. Is there a way such as in iTunes where it selects onl
-
Help! My optical drive has gone nuts!
I ejected a CD this morning and since then the optical drive has been making eject noises every 30 seconds or so, even though there's nothing in the slot. I tried rebooting the computer but that did nothing. I also tried restarting it and pressing on
-
I'm implementing a questionnaire consisting mainly of multiple choice questions. To speed up inputting I want to bind keys to the radiobuttons (numpad 1 for the first option, 2 for the second etc...) All the questions are embedded in panels that are
-
ESS Claims workflow ws18900023
Dear friends, Need steps to trigger WS18900023.config part done.is there any standard class for it.standard task 18900010 added in swfvisu. Thanks in advance.