[Openroad-users] Auto-tab
Brigitte Duplenne
Brigitte.Duplenne at ingres.com
Sat Jul 19 03:15:08 EST 2008
Hi Andrew,
I have just tested your code with OpenROAD 4.1 and OpenROAD 2006 and I
do not reproduce that weird behavior.
I have however the fix I made for bugs:
120234
(GENERIC)
On BufferChanged event is not generated when typing <CR> in a
multiline entryfield.
87388
(GENERIC)
HC_NEWLINE appears to be interpreted differently under certain
circumstances.
For instance when working with a varchar(10) multiline
entryfield, you can set
it to 'abcd' + HC_NEWLINE + 'efghi' through 4GL. But, you can
not TYPE 'abcd', <CR>
and then add the further 'efghi' - only up to 'efgh' can be
added by user input.
In that fix I take care of the PASTE action.
So if you wish you may open a Service Desk and ask for the OR 4.1 patch
that contains that fix and see if that solves your problem.
Regards,
Brigitte
Brigitte Duplenne
OpenROAD sustaining group.
-----Original Message-----
From: openroad-users-bounces at peerlessit.com
[mailto:openroad-users-bounces at peerlessit.com] On Behalf Of Andrew
Sent: Friday, July 18, 2008 9:18 AM
To: International OpenROAD Users
Subject: Re: [Openroad-users] Auto-tab
Hi Ian,
Um, this is what I have already tried:
ON CHILDBUFFERCHANGED t1[*].line =
declare
i = integer not null;
len = integer not null;
{
len = length(EntryField(curframe.triggerfield).BufferText);
if (len> 65) then
i = field(t1).currow;
t1.InsertRow(rownumber = i + 1);
field(t1).SetInputFocus(row = i + 1);
endif;
}
Works well, BUT...
But, if I go back to a row that is full and then paste some text, say 5
characters worth, then the total length of the line is 70 characters.
The CharsPerLine and the variable size of the line column are set to 66.
This is hard to explain. Looks like the CharsPerLine value is being
ignored.
Maybe I will have to add a lot more code to handle this issue...
Kind regards,
Andrew.
Ian Utley wrote:
> Hi,
>
> I implemented this a few years ago, basically you combine the
> BufferChanged event (to check that the length of the entered text is
> at
> maximum) and a sequence of Win32 API calls to push a tab key onto the
> keyboard queue. Alternatively, if you know what the next field is, you
> can set the inputfocus within the bufferchanged event to goto the next
> field.
>
> Ian.
>
> Ian Utley
> Luminary - An Ingres Company
> Tel: +44 (0) 845 371 4090
> Email: Ian.Utley at luminary.co.uk
>
> For more information on Luminary go to http://www.luminary.co.uk
> Luminary Solutions Limited Registered in England No 4854134 VAT Reg
No.
> 829 3166 13
> Registered Office: Lacon House, Theobald's Road, London, WC1X 8RW
>
>> -----Original Message-----
>> From: openroad-users-bounces at peerlessit.com [mailto:openroad-users-
>> bounces at peerlessit.com] On Behalf Of Andrew
>> Sent: 18 July 2008 02:59
>> To: International OpenROAD Users
>> Subject: [Openroad-users] Auto-tab
>>
>> Hi All,
>>
>> OR4.1Sp3
>>
>> Has anyone managed to successfully implemented some sort of auto-tab
>> feature?
>>
>> I need some help with getting this to work in table fields.
>>
>> Any help will be appreciated.
>>
>> Regards,
>> Andrew.
>> ________________________________________________________________
>> OpenROAD-Users mailing list
>>
>> You can maintain your subscription here:
>> http://www.peerlessit.com/mailman/listinfo/openroad-users
>>
>> To unsubscribe click on this link
>> mailto:openroad-users-unsubscribe at peerlessit.com&subject=unsubscribe
>>
>> To subscribe click on this link
>> mailto:openroad-users-subscribe at peerlessit.com&subject=subscribe
>>
>
> ________________________________________________________________
> OpenROAD-Users mailing list
>
> You can maintain your subscription here:
> http://www.peerlessit.com/mailman/listinfo/openroad-users
>
> To unsubscribe click on this link
> mailto:openroad-users-unsubscribe at peerlessit.com&subject=unsubscribe
>
> To subscribe click on this link
> mailto:openroad-users-subscribe at peerlessit.com&subject=subscribe
>
>
>
________________________________________________________________
OpenROAD-Users mailing list
You can maintain your subscription here:
http://www.peerlessit.com/mailman/listinfo/openroad-users
To unsubscribe click on this link
mailto:openroad-users-unsubscribe at peerlessit.com&subject=unsubscribe
To subscribe click on this link
mailto:openroad-users-subscribe at peerlessit.com&subject=subscribe
More information about the Openroad-users
mailing list