I have a text entry box for hours, but want to restrict it to 1/2 hour increments. I added code to round the value entered to the nearest .5, but I also wanted to draw the user's attention to the change. I thought I'd set on an error indicator and message saying "Rounded to the nearest 1/2 hour", but when I turn on the error indicator, the value the program changed the field to is ignored when the grid is redisplayed.
I haven't been able to find another good way to show the message right at the entry like the error message does. Any ideas?
I guess I could change the color of the field to draw there attention to it and put the text somewhere else, but I kind of like the error message box pointing right at the value.
--Bryan
Worse yet, I tried attaching that message to another field and the subfile still wouldn't reflect the change to the hours that the program made. If I don't set the error condition indicator, the hours field re-displays as adjusted by the program.
Textbox ignores pgm-updated value when error condition on
-
- Profound User
- Posts: 72
- Joined: Fri Oct 01, 2010 5:07 pm
- First Name: Bryan
- Last Name: Leaman
- Company Name: InVue Security
- Phone: 704-752-6513 x221
- Address 1: 15015 Lancaster Hwy
- City: Charlotte
- State / Province: North Carolina
- Zip / Postal Code: 28277
- Contact:
Textbox ignores pgm-updated value when error condition on
Last edited by Bryan641 on Thu Sep 22, 2011 3:59 pm, edited 1 time in total.
- David
- Profound Logic Staff Member
- Posts: 690
- Joined: Fri Jan 04, 2008 12:11 pm
- First Name: David
- Last Name: Russo
- Company Name: Profound Logic Software
- Contact:
Re: Textbox ignores pgm-updated value when error condition on
The "error messages" property is designed to correspond to the ERRMSG/ERRMSGID keywords. To ensure accurate behavior for conversions, these properties emulate the behavior of those keywords.
One aspect of this is that any output data on the operation is ignored when an error message is selected...
If you are using version 3.1.3, though, we now have an alternate mode. You can now check "Enhanced Mode" on the error message dialog and those ERRMSG/ERRMSGID-type restrictions will be removed and you should be able to do what you want.
One aspect of this is that any output data on the operation is ignored when an error message is selected...
If you are using version 3.1.3, though, we now have an alternate mode. You can now check "Enhanced Mode" on the error message dialog and those ERRMSG/ERRMSGID-type restrictions will be removed and you should be able to do what you want.
-
- Profound User
- Posts: 72
- Joined: Fri Oct 01, 2010 5:07 pm
- First Name: Bryan
- Last Name: Leaman
- Company Name: InVue Security
- Phone: 704-752-6513 x221
- Address 1: 15015 Lancaster Hwy
- City: Charlotte
- State / Province: North Carolina
- Zip / Postal Code: 28277
- Contact:
Re: Textbox ignores pgm-updated value when error condition on
Wow. Maybe that's why I never used those keywords in DDS. ;)
Ok. I'll see if we can break our normal ptf cycle and get that update..
--Bryan
Ok. I'll see if we can break our normal ptf cycle and get that update..
--Bryan
Who is online
Users browsing this forum: No registered users and 0 guests