w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
ASP .NET Nested Datagrid - Field or Property was not found on selected datasource error
Look at this part: DataTable dtQuoteHed = new DataTable("dtQuoteHed"); dtQuoteHed.Columns.Add("QuoteNum", typeof(int)); dtQuoteHed.Columns.Add("QuoteLine", typeof(int)); You are defining Quoteline column for dtQuoteHed table but in the schema dtQuoteHed element does not have Quoteline child element. So remove it from dtQuoteHed data table: DataSet dsQuote = new DataSet("dsQuote"); DataTable dtQuoteHed = new DataTable("dtQuoteHed"); dtQuoteHed.Columns.Add("QuoteNum", typeof(int)); dtQuoteHed.Columns.Add("TerritoryTerritoryDesc", typeof(string)); dtQuoteHed.Columns.Add("DueDate", typeof(DateTime)); dtQuoteHed.Columns.Add("BTCustID", typeof(string)); dtQuoteHed.Columns.Add("CustomerName", typeof(string)); dtQuoteHed.Columns.Add("QuoteAmt", typeof(decimal)); dtQuoteHed.PrimaryKey =

Categories : C#

Error: "A field or property with the name was not found on the selected data source" get only on server
I found the IIS Version on my server is 6. but my local is 7.5. I publish my project on another server with iis 7.5 and it works Solution1: I create a summaryOfOrder like this: class summaryOfOrder { public int Id { get; set; } public int OrderId { get; set; } public string ConfirmStatusName { get; set; } public string OrderStatusName { get; set; } public string PaymentStatusName { get; set; } public string ShippingStatusName { get; set; } public string CreatedDate { get; set; } } and change <asp:BoundField DataField="ConfirmStatuse.Name" /> to <asp:BoundField DataField="ConfirmStatusName" /> and bind class to grid by gv.datasource = mySummryOfOrder; gv.databind(); and initialize a list of this

Categories : Asp Net

"Webpage not found" "file:///android_asset/html-nl/index.html not found" error on android device
Solution: I found that ZXing auto-loads HelpActivity when a new version of the app is installed. In that activity, there's the redirect to html-userlanguage. Easy to fix: just tell the script (it's in com.google.zxing.client.android) not to load the HelpActivity.

Categories : Android

Error Building Project in Android Studio "Error: No resource found that matches the given name (at ____ with value '@drawable/')
Alright, so after fussing with the rebuild for hours trying different methods (renaming particular files [i.e. those with the problems], rebuilding the app after renaming folders inside the build folder, etc) I finally decided that I would go to the source of the problem and see if it worked like other IDE's. Indeed it did, this is how I performed the fix: Find the location of the problem - For me, all four of the errors I had were inside the 'build' folder of the project. Close any open instances of the project While the project is closed, rename this folder from windows explorer (or other if youre using a different OS) (i.e. If the folders name is "build", rename it to "build.old") Open the project once more Go to Build > Rebuild Project You should not have any issues doing this, lik

Categories : Android

No Class Def Found Error (android)
Right click your Project -> Properties -> Java Build Path -> Order & Export After reaching here, libraries what you have used, "select" those libraries and move them to top of list. i.e suppose you have used "xyz.jar" file then following will be your sequence. [x] xyz.jar [x] Android x.x [x] Android Dependencies .... Save changes and rebuild your project after cleaning it.

Categories : Android

How do I fix JDK not found error when building Android source?
I found the solution: For some reason I did not have the respective rights as the "Permission denied" would suggest. Setting the permissions for the Android source folder via chmod did the trick I mistakenly downloaded the latest branch. However I only have a 32 bit system. For 32 bit you can only use Android source that is smaller than Android 2.3 and for those versions you also have to use JDK 5 http://source.android.com/source/building.html

Categories : Java

Android Manifest error - No resource found that matches the given name
Make sure you have downloded & imported ActionBarSherlock from the following URL:http://actionbarsherlock.com/download.html and set it as a library in its project properties. In your absnavdrawar application add the ActionBarSherlock library, clean the application and everything should be fine

Categories : Android

OpenCV for Android: Error Program "sh" not found in PATH
According to this thread you should try creating a new project Executable project and then choose the toolchain you want to use.

Categories : Java

Android: No Activity found to handle Intent error?
Try, Handler handler = new Handler(); handler.postDelayed(new Runnable() { @Override public void run() { Intent menuIntent = new Intent(MainActivity.this, JavaMenu.class); startActivity(menuIntent); } }, 3000);

Categories : Android

Android studio gives error on compilation, No resource found
In the file styles.xml that is mentioned in the error, if line 24 literally says: 'style/Theme.Sherlock.Light.DarkActionBar' then change it to: '@style/Theme.Sherlock.Light.DarkActionBar' (You just missed the @ symbol)

Categories : Java

"No Launcher activity " found error in eclipse while running android app
Try to change activity name to android:name=".PL2303HXDSimpleTest" Also, it is a good practice to end the name of the activity with Activity suffix, i.e. MailActivity or MyActivity.

Categories : Android

Android app - native lib not found error report on Google Play?
I figured out what was the problem, inspired by comments left by Chris above. I noticed then that the reported error was on an old device, which can be upgraded max to Android 2.2, not higher. In the most current release of my app, I made a small modification in my native library, and used asset_manager in it. I did not realize that the native code was compiled for android-14 platform (as my AndroidManifest.xml declares this as the targetSdkVersion), while my minimum supported platforms is android-8 (Android 2.2, Froyo). Turns out there is no asset_manager under the old platform. After I added to Application.mk the following line: APP_PLATFORM := android-8 the native build immediately triggered an error and I could fix the issue. Well, the most important lesson from this adventure,

Categories : Android

ERROR: Android Source Generator: [project] AndroidManifest.xml file not found
Go to the directory where you have installed Android SDK. There, go to tools directory. Note down the path of tools directory. Open command prompt/terminal, and cd to tools directory: cd <tools directory path> Run command: android update project -p <path to project directory> -n <name of project> -t android-15 To create a new project: android create project -p <path to project directory> -n <name of project> -k <package name> -a <hello world activity name> -t <android version like: android-15>

Categories : Android

error: No resource identifier found for attribute 'onTouch' in package 'android'
The attribute android:onTouch does not exist. It is enough to use the OnTouchListener which can be added to every view easily by the setter method setOnTouchListener. In your case: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); findViewById(R.id.myimage).setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch (View v, MotionEvent event) { int x = (int)(event.getX()); int y = (int)(event.getY()); City tempCity = new City(x,y); TourManager.addCity(tempCity); return true; } }); }

Categories : Java

Android viewpagerindicator XML error: No resource identifier found for attribute 'footerIndicatorStyle'
It turns out that the project and the library project reside in different drive(C: and D: respectively) on Windows 7. The problem solved by moving them into the same drive. This is a bug. ADT version 22.05, Eclipse version Juno Release 2. Target API 18.

Categories : Java

Android NoClassDefFoundError vs. Error generating final archive: Found duplicate file for APK:
Make sure the JAR is checked as "exported": right-click on the project -> Properties -> Java Build Path -> Order and Export tab -> Make sure the JAR entry (or "Android Private Libraries") is checked. I have a similar setup (with a project containing Libgdx-dependent "common" code that I share among my Libgdx projects). However, instead of building a JAR, I just include the project directly. (Java Build Path -> Projects tab -> Add...). I had to include my CommonProject explicitly in all of the Libgdx project (common, desktop, android, etc), it wasn't "inheriting" from the Libgdx common project into the android one. You may have to do something similar with your JAR file.

Categories : Java

'No resource identifier found for attribute' error even after using namespace http://schemas.android.com/apk/res-auto
Found the problem. I had defined these attributes in the attrs.xml in the following format <declare-styleable name="HorizontalPager"> <attr name="ignore_vertical_scroll" format="boolean" /> <attr name="page_width_proportion" format="integer" /> </declare-styleable> <declare-styleable name="HorizontalPager"> <attr name="off_screen_page_limit" format="integer" /> </declare-styleable> Both the styles had the same name and now during compilation the second attribute definition was overriding the first attribute definition because of which aapt was not able to find the said attributes. Combining these two definitions into a single one fixed the problem.

Categories : Android

error: No resource identifier found for attribute in custom-views from http://developer.android.com
I meet the same problem,I think your custom attributes don't belong to the right namespace.You can get the demo of customview_panda and look at custom attribute in the main.xml,you will understand. https://github.com/pandabo1985/Android_App_Prac

Categories : Android

Eclipse Java Debugging Error "Source not found." when adding items to Android spinner
Spinner is a class from the Android SDK. You will need to download the Android SDK source code, and attach it to the project spurces, so you can debug this class (and other Android SDK classes) --- UPDATE 1 --- Please have a look at this blog post to attach your andriod sources and debug them.

Categories : Java

A field or property name was not found in the selected data source
There seems to be a mismatch between what you're returning and expecting back from the stored procedure. I would compare field by field to see that there are no missing or misspelled column names. Run the proc in Management studio and compare it to the fields you are referencing in code

Categories : C#

Jmeter RegEx Extractor
I have created jMeter tutorials for the very subject. http://my.kpoint.com/kapsule/gcc-e1bad3ad-61cf-4620-9733-e44a74af8a3e/t/jmeter-tutorial-regex-extractor-basics http://my.kpoint.com/kapsule/gcc-1dadaeee-1572-4c83-81fc-8d401cade743/t/jmeter-tutorial-multivalue-regex http://my.kpoint.com/kapsule/gcc-744b552e-c91e-4db2-9d39-37c6e66f22ac/t/jmeter-tutorial-json-array-extraction

Categories : Regex

Jmeter : using the Regular Expression Extractor
What you can do is to add two regular expression extractors as child nodes to the URL sampler, providing a reference name like response_name, an expression like <name>([^<]+) and a template $1$ (and another for firstname). You can then use the JMeter variable ${response_name} in another URL sampler to use the value captured in a request.

Categories : Java

Scala Extractor unapply called twice
You can use map instead: scala> println( data.map{ case Uap(x) => x } ) S: a S: b S: c S: d S: e List(a!, b!, c!, d!, e!) No idea why it works that why.

Categories : Scala

How to retrieve text from DIV tag using xpath extractor for jmeter
I think the CSS/JQuery_Extractor is easier. CSSJQuery Expression: div#divBasket Then you can get the attribute one by one. you still need to split DetailIds and modeOrKey by yourself.

Categories : HTML

Issue with Gmail contextual gadget email extractor
Google found me a link for GAS bugs: https://code.google.com/p/google-apps-script-issues/issues/list Short-term you could write a function to always remove dots from addresses before comparing. Here's a suggestion from StackOverflow using regex: Filtering periods out of email addresses with regex You might want to consider that "+" can be used, too. See Looking for a regex to match a gmail plus address As for the proper channel, I recall (but can't find the info now) that the Google Group for GAS at one time specified that questions should be asked in Stack Overflow. I had posted a few GAS questions in Web Apps and asked them to be migrated here for that reason.

Categories : Misc

How to write/use a anorm Extractor like rowToStringSequence Column[Seq[String]]
anorm.Column is made to convert JDBC data to desired Scala type. So first question is which kind of JDBC you want to convert as Seq[String] (not being by itself a JDBC type).

Categories : Database

Is there a reason to prefer extractor functions to accessing attributes with $?
Because then the author of the package you are using is free to change the underlying structure of the model object without worrying about breaking everyone's code. Obviously this generalizes to R Core as well. It is recommended to use those extractor functions because then you can be sure that it will always return the correct information, even if the function authors find it necessary to shuffle things around under the hood. Maybe they add some more information to one of the elements of the model list object, and that changes the order of everything? All your code will break.

Categories : R

JMeter Regular Expression Extractor Not Working For IFrame
It does work for me with jMeter 2.9. Regular expression extractor as below. And the result is as below.

Categories : Java

Having a hard time finding any tutorials/examples for the FREAK feature extractor
OpenCV has a sample demonstrating FREAK at this link. FREAK is a feature extractor like any other, and exposes the same interface. FREAK does not detect features, so you must use a different method (like cv::goodFeaturesToTrack()) to detect points of interest. A summary of that sample is as follows: cv::Mat image; //This is the image std::vector<cv::KeyPoint> keypoints; // This comes from your feature detector of choice cv::Mat descriptors; cv::FREAK freak; freak.compute(image, keypoints, descriptors); // Now "descriptors" contains descriptor data for the input keypoints.

Categories : Opencv

A constructible type deriving from DbContext could not be found in the selected file (EF Power Tools Beta 3/Visual Studio 2012)
I have had this issue in the past. It comes when your Context, "does too much" I left that comment deliberately vague. But you can generally narrow it down to your constructor code. If the powertool cant easily instantiate your context due to constructor params or the constructor starts up power station, the tool gives up... There is no doubt a more technical analysis around parameter-less constructors but you will know enough to avoid. I use commented out VANILLA constructor that I use for view generation purposes. Then put it back when done for live work. ;-) public class MyFANCYDbContext : DbContext { MyFANCYDbContext( what is here??? Can EF powertool supply this ?){ Inside the Constructor... do I start a power station ? Any other issues preventing the Create obje

Categories : Visual Studio

jMeter - XPath Extractor does not let BSF Post Processor (with javascript code) to access multiple extracted matches
Found the solution here: BSF Post Processor witch JavaScript code: var myOutput = ''; var names = {}; var str; var value = 0; var match = vars.get("contentGroupID_matchNr"); for (var i = 1; i <= match; i++) { var n = i.toString(); str = 'contentGroupID_' + n; value = vars.get(str); names[i] = value; } for (var j = 1; j <= match; j++) { myOutput = myOutput +  '<ns8:forContentGroupId><ns2:id>' + names[j] + '</ns2:id></ns8:forContentGroupId>'; } vars.put("array", myOutput); Plus ${array} variable inside XML. End of story! =)

Categories : Javascript

Android NDK in ADT and Mac OS (10.8): Cannot run program "/ndk-build": Unknown reason Error: Program "/ndk-build" is not found in PATH
You need to change the PATH in Eclipse since it is Eclipse that is trying to run the command. Go to Project Properties > C/C++ Build > Environment > PATH Add the path to your ndk directory in the PATH variable (i.e. add /Users/mohitagrawal/android-ndk-r8e to the PATH variable). Moreover, it apparently tries to run /ndk-build. Make sure that in Project Properties > C/C++ Build, "Build command" is ndk-build and not /ndk-build EDIT: you can also try to build your project from the terminal, by navigating to your project and running the command ndk-build.

Categories : Android

No Android facet found, issues compiling with Android Studio 0.2
Add an android facet to your module by following below steps. 1) Go To File Menu -> Project Structure, or press (Ctrl+Alt+Shift+S) shortcut to open "Project Structure". 2) Select "Facets" which is under the "Project Settings" tab. (First column) 3) Click on "+" button which is at the top of the Second Column to add new facets. 4) Select "Android" facet from that "Add "menu which will prompt another dialog box to select a module. (Select a module to which you want to apply this facet). 5) Select your module and that's it. :) Hope this will solve your problem.

Categories : Android

Android selector state for selected items in android 2.3?
So it looks like your problem is that the state_activated parameter was not introduced until API level 11, aka Android 3.0. Luckily there is hope for you; take a look at this tutorial and see if it gets the job done.

Categories : Android

Can't connect with MySQL database, getting error "Fatal error: Class 'mysql_connect' not found in..."
You cannot do new mysql_connect, mysql_connect is a function and not a Class. Also please, don't use mysql_* functions in new code. They are no longer maintained and are officially deprecated. See the red box? Learn about prepared statements instead, and use PDO or MySQLi - this article will help you decide which. If you choose PDO, here is a good tutorial.

Categories : PHP

ajax response error(XML Parsing Error: no element found Location: moz-nullprincipal)
I've this problem with request: $.ajax({ type: "POST", url: ajaxUrl, dataType : "json", contentType: "application/json", data: JSON.stringify(data), success: function (data) { ... } }); Accept header in request is: Accept application/json, text/javascript, */*; q=0.01 Response status is 200, but browser detect error and no success callback called Fixed by remove dataType : "json": $.ajax({ type: "POST", url: ajaxUrl, contentType: "application/json", ... The only difference that accept header in request changed to: Accept */* But now success callback is called.

Categories : Javascript

Ajax alert error (Fatal error Class not found in home/../test.php)
Your AJAX call is calling a PHP page which returns a PHP error. You should open test.php and check line 3. You are most likely calling a class that doesn't exist (is not declared) or the class is declared in a file, which is not included. Most class calls look like this: $c = new MyClass(); // Create a class object or MyClass::myMethod(); // Static call to a class method These both will throw the above PHP error if MyClass is not defined anywhere.

Categories : PHP

How to make some selected items as checked on load in jstree. (selected = "selected" not working)
I found solution for my question. .bind("loaded.jstree", function (event, data) { $('li[selected=selected]').each(function () { $(this).removeClass('jstree-unchecked').addClass('jstree-checked'); }); });

Categories : Javascript

Android Studio: Plugin with id 'android-library' not found
Instruct Gradle to download Android plugin from Maven Central repository. You do it by pasting the following code at the beginning of the Gradle build file: buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:1.1.1' } } Replace version string 1.0.+ with the latest version. Released versions of Gradle plugin can be found in official Maven Repository or on MVNRepository artifact search.

Categories : Gradle

server side - bootsrap typeahead internal error on first load - with laravel http error not found
Try to add the full website url to jQuery's url object. If you want dynamic url you could add <script>var WEBSITE_URL = {{ URL::to('/') }};</script> before your js application, then ... $.ajax({ url: WEBSITE_URL + 'customers/typeahead/'+query, ... Try to use firebug to see what's sent and what's returned so you can better locate where's the error.

Categories : PHP



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.