Home » Developer & Programmer » Forms » ENTER PROCEDURE
ENTER PROCEDURE [message #168145] Wed, 19 April 2006 01:04 Go to next message
indraneelkumar
Messages: 24
Registered: September 2005
Location: bangalore
Junior Member

WHAT IS THE USE OF ENTER PROCEDURE.

Re: ENTER PROCEDURE [message #168150 is a reply to message #168145] Wed, 19 April 2006 01:23 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
indraneelkumar,

Read the responses in your previous thread, then read the manual.

David
Re: ENTER PROCEDURE [message #168169 is a reply to message #168150] Wed, 19 April 2006 03:07 Go to previous messageGo to next message
indraneelkumar
Messages: 24
Registered: September 2005
Location: bangalore
Junior Member

Hi
Thanks for reply

In manual they specified that ENTER PROCEDURE is used for forced validation.

I created two forms one is DEPT.FMB, another one is EMP.FMB

DEPT
-------
DEPTNO
DNAME
LOC


At Dname item i created one when-validate-item trigger
i placed code as follows.

ENTER;
CLEAR_MESSAGE;
MESSAGE('HI');
MESSAGE('HI');
CLEAR_MESSAGE;

I placed one button in DEPT form in that i am calling EMP form.
button's mouse and keyboard navigable as NO.

after running DEPT form i entered a value in DNAME .
Now the cursor is in DNAME only.

After i pressed the button.
According to manual
First 'HI' message
After EMP for should open
But here Form is not opening and message is also not displaying
Thats why I asked.

Thanks


Re: ENTER PROCEDURE [message #168171 is a reply to message #168169] Wed, 19 April 2006 03:22 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
'ENTER' is for when you place data in a field, eg, in a When-Button-Pressed trigger, like
begin
  go_item(:blk.itm);
  :blk.itm := 'this is a test';
  enter;
end;

Here the 'enter' causes the validation and automatic navigation to take place.

What is the code you are using to call the EMP form?

Concerning the 'message' issue, please remember that the second message has been LOADED into the message area but will only be shown when a screen refresh is done, eg, by a 'pause' or a 'synchronize'. Doing a call form typically won't do a screen refresh before closing the old form.

David
Re: ENTER PROCEDURE [message #168176 is a reply to message #168171] Wed, 19 April 2006 03:45 Go to previous messageGo to next message
indraneelkumar
Messages: 24
Registered: September 2005
Location: bangalore
Junior Member

Thans for reply

I cant understand.
If do't mine can u explain clearly with example
or send me a link regarding ENTER procedure

Thanks
Re: ENTER PROCEDURE [message #168186 is a reply to message #168176] Wed, 19 April 2006 04:05 Go to previous message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
From forms help

ENTER Built-in
Description
Validates data in the current validation unit.
(The default validation unit is Item.)
Syntax
PROCEDURE ENTER;
Built-in Type
restricted procedure
Enter Query Mode
yes
Parameters
None
ENTER Example
/*
** Built-in: ENTER 
** Example: Force Validation to occur before calling another 
** form 
*/ 
BEGIN 
  Enter; 
  IF NOT Form_Success 
  THEN 
    RAISE Form_Trigger_Failure; 
  END IF; 
  Call_Form('newcust'); 
END;



MHE
Previous Topic: Problem in set_block_property
Next Topic: i cannot rollback
Goto Forum:
  


Current Time: Fri Sep 20 08:38:57 CDT 2024