1827620 Members
3424 Online
109966 Solutions
New Discussion

Form Management System

 
withlovearif
New Member

Form Management System

In VAX - FMS on pressing twice the help key would launch the help screen if required for a particular field.
Can any one please tell me the keycode to trap this event.
4 REPLIES 4
Hein van den Heuvel
Honored Contributor

Re: Form Management System

Can you give a little more explanation?
It this in the context of an FDV$GETxx call?
Are you already doing UAR processing?
If the return status for the UAR is FDV$K_UHELP_ALL then no further help processing occurs. If the user hits help again they are placed within the help UAR again. At this point you could use the FDV$RETCX call to determine how many times they have hit help for this field and act accordingly.
Alternatively you might look for solutions through FDV$DFKBD, maybe assigning the FDV$K_KF_NONE code to the FDV$K_KF_HELP function to delete that key function.

Hope this 'helps'.

Hein.
withlovearif
New Member

Re: Form Management System

Thanks very much for the response.
what happens in my case is that a main screen has an associated help screen and this is triggered whenever
the user presses help key twice. Right now what happens now is that we are unable to find how this link has
been implemented. We have a basic program which handles this & this uses the FDV$RETCX call to determine the various associated
parameters like the scrren , the field etc. what we are unable to figure out is how this basic program is called
when the user presses the help key. hope this information would help. Pls let us know if u need any more information on this.
Hein van den Heuvel
Honored Contributor

Re: Form Management System

Sounds to me like that Basic progrma is a UAR.

It should issuing FDV$RETCX at the beginning of the UAR. The 8th (last) parameter to this call tells you the number of times the HELP key has been struck for the current field. If the number is '1' then it could display Help Form 1, if the number is '2' display Help Form 2. To avoid seeing the 1-line help message repeatedly, terminate the Post Help UAR with a status of FDV$K_UHELP_ALL which will send control back to this UAR if the user hits HELP for this field again.

hth,
Hein.

[HP internal note: Text from Dan's reply to topic 362 in FMSnotes]
withlovearif
New Member

Re: Form Management System

The problem we had was the link between the help screen and the form.
I had added the function FDV$RETCX also
but i missed out the help screen name on the form.Now the issue is resolved and i was able to display the help screen also.
Thanks very much for the valuable sugesstion provided by you.