473,395 Members | 1,473 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

create a newrow in distributed application?

Gday,

I have just started c# .net about 3 months ago and have recently (last week)
upgraded to 2005 and hoping for some
assistance understanding the best approach to adding new records to a table.

The application that I am creating is a distributed application that has an
Oracle DB, an XML WebService, and a
Windows Forms application front end - similar to:
http://msdn2.microsoft.com/en-us/library/1as0t7ff.aspx

I am trying to gain a better understanding of how to create a new row in a
table, and the steps that I think I should
be doing are outlined below - if anyone can comment on as to whether or not
I am on the right track or otherwise I
would be very grateful.

-------------------------
On the WebService:

1.

Create a DataSet that contains multiple datatables using the wizard.

This becomes an <dataset>.xsd file.

2.

Now want to create a new row and display this to the user for editing on a
WinApp. (webmethod: createNewRow())

What I think I should be doing is creating a dataset that is an instance of
the <dataset>.xsd class file,
create an instance of the datatable (unpopulated) that is the table within
this dataset that I want to create
the new row for, then create the newrow object as a row of this table.

I would do this on the web service so as to be able to initialise a couple
of fields before displaying it on the form (
eg id field).

3.

Then from the WinApp it would be cool to be able to reference the datatable
that has the new row that was just created
and allow editing from here...however I think I have to pass datasets rather
than datatables as it seems you cant pass
datatables to a web service?

This appears like it *should* be fairly straightforward however I am new to
..Net and am hoping for some
advice/comments. Are there alternative ways to do this that I have not
thought of?

If this seems like the best approach I will go ahead and implement it and
post the code to the group, as I myself have
had a bit of trouble finding something that achieves this in 2005.

Thanks,

Peter
Dec 21 '05 #1
0 930

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Constandinos Mavromoustakis | last post by:
CFP: CLADE 2004-Challenges of Large Applications in Distributed Environments ------------------------------------------------- PhD student - Dept.Informatics at Aristotle University of...
1
by: channa_s | last post by:
Hi, I would be very grateful if anyone could help me with the following. I want to create a SIMPLE distributed database. It is as follows: There is a institution which has branches all...
7
by: Richard Maher | last post by:
Hi, I am seeking the help of volunteers to test some software that I've developed which facilitates distributed two-phase commit transactions, encompassing any resource manager (e.g. SQL/Server...
10
by: Jim Hubbard | last post by:
Have you distributed a .Net application? How about one to the general public? I am writing an application that I had rather do in .Net, however, the 20+ MB dotnetfx.exe worries me. What about...
3
by: Joris Dobbelsteen | last post by:
Dear, I have some considerations I need to take designing a distributed application (it's for a school project). Basically I'm looking for some reference or guidiance material/literature and...
8
by: Omey Samaroo | last post by:
I have had most of my questions answered in this forum and learned a lot from reading others post. In fact, I have even discovered answers to questions that I thought were totally impossible and...
1
by: Tom G | last post by:
I have a need to allow users to save a report as a PDF file from within an Access 97 application, which is widely distributed through the runtime. I've used Adobe Acrobat with the PDF and Mail...
4
by: tsui | last post by:
Dear all Someone say that past is Client/Server application, and now is distributed application, but i don't understand these terms Is it Client/Server application is mean two tiers, and only one...
1
by: mrstrong | last post by:
Gday, I have just started c# .net about 3 months ago and have recently (last week) upgraded to 2005 and hoping for some assistance understanding the best approach to adding new records to a...
4
by: noagbodjivictor | last post by:
I don't know the problem with IE6. I have tried three methods, and they all failed. I eliminated the use of mootools' framework in method 3. MooTools is not the problem. Because the table is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.