Only Alert Data is not being inserted in SCOM 2012 Data Warehouse database
Hi All,
Alert data is not getting inserted into SCOM Data Warehouse database since 10 days though I could see latest Performance data in DW DB. No changes were made as far I know on SCOM servers or DB's. I had this issue few months back
and got resolved by executing a qiery to create an entry for Data Warehouse Synchronisation server entry.
Now I have checked the discovered inventory and could see an entry present and it is healthy. Still, latest Alert data is not getting inserted into DW DB. Please help me out.
http://social.technet.microsoft.com/Forums/en-US/2dac4f45-4911-40dc-a220-702993188832/alert-data-is-not-present-in-scom-2012-data-warehouse-database-since-two-weeks?forum=operationsmanagergeneral
Regards, Suresh
Hi,
Generally, data warehouse store a long-term data, and by default, it would keep 400 days data, I suggest check your configuration:
How to Configure Grooming Settings for the Reporting Data Warehouse Database
http://technet.microsoft.com/en-us/library/hh212806.aspx
Alex Zhao
TechNet Community Support
Similar Messages
-
Alert data is not present in SCOM 2012 Data Warehouse database since two weeks
Alert data is not present in SCOM 2012 Data Warehouse database since a week though I could see Performance data for the latest dates. Old Alert data is present but I think the latest Alert data is not being inserted to Data warehouse. No activity was done
on the day from where we are missing data.
I could see 31554 events on all my Management servers and this proves that Data Insertion is happening. I am not sure why only Alert data is missing (or not getting inserted) in DW database. I am trying to use SQL queries to fetch the data as I dont have reporting
currently. The same query is working for other dates, so there is no issue with this query.
I have noticed that I could see the Alert Data present in SCOM OperationsmNager Db but NOT present in OperationsManagerDW database.
In SCOM 2007, data will be inserted in both Ops DB and DW simultaneously. I believe the same methodology in 2012 too.
Please help me to fetch Alert data from DW. Any suggestion pls?
Regards, SureshHi,
Generally, data warehouse store a long-term data, and by default, it would keep 400 days data, I suggest check your configuration:
How to Configure Grooming Settings for the Reporting Data Warehouse Database
http://technet.microsoft.com/en-us/library/hh212806.aspx
Alex Zhao
TechNet Community Support -
Problem:
When I plug in my iPhone to sync, it starts but does not complete the process and several pieces of data are not being transferred to my iPhone from my MacBook Air.
Any help that you can provide in helping my iPhone accurately sync with iPhoto and iTunes will be greatly appreciated.
Symptoms:
1) Sync: It’s not completing the sync. Below, I’ve provided all of my settings from the iTunes Summary tab so that you might tell me if I’ve selected any incorrect options. I prefer to sync the “old school” way – by connecting to the computer – as opposed to syncing over the cloud. Perhaps this is what’s causing the problem? Here is a list of the steps displayed in the iTunes window as the sync progresses:
waiting for sync to start (step 1 of 7)
backing up (step 2 of 7)
preparing to sync (step 3 of 7)
determining apps to sync (step 4 of 7)
preparing apps to sync (step 5 of 7)
importing photos (step 6 of 7)
waiting for changes to be applied (step 7 of 7)
syncing apps / copying 1 of 4 (App name) (step 7 of 7)
canceling sync
apple icon
2) Photos: I've selected only certain of my iPhoto albums to sync to my iPhone. All of the albums are correct/complete in iPhoto. All of the albums are listed on my iPhone, both before and after the sync, but the albums are empty (no actual photos) before and after the sync. Perhaps this is tied to the fact that the sync isn’t completing, but because “importing photos” is one of the steps that the incomplete sync displays, I don’t know.
3) Apps: When I launch iTunes and click on the Apps folder under the Library listing, then click on the Updates tab, iTunes searches for any Apps needing to be updated and provides a list. If I click on Update All, the Apps are successfully updated in iTunes. But, when I plug in my iPhone so that the updates will transfer to the apps on my iPhone, the updates don’t transfer to the apps on my iPhone and those apps still reflect that they need updating on the iPhone.
Other Potential Pertinent Info:
The flash memory hard drive on my MacBook Air recently died (perhaps a month or two ago). Apple had emailed me about a known issue and literally the next day, my MacBook Air crashed. I installed a new flash memory drive and re-installed everything from a backup off of an external hard drive. Everything seems to be working fine; it recreated accurately all of my software and data, including iPhoto and iTunes, the pictures and songs (respectively) for which are stored on that hard drive, as opposed to being on the flash memory in the MacBook Air itself. However, I don’t recall if the start of the sync problem described herein started happening at the same time that I replaced the flash memory drive. All I know is that the computer is working perfectly in all respects and that even as the sync is failing, it at least says that it’s doing the right things and looking in the right places (e.g., the list of albums on my iPhone matches the list of albums in iTunes, etc.).
Settings/Status:
MacBook Air
OSX v. 10.9
iPhoto ’11 v. 9.5 (902.7)
iPhone iOS 7.0.4
iTunes v. 11.1.3 (8)
Summary Tab
Backups (This Computer)
Options
Automatically sync when this iPhone is connected
Sync only checked songs and videos
Photos Tab
Sync Photos from iPhoto (429 Photos)
Selected albums, Events, and Faces, and automatically include (no Events)
Albums – 9 are selectedYou need to download iTunes on your computer. iOS 6 requires the latest version of iTunes which is 10.7.
-
Hi
I am working in a sharepoint migration project. We have migrated one SharePoint project from moss2007 to sp2013. Issue is when we are clicking on Popularity trend > usage report, it is throwing an error.
Issue: The data was not being processed to EVENT STORE folder which was present under the
Analytics_GUID folder. Also data was not present in the Analytical Store database.
In log viewer I have found the bellow error.
HIGH -
SearchServiceApplicationProxy::GetAnalyticsEventTypeDefinitions--Error occured: System.ServiceModel.Security.MessageSecurityException: An unsecured or incorrectly
secured fault was received from the other party.
UNEXPECTED - System.ServiceModel.FaultException`1[[System.ServiceModel.ExceptionDetail,
System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]: We're sorry, we weren't able to complete the operation, please try again in a few minutes.
HIGH - Getting Error Message for Exception System.Web.HttpUnhandledException
(0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ServiceModel.Security.MessageSecurityException: An unsecured or incorrectly secured fault was received from the other party.
CRITICAL - A failure was reported when trying to invoke a service application:
EndpointFailure Process Name: w3wp Process ID: 13960 AppDomain Name: /LM/W3SVC/767692721/ROOT-1-130480636828071139 AppDomain ID: 2 Service Application Uri: urn:schemas-microsoft-
UNEXPECTED - Could not retrieve analytics event definitions for
https://XXX System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: We're sorry, we weren't able to complete the operation, please try again in a few minutes.
UNEXPECTED - System.ServiceModel.FaultException`1[[System.ServiceModel.ExceptionDetail,
System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]: We're sorry, we weren't able to complete the operation, please try again in a few minutes.
I have verified few things in server which are mentioned below
Two timer jobs (Microsoft SharePoint Foundation Usage Data Processing, Microsoft SharePoint Foundation Usage Data Import) are running fine.
APPFabric Caching service has been started.
Analytics_GUID folder has been
shared with
WSS_ADMIN_WPG and WSS_WPG and Read/Write access was granted
.usage files are getting created and also the temporary(.tmp) file has been created.
uasage logging database for uasage data being transported. The data is available.
Please provide pointers on what needs to be done.Hi Nabhendu,
According to your description, my understanding is that you could not use popularity trend after you migrated SharePoint 2007 to SharePoint 2013.
In SharePoint 2013, the analytics functionality is a part of the search component. There is an article for troubleshooting SharePoint 2013 Web Analytics, please take a look at:
Troubleshooting SharePoint 2013 Web Analytics
http://blog.fpweb.net/troubleshooting-sharepoint-2013-web-analytics/#.U8NyA_kabp4
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
Data are not being applied at destination side
Hi all,
I have implemented real time streams replication(not archive log based downstream replication).
source:9.2.0.8.0
destination:10.2.0.2.0
Capture and propagation is working fine. DBlinks are also fine. Apply process is running , but data are not being applied in destination side.
The trc file shows this:
Dump file /dev1/visdb10/10.2.0/admin/VIS_wbsebdev1/bdump/vis_p001_14628.trc
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
ORACLE_HOME = /dev1/visdb10/10.2.0
System name: Linux
Node name: wbsebdev1
Release: 2.4.21-32.ELsmp
Version: #1 SMP Fri Apr 15 21:17:59 EDT 2005
Machine: i686
Instance name: VIS
Redo thread mounted by this instance: 1
Oracle process number: 21
Unix process pid: 14628, image: oracle@wbsebdev1 (P001)
*** SERVICE NAME:(SYS$USERS) 2008-05-29 11:39:26.957
*** SESSION ID:(388.16) 2008-05-29 11:39:26.957
The Alertlog file shows at the end this:
Thu May 29 11:19:06 2008
Streams APPLY A001 with pid=16, OS id=9531 stopped
Thu May 29 11:21:25 2008
Incremental checkpoint up to RBA [0x746.d359.0], current log tail at RBA [0x746.d471.0]
Thu May 29 11:39:26 2008
Streams APPLY A001 started with pid=18, OS id=14624
Streams Apply Reader started P000 with pid=20 OS id=14626
Streams Apply Server started P001 with pid=21 OS id=14628
Thu May 29 11:41:33 2008
Incremental checkpoint up to RBA [0x746.11565.0], current log tail at RBA [0x746.121b9.0]
Pls help.
Thanking You,
Nitesh.Problem solved.
-
OHS - Protocol (Periodic) Next due dates are not being captured properly
Protocol (Periodic) Next due dates are not being captured properly in the Planning Cockpit (EHSH_D_PCP) report nor the Protocol report (S_SH8_7200013). The Planned date is not resetting itself for the medical service sometimes.
Any idea what might be causing this issue?
Regards
NaveenHI Naveen
Have you overridden the std BADI for calculating Next due date?
Thanks
Jagdsh -
Can't find last import from iPhone!
Noticed as I imported I had that view where there was only one project symbol, not all my projects showing by date, but even so pictures were imported. It took the time to do them, so where aare they? I have closed and restarted to get back fll view of all dated projects, but nothing can be found from today...have i posted it right...?? no response from apple guys...
-
I am transmitting data over internet and WiFi ,it's working fine with Internet but when I choose WiFi for data transmission data is not being transmitted. What may be the possible issues of data transmission failure over WiFi? Please help me....
Thanks in Advance.
Neeraj@iDevAfter a week's worth of debugging, I found the issue.
The Java type returned from the call was defined as ArrayList. Changing it to List resolved the problem.
I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid. And, why it works in Debug mode and not in Release build is even stranger. Maybe someone can shed some light on the logic here to me. -
Error message: User data is not indexed, yet. Index user data first
Greeting All,
Each time I try to index a 'Prepared' searchObjectConnector in the cockpit.. I get a message <
User data is not indexed, yet. Index user data first>. even that I ran the z_ESH_AU_UPLOAD_AUTH_RFC_720 report in R/3 system.. and checked the auth /user data in the admin cockpit.. and it was indexed..
1.any idea why I keep getting this error
2.any idea how can I clean the buffer or the message Queu.. my guess this might be not error but a q message..
3. any suggestion please
ThanksHi Areege,
I noticed that you created an OSS message on this issue. That was a good idea.
There is an answer for you in OSS from yesterday.
Kind regards, Klaus -
Maintenance Order TECO date must not be befor the Permit Issue Date
Hi Friends,
I have a genuine requirement like " Maintenance Order TECO date must not be befor the Permit Issue Date ".
The requirement is System shall issue a message if TECO date is before the Permit issue date.
Guys pls help me onthis.
Thanks & Regards,
krishnaKrishna,
What you can do is use a User Exit: IWO10004 Maintenance order: Customer check for order completionand check that the reference date of completion, also you would need the approval date for the assigned permits in Order by using the table "IHSG" or a relevant function module to get the details of the Permit approval date. After you have the permit approval date, you can compare it with the reference date of completion and if mismatched then generate the relevant error message.
regards,
Muhammad Usman Kahoot -
Hi Everyone,
A Very Very Happy, Fun-filled, Awesome New Year to You All.
Now coming to the discussion of my problem in Oracle Forms 6i:
I have created a form in which the data is entered & saved in the database.
CREATE TABLE MATURED_FD_DTL
ACCT_FD_NO VARCHAR2(17 BYTE) NOT NULL,
CUST_CODE NUMBER(9),
FD_AMT NUMBER(15),
FD_INT_BAL NUMBER(15),
TDS NUMBER(15),
CHQ_NO NUMBER(10),
CREATED_DATE DATE,
CREATED_BY VARCHAR2(15 BYTE),
PREV_YR_TDS NUMBER(15),
ADD_FD_AMT NUMBER(15),
DESCRIPTION VARCHAR2(100 BYTE),
P_SAP_CODE NUMBER(10),
P_TYPE VARCHAR2(1 BYTE)
The form looks like below:
ENTER_QUERY EXECUTE_QUERY SAVE CLEAR EXIT
ACCT_FD_NO
CUST_CODE
FD_AMT
FD_INT_BAL
PREV_YR_TDS
TDS
ADD_FD_AMT
P_SAP_CODE
P_TYPE
CHQ_NO
DESCRIPTION
R
W
P
List Item
There are 5 push buttons namely ENTER_QUERY, EXECUTE_QUERY, SAVE, CLEAR, EXIT.
The table above is same as in the form. All the fields are text_item, except the P_TYPE which is a List_Item ( Elements in List Item are R, W & P).
The user will enter the data & save it.
So all this will get updated in the table MATURED_FD_DTL .
I am updating one column in another table named as KEC_FDACCT_MSTR.
and
I want this details to get updated in another table named as KEC_FDACCT_DTL only if the P_TYPE='P'
CREATE TABLE KEC_FDACCT_DTL
FD_SR_NO NUMBER(8) NOT NULL,
FD_DTL_SL_NO NUMBER(5),
ACCT_FD_NO VARCHAR2(17 BYTE) NOT NULL,
FD_AMT NUMBER(15,2),
INT_RATE NUMBER(15,2),
SAP_GLCODE NUMBER(10),
CATOGY_NAME VARCHAR2(30 BYTE),
PROCESS_YR_MON NUMBER(6),
INT_AMT NUMBER(16,2),
QUTERLY_FD_AMT NUMBER(16,2),
ITAX NUMBER(9,2),
MATURITY_DT DATE,
FDR_STAUS VARCHAR2(2 BYTE),
PAY_ACC_CODE VARCHAR2(85 BYTE),
BANK_CODE VARCHAR2(150 BYTE),
NET_AMOUNT_PAYABLE NUMBER,
QUATERLY_PAY_DT DATE,
CHEQUE_ON VARCHAR2(150 BYTE),
CHEQUE_NUMBER VARCHAR2(10 BYTE),
CHEQUE_DATE DATE,
MICR_NUMBER VARCHAR2(10 BYTE),
PAY_TYPE VARCHAR2(3 BYTE),
ADD_INT_AMT NUMBER(16,2),
ADD_QUTERLY_FD_AMT NUMBER(16,2),
ADD_ITAX NUMBER(16,2),
ECS_ADD_INT_AMT NUMBER(16),
ECS_ADD_QUTERLY_FD_AMT NUMBER(16),
ECS_ADD_ITAX NUMBER(16)
So for the push button 'Save' , i have put in the following code in the Trigger : WHEN BUTTON PRESSED,
BEGIN
Commit_form;
UPDATE KEC_FDACCT_MSTR SET PAY_STATUS='P' WHERE ACCT_FD_NO IN (SELECT ACCT_FD_NO FROM MATURED_FD_DTL);
UPDATE MATURED_FD_DTL SET CREATED_DATE=sysdate, CREATED_BY = :GLOBAL.USER_ID WHERE ACCT_FD_NO = :acct_fd_NO;
IF :P_TYPE='P' THEN
INSERT INTO KEC_FDACCT_DTL
SELECT FD_SR_NO, NULL, MATURED_FD_DTL.ACCT_FD_NO, FD_AMT, INT_RATE, P_SAP_CODE,
GROUP_TYPE, (TO_CHAR(SYSDATE, 'YYYYMM'))PROCESS_YR_MON,
FD_INT_BAL, (FD_INT_BAL-MATURED_FD_DTL.TDS)QUTERLY_FD_AMT , MATURED_FD_DTL.TDS,
MATURITY_DATE, P_TYPE, NULL, NULL, (FD_INT_BAL-MATURED_FD_DTL.TDS)NET_AMOUNT_PAYABLE,
NULL, NULL, CHQ_NO, SYSDATE, NULL, 'CHQ', NULL, NULL, NULL, NULL, NULL, NULL
FROM MATURED_FD_DTL, KEC_FDACCT_MSTR
WHERE KEC_FDACCT_MSTR.ACCT_FD_NO=MATURED_FD_DTL.ACCT_FD_NO;
END IF;
COMMIT;
MESSAGE('RECORD HAS BEEN UPDATED AS PAID');
MESSAGE(' ',no_acknowledge);
END;
If P_TYPE='P' , then the data must get saved in KEC_FDACCT_DTL table.
The problem what is happening is,
If i enter the details with all the records as 'P' , the record gets inserted into the table KEC_FDACCT_DTL
If i enter the details with records of 'P' and 'R' , then nothing gets inserted into the table KEC_FDACCT_DTL.
Even the records with 'P' is not getting updated.
I want the records of 'P' , to be inserted into table KEC_FDACCT_DTL, even when multiple records of all types of 'P_Type' (R, w & P) are entered.
So, can you please help me with this.
Thank You.
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
Oracle Forms Builder 6i.Its not working properly.
At Form_level_Trigger: POST_INSERT, I have put in the following code.
IF :P_TYPE='P'THEN
INSERT INTO KEC_FDACCT_DTL
SELECT FD_SR_NO, NULL, MATURED_FD_DTL.ACCT_FD_NO, FD_AMT, INT_RATE, P_SAP_CODE,
GROUP_TYPE, (TO_CHAR(SYSDATE, 'YYYYMM'))PROCESS_YR_MON,
FD_INT_BAL, (FD_INT_BAL-MATURED_FD_DTL.TDS)QUTERLY_FD_AMT , MATURED_FD_DTL.TDS,
MATURITY_DATE, P_TYPE, NULL, NULL, (FD_INT_BAL-MATURED_FD_DTL.TDS)NET_AMOUNT_PAYABLE,
NULL, NULL, CHQ_NO, SYSDATE, NULL, 'CHQ', NULL, NULL, NULL, NULL, NULL, NULL
FROM MATURED_FD_DTL, KEC_FDACCT_MSTR
WHERE KEC_FDACCT_MSTR.ACCT_FD_NO=MATURED_FD_DTL.ACCT_FD_NO;
END IF;
MESSAGE('RECORD HAS BEEN UPDATED AS PAID');
MESSAGE(' ',no_acknowledge);
It worked properly when i executed first time, but second time , in database duplicate values were stored.
Example: First I entered the following in the form & saved it.
ACCT_FD_NO
CUST_CODE
FD_AMT
FD_INT_BAL
PREV_YR_TDS
TDS
ADD_FD_AMT
P_SAP_CODE
P_TYPE
CHQ_NO
DESCRIPTION
250398
52
50000
6000
0
600
0
45415
P
5678
int1
320107
56
100000
22478
3456
2247
0
45215
R
456
320108
87
50000
6500
0
650
0
21545
W
0
In the database, in table KEC_FDACCT_DTL, the ACCT_FD_NO:250398 with P_TYPE='P' record was inserted.
ACCT_FD_NO
P_TYPE
250398
P
But second time, when i entered the following in the form & saved.
ACCT_FD_NO
CUST_CODE
FD_AMT
FD_INT_BAL
PREV_YR_TDS
TDS
ADD_FD_AMT
P_SAP_CODE
P_TYPE
CHQ_NO
DESCRIPTION
260189
82
50000
6000
0
600
0
45415
P
5678
interest567
120011
46
200000
44478
0
4447
0
45215
R
456
30191
86
50000
6500
0
650
0
21545
W
56
In the database, in the table KEC_FDACCT_DTL, the following rows were inserted.
ACCT_FD_NO
P_TYPE
250398
P
250398
P
260189
P
320107
R
320108
W
There was duplicate of 250398 which i dint enter in the form second time,
All the other P_TYPE was also inserted , but i want only the P_TYPE='P' to be inserted into the database.
I want only those records to be inserted into the form where P_TYPE='P' and duplicate rows must not be entered.
How do i do this??? -
Data is not being populated in screen field PSPNR after F4 search help.
Hi expert,
I have added one field GW_SELECT-PSPNR in existing screen 100, and there are many fields already existing.
and there are POV for 4 fielda and i added POV for field GW_SELECT-PSPNR.
PROCESS ON VALUE-REQUEST.
FIELD gw_select-kostl MODULE determine_kostl.
FIELD gw_select-aufnr MODULE determine_aufnr.
FIELD gw_select-matnr MODULE determine_matnr.
FIELD gw_select-bwart MODULE determine_bwart.
***Added by me
FIELD gw_select-pspnr MODULE determine_pspnr.
****end add
now problem is that the value is not being populated in screen.
values are coming in field GW_SELECT-PSPNR but in screen its not being populated.
i tried function module 'DYNP_VALUES_UPDATE' then also its not being populated
now this module MODULE determine_pspnr has code inside
MODULE DETERMINE_PSPNR INPUT.
DATA:w_dynpfields TYPE dynpread,
i_dynpfields LIKE STANDARD TABLE OF dynpread.
PERFORM fill_pspnr.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'PSPNR'
value_org = 'S'
TABLES
value_tab = gt_pspnr
field_tab = lt_field_tab
return_tab = lt_return_tab
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
LOOP AT lt_return_tab INTO ls_return_tab.
gw_select-pspnr = ls_return_tab-fieldval(12).
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = gw_select-pspnr
IMPORTING
output = gw_select-pspnr.
EXIT.
ENDLOOP.
refresh i_dynpfields.
w_dynpfields-FIELDNAME = 'gw_select-pspnr'.
w_dynpfields-FIELDVALUE = gw_select-pspnr.
APPEND w_dynpfields to i_dynpfields.
APPEND gw_select to gt_select.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
DYNAME = sy-repid
DYNUMB = sy-dynnr
TABLES
DYNPFIELDS = i_dynpfields
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
UNDEFIND_ERROR = 7
OTHERS = 8
ENDMODULE. " DETERMINE_PSPNR INPUTHi
Use this code instead of your function call:
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'FEE_NUMBER'
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = 'FEE' ================>your field
value_org = 'S'
TABLES
value_tab = it_fee
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
Best Regards
Yossi -
Data is not being displayed into DataGridview until Clicked inside the cells
Hi,
On a windows form, I have a DataGridView, its columns are auto-generated every time. Data is loaded after the user click a data-load button. However this is NOT working well, the data is not displayed until manually clicked inside the grid cells. The following
is the code. Could you please help? Thanks!
private void ButtonTestGrid_Click(object sender, EventArgs e)
for (int i = 0; i < 10; i++)
this.MainDataGrid.Columns.Add(TestHelper.CreateTextBoxColumn("Col" + i.ToString(), 120));
Dictionary<string, object>[] data;
data = TestHelper.CreateTestData();
this.MainDataGrid.EndEdit();
TestHelper.LoadGridData(this.MainDataGrid, data);
this.MainDataGrid.Refresh();
public class TestHelper
public static DataGridViewTextBoxColumn CreateTextBoxColumn(string name, int width)
DataGridViewTextBoxColumn column = new DataGridViewTextBoxColumn();
column.HeaderText = name;
column.Name = name;
column.ReadOnly = false;
column.Width = width;
return column;
public static void LoadGridData(System.Windows.Forms.DataGridView grid, Dictionary<string, object>[] data)
int index;
foreach (Dictionary<string, object> row in data)
index = grid.Rows.Add();
LoadRowData(grid, index, row);
public static void LoadRowData(System.Windows.Forms.DataGridView grid, int index, Dictionary<string, object> data)
string name;
for (int i = 0; i < grid.Columns.Count; i++)
name = grid.Columns[i].Name;
if (data.ContainsKey(name))
grid.Rows[index].Cells[name].Value = data[name];
public static Dictionary<string, object>[] CreateTestData()
Dictionary<string, object>[] dataList = new Dictionary<string, object>[5];
Dictionary<string, object> data;
for (int j = 0; j < 5; j++)
data = new Dictionary<string, object>();
for (int i = 0; i < 10; i++)
data.Add("Col" + i.ToString(), i);
dataList[j] = data;
return dataList;There are different ways to bind the datagridview control to it's datasource, the question is where and what is your datasource? Is it from a database or XML file, or is it built on runtime...etc?
Based on your explanation I can understand that the Datagridview is binding correctly in the code behind since the rows of the grid are created. Because the row of the Datagridview are created only while it is binded correctly to it's datasource. The issue
of the display seems something different and strange.
Try also this way by using DataTable one the common ways used:
static DataTable GetTable()
// Here we create a DataTable with four columns.
DataTable table = new DataTable();
table.Columns.Add("Dosage", typeof(int));
table.Columns.Add("Drug", typeof(string));
table.Columns.Add("Patient", typeof(string));
table.Columns.Add("Date", typeof(DateTime));
// Here we add five DataRows.
table.Rows.Add(25, "Indocin", "David", DateTime.Now);
table.Rows.Add(50, "Enebrel", "Sam", DateTime.Now);
table.Rows.Add(10, "Hydralazine", "Christoff", DateTime.Now);
table.Rows.Add(21, "Combivent", "Janet", DateTime.Now);
table.Rows.Add(100, "Dilantin", "Melanie", DateTime.Now);
return table;
Then to bind the above Datatable to the grid control:
this.MainGrid.DataSource = null;//To clear before bind
this.MainGrid.DataSource = GetTable();
Fouad Roumieh -
Assign Task - Prepare Data Service not being called?
Hi,
I've got an Assign Task activity, with an Action Profile that defines a Prepare Data Service. For the Prepare data service, I've just created a simple process, and I'm recording it.
When the assign task gets invoked, the Prepare Data Service process is not being executed. Nothing gets recorded.
Do I need to do something else?
I am running LC ES2 SP2
Note - If I use a Prepare Data Process on a Task Manager start point, it works fine. It's just not working for an Assign Task activity.
ThanksHi
By default, the checkbox to run the Prepare Data on the User service step is turned off.
Navigate to the Presentation & Data tab on the User service.
If you have selected an Action Profile that specifies a Prepare Data process, you'll see 3 checkboxes under the section: Specify when the Prepare Data process runs
Check "The user opens the task" and it will now run the Prepare Data on the User service.
Note: This is unchecked by default so that any data entered on the startpoint step is not overwritten at the user step.
It is up to the process designer to save off any data that you do not want overridden when the Prepare Data loads.
Diana -
I have created a form in Livecycle. I'm pretty new to this tool. I noticed something today that is VERY bothersome. I use automatic date fields so by standard the form fills in todays date. When I hit save I was thinking it saved the date it was saved in..but today I found out it will always display todays date! Might be obvious to some, but it wasn't to me. What can I do to deal with this? I want the form to save the date I enter of course. I could obviously remove the current date thing but I want to use it and I've seen many forms use it but it's strange that it keeps rolling back to todays date.
Hi,
Newbie here with a similar issue:
I have request forms which are sorted by date submitted. I am collecting the data via email submit and when i open the data in the form, i still get current date, not date submitted.
Tried all of the above, and what I've found in other forums with little success.
What is the process to stop the date script from running or transforming the date script in a plain text field? I've little experience with Java (obviously) and not much more with OOP.
I do not have a database to file these forms to if that helps.
Any input w
Maybe you are looking for
-
Enabling BW reports for a specific port
Hi All, How to enable BW reports for a specific prot?. Our requirement is Report should run FIRST, if I type the URL manually with the port we configure in SICF. Thanks in Advance. Regards, Ravi Chelikani.
-
From Final Cut Pro 5.0.4 to Final Cut Pro 5.1.0
Hi! I have the Studio with FCP 5.0.4. Someone told me that it's possible to upgrade freely to 5.1.0 by sending de installation dvd to apple europe...and they will send back the new release...is it true? Thank you Barbara Mac OS X (10.4.8)
-
Windows server backup crash vss errors
We're having an issue where every other day the system state fails. We use a 3rd party piece of software that uses WSB for the system state. We get the following in the eevnt logs: Faulting application name: wbengine.exe, version: 6.1.7601.17514, tim
-
Plug-in max heap space for IE on Windows Vista
G'day, The organisation I work for will be moving from Windows 2000 to Windows Vista later this year. We'll be including JRE6 as part of the standard desktop installation :-) Ahead of that I'd like to know the default maximum heap-space configuration
-
Ipad and Dolby surround plus Television
I use my I pad 2 to watch movies, we want to connect it to an Yamaha Htr 3085, I get sound but no picture on the TV, we use HDMI cable but it does not go through, the I pad brings the message this product is not authorised for video presentation. How