CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Multiple field update off one listbox selection

Print topic Send  topic

Author Message
ckroon

Posts: 869
Posted: 11/24/2007, 9:11 PM

I have a report card component that needs the following functionality and I am having a brain freeze!

Record form where a Listbox has grades (A, B, C D) on Text and Bound.
I also need the GPA of the grade, dependent on the Type of course it is.
The listbox has been filtered to show only the grade values for the course type.
(IE: if it's an honors course, an A is equal to 4.3, if it's a regular course, an A = 4.0 )

What I need the record form to do is insert the letter grade (no problem) AND the gpa score for that grade, on the same record update.

How do I update two fields at the same time, from one listbox selection?

I assume I will be using the AfterExecuteUpdate Event...
_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 12/06/2007, 8:00 PM

ckroon
Have you resolved this one yet??
View profile  Send private message
ckroon

Posts: 869
Posted: 12/06/2007, 8:11 PM

Yes.. I found a workaround...but never did solve what I wanted to do originally?If it's simple, could you post sample code? If it's not simple.. no worries.
Thanks Mambo!

_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 12/10/2007, 8:25 PM

ckroon
You pretty much said it in the last statement about putting code in the AfterExecuteUpdate Event.

But remember you will probably need to place code in two event areas (AfterExecuteUpdate and AfterExecuteInsert) or have a function that is called that will take the letter grade (based on the class type) and do a custom SQL insert statement that will insert the GPA grade in the specific field of that record. Hope this helps.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.