Navigation:  The Buzz > Forms and Controls > Parking >

Allow Parking

Previous pageReturn to chapter overviewNext page

Dec 22, 2007  Button

 

Why would the Allow Parking property of an edit control on a subform be

dim (so that I cannot change the value of Allow Parking)?

 

Bound to an expression rather than a variable?

Omar

 

The Data property of the edit control refers to a virtual variable

declared in a parent task.

 

Check the pallet that lets you center controls etc. and in the lower

left corner is the tab order on/off control, click it and it should

allow you to edit the allow park property on the control.

 

Roger B. Ross

 

Unless I'm misunderstanding your statement, you can't park on a variable

declared in the parent. Only variables declared in the same task can be

parked on.

 

Variables from parents however can be displayed, used in expressions, etc.

 

-- Keith

 

Thanks, Roger.

 

That's the Automatic Tab Order on the Control Palette? It seems to affect

the entire subform?

 

When I toggle it Off, the Tab Order property of all other edit controls on

the subform unlock (no longer dim), but the four properties in the Parking

section of the subject edit control remain dim.

 

Thanks, Keith.

 

That must be it: at runtime, I cannot park on that control.

I was confused because - in the Studio - the Allow Parking property for

the subject edit control displayed a dim "Yes." I presumed that meant

that one could park on it - and I had no control over that behavior.

Apparently it means one cannot park on it (because it's declared in parent

task) - and I have no control over it.

 

Yeah, if you want to park on it, create a virtual in the subform and Init it

to the value from the parent.

 

If it's a field you want to change, then in Record Suffix of the subtask,

update the parent task's field with the value from the virtual defined in

the subform/subtask.

 

Keith

 

Yep,

 

Another option is to pass the parent variable as a parameter (by Var)

to the sub-task then place the parameter on the sub-task form. No

need to Update it in the Records Suffix in this case.

 

Omar

 

 

 


Page url: http://www.magic-iug.com/MIUGWeb3/index.html?hm_allow_parking.htm