473,765 Members | 2,047 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to handle complex form

Hello,
I have to create a complex form to handle company product returns.
Right now, I have some form fields to describe the product being returned,
productID, productDES,Prod uctQTY.
Thats fine. I have a button that will dynamically create those
fields with javascript, with an 'add more' button. It creates a line
with consecutive names like
productID[1], productDES[1]...productID[2]...productID[3]...
similar to this
http://chucklarge.mine.nu/test/javas...element-02.htm

Ok, so the problem i have is for each one of those lines of products to
return, serial
numbers need to be entered that match the Quantity being returned.
There can
be hundreds or more of each different product to return.
The client mentioned having a popup window that would allow you to enter
each of
the serial numbers and have those linked to the form line of the main
page.
This sounds fine with me, as long as they don't complain later about
popup blockers,

anyway, unless there is a better way to handle this, I will create a
popup that has
one line of fields, the serial number is entered, and the condition and
then you
hit and add button and it populates the info below, then you keep
entering the
other serial numbers.

I guess then I want to know how to get the info back to the main page.
I will
store all the serial numbers in an array, so hopefully that will make it
easier,
but then where does that info get stored on the main page, and can it all
be submitted when the main form is submitted?

sorry I am just a little lost on this idea and am looking for advice.

thanks,
Chuck
Nov 4 '05 #1
1 1548
chuck wrote:
Hello,
I have to create a complex form to handle company product returns.
Right now, I have some form fields to describe the product being returned,
productID, productDES,Prod uctQTY.
Thats fine. I have a button that will dynamically create those
fields with javascript, with an 'add more' button. It creates a line
with consecutive names like
productID[1], productDES[1]...productID[2]...productID[3]...
similar to this
http://chucklarge.mine.nu/test/javas...element-02.htm

Ok, so the problem i have is for each one of those lines of products to
return, serial
numbers need to be entered that match the Quantity being returned. There
can
be hundreds or more of each different product to return.
You have many serial numbers for each product?

The client mentioned having a popup window that would allow you to enter
each of
the serial numbers and have those linked to the form line of the main page.
This sounds fine with me, as long as they don't complain later about
popup blockers,
Popup blockers usually only block unrequested pop-ups, but not all. You
can create an HTML element that mimics a popup (say use a div) and then
put the serial numbers into an option list or text list with onclick
attributes.

anyway, unless there is a better way to handle this, I will create a
popup that has
one line of fields, the serial number is entered, and the condition and
then you
hit and add button and it populates the info below, then you keep
entering the
other serial numbers.
You could put the serial numbers into script files as an array or object
and load the associated file only if the product is selected. They need
only be loaded once each (or just load them anyway...).

The defer attribute can be used so that the page keeps loading other
content while the serial number script files are loaded (in theory anyway).

I guess then I want to know how to get the info back to the main page. I
will
store all the serial numbers in an array, so hopefully that will make it
easier,
but then where does that info get stored on the main page, and can it all
be submitted when the main form is submitted?


When the serial number is selected, write it to a field in the form and
it will be submitted with the form. You may want to make the field
readonly so the user doesn't mess with it, or write the number to a
hidden field and display the number as text.

It may seem simple, but you need quite a bit of logic to handle the
interface, it's very easy to end up with non-matching products and
serial numbers.
--
Rob
Nov 4 '05 #2

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

Similar topics

28
2680
by: Grant Edwards | last post by:
I finally figured out why one of my apps sometimes fails under Win32 when it always works fine under Linux: Under Win32, the pickle module only works with a subset of floating point values. In particular the if you try to dump/load an infinity or nan value, the load operation chokes: Under Linux: $ python
14
10144
by: Abhi | last post by:
FYI: This message is for the benefit of MS Access Community. I found that this prblem has been encounterd by many but there is hardly any place where a complete solution is posted. So I thought I should give back to the community by posting our findings. Thanks you all for all your help till now by posting problems and their solutions. ~Abhijit
8
2962
by: Steve Jorgensen | last post by:
Mailing List management is a good example of a case where my conundrum arises. Say there is a m-m relationship between parties and groups - anyone can be a member of any combintation of groups. Now, let's say the user wants to be able to send mailings to people who have various combinations of membership and non-membership in those groups. Here's a medium-complex example: (Knitting Group or Macrame Group) and Active Contact and Mailing...
4
2473
by: atv | last post by:
Whatis the proper way to handle errors from function calls? For example, i normally have a main function, with calls to mine or c functions. Should i check for errors in the functions called themselves, or should i return a code to main and handle the error there? If i don't return them to main, except for the structure, what use is the main function except for calling functions?
3
2060
by: Russ | last post by:
I'd like to get output formatting for my own classes that mimics the built-in output formatting. For example, >>> x = 4.54 >>> print "%4.2f" % x 4.54 In other words, if I substitute a class instance for "x" above, I'd like to make the format string apply to an element or elements of the instance. Can I somehow overload the "%" operator for that? Thanks.
7
2266
by: Ryan | last post by:
I'm creating a user control that has a handful of controls on it (19 in total). One of the controls on the UC is a textbox for a user's password, so I've set the PasswordChar property to "*". I rebuild and all is well. The problem arises when I have the PasswordChar set, and then try to set Localizable to True for the UC. If I set Localizable to true and have PasswordChar set and rebuild, Visual Studio 2005 will then try to reload the...
2
1556
by: pietlinden | last post by:
I've been given the task of building a database for a manufacturer's representative. He basically imports product and resells it. He currently has this spreadsheet that's fairly complex. (Either that or I'm just plain stupid, because it took me 2 days to figure out how it all worked!) Most of the sheet is simple and straightforward. Looks a lot like a normal table in Access would, except there are formulas thrown in everywhere. In a...
6
1710
by: =?Utf-8?B?VG9tYXM=?= | last post by:
Hi, I have an C++/CLI MDI application with two Forms A and B. When I work with Form A I would like to know the handle of Form B (if it is opened), to use its handle in a delegate that execute a function in Form B. In example: DelegateAbc^ d = gcnew DelegateAbc(HANDLE,&FormB::TestB);
1
9503
by: perroe | last post by:
Hi I have a array of complex numbers that are stored in a simple double array. This is done since the array is part of an wrapper for an external C library, and the imaginary part of the first element, and the last element are known to be 0. I've implemented a -operator that returns a ComplexReference object that basically maps a complex<doubleinto the storage used in the array. What I would like to do is using the ComplexReference...
0
9568
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9404
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10164
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8833
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5277
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.