cherokee
12th October 2005, 18:18
Hello everyone,

I have a (multi-occ+view+main) form where users want to zoom from the primary key field to another session. This field isn't as an input field, since is the primary key.

Good sample of this is, sesson tirou2110m000 Mantain Routings. User wants to zoom from the Manufactured Item field.

Is there a way to do this?

Thanks in advance

Carlos

Hitesh Shah
12th October 2005, 18:35
Make the same input field . This will allow u to zoom on the primary field .

Is there any problem making it input field.

lbencic
12th October 2005, 19:28
As the primary key, it will want to grey that out during updates - zooms should be available during new entry records or the find....

If the modify only is the problem, you can put the following in the before.program section, if you have the source (or a wrapper tool to add to the source).


before.program:
modify.prim.key = 1


By default this is set to 0 - do not allow modify.

It's not perfect, as they move back and forth they loose the ability to get into that field, but generally it works.

Another option would, instead of making a field level zoom, instead make a button that requires them to have 1 and only 1 record marked and then zooms based on that record.

cherokee
14th October 2005, 15:13
Hi,

Hitesh Shah, it is an Input field already, but BaaN when is a key field it does grey out the field automatically and you can't zoom.

lbencic, by doing this, it let me zoom in the position field not in the Manufacturing Item field.


before.program:
modify.prim.key = 1


For now, my work around is. In the zooming option from the Manufacturing Item field, I changed the session to the one I want zoom to and with the find button it opens the session I want. My session is a sub session where the user is not allow to navigate with the group arrow keys nor insert a new group .

Thanks,

Carlos

Hitesh Shah
14th October 2005, 15:32
This field isn't as an input field, since is the primary key.
Carlos

Maybe some misunderstanding . I thought it's a display field .

U should try modify.prim.key in the before.form section of the form instead of before.program. It allows u to input / zoom on index field .