473,396 Members | 2,024 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,396 software developers and data experts.

'group by' plus a specific action on form

A doubt by a complete ignoramus.

I have a table, named ttt :
fields : state, continent, capital, currency.
The user tries to input values : "France", "Europe", "Nantes",
"Dollar"

A validation routine files following errors in error_table :
"France" "Europe" "Nantes" "Check The Capital"
"France" "Europe" "Dollar" "Check The Currency"

The table 'error_table' has one more entry :
"Germany" "Europe" "Geneva" "Check the Capital"

I want to show a form which displays all fields of error_table
plus a re-submit button per row. However, if there are more than
one entry, like France-Europe has 2 entries, only one row for
France should have its re-submit button enabled, the other rows
for France should have that button disabled. The idea is that
once the user of the form sees a disabled button, he knows
he needs to correct more than one field for that record.

TIA.
Nov 13 '05 #1
2 1313
dn*****@hotmail.com wrote:
A doubt by a complete ignoramus.

I have a table, named ttt :
fields : state, continent, capital, currency.
The user tries to input values : "France", "Europe", "Nantes",
"Dollar"

A validation routine files following errors in error_table :
"France" "Europe" "Nantes" "Check The Capital"
"France" "Europe" "Dollar" "Check The Currency"

The table 'error_table' has one more entry :
"Germany" "Europe" "Geneva" "Check the Capital"

I want to show a form which displays all fields of error_table
plus a re-submit button per row. However, if there are more than
one entry, like France-Europe has 2 entries, only one row for
France should have its re-submit button enabled, the other rows
for France should have that button disabled. The idea is that
once the user of the form sees a disabled button, he knows
he needs to correct more than one field for that record.

TIA.


I'm not sure what you need. I don't underst6and the 2 entires,
disable/enable buttons stuff since I can't see your form.

Anyway, I'd probably take another approach. I'd have a table that
would contain the country, continent, currency, capitol.

I would also create a table of continents since that is small and very
static.

Then a person could enter a country. In the afterupdate event I'd check
to see if that country existed. If so, I'd then read the record and
fill in the currency, capitol, and continent.

If it didn't exist, I'd then have a dropdown on continents, maybe a
dropdown on currency types and let a person add a currency type if it
doesn't exist.

It seems there is too much data entry work asked from the operators/users.

Nov 13 '05 #2
Salad <oi*@vinegar.com> wrote -

I'm not sure what you need. I don't underst6and the 2 entires,
disable/enable buttons stuff since I can't see your form.

Anyway, I'd probably take another approach. I'd have a table that
would contain the country, continent, currency, capitol.


I had given the example of a table about Country to make
my case clear. The real-life table I am dealing with is
far more complex.

Still let me try to show how the form should look like.

Field1 Field2 F3 F4 Field5 Button
country1 continent1 only one error for record 1 Submit
country2 continent2 three errors for record 2 GRAY-OUT
country2 continent2 three errors for record 2 GRAY-OUT
country2 continent2 three errors for record 2 Submit
country3 continent3 only one error for record 3 Submit

F3, F4 fields carry info which we can edit. So we change the capitol
of France to Paris from the earlier wrong entry in F3.

If for (countryN, continentN) there is more than one error, only
one entry for that combo should have active submit button.
Other entries for that combo should have the submit button
grayed out.

----
Nov 13 '05 #3

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

Similar topics

1
by: fowlertrainer | last post by:
Hi ! Sorry, but zope@zope.org is not send mails to me... So I trying with that list... 1.) I want to use query-string, and post datas in combined dictionary. I have a page that I must...
1
by: lothar | last post by:
i want to traverse a set of messages in a Yahoogroups group from a Python program. to get to the messages of the group, one must log in. this presents, i think, two problems, 1) handling the...
4
by: Simon Niederberger | last post by:
Hi I need to create a MessageQueue in my C# service (running as SYSTEM). Users will have no permissions on this queue, so I can't look if messages are present. When setting...
19
by: What-a-Tool | last post by:
I have a school project (ASP) in which I have to call three different ASP pages from three different and identical (except for the form "action", obviously) HTM pages. This I have no problem with....
15
by: lawrence | last post by:
Is this the correct way to test for a method before I use it? createRange() is, I believe, an IE only method. function wrapSelectionInTag(selection, tag) { if (document.selection.createRange)...
6
by: RobG | last post by:
I am writing a script to move an absolutely positioned element on a page by a factor using style.top & style.left. The amount to move by is always some fraction, so I was tossing up between...
1
by: charlie fortune | last post by:
I want to use a form with several different possibilities of posting to a single PHP program. Is there a way of telling the action not just the name of the file, but which function to call with the...
61
by: John.L.Henning | last post by:
The new CPU benchmark from the Standard Performance Evaluation Corporation is announced http://www.spec.org/cpu2006/ Readers of comp.arch and comp.benchmarks may recall that I posted a call...
8
by: Amil Hanish | last post by:
There is a site that has multiple FORM elements. How do I programatically POST to a specific form? The individual FORM elements have a <input name=xxx type=image return truethat is used to submit...
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: 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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.