Skip to main content

[archive] Entry field

  • August 3, 2006
  • 12 replies
  • 0 views

[Migrated content. Thread originally posted on 03 August 2006]

I have a program that allows our employees to enter their work time every day. I have a numeric field called hours-worked that allows the employee to enter the amount of hours worked that day. When they enter this number and hit enter I need the program to execute a procedure that verifies the amount entered is within certain parameters.

The After Procedure Event property for the field is set to execute the verification procedure but it never executes. I have a similar program set up the same way and it works perfectly. After 2 years of using AcuBench it's still hit-and-miss when setting up any type of event or exception procedure. We never know when an event for a control that is set up in AcuBench is actually going to work.

Any suggestions? We're developing using Acubench and we're running AcuCOBOL-GT V6.2.

thanks in advance

12 replies

[Migrated content. Thread originally posted on 03 August 2006]

I have a program that allows our employees to enter their work time every day. I have a numeric field called hours-worked that allows the employee to enter the amount of hours worked that day. When they enter this number and hit enter I need the program to execute a procedure that verifies the amount entered is within certain parameters.

The After Procedure Event property for the field is set to execute the verification procedure but it never executes. I have a similar program set up the same way and it works perfectly. After 2 years of using AcuBench it's still hit-and-miss when setting up any type of event or exception procedure. We never know when an event for a control that is set up in AcuBench is actually going to work.

Any suggestions? We're developing using Acubench and we're running AcuCOBOL-GT V6.2.

thanks in advance
Hello John

When I want to validate an entry field, I use the MSG-VALIDATE. This will call the procedure when leaving the field.

This works for me - I'm also using AcuBench 6.2

Regards
Kim

[Migrated content. Thread originally posted on 03 August 2006]

I have a program that allows our employees to enter their work time every day. I have a numeric field called hours-worked that allows the employee to enter the amount of hours worked that day. When they enter this number and hit enter I need the program to execute a procedure that verifies the amount entered is within certain parameters.

The After Procedure Event property for the field is set to execute the verification procedure but it never executes. I have a similar program set up the same way and it works perfectly. After 2 years of using AcuBench it's still hit-and-miss when setting up any type of event or exception procedure. We never know when an event for a control that is set up in AcuBench is actually going to work.

Any suggestions? We're developing using Acubench and we're running AcuCOBOL-GT V6.2.

thanks in advance
Hello John

When I want to validate an entry field, I use the MSG-VALIDATE. This will call the procedure when leaving the field.

This works for me - I'm also using AcuBench 6.2

Regards
Kim

[Migrated content. Thread originally posted on 03 August 2006]

I have a program that allows our employees to enter their work time every day. I have a numeric field called hours-worked that allows the employee to enter the amount of hours worked that day. When they enter this number and hit enter I need the program to execute a procedure that verifies the amount entered is within certain parameters.

The After Procedure Event property for the field is set to execute the verification procedure but it never executes. I have a similar program set up the same way and it works perfectly. After 2 years of using AcuBench it's still hit-and-miss when setting up any type of event or exception procedure. We never know when an event for a control that is set up in AcuBench is actually going to work.

Any suggestions? We're developing using Acubench and we're running AcuCOBOL-GT V6.2.

thanks in advance
Thanks for the advice. But I have programs that use the same configuration file and the Entry Fields work properly when hitting the "Enter" key. It's just this one program (so far) that doesn't respond to the "Enter" key.

It seems the more I develop using AcuCorp's GUI the more inconsistancies I find.

But thanks again!

John

[Migrated content. Thread originally posted on 03 August 2006]

I have a program that allows our employees to enter their work time every day. I have a numeric field called hours-worked that allows the employee to enter the amount of hours worked that day. When they enter this number and hit enter I need the program to execute a procedure that verifies the amount entered is within certain parameters.

The After Procedure Event property for the field is set to execute the verification procedure but it never executes. I have a similar program set up the same way and it works perfectly. After 2 years of using AcuBench it's still hit-and-miss when setting up any type of event or exception procedure. We never know when an event for a control that is set up in AcuBench is actually going to work.

Any suggestions? We're developing using Acubench and we're running AcuCOBOL-GT V6.2.

thanks in advance
Thanks for the advice. But I have programs that use the same configuration file and the Entry Fields work properly when hitting the "Enter" key. It's just this one program (so far) that doesn't respond to the "Enter" key.

It seems the more I develop using AcuCorp's GUI the more inconsistancies I find.

But thanks again!

John

[Migrated content. Thread originally posted on 03 August 2006]

I have a program that allows our employees to enter their work time every day. I have a numeric field called hours-worked that allows the employee to enter the amount of hours worked that day. When they enter this number and hit enter I need the program to execute a procedure that verifies the amount entered is within certain parameters.

The After Procedure Event property for the field is set to execute the verification procedure but it never executes. I have a similar program set up the same way and it works perfectly. After 2 years of using AcuBench it's still hit-and-miss when setting up any type of event or exception procedure. We never know when an event for a control that is set up in AcuBench is actually going to work.

Any suggestions? We're developing using Acubench and we're running AcuCOBOL-GT V6.2.

thanks in advance
On the form that works, do you have a button with the DEFAULT-BUTTON attribute, but not on the one that doesn't work?

[Migrated content. Thread originally posted on 03 August 2006]

I have a program that allows our employees to enter their work time every day. I have a numeric field called hours-worked that allows the employee to enter the amount of hours worked that day. When they enter this number and hit enter I need the program to execute a procedure that verifies the amount entered is within certain parameters.

The After Procedure Event property for the field is set to execute the verification procedure but it never executes. I have a similar program set up the same way and it works perfectly. After 2 years of using AcuBench it's still hit-and-miss when setting up any type of event or exception procedure. We never know when an event for a control that is set up in AcuBench is actually going to work.

Any suggestions? We're developing using Acubench and we're running AcuCOBOL-GT V6.2.

thanks in advance
Have you got a default button on the screen? This will change behaviour of enter key.

You could use NOTIFY-CHANGE and ensure the accept terminates.

For the hours entry you mention, why not use a spinner with a min-val and max-val? This would do the validation you require with no additional coding?

Regards
Keith

[Migrated content. Thread originally posted on 03 August 2006]

I have a program that allows our employees to enter their work time every day. I have a numeric field called hours-worked that allows the employee to enter the amount of hours worked that day. When they enter this number and hit enter I need the program to execute a procedure that verifies the amount entered is within certain parameters.

The After Procedure Event property for the field is set to execute the verification procedure but it never executes. I have a similar program set up the same way and it works perfectly. After 2 years of using AcuBench it's still hit-and-miss when setting up any type of event or exception procedure. We never know when an event for a control that is set up in AcuBench is actually going to work.

Any suggestions? We're developing using Acubench and we're running AcuCOBOL-GT V6.2.

thanks in advance
Have you got a default button on the screen? This will change behaviour of enter key.

You could use NOTIFY-CHANGE and ensure the accept terminates.

For the hours entry you mention, why not use a spinner with a min-val and max-val? This would do the validation you require with no additional coding?

Regards
Keith

[Migrated content. Thread originally posted on 03 August 2006]

I have a program that allows our employees to enter their work time every day. I have a numeric field called hours-worked that allows the employee to enter the amount of hours worked that day. When they enter this number and hit enter I need the program to execute a procedure that verifies the amount entered is within certain parameters.

The After Procedure Event property for the field is set to execute the verification procedure but it never executes. I have a similar program set up the same way and it works perfectly. After 2 years of using AcuBench it's still hit-and-miss when setting up any type of event or exception procedure. We never know when an event for a control that is set up in AcuBench is actually going to work.

Any suggestions? We're developing using Acubench and we're running AcuCOBOL-GT V6.2.

thanks in advance
Thanks JoeD and Kieth. I'll try your suggestion and let you know.

John

[Migrated content. Thread originally posted on 03 August 2006]

I have a program that allows our employees to enter their work time every day. I have a numeric field called hours-worked that allows the employee to enter the amount of hours worked that day. When they enter this number and hit enter I need the program to execute a procedure that verifies the amount entered is within certain parameters.

The After Procedure Event property for the field is set to execute the verification procedure but it never executes. I have a similar program set up the same way and it works perfectly. After 2 years of using AcuBench it's still hit-and-miss when setting up any type of event or exception procedure. We never know when an event for a control that is set up in AcuBench is actually going to work.

Any suggestions? We're developing using Acubench and we're running AcuCOBOL-GT V6.2.

thanks in advance
Thanks JoeD and Kieth. I'll try your suggestion and let you know.

John

[Migrated content. Thread originally posted on 03 August 2006]

I have a program that allows our employees to enter their work time every day. I have a numeric field called hours-worked that allows the employee to enter the amount of hours worked that day. When they enter this number and hit enter I need the program to execute a procedure that verifies the amount entered is within certain parameters.

The After Procedure Event property for the field is set to execute the verification procedure but it never executes. I have a similar program set up the same way and it works perfectly. After 2 years of using AcuBench it's still hit-and-miss when setting up any type of event or exception procedure. We never know when an event for a control that is set up in AcuBench is actually going to work.

Any suggestions? We're developing using Acubench and we're running AcuCOBOL-GT V6.2.

thanks in advance
In the screen that wasn't working properly I did have 1 push button with style DEFAULT. I changed it to style OTHER and now the entry fields work properly.
Is this fact only known to a secret society of some sort?

Thanks for all your help.

John

[Migrated content. Thread originally posted on 03 August 2006]

I have a program that allows our employees to enter their work time every day. I have a numeric field called hours-worked that allows the employee to enter the amount of hours worked that day. When they enter this number and hit enter I need the program to execute a procedure that verifies the amount entered is within certain parameters.

The After Procedure Event property for the field is set to execute the verification procedure but it never executes. I have a similar program set up the same way and it works perfectly. After 2 years of using AcuBench it's still hit-and-miss when setting up any type of event or exception procedure. We never know when an event for a control that is set up in AcuBench is actually going to work.

Any suggestions? We're developing using Acubench and we're running AcuCOBOL-GT V6.2.

thanks in advance
Oh yeah. Chapter 5 Book 2. I saw that. But the part that explains that the DEFAULT-BUTTON automatically renders the return key useless in the rest of the screen must be written in the secret society's special invisible ink!

Thanks again!
John

[Migrated content. Thread originally posted on 03 August 2006]

I have a program that allows our employees to enter their work time every day. I have a numeric field called hours-worked that allows the employee to enter the amount of hours worked that day. When they enter this number and hit enter I need the program to execute a procedure that verifies the amount entered is within certain parameters.

The After Procedure Event property for the field is set to execute the verification procedure but it never executes. I have a similar program set up the same way and it works perfectly. After 2 years of using AcuBench it's still hit-and-miss when setting up any type of event or exception procedure. We never know when an event for a control that is set up in AcuBench is actually going to work.

Any suggestions? We're developing using Acubench and we're running AcuCOBOL-GT V6.2.

thanks in advance
Oh yeah. Chapter 5 Book 2. I saw that. But the part that explains that the DEFAULT-BUTTON automatically renders the return key useless in the rest of the screen must be written in the secret society's special invisible ink!

Thanks again!
John