How to split out a set of data????
package mitsim_converter;
import java.io.*; // For input & output classes
import java.util.*; // For the Date class
public class testgod {
public static void ReadCoFile(String Co_inputFile, String Co_dirName, String Co_outputName)
throws IOException {
File aFile = new File(Co_dirName, Co_outputName); // Output Directory location and name
aFile.createNewFile(); // Now create a new file if necessary
if(!aFile.isFile()) // Verify we have a file
System.out.println("Creating " + aFile.getPath() + " failed.");
return;
BufferedReader in = new BufferedReader(new FileReader(Co_inputFile));
BufferedWriter out = new BufferedWriter(new FileWriter(aFile.getPath(), true));
//Variable declarations
int a = 0;
int b = 0;
int c = 0;
String text;
while ((text = in.readLine()) != null) //multiple line reading
for(int i = 0; i < text.length(); i++)
char word = text.charAt(i);
if ( word == '{') //search for the ' { ' charecter
a++; //counting ' { ' unit
for(int i = 0; i < text.length(); i++)
char word = text.charAt(i);
if ( word == '}') //search for the ' } ' charecter
b++; //counting ' } ' unit
if(a == 1) //print out the 1st line of a set of data
String[] sentance = text.split(" ");
System.out.println(sentance[1]+sentance[3]);
if(a == b) // 1 set of data is counted
a = 0; //count the next set of data
b = 0;
out.write(System.getProperty("line.separator")); //separate a new set of data
public testgod() {
public static void main(String[] args)
throws IOException
// Coordinate Table
String tra_inputFile = "C:/Documents and Settings/seng/Desktop/testfile/trajectory.txt";
String tra_dirName = "C:/Documents and Settings/seng/Desktop/testfile";
String tra_outputName = "trajectory_output.txt";
ReadCoFile(tra_inputFile, tra_dirName, tra_outputName);
} currently i have a set of data as below:
1 {
6 0 2 1037.9 24.4187 -5.4961e-05 1
2 {
1 0 2 1013.5 24.4187 4.99431e-05 1
4 0 1 1057.5 24.4187 -2.63508e-05 0
3 130 264 115.7 14.2425 1.48289e-05 0
2 136 276 464.7 11.6186 -3.46263e-06 1
3 {
1 0 2 989.1 24.4187 -5.4961e-05 1
4 0 1 1033.1 24.4187 2.13329e-05 0
5 126 256 1241.4 22.7881 0 0
3 130 264 101.5 14.2426 5.23758e-07 0
2 136 276 453.1 11.6186 -3.46263e-06 1
}i wish to split them and take out the 1st column and 3rd column data, but the my coding fail to do it. may i know how do i can solve for this problem?
PS: the expected output
6 2
1 2
4 1
3 264
2 276
1 2
4 1
5 256
3 264
2 276
import java.util.regex.*;
public class TestParse {
public static void main(String[] argv) {
String testInput = "1 {\n" +
" 6 0 2 1037.9 24.4187 -5.4961e-05 1\n" +
"}\n" +
"2 {\n" +
" 1 0 2 1013.5 24.4187 4.99431e-05 1\n" +
" 4 0 1 1057.5 24.4187 -2.63508e-05 0\n" +
" 3 130 264 115.7 14.2425 1.48289e-05 0\n" +
" 2 136 276 464.7 11.6186 -3.46263e-06 1\n" +
"}\n" +
"3 {\n" +
" 1 0 2 989.1 24.4187 -5.4961e-05 1\n" +
" 4 0 1 1033.1 24.4187 2.13329e-05 0\n" +
" 5 126 256 1241.4 22.7881 0 0\n" +
" 3 130 264 101.5 14.2426 5.23758e-07 0\n" +
" 2 136 276 453.1 11.6186 -3.46263e-06 1\n" +
"}\n";
Pattern outer =
Pattern.compile("\\s*(\\d+)\\s*\\{([\\s\\d\\.\\-\\+e]+)\\}");
Pattern inner = Pattern.compile("LEFT AS EXERCISE");
Matcher m = outer.matcher(testInput);
while(m.find()) {
if (m.groupCount() != 2) {
System.err.println("Error: found wrong number of groups: " + m.groupCount());
} else {
System.out.print("Time: " + m.group(1) + " " + m.group(2));
Matcher m2 = inner.matcher(m.group(2));
while(m2.find()) {
if (m2.groupCount() != 7) {
System.err.println("Error: found wrong number of groups: " + m2.groupCount());
} else {
int i = 0;
String iDString = m2.group(++i);
String segmentString = m2.group(++i);
String laneString = m2.group(++i);
String positionString = m2.group(++i);
String speedString = m2.group(++i);
String accelerationString = m2.group(++i);
String vehicleTypeString = m2.group(++i);
System.out.println(
"ID: " + iDString + "\n" +
"Segment: " + segmentString + "\n" +
"Lane: " + laneString + "\n" +
"Position: " + positionString + "\n" +
"Speed: " + speedString + "\n" +
"Acceleration: " + accelerationString + "\n" +
"VehicleType: " + vehicleTypeString);
}
Similar Messages
-
How to split the debit memo due date (Cr. student recievable)?
How to split the debit memo due date (Cr. student recievable)?
I have to pay student back like a installment plan (out going payment).
I tried installment plan but it is't work for a credit side.Hi,
Thanks for your answer.
(1) To use FPE1, I understand but it has to do 2 documents for this solution.
Old doc.
Dr. Revenue 500
Cr. student A/R 500
1st Create new doc
Dr. student A/R 500
Cr. student A/R due 1 250
student A/R due 2 250
2nd Manual clearing (old doc vs new doc).
Dr. studen A/R 500
Cr student A/R 500
(2) To use due date schedule
We use this one in fee calculation, It can be debit side or credit side. I don't know it depend on booked-cancelled module.
In the debit side we need to invoice student just one due.
So, I can't use this solution. -
How to find out each Cell having Data or Not in Excel File by Using WDJ
Hi Friends,
I have one doubt on WDJ.
I have to Upload Excel File. Click on Upload Button in Excel file Data will move to One Bapi. This is I was done. But my Requirement is if any empty Cell in Excel That File not uploaded it display one error message Please upload Correct Excel File
How to find out each Cell having Data or Not in Excel File by Using WDJ. Please tell me.
By Using this Code I have Upload Excel File
InputStream text = null;
int temp = 0;
//wdComponentAPI.getMessageManager().reportSuccess("filePath Vijay:::");
try
File file = new File(wdContext.currentContextElement().getResource().getResourceName().toString());
FileOutputStream op = new FileOutputStream(file);
if (wdContext.currentContextElement().getResource()!= null)
text = wdContext.currentContextElement().getResource().read(false);
while((temp=text.read())!= -1)
op.write(temp);
op.flush();
op.close();
path = file.getAbsolutePath();
//wdComponentAPI.getMessageManager().reportSuccess("Path Name :::::"+path);
catch(Exception ex)
ex.printStackTrace();
But my Requirement is If excel having any Empty Cell that excel file not uploaded.How to do this...
Regards
Vijay KalluriHi my friend
I would like to share you some APACHE APi´s that i use when i have to read excel files in Web Dynpro.
JAR = poi-3.2-FINAL-20081019.jar
Some Example:
POIFSFileSystem fs;
HSSFWorkbook wb;
HSSFSheet sheet;
String myMexican_ValueFromExcelis = "";
try {
fs = new POIFSFileSystem(new FileInputStream();
// and select the cell "y"
cell = row.getCell( 0 );
myMexican_ValueFromExcelis = cell.getCellValue();
}cach(Exception e){
REgargds -
How to find out the SET PARAMETER ID for FB02 transaction
hi masters,
i m working on a alv report and in that i have to make a BELNR field as a interactive field. i m using the 'user command' for this.
FORM user_command USING ucomm TYPE sy-ucomm
selfield TYPE slis_selfield.
IF selfield-value IS NOT INITIAL.
CASE selfield-fieldname.
WHEN 'BELNR'.
SET PARAMETER ID 'FBAS' FIELD selfield-value.
CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.
WHEN OTHERS.
MESSAGE text-000 TYPE 'W'.
ENDCASE.
ENDIF.
ENDFORM. "user_command
i used this code using this. using this code my program goes to FB03 tc but it don't shows the data of BELNR what i was clicked. it always shows first BELNR no. in the table. plz anyone help me for this..
the SET PARAMETER ID 'FBAS' i m using is right? if not plz suggest me how to find out correct one?Hi Vicky,
To know the Parameter Id of any field in a transaction ,
you just press F1 onthe particular field then in technical settings under Field data
you can see the PARMATER ID.
So if you check like this you can see 'BLN' as parameter id for Document number in FB03
transaction
Regards,
Manoj Kumar P -
How can I plot two sets of data points in 3d graph?
I am trying to plot two sets of data points in 3d graph. I also need to make a set of data with one color and the other set with a different color. For example, I need to plot 10 (x,y,z) data points in 3d. Maybe 6 points need to be blue, and the other 4 red. Could you tell me how?
What is your LabVIEW version? (things are a bit different in 8.6).
Basically, you create multiple instances of the VI that gets placed automatically when you drop the 3D graph and then wire a different number to the plot ID at the bottom.
You define all the plots (color, style) via the properties dialog.
Have a look at my example posted here. One plot is "blue dots" and one is a "shaded surface". See how far you get.
Message Edited by altenbach on 04-23-2009 01:11 PM
LabVIEW Champion . Do more with less code and in less time . -
How do I summarise a set of data
Hi All,
I am trying to group a set of data but am struggling to return what I need.
The following is a snippet of the data:
SEGMENT1
SEGMENT2
SEGMENT3
SEGMENT4
SEGMENT5
PERIOD_NAME
PERIOD_NET_DR
PERIOD_NET_CR
103600
2256
00
1
000
APR-13
4,157
0
103600
2256
00
1
000
AUG-13
4,157
1
103600
2256
00
1
000
DEC-13
4,157
1
103600
2256
00
1
000
FEB-14
4,157
1
103600
2256
00
1
000
JAN-14
4,157
1
103600
2256
00
1
000
JUL-13
4,157
1
103600
2256
00
1
000
JUN-13
4,157
1
103600
2256
00
1
000
MAR-14
4,188
14
103600
2256
00
1
000
MAY-13
4,157
2
103600
2256
00
1
000
NOV-13
4,157
1
103600
2256
00
1
000
OCT-13
4,157
1
103600
2256
00
1
000
SEP-13
4,157
1
I need to produce a report as follows:
SEGMENT1
SEGMENT2
SEGMENT3
SEGMENT4
SEGMENT5
YEAR_TO_DATE_BUDGET
APRIL-13
May-13
Jun-13
Jul-13
Aug-13
Sep-13
Oct-13
Nov-13
Dec-13
Jan-14
Feb-14
Mar-14
103600
2256
00
1
000
49890
4,157
4,174
4156
4156
4156
4156
4156
4156
4156
4156
4156
4174
Year_to_date_budget = SUM(Period_Net_DR) - SUM(Period_Net_CR)
Monthly budget = Period_net_dr) - Period_Net_CR
I have managed to produce the report up to the year_to_date_budget column. However I struggling with getting the monthly_budget on the same line.
select GCC.segment1, GCC.segment2, GCC.segment3, GCC.segment4, GCC.segment5,
(sum(GB.PERIOD_NET_DR) - sum(GB.PERIOD_NET_CR)) Year_to_date_Budget
from gl_balances GB
,gl_code_combinations GCC
where GB.period_name in ('APR-13','MAY-13','JUN-13','JUL-13','AUG-13','SEP-13','OCT-13','NOV-13','DEC-13','JAN-14','FEB-14','MAR-14')
and GCC.code_combination_id = GB.code_combination_id
and GB.actual_flag = 'B'
and GB.currency_code = 'GBP'
group by GCC.segment1, GCC.segment2, GCC.segment3, GCC.segment4, GCC.segment5
Any help would be greatly appreciated.Hi,
That's called a Pivot. The forum FAQ, https://forums.oracle.com/message/9362005 , has several good links on pivots.
Even more than most things, pivoting depends on your Oracle version. In Oracle 8.1 (and up) you can do something like
SUM (CASE WHEN period_name = 'APR-13' THEN (period_net_dr - period_net_cr END) AS april_13
for each of the pivoted column. Starting in Oracle 11.1, you can also use the SELECT ... PIVOT feature.
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and also post the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Simplify the problem as much as possible. for example, instead of pivoting 12 months, just do 2 or 3 months. Once you know how to do 2 or 3 months, you'll know how to do 12 or any number. Likewise, instead of GROUPing BY 5 segment columns, just post a problem with 1 or 2.
Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
See the forum FAQ: https://forums.oracle.com/message/9362002 -
How to get out of pause until date if target is achieved?
Hi,
We are developing a SharePoint Designer 2013 platform workflow on Office 365 SharePoint Online. Following is what we are trying to achieve:
Document Library workflow.
There are 3 users involved e.g. UserA, UserB and UserC.
There are 2 content types e.g. Notification Letter and Statement Method.
As soon as UserA uploads/adds a document the workflow kicks-off.
An email is sent to UserB where he verifies it and select a dropdown verification complete.
This workflow also kicks-off on item change hence it creates a task process and assign UserC a task.
If UserC rejects the task, the email is sent to UserB and he has to resubmit.
However if UserC approves it then it goes to the approval folder.
In the above process we need to have reminders/notifications to UserC. There are 3 reminders. As soon as the document is added the document should be sent to the approval folder within 30 days (cut off) from the item creation date. First reminder 7
days before the cut off date. Second reminder 2 days before the cut off date. Finally the last reminder on the cut off date itself.
If I set Pause Until Duration event then the workflow as expected doesn't do anything till the date. How to break the Pause Until Duration if the UserC approves the task within the date range before cut off date.
I was thinking of loop but couldn't figure out how to achieve it in a better way.
Thank you
Tanzim
Tanzim Akhtarhttp://blog.qumsieh.ca/2012/01/27/sharepoint-designer-workflow-pause-until-date-change/
Here the user break the pause duration using code. if you don't want to code means just split the workflow into two
One for managing approval
One for managing Email
So that the pause state in email workflow will not affect the approval workflow.
Also in Email workflow we have check the approval and moved status so it will not send the remainder mail to approved request
Ravin Singh D -
How to send out email from table data every day?
want to implement email function:
send out data in email from a table with select everyday
how to implement it in ASE 12.5?You can use the Job Scheduler functionality within ASE or a UNIX OS cron job to cause something to happen at a particular time every day.
With Job Scheduler, you might have it use xp_cmdshell to execute a script on the OS,
while cron would just execute the script directly.
The script would log into ASE, run the select and store the results into a file, then send the file contents.
A simple example of such a script file might be:
isql -Usa -Ppassword -o /work/my_output.txt << EOF
select * from mydb..mystatus
go
EOF
mailx -s"My Daily Status" bret < /work/my_output.txt
As the file contains your password, be sure permissions are set so only you can read and execute the file. -
How to find out who create a data record
Hello expert,
is it possible to find out who created a special data record on the cube, even if this is not cosidered by the data model?
We do not save sy-uname on cube.
Thanks
JohannesHi Johannes,
you can do this with this How To - Paper:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0e3df0c-c370-2910-a696-96f5f38574d7
Cheers, Clemens
PS: The solution described in the HowTo Paper can be done for BPS and IP as well -
HR Abap - How to grey out infotype 416 'Start' date on screen 2
Hi,
For infotype 416 I want to force the user to enter the Start date on the initial PA30 screen. Therefore I have to grey out the 'Start' Date field that appears in the second screen '2000' when creating a record.
Any ideas on how to do this?
Regards,
Warren.Hi,
In order to add additional functionality and checks to the PBo & PAI of HR infotypes you need to
implement enhancement 'PBAS0001' using CMOD . Once you
have done this you need to go to the function modules EXIT_SAPFP50M_001 & EXIT_SAPFP50M_002
and create the includes within them i.e. ZXPADU01 and ZXPADU02. You can now enhance the
functionality of HR infotype PBO and PAI by simply adding code to these includes. See
example below:
HR Infotype User exits
Include ZXPADU01 for the PBO module
Incldue ZXPADU02 for the PAI module
*Example code.
CASE innnn-infty. "Infotype?
WHEN '0001'. "infotype 0001
Processing code
WHEN '0008'. "infotype 0008
Processing code.
etc.
WHEN OTHERS.
ENDCASE.
Hope this helps.
Reward if helpful.
Regards,
Sipra -
How to seperate a certain set of data..?
Hi everyone. I am making a measurement. In this measurement there are let say 1000 value. I want to take 100 specific value for further analysis. For this, I want to index those data which I want and calculate them, then continue doing next measurement.
Let say, I am measuring voltage at every 100K temperature. As you can see from the picture. At 100K I am measuring voltage likte this. Here what I want is to take this data which is red to calculate something. I am looking forward your ideas. Best and thanks in advance.there is my vi. what I want to do is; there are two temperature values. I set both of them to the specific temperature value, and wait for the stability. As stability achieved, set one of the temperature again; here my measurement starts, measure the dT and dV simultaneously. As the temperature level achieved the same level, stop the measurement and index these dV and dT to calculate.
example;
set T1=300K, T2=300K, as they are stable
set T1=305K, T2=300K, start recording dV and dT and AverageT
as T1=305K =>>set T!1=300K; continue recording dV and dT and AverageT
as T1=300K, T2=300K, stop recording, set new temperature.
Best.
Attachments:
Read Condition_SC_sub.vi 70 KB
Stability_control - 5K.vi 28 KB
Stability_control.vi 30 KB -
How to find out the set handler for a particular signal?
I have an interesting puzzle to solve. l'm investigating problems with someone else's code and I'd like to get the name of the handler that is set for SEGV. psig shows that the process catches SEGV, however I don't have access to the source code for all the libraries it links against and none of the source code I have sets a handler for SEGV. Is there a way to find out the name of the signal handler that is set for a particular signal in a process? I'm sure the source was compiled with cc -g. Solaris 8
Hello Haritha,
Please follow the path.
Go to RSA1 -> Metadata Repository ->DataStore Objects(ODS) -> Find you DSO(ODS) there and click on that, you will get all the details(Queries, Objects - Char, Key figures, update rules,etc..) related to that particular DSO(ODS), same is the case for Cube as well.
Please assign points. -
How to find out the top 10 data loads based on time duration?.
Hi,
We are working on performance tuning. so we want to find out the top 10 loads which had run long time in date wise.
We need the load start time and end time of the load process, Infosource and datatarget name.
There are nearly 1000 loads, So it is very difficult to collect the load's timings in RSMO.
Is there any another alternative to collect the top 10 loads based on time duration in date wise?
Thanks & Regards,
RajuHi Gangaraju,
You can install BI Statistics for getting these type of data.
Or you check in RSDDSTAT or RSMDATASTATE_EXT or table for the Load process time.
Or goto t-code ST13 to get detailed analysis of a Process chain for a given period.
Hope this helps.
Regards,
Ravi Kanth -
How to use BAPI_OBJCL* to set classification data for Techn. Objects - PM ?
Good afternoon !
I´m working in a project to integrate some legacy system with the ECC 6.0, and I need to do some activities like, create functional locations and equipments in SAP PM, I have done this creating Z RFC modules that call bapis like BAPI_FUNCLOC_CREATE and BAPI_EQUI_CREATE, but these BAPIs doesn´t fill classification data, so, in a first moment, I solved this using BDC, but I would like to solve these needs using standard BAPIs if possible.
To solve the classification, I tried to do it using the BAPI_OBJCL* BAPIs(BAPI_OBJCL_GET_KEY_OF_OBJECT, BAPI_OBJCL_CREATE_KEY), but I didn´t find any example of using these bapis with technical objects, so I tried to test the BAPI_OBJCL_GET_KEY_OF_OBJECT in a first moment and, when I call it passing '003' as classtype(003 is the classtype for the functional locations), this bapi returns me "Class type 003 requires additional objects"(the same occurs if I try it with 002, for equipment). What means this message ? Need I to do some customization in img/spro, or cannot these bapis be used with PM technical objects ?
Thank you for your attention,
WilsonHi all !
I have found the solution for this problem, I found that I was trying to use the wrong functions for my case, so, to solve my needs here, I will use BAPI_OBJCL_CREATE to set the classification data for Functional Locations and Equipments, and I can use BAPI_OBJCL_GETCLASSES to list all classes assigned for a Technical Object, and BAPI_OBJCL_GETDETAIL to get all characteristics assigned to a Technical Object for a specific class.
Thank you all for your attention !
Wilson -
How to avoid exception when setting a date in an Edit control?
I'm have made a Coded UI Test with VS 2012 for a web application of a colleague.
In that web application is a table with some entry fields of type Edit.
In one of these fields (called "DatumAb") i can enter a date in format "dd.mm.yyyy" (day, month and year).
Coded UI Test identifies the control by the name "von (tt.mm.jjjj)", which is in fact just a placeholder.
When i replay my recording i get an exception which says, that either the control is not ready or not valid.
Next i have called the DrawHighlight method for that control.
While the replay i can see the blue frame, so the control is accessible.
Can anybody tell me, what's going wrong?
Here an excerpt from the HTML-Code of the web application with the date field:
<table class="table table-hover table-bordered table-condensed table-well table-responsive">
<thead>
<tr>
<th class="ng-scope" translate="global.datum.Von">von</th>
</tr>
</thead>
<tbody>
<!-- ngRepeat: vb in vm.formData.Vorbeschaeftigungen -->
<tr class="ng-scope" ng-repeat="vb in vm.formData.Vorbeschaeftigungen">
<td>
<input value="11.02.2015" rm-date-input="" ng-model="vb.DatumAb" class="form-control ng-pristine ng-untouched ng-valid ng-valid-rm-date-input ng-valid-rm-date-input-format
ng-valid-rm-date-input-day ng-valid-rm-date-input-month ng-valid-rm-date-input-year" placeholder="von (tt.mm.jjjj)" type="text">
</td>
And at last the exception message.
Sorry - only in german.
Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotAvailableException wurde nicht von Benutzercode behandelt.
HResult=-268111872
Message=Das Steuerelement ist nicht verfügbar oder nicht gültig. Weitere Details:
TechnologyName: "MSAA"
Name: "von (tt.mm.jjjj)"
ControlType: "Edit"
Source=Microsoft.VisualStudio.TestTools.UITesting
BasicMessage=Das Steuerelement ist nicht verfügbar oder nicht gültig.
StackTrace:
bei Microsoft.VisualStudio.TestTools.UITesting.Playback.AddUITestControlDescriptionToException(SystemException exception, IPlaybackContext context)
bei Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, IPlaybackContext context)
bei Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, String actionName, UITestControl uiControl)
bei Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, String actionName, Object parameterValue, UITestControl uiControl)
bei Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetPropertyValue(String propertyName, Object propertyValue)
bei Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetPropertyPrivate(String propertyName, Object value)
bei Microsoft.VisualStudio.TestTools.UITesting.UITestControl.<>c__DisplayClass14.<SetProperty>b__13()
bei Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker.InvokeMethod[T](Func`1 function, UITestControl control, Boolean firePlaybackErrorEvent, Boolean logAsAction)
bei Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetProperty(String propertyName, Object value)
bei Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinEdit.set_Text(String value)
bei TestMitVorbeschaeftigungen.UIMap.DatumVon() in c:\CodedUiTests\Tests mit Webanwendung\TestMitVorbeschaeftigungen\TestMitVorbeschaeftigungen\UIMap.Designer.cs:Zeile 92.
bei TestMitVorbeschaeftigungen.CodedUITest1.CodedUITestMethod1() in c:\CodedUiTests\Tests mit Webanwendung\TestMitVorbeschaeftigungen\TestMitVorbeschaeftigungen\CodedUITest1.cs:Zeile 37.
InnerException: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotAvailableException
HResult=-268111872
Message=Das Steuerelement ist nicht verfügbar oder nicht gültig.
Source=Microsoft.VisualStudio.TestTools.UITest.Extension.Msaa
BasicMessage=Das Steuerelement ist nicht verfügbar oder nicht gültig.
StackTrace:
bei Microsoft.VisualStudio.TestTools.UITest.Extension.Msaa.MsaaUtility.MapAndThrowException(SystemException e, Boolean throwNotSupported)
bei Microsoft.VisualStudio.TestTools.UITest.Extension.Msaa.AccWrapper.set_Value(String value)
bei Microsoft.VisualStudio.TestTools.UITest.Extension.Msaa.MsaaElement.set_Value(String value)
bei Microsoft.VisualStudio.TestTools.UITesting.WinPropertyProvider.SetValueInEditableControl(UITestControl editControl, String propertyValue)
bei Microsoft.VisualStudio.TestTools.UITesting.WinPropertyProvider.SetEditProperty(String propertyName, Object value)
bei Microsoft.VisualStudio.TestTools.UITesting.WinPropertyProvider.SetPropertyValue(UITestControl uiControl, String propertyName, Object value)
bei Microsoft.VisualStudio.TestTools.UITesting.UITestPropertyProvider.SetPropertyValueWrapper(UITestControl uiControl, String propertyName, Object value)
bei Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetPropertyValue(String propertyName, Object propertyValue)
InnerException: System.NotImplementedException
HResult=-2147467263
Message=Die Methode oder der Vorgang ist nicht implementiert.
Source=Accessibility
StackTrace:
bei Accessibility.IAccessible.set_accValue(Object varChild, String pszValue)
bei Microsoft.VisualStudio.TestTools.UITest.Extension.Msaa.AccWrapper.set_Value(String value)
InnerException:Hi Patrick Pirzer,
>>That either the control is not ready or not valid.
Next i have called the DrawHighlight method for that control.
My suggestion is that you would check whether this control is really existing when playback actions run on this control. Or add a wait event would be better.
http://blogs.msdn.com/b/gautamg/archive/2010/02/12/how-to-make-playback-wait-for-certain-event.aspx
Reference:
http://stackoverflow.com/questions/11737254/codedui-test-not-waiting-for-control-to-exist
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
Lightroom 5.6 crashing, not able to import or back up changes
I have been having issues with Lightroom 5.6 for few days now. I have been working from this Lightroom install for a year now problem free. The problem seems to happen when I try to import pictures. At first I thought it was my SD card but I copied t
-
How do I open pdf docs in Safari 5.1.5? Online suggestions have not worked.
-
How to remove update notices in Creative Cloud app?
I want my team to stay on InDesignCC for the time being (not InDesignCC2014). Is there a way to remove/hide/demote/ the persistent UPDATE 2014 notices at the top of the Creative Cloud app? Creative cloud for Teams.
-
Aironet 1300 + WLC + password default
Good Morning, I need to know how can i change the username and password default of a AP joined to a WLC automatically when the AP is joined to the WLC. config ap username user-id password pass {AP-name | all} Can i do it automatically or every time t
-
Hi, Is there a setting in smart view, by which we can prevent the first auto refresh of data onto the excel sheet, immediately after the login? Thanks, Anindyo