Terima kasih banyak  Pak Bowo
saya telah mentest program bapak,
tetapi saya bingung untuk memberikan nilai default DESTYPE

Jika DESTYPE=Printer
       memang ter-update table yang aku kehendaki
       tapi tidak menampilkan layout pada layar
Jika DESTYPE=Preview
       Tidak ter-update table yang aku kehendaki
       menampilkan layout pada layar
Jika DESTYPE=Screen
       Tidak ter-update table yang aku kehendaki
       dan tidak menampilkan layout pada layar

yang diinginkan oleh user adalah
        menampilkan data pada layar (untuk mengecek hasil) 
         ==> mungkin dicetak bisa juga mungkin tidak dicetak
        jika dicetak data di lock (agar tidak bisa di update) 
        ==> dengan cara mengupdate table 

kalau ngak bisa atau tidak button print di buat DISABLED pada layar PREVIEWER

mohon bantuan, pencerahan dan pertolongannya dari rekan milist

terima kasih banyak
FRANS
  ----- Original Message ----- 
  From: Yulius Wibowo 
  To: [email protected] 
  Sent: Tuesday, 31 May 2005 19:59
  Subject: [indo-oracle] Re: trigger saat mencetak


  Berikut contoh code-nya ....

  function AfterReport return boolean is
    nama_report VARCHAR2(100);
  begin

      SRW.GET_REPORT_NAME(nama_report);
      nama_report := UPPER(nama_report);

      IF UPPER(:DESTYPE) = 'PRINTER' THEN  
  -- nilai asli "Printer", spy nggak BUGGY pakai fungsi UPPER()

        UPDATE test_report_table SET printed_flag = 'Y' 
           WHERE rep_name_col = nama_report;
  -- asumsikan nama report yg disimpan di table semua pakai huruf besar

        COMMIT;
       END IF;
    return (TRUE);
  end;


  Bowo

  --- In [email protected], "Yulius Wibowo" 
  <[EMAIL PROTECTED]> wrote:
  > System parameternya DESTYPE.
  > 
  > Sorry, saya akan coba dulu di komputer saya, nanti kalau dah bisa 
  > saya akan posting lagi berikut code-nya.
  > 
  > Bowo
  > 
  > 
  > --- In [email protected], "Winofrans_Doc" 
  > <[EMAIL PROTECTED]> wrote:
  > > Terima kasih, pak yulius
  > > saya telah mencoba saran bapak dengan
  > > code desname='PRINTER' juga destype='PRINTER' di trigger AFTER-
  > REPORT
  > > tetapi kedua-duanya tidak bisa
  > > tapi aku ngak tahu di system parameter ada parameter dengan nama 
  > destination yang ada 
  > > parameter pada system adalah 
  > >     BACKGROUND
  > >     COPIES
  > >     CURRENCY
  > >     DECIMAL
  > >     DESFORMAT
  > >     DESNAME
  > >     DESTYPE
  > >     MODE
  > >     ORIENTATION
  > >     PRINTJOB
  > >     THOUSANDS
  > > 
  > > MOHON PENERANGANNYA LAGI
  > > aku masih awam
  > > 
  > > 
  > >   ----- Original Message ----- 
  > >   From: Yulius Wibowo 
  > >   To: [email protected] 
  > >   Sent: Tuesday, 31 May 2005 12:11
  > >   Subject: [indo-oracle] Re: trigger saat mencetak
  > > 
  > > 
  > > 
  > >   Coba tambahkan code pada trigger di report, yaitu AFTER-REPORT 
  > >   trigger.
  > > 
  > >   Di dalamnya di check, apakah destination-nya PRINTER atau 
  > bukan.Kalau 
  > >   PRINTER maka flagnya diset Y, kalau bukan dibiarkan atau diset 
  N.
  > >   Hint: gunakan package SRW dan SYSTEM parameter.
  > > 
  > >   Bowo
  > > 
  > > 
  > >   --- In [email protected], "Winofrans_Doc" 
  > >   <[EMAIL PROTECTED]> wrote:
  > >   > terima kasih pak budi atas informasinya
  > >   > aku memang sudah menyiapkan satu buah field untuk menandakan 
  > >   tersebut,
  > >   > tapi aku tak tahu fungsi jika suatu laporan sudah tercetak 
  atau 
  > >   belum, karena ada kemungkinan
  > >   > record yang ditampilkan hanya dilihat saja dan belum tentu 
  > dicetak 
  > >   oleh user.
  > >   > 
  > >   > pertanyaannya apa nama fungsi atau perintah jika report sudah 
  > di 
  > >   cetak pada printer ??
  > >   > 
  > >   > untuk informasi aku menggunakan 
  > >   > Oracle Report ver 2.5.0.7
  > >   > Database Oracle ver 9.2.0.1.0
  > >   > 
  > >   > please urgent    
  > >   > 
  > >   > terima kasih 
  > >   > Frans
  > >   >   ----- Original Message ----- 
  > >   >   From: Budi Gunawan 
  > >   >   To: [email protected] 
  > >   >   Sent: Tuesday, 31 May 2005 09:37
  > >   >   Subject: Re: [indo-oracle] trigger saat mencetak
  > >   > 
  > >   > 
  > >   >   Maaf, maksudnya memberi tanda bahwa report tertentu sudah 
  > dicetak?
  > >   >   kalau memang iya, mungkin dari table tersebut ditambahkan 
  > satu 
  > >   field
  > >   >   flag (tanda) yg diberikan nilai pada saat tombol print 
  > ditekan,
  > >   >   dengan asumsi pak Frans mengunakan form developer,
  > >   > 
  > >   >   :nama_block.flag_print := 'T" ;
  > >   >   Forms_DDL('COMMIT');
  > >   > 
  > >   >   Wassallam
  > >   >   Budi Gunawan
  > >   > 
  > >   > 
  > >   >   > Mohon penerangannya
  > >   >   > bagaimana caranya memberi tanda pada suatu table saat 
  > sedang 
  > >   mencetak ????
  > >   >   >bagi rekan milist yang tahu fungsi dan caranya tolong 
  > >   informasikan, aku 
  > >   >   >butuh sekali
  > >   >   > Oracle Report 2.5.0.7
  > >   >   > Database Oracle 9.2.0.1.0
  > >   >   >
  > >   >   > Terima kasih
  > >   >   > Frans
  > >   >   >
  > >   > 
  > >   > 
  > >   > 
  > >   > 
  > >   >   --
  > >   >   -----------I.N.D.O - O.R.A.C.L.E---------------
  > >   >   Keluar: [EMAIL PROTECTED]
  > >   >   Website: http://indo-oracle.blogspot.com
  > >   >   -----------------------------------------------
  > >   > 
  > >   >   Bergabung dengan Indonesia Thin Client User Groups, 
  > >   >   Terminal Server, Citrix, New Moon Caneveral, di:
  > >   >   http://indo-thin.vze.com 
  > >   > 
  > >   > 
  > >   > 
  > >   > --------------------------------------------------------------
  --
  > ----
  > >   ----------
  > >   >   Yahoo! Groups Links
  > >   > 
  > >   >     a.. To visit your group on the web, go to:
  > >   >     http://groups.yahoo.com/group/indo-oracle/
  > >   >       
  > >   >     b.. To unsubscribe from this group, send an email to:
  > >   >     [EMAIL PROTECTED]
  > >   >       
  > >   >     c.. Your use of Yahoo! Groups is subject to the Yahoo! 
  > Terms of 
  > >   Service. 
  > >   > 
  > >   > 
  > >   > 
  > >   > 
  > >   > [Non-text portions of this message have been removed]
  > > 
  > > 
  > > 
  > > 
  > >   --
  > >   -----------I.N.D.O - O.R.A.C.L.E---------------
  > >   Keluar: [EMAIL PROTECTED]
  > >   Website: http://indo-oracle.blogspot.com
  > >   -----------------------------------------------
  > > 
  > >   Bergabung dengan Indonesia Thin Client User Groups, 
  > >   Terminal Server, Citrix, New Moon Caneveral, di:
  > >   http://indo-thin.vze.com 
  > > 
  > > 
  > > 
  > > ------------------------------------------------------------------
  --
  > ----------
  > >   Yahoo! Groups Links
  > > 
  > >     a.. To visit your group on the web, go to:
  > >     http://groups.yahoo.com/group/indo-oracle/
  > >       
  > >     b.. To unsubscribe from this group, send an email to:
  > >     [EMAIL PROTECTED]
  > >       
  > >     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms 
  of 
  > Service. 
  > > 
  > > 
  > > 
  > > 
  > > [Non-text portions of this message have been removed]




  --
  -----------I.N.D.O - O.R.A.C.L.E---------------
  Keluar: [EMAIL PROTECTED]
  Website: http://indo-oracle.blogspot.com
  -----------------------------------------------

  Bergabung dengan Indonesia Thin Client User Groups, 
  Terminal Server, Citrix, New Moon Caneveral, di:
  http://indo-thin.vze.com 



------------------------------------------------------------------------------
  Yahoo! Groups Links

    a.. To visit your group on the web, go to:
    http://groups.yahoo.com/group/indo-oracle/
      
    b.. To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]
      
    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 




[Non-text portions of this message have been removed]



--
-----------I.N.D.O - O.R.A.C.L.E---------------
Keluar: [EMAIL PROTECTED]
Website: http://indo-oracle.blogspot.com
-----------------------------------------------

Bergabung dengan Indonesia Thin Client User Groups, 
Terminal Server, Citrix, New Moon Caneveral, di:
http://indo-thin.vze.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/indo-oracle/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Kirim email ke