Home » Developer & Programmer » Forms » Restricted builtin (Forms6i)
Restricted builtin [message #528501] Tue, 25 October 2011 05:54 Go to next message
arif_md2009
Messages: 732
Registered: May 2009
Location: United Arab Emirates
Senior Member

Dear All,

I want to insert one record and display message whenever the form is opened using pre form and i have written proceedure as below , but i am getting restricted builtin cant be using

DECLARE
   CURSOR c1
   IS
      SELECT DISTINCT sl_activ_code
                 FROM ow_stage_shipper_upld
                WHERE sl_jh_job_no = '1018'
                  AND sl_activ_code NOT IN (SELECT DISTINCT job_no
                                                       FROM os_fab_summary)
                  AND sl_activ_code NOT LIKE '%BU%';

   m_found   VARCHAR2 (200);
BEGIN
   FOR i IN c1
   LOOP
      m_found := m_found || ' ' || i.sl_activ_code;
   END LOOP;

  

   IF NVL (m_found, 'Y') != 'Y'
   THEN
      disp_alert ('MISSING STRUCTURES KINDLY REQUEST IT FROM EGYPT');

      INSERT INTO temp_1018
           VALUES (:m_struct_no, :t_struct_no, :GLOBAL.m_user_id, SYSDATE,
                   'OR7015_AIC', m_found);

      COMMIT;
      --dummy1('forms'||'-'||M_FOUND);
      RAISE form_trigger_failure;
   END IF;
END;





CM: fixed code tags. There's a preview function, please use it.

[Updated on: Tue, 25 October 2011 05:56] by Moderator

Report message to a moderator

Re: Restricted builtin [message #528502 is a reply to message #528501] Tue, 25 October 2011 05:58 Go to previous messageGo to next message
cookiemonster
Messages: 13931
Registered: September 2008
Location: Rainy Manchester
Senior Member
You can't use restricted builtins in pre-form.
Put the code in when-new-form-instance instead.
Re: Restricted builtin [message #528503 is a reply to message #528502] Tue, 25 October 2011 06:04 Go to previous messageGo to next message
arif_md2009
Messages: 732
Registered: May 2009
Location: United Arab Emirates
Senior Member

dear cookiemonster i want to insert when the message is displayed and he comes out as in WHEN-NEW-FORM instance it is allowing him to go into form which i dont want.
Re: Restricted builtin [message #528505 is a reply to message #528503] Tue, 25 October 2011 06:21 Go to previous message
cookiemonster
Messages: 13931
Registered: September 2008
Location: Rainy Manchester
Senior Member
Then do exit_form after displaying the message.
Previous Topic: Oracle form's support for Persian (Farsi) characters.
Next Topic: midify_conf_at_runtime
Goto Forum:
  


Current Time: Sun Aug 11 12:15:34 CDT 2024