` Printed Icetips Article

Icetips Article



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.



Printed November 21, 2024, 7:32 am
This article has been viewed/printed 35243 times.