Hi all,
I've come up with an idea but I'm struggling with the implementation!
My network thread contacts my server and presents some variables for a search of a web service. Now, the page i call at my server prints out the results for my inputstream to read. It works ok but sometimes there might be 300 results so i want to somehow retrieve only 4 results at a time and then pause the thread.
I'm then...
User Profile
Collapse
-
Control amount of data retrieved - java.io
-
Sort a vector in J2ME
hi,
I have searched without success on a solution to sort a vector in j2me in a desired way. There doesn't seem to be a Comparable class. My vector contains Product objects. What have people done in the past for a workaround?
Regards
Brendan -
There's a bit of it Marcus, I have been programming a blackberry app talking to a server. It it Java though, let me know if you would be willing to help me out, I qouldn't like to just post 2 1/2 classes without your ask me to. Here' the method that fills my list
Code:public void drawListRow(ListField listField, net.rim.device.api.ui.Graphics g, int index, int y, int width) { Product[] data; Product
-
Bitmap Object - any special way to access it needed?
Hi all,
If i have a class - Product, it has 2 fields, String name, and Bitmap productImage. If I try to access the bitmap from another class like Bitmap b = p.productImage; I get null (i have tried many different ways - directly accessing or via a getter method) but if i try to access the string variable of the object it's fine. i know the bitmap has been created. Do i have to convert the bitmap into something else? or is my way of... -
A simple exchange of 5 words server to mobile
The following code makes a connection to my server as i see it in the access file.
Code:String url = "*************************************************;deviceside=true;apn=wap.o2.co.uk;tunnelauthusername=o2wap;tunnelauthpassword=password"; HttpConnection connection = (HttpConnection) Connector.open(url, Connector.READ_WRITE, true); output = new PrintStream(connection.openOutputStream() );
-
How to populate DataTable Column with buttons or TextBoxes
I am trying to provie a way to add or minus or just type the quantity of the desired product on my datatable so I'm thinking the best way is the add a text box or button in a column for each row. How could this be done? Or does anyone know a better way
I populate and create like so...
Code:dt.Columns.Add(new DataColumn("ImagePath", Type.GetType("System.String"))) row["ImagePath"]
-
Hi, yes I think I mised the obvious.
II have looked at a way to check if it is contained in the datatable but there doesn't seem to be a method "contains".
How would you do it? It must be done in this loop?
Code:row = dtSearch.NewRow(); row["ProductID"] = p.Id; String url = p.ImagePath; row["ImagePath"]
Leave a comment:
-
Azure is some kind of "Cloud" concept, Im new to all this but what i thinkis going on with Azure is my site/apps is given a way through Azure to access somebodys database in a wcf service.
Regards
BrendanLeave a comment:
-
Increase value of datatable cell by one depending on exception
Hi,
I have a datatable being populated in a for each loop and it's working great. I'm now trying to eradicated duplicates, I have set productid as uniques and it throws an exception when another product is added which is already present. In this exception I want to increase qty column of the already present row by 1 ....
set column[6] = column[6] + 1 where productID = exception
... -
asp upload - help
Hi all
I have spent the last god knows how many hours working with visual studio to create a simple one page website - default.aspx
The files - default.aspx and default.asp.cs
a c# class file in app code (Form1)
. web.config, form1.designer. cs, form1,resx.
Now, the test local server supllied with vs shows the website works (locally), it actually goes to... -
Thanks for Dan,
I have been learning C# all day, what a nightmare!
Oh well, got it working the way you suggested,no need to use php when c# does the same.
Just trying to view it now, apache won't show it, 123-reg doesn't show it, any ideas anybody?
Regards
BrendanLeave a comment:
-
are C# and PHP workable together?
Hi
I have been left with no chice but to learn a bit about c# as thisis the only language acertainapi is written in.
With the api comes a project which i have opened,compiled and used succesfully. It is mainly just a Form .cs file with the functions within that class.
I feel confident enough to fiddle about with (c#) form code to change the way it gets it's variable (currently from text boxes).
... -
PHP Curl
Hi,
I'm trying to get a webpage so i can extract some detail from the contents, however way i do this is unimportant.
urrently, I'm trying to use curl without success as the page i'm trying to view is php or js, curl is working with html but php.exe encounters error when i access the php page.
Any suggestions - advice on how to do what i want to do or how to get curl working, anything would be great and... -
JSR 257 - contactless
Hi all, please bear with me as I am very new to J2ME, but can handle J2SE quite well.
i really could do with someone taking time out to answer my questions...
I have spent 2 days trying to stop the import javax.microedit ion.contactless .* from highlighting in netbeans (package does not exist)I went to download the zip file from the the jcp page but it was just a load of html pages. now, I eventually found the nokia SDK... -
It was a permissions issue - You need to allow read/write permissions on the folder the database is stored in. All Done now!
Thank you for your help Jos this week.
I feel like I've come a long way since HelloWorld.java
Just out of curiosity, What would a databse program cost (read, write, edit, delete, search options with it as well as creating an invoice with the fields entered). Just wondering if it's...Leave a comment:
-
Java JDBC Shared access
Hi all,
I have been working with java on a database program that connects via jdbc odbc access driver on my xp desktop.
It is working fine but I'm installing it on 3 pc's tomorrow so testing it on my vista laptop now.
When i go to configure dsn on vista laptop and access database via my Z drive it is now calling a java.sql.sqlexc eption on load of jar file.
Question 1 Can accdb have multiple... -
Shared Access to a accdb file
Hi all,
I have been working with java on a database program that connects via jdbc odbc access driver on my xp desktop.
It is working fine but I'm installing it on 3 pc's tomorrow so testing it on my vista laptop now.
When i go to configure dsn on vista laptop and access database via my Z drive it is now calling a java.sql.sqlexc eption on load of jar file.
Question 1 Can accdb have multiple... -
when you say path do you mean...
Code:String cmd; cmd = "C:/Documents and Settings/Admin/My Documents/NetBeansProjects/JavaApplication1/src/javaapplication1/wordAPI.exe"; try { Runtime.getRuntime().exec(cmd).waitFor();
Leave a comment:
-
I've copied it Jos because the word template document included in the download is made for that code - I will write my own as soon as I get it working!!
I'm not silly - honest!Leave a comment:
-
Hi Jos,
I haven't read the poi documentation because I'm not using it as I said in my last post??
There isn't any installation documentation with what i am using but it seems so straight forward. The method documentation for what i am using can be read when my problem is solved, as it's useless to me until then.
Please believe me when i say the following - I have searched for the solution to my problem...Leave a comment:
No activity results to display
Show More
Leave a comment: