Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link Par2: Edit in Place and skip 1999-11-28 -- Craig Ransom > I'd like some of my fields in an EIP browse to have prop:skip on. I
> tried setting it in init, but it doesn't seem to have an effect. Is
> this possible?
>
Not exactly. If you don't want the browse fields to EVER be enterable,
press the Configure Edit in place | Column Specific buttons, then
select which column field you DON'T want to EIP, press Properties
button, and then uncheck the Allow Edit-in-place checkbox and press OK.
If you need to do this programmatically, because of a condition such as
"allow entry on Insert but not on Change" for instance, you'll have to
create a BYTE variable in your local Data area, and set
it in the control events before generated code for each of your
Insert/Change/Delete buttons. Set it to InsertRecord, ChangeRecord or
DeleteRecord, depending. Call it SaveRequest.
In Local Objects, EIP control, Init method, after the Parent Call:
IF SaveRequest = ChangeRecord
SELF.SetReadOnly(True)
END
This prevents the user from changing the column, but they can still
select it. To cause the selected column to automatically shift to the
right:
In Local Objects, EIP control, TakeEvent method, BEFORE the Parent
call:
IF SaveRequest = ChangeRecord
RETURN EditAction::Forward
END
(Note the double colon. This is correct.)
This causes the field to automatically shift to the next field.
Today is November 21, 2024, 7:23 am This article has been viewed 35243 times.
|
|