Reproducing a form using Reports

I have a view and 2 tables. I need data from the view on the top of the form and data from one table on the bottom left and the other table bottom right. The tables are related to the view but not to each other. The view will produce 1 record whereas the tables can produce multiple records. If either table has more records then what can be printed on the form they want the data to go to another page. I have tried 1 query and 3 queries. Only way I can get table records to print is with separate report blocks otherwise I only get 1 record each or duplicate records. When I have multiple records from one of the tables it just prints off the page and doesn't go to another page. Been working on this for two weeks and am getting frustrated.
view view view view view view view view
view view view view view view view view
tbl1 tbl1 tbl1...........tbl2 tbl2 tbl2
tbl1 tbl1 tbl1...........tbl2 tbl2 tbl2
.........................tbl2 tbl2 tbl2
.........................tbl2 tbl2 tbl2
.........................tbl2 tbl2 tbl2 (next page?)
view view view view view view

Hi Monica,
That worked somewhat. It stopped the overflow but didn't generate a new page. I set the limit to 18 and that keeps the printing within the boundries of the repeating frame but doesn't generate a second page. Right now I have a repeating frame for the shipping data that encompasses the whole page. Inside of that repeating frame I have two more repeating frames side by side at the bottom. It's the two inner repeating frames where I'm getting the records to not print on a second page. Currently each repeating frame has it's own query which uses the same input parameter. They are not linked together. Would that be a factor? I think I tried that before. I've tried so many things I forget what I did sometimes. I even tried to do this thru the wizard but it's too many fields for it to handle.
Jim

Similar Messages

  • How to add entire new row at the top of table in pdf report from c# windows forms using iTextSharp

    Hi for past 3 days i was thinking and breaking my head on how to add entire new at top table created in pdf report from c# windows forms with iTextSharp.
    First: I was able to create/export sql server data in form of table in pdf report from c# windows forms. Given below is the code in c#.
    using System;
    using System.Collections.Generic;
    using System.Configuration;
    using System.Text;
    using System.Data;
    using System.IO;
    using System.Data.SqlClient;
    using System.Windows.Forms;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    namespace DRRS_CSharp
    public partial class frmPDFTechnician : Form
    public frmPDFTechnician()
    InitializeComponent();
    private void btnExport_Click(object sender, EventArgs e)
    Document doc = new Document(PageSize.A4.Rotate());
    var writer= PdfWriter.GetInstance(doc, new FileStream("Technician22.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(7);
    table.TotalWidth=585f;
    table.LockedWidth = true;
    PdfPTable inner = new PdfPTable(1);
    inner.WidthPercentage = 115;
    PdfPCell celt=new PdfPCell(new Phrase(new Paragraph("Institute/Hospital:AIIMS,NEW DELHI",FontFactory.GetFont("Arial",14,iTextSharp.text.Font.BOLD,BaseColor.BLACK))));
    inner.AddCell(celt);
    Paragraph para = new Paragraph("DCS Clinical Report-Technician wise", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK));
    para.Alignment = iTextSharp.text.Element.TITLE;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(95f, 95f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn=new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select t.technician_id,td.Technician_first_name,td.Technician_middle_name,td.Technician_last_name,t.technician_dob,t.technician_sex,td.technician_type from Techniciandetail td,Technician t where td.technician_id=t.technician_id and td.status=1", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("ID");
    table.AddCell("First Name");
    table.AddCell("Middle Name");
    table.AddCell("Last Name");
    table.AddCell("DOB" );
    table.AddCell("Gender");
    table.AddCell("Designation");
    while (dr.Read())
    table.AddCell(dr[0].ToString());
    table.AddCell(dr[1].ToString());
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString());
    table.AddCell(dr[4].ToString());
    table.AddCell(dr[5].ToString());
    table.AddCell(dr[6].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(inner);
    doc.Add(table);
    doc.Close();
    The code executes well with no problem and get all datas from tables into table in PDF report from c# windows forms.
    But here is my problem how can i align Title(DCS Clinical Report-Technician wise) center of pdf report with image named:logo5.png immediately coming to it's right?.
    As the problem i am facing is my title or Header(DCS Clinical Report-Technician wise) is at top of my image named:logo5.png and not coming to it's center position of my image.
    Second the problem i am facing is how to add new entire row to top of existing table in pdf report from c# windows form using iTextSharp?.
    given in below is the row and it's data . So how do i add the given below row and it's data to my top my table in pdf report from c# windows forms using itextsharp?
    as you can see how i create my columns in table in pdf report and populate it with sql server data. Given the code below:
    Document doc = new Document(PageSize.A4.Rotate());
    var writer= PdfWriter.GetInstance(doc, new FileStream("Technician22.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(7);
    table.TotalWidth=585f;
    table.LockedWidth = true;
    Paragraph para = new Paragraph("DCS Clinical Report-Technician wise", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK));
    para.Alignment = iTextSharp.text.Element.TITLE;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(95f, 95f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn=new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select t.technician_id,td.Technician_first_name,td.Technician_middle_name,td.Technician_last_name,t.technician_dob,t.technician_sex,td.technician_type from Techniciandetail td,Technician t where td.technician_id=t.technician_id and td.status=1", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("ID");
    table.AddCell("First Name");
    table.AddCell("Middle Name");
    table.AddCell("Last Name");
    table.AddCell("DOB" );
    table.AddCell("Gender");
    table.AddCell("Designation");
    while (dr.Read())
    table.AddCell(dr[0].ToString());
    table.AddCell(dr[1].ToString());
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString());
    table.AddCell(dr[4].ToString());
    table.AddCell(dr[5].ToString());
    table.AddCell(dr[6].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(table);
    doc.Close();
    So my question is how to make my column headers in bold?
    So these are my questions.
    1. how can i align Title(DCS Clinical Report-Technician wise) center of pdf report with image named:logo5.png immediately coming to it's right?.
    2. how do i add the given below row and it's data to my top my table in pdf report from c# windows forms using itextsharp?
    3.how to make my column headers in bold?
    I know that i have to do some modifications to my code but i dont know how to do it. Can anyone help me please.
    Any help or guidance in solving this problem would be greatly appreciated.
    vishal

    Hi,
    >>1. how can i align Title(DCS Clinical Report-Technician wise) center of pdf report with image named:logo5.png immediately coming to it's right?.
    2. how do i add the given below row and it's data to my top my table in pdf report from c# windows forms using itextsharp?
    3.how to make my column headers in bold?<<
    I’m sorry for the issue that you are hitting now.
    This itextsharp is third party control, for this issue, I recommended to consult the control provider directly, I think they can give more precise troubleshooting.
    http://sourceforge.net/projects/itextsharp/
    Thanks for your understanding.
    Regards,
    Marvin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • FRM-41213 When calling report from a form using RUN_REPORT_OBJECT

    Hi,
    I get an error frm-41214:unable to connect to the report server when i am trying to call a report from a form using RUN_REPORT_OBJECT.
    My code is as follows:
    I have created a simple report using employee table such tht when i give the department number as parameter it should get the corresponding details along with that i also have highlited the system parameters:
    DESFORMAT
    DESNAME
    DESTYPE
    also other user parameters as
    p_action
    p_servername
    p_user_connect
    and in the before parameter form trigger the following code:
    function BeforePForm return boolean is
    vc_parameter_form VARCHAR2(4000);
    vc_hidden_runtime_values VARCHAR2(1000);
    vc_report_name VARCHAR2(100);
    begin
    IF (:P_ACTION = '_action_') THEN
         vc_hidden_runtime_values := '_hidden_';
    ELSE
         srw.get_report_name(vc_report_name);
              vc_hidden_runtime_values:='report='||vc_report_name||'&destype='||:destype||'&desformat='
    ||:desformat||'&userid='||:p_user_connect||'&server='||:p_servername;
    END IF;
    vc_parameter_form:='<html><body bgcolor="#ffffff"><form method=post action="'
    ||:P_ACTION||'">'||'<input name="hidden_run_parameters" type=hidden value="'
    ||vc_hidden_runtime_values||'">'||'<center><p><table border=0 cellspacing=0 cellpadding=0><tr><td>'
    ||'<input type=submit></td><td width=15><td><input type=reset></td>'||'</tr></table><p><hr><p>';
                        srw.set_before_form_html(srw.text_escape,vc_parameter_form);
    return (TRUE);
    end;
    After this i created a form with department table as my datablock:
    I created a report object in the form with name REPORT6.
    -Created a procedure in the form with the following code
    PROCEDURE RUN_REPORT_OBJECT_PROC(report_id REPORT_OBJECT,reportserver VARCHAR2,runformat VARCHAR2) IS
    report_message VARCHAR2(100);
    rep_status VARCHAR2(100);
    vc_user_name VARCHAR2(100);
    vc_user_password VARCHAR2(100);
    vc_user_connect VARCHAR2(100);
    vc_connect VARCHAR2(300);
    BEGIN
    vc_user_name:=get_application_property(username);
    vc_user_password:=get_application_property(password);
    vc_user_connect:=get_application_property(connect_string);
    vc_connect:=vc_user_name||'/'||vc_user_password||'@'||vc_user_connect;
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT,runformat);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,reportserver);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'p_deptno='
    ||:Dept.Deptno
    ||' paramform=yes P_USER_CONNECT='
    ||vc_connect||' P_SERVERNAME='||reportserver
    ||' P_ACTION=http://iitv-1:8888/reports/rwservlet?');
    report_message:=run_report_object(report_id);
    rep_status := report_object_status(report_message);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    rep_status := report_object_status(report_message);
    END LOOP /* Wait for Report to be finished */;
    IF rep_status='FINISHED' then
    web.show_document('http://iitv-1:8888/reports/rwservlet/getjobid'||
    substr(report_message,instr(report_message,'_',-1)+1)||'?server'
    ||reportserver,'_blank');
    ELSE
    message (rep_status||' Report output aborted');
    END IF;
    END;
    I created a press button and in the when_button_pressed trigger i added the following code:
    declare
         repid REPORT_OBJECT;
         repserver VARCHAR2(100);
         runformat VARCHAR2(10);
    BEGIN
         repid := find_report_object('REPORT6');
         repserver := 'rep_iitv-1';
         runformat := 'HTML';
         run_report_object_proc(repid,repserver,runformat);
         END;
    Then tried to run the form but i got this error frm-41213 unable to connect to the report server.
    Any one please help me.

    Run_report_object can't work with forms9i
    Regards
    Vikas Singhal

  • Passing parameter to report from form using RUN_REPORT_OBJECT method

    Will you please let me know how to do this. I tried using run_product but it is giving error as too many declarations. So I decided to use RUN_REPORT_OBJECT, but no help is provided how to pass paramters to this routine from FORMS to REPORTS.

    If you just want to change the heading of a column dynamically, you can go with any of the two options. For both the options, you need to remove the static text and replace it with any dummy field (ensure the reference of field w.r. to repeating frame)
    1. Use the Format Trigger and change the heading to either "school" or "college" based on your field value.
    Ex.
    If :<field_name> = 'S'
    then :dummy_field := 'School'
    Else
    :dummy_field := 'College'
    End If;
    Return (true)
    2. Another option is similar to this and uses a CF.
    (I would prefer CF).
    Warm Regards,
    Raja.

  • Can I use forms and reports 6I runtime for production environment?

    I have a doubt.
    I know if i use or install developer (forms and reports 6I) both, runtime and builder, I do require a license.
    But If I buy the standard edition license for database (in production or deployment), and I wanna use the runtimes (from forms and reports) only as runtime not to modify or develop anything, is it possible? just to download it or install it in RUNTIME mode?
    Is it possible and legal?
    Thanks

    Can I download that developer and install both forms and report runtime (yes only runtime) to access a licensed standard edition database? The problem is, you can't download that version any more! All download links to Forms version earlier that 10g R2 have been removed from Oracle's web site. You might still be able to download Forms 6i from My Oracle Support, but this requires a paid license agreement with Oracle to access My Oracle Support (formerly Metalink).
    So, if you already have a copy of Oracle Developer Forms and Reports 6i then all you need to do is contact your local Oracle Sales Representative to get an official answer to your licensing question. If you don't have a copy of Forms 6i, then you are pretty much out of luck unless you know someone who has a copy!
    Craig...

  • Problem hiding userid etc in cookie using 10.1.2.0.2 Forms and Reports

    Hi
    Background
    I am new to 10.1.2.0.2 Forms and Reports and also to Application Server - though not to Oracle forms and reports. We are currently converting from 6i.
    Due to security concerns we would very much like to use the FrmReportsInteg Bean (or like) to hide userid connect string in a temporary and encrypted cookie when trying to run a report from a form (and the report has a report parameter screen that we want to display).
    Firstly I have to decide how we are going to use reports via the Developer Suite -for development work. Then I have to work out how to do it via the Application Server - for testing and production. So if you have two variations of any solutions - one for DS and one for AS, could you give both please?
    Problem
    Problem is that I cannot get the bean to work. I get report parameter form displaying ok, hit submit and then get the Database User Authentication window poppling up with the "REP-51018: Need database user authentication" error that I've noticed a few other people in this forum have had too. If the user id etc is then entered in this window, the report parameter form redisplays (from a second html) and submitting this causes the report to display. Don't like the Database User Authentication window poppling up and don't like the second parameter form - html for this has the userid etc in it.
    For me though I can't even get the bean to output any logs. Got any ideas to help me at least output some logs?
    Also do I have to do anything to the browser (IE6) to get it to read the cookies?
    Do I need to change the bean code for the DS in some way - eg to avoid using domain name (as I noticed in another thread)?
    My code exactly follows the whitepaper and I also carefully followed the instructions for adding the bean to the form and configuring the forms services - as per white paper.
    Looking forward to some answers
    Pamela

    hi Kashif,
    just check this thread,
    How to deploy Forms/report on Application Server 10.1.3
    Regards,
    Hamdy

  • Using wls 10.3.6 (32 bit)  in oracle 11 g r2 forms and report installtion

    hi all,
    i was have jdeveloper 12 c on my laptop win 8 64 bit ,
    i remove all files for jdeveloper like middleware and javadeveloper
    after that i install wls 10.3.6 (32) bit to install oracle 11 g r2
    and it's installition going while
    but in installing oracle 11g r2 forms and report when i choose the middleware of it  error appear said :
    INST-07408: Unable to install or configure the product on a 32-bit JVM on a 64-bit machine" error messag
    i do not know what can i do
    as iam littel experince in oracle so plz any one write solution pleaze tell me the steps for solution step by step
    and any one refer for any something need to setup plz refer to the exact link
    thanks and regards

    First, Windows 8 is not a supported platform for installing Forms/Report 11.1.2
    Second, if you are running a 64-bit platform then you need to install the 64-bit software.  Also, before you perform any part of the installation, you will need to first install an appropriate JDK (64-bit if the OS is 64).  So in short, I would recommend you read the installation instructions and certification guide before starting.  Those documents can be access from here:
    http://www.oracle.com/technetwork/middleware/ias/downloads/fusion-certification-100350.html
    http://docs.oracle.com/cd/E38115_01/index.htm
    Generally speaking the installation process is simple.  Here are the basic steps:
    1.  Know your operating system and machine.  You must understand the OS with which you are working.  Is it 64bit or 32, is it an Oracle certified platform for the software you want to install, does your machine have enough RAM installed, etc.....
    2.  Install JDK version 6.  Be sure to use 64bit if your OS is 64 or 32 if your OS is 32.  Do not use Java 7 for the installation
    3.  Ensure that your machine has a static IP address.  If it does not, install and configure the Windows Loopback Adapter.
    4.  Install WLS 10.3.6
    5.  Install FMw Forms/Reports 11.1.2.1
    Although the above steps seem simple, I recommend you review the documents I mentioned before starting any installation.

  • Is there any default calendar which I can use on my form and report

    Hi All,
    Is there any default calendar which I can use on date field on my form and report.
    just by change its property like double click on date field and property calendar = yes
    or any other way.
    thanks
    mohan

    hi
    create a functions something like this.i hope it helps u.
    function call_calender ( f_dtm_set in date default sysdate ) return date is
    l_dtm  date;
    l_list paramlist := get_parameter_list ( 'CALL_CALENDER' );
    begin
    if
      not id_null ( l_list )
    then
      destroy_parameter_list ( l_list );
    end if;
    if
      trunc ( f_dtm_set ) != trunc ( sysdate ) --> if you call the calendar function with a date, the calendar will change to that date
    then
      l_list := create_parameter_list ( 'CALL_CALENDER' );
      add_parameter ( l_list, 'DTM_SET', text_parameter, to_char ( f_dtm_set, 'dd/mm/yyyy' ) );
    end if;
    copy ( null, 'global.calender_date' ); --> create a null global
    call_form ( 'form_name', no_hide, no_replace, no_query_only, l_list );
    if
      not id_null ( l_list )
    then
      destroy_parameter_list ( l_list );
    end if;
    if
      name_in ( 'global.calender_date' ) is not null  --> if the global is not null, give the choosen item back
    then
      l_dtm := to_date ( name_in ( 'global.calender_date' ), 'dd/mm/yyyy' );
    end if;
    erase ( 'global.calender_date' );
    return ( l_dtm );
    end;sarah

  • How to design Forms and Reports using Oracle workflow 2.6

    Is it possible to design Forms & Reports for Data Entry and
    reporting purposes using oracle workflow standalone version?
    if so how?.
    Please helpme!! is veri urgent.

    Con este apellido seguro que entiendes el Espaqol.
    Mi empresa esta iniciando un proyecto con la tecnologia que
    estas buscando, es decir, Utilizar Forms y Reports para manejar
    las APIS de WorkFlow Server, hemos encontardo muchos problemas,
    el principal es que la API de WorkFlow es demasiado pequeqa para
    manipular todos los procesos de WorkFlow por este motivo nos
    hemos visto obligados a acceder a tablas y vistas del modelo de
    datos de WorkFlow.
    Saludos.

  • Call a form by using Report Builder in 6i

    Dear All;
    How can I call the form from report builder in 6i Report and form??
    For example:
    in report show customer total price: 2000
    when I will click on this entry it will show me the breakup of this amount in form???
    how can I do this plz help me.

    Hi Zahid
    For breakup why dont u call another report for this.You can use SRW.RUN_REPORT bulitin for this.
    Regards
    --Ajay Sharma                                                                                                                                                                                                                                                                               

  • System setup/installation to use Forms and Reports 11g

    We are a high education organization. We recently get a request from faculty to create an Oracle environment for academic purpose. We have Oracle database 11g installed on a Windows 2008 R2 64bit server. Faculty require to use Froms and Reports 11g. My questions is what will be the basic minimum set up to make that happen? Can we also install the WLS with Forms and Reports on the same server that the database is on, then only install Forms and Reports client part on user workstations? Can somebody provide any documentation that can help on this issue? Thanks.

    Michael Ferrante's post in this thread has a list of useful documents
    How to run Oracle Forms app on local PC?
    For your server configuration you should be looking for the Windows 64 bit version of Weblogic Server and Forms.
    > My questions is what will be the basic minimum set up to make that happen?
    The system requirement guide in the link above will have all the information you need
    > Can we also install the WLS with Forms and Reports on the same server that the database is on
    Yes, assuming your server meets the combined requirements for both products, although I prefer to keep them separated for ease of administration.
    > ..then only install Forms and Reports client part on user workstations?
    For Forms 11g there is no installation required on the client to run forms applications (other than JRE). However if the user workstations will be used to run the forms builder and reports builder used to create the forms and reports modules, you will need to install Weblogic and Forms (Developer install type) on each workstation.
    One note of caution: Forms 11g is extremely sensitive to the versions of the components - Weblogic Server, Forms, Java, Internet Explorer, etc. I would use only the versions certified in the certification matrix in the link above.

  • Error while using the 'Form and Report' wizard

    Hello,
    I’m trying to create a form and report on EMP, using the APEX wizards, but I’m getting the following error message:
    ORA-20001: Unable to create query and update page. ORA-20001: Unable to create query and update page. ORA-20001: Unable to create form on table. ORA-20001: Error creating shortcut id="" ORA-00001: unique constraint (FLOWS_030100.WWV_FLOW_SHORTCUT_IDX1) violated
    This is something local, on my APEX instance only, but any ideas what is wrong here?
    Thanks,
    Arie.

    Hi Scott,
    >> Do you happen to know where that PL/SQL shortcut came from? Created by you or an apex wizard?
    The original shortcut was probably created by an APEX wizard, but then I changed its type to ‘PL/SQL Function Body’. The shortcuts are not included in the translatable components, so I need a function to determine the application language, and issue the message accordingly.
    >> The type of the shortcut is not part of that constraint
    So changing the shortcut type back to the type I need, after the wizard finished its job, should not have any side effects. Correct?
    >> and the sequence always seems to be 1
    And we don’t have access to it, so we can’t change it manually.
    >> Our bug
    Can you please fill a bug report on that?
    I will post an enhancement request about including shortcuts in the translatable components, but I’ll appreciate you mention this issue also.
    Appreciate your time and efforts,
    Arie.

  • Use Formule on FORM with REPORT - result stored at table

    Hi all,
    What is the best solution for?
    I have region with FORM WITH REPORT on the same PAGE.
    Values stored at table INFO with column ID, MYDATE, TIME_START_HOUR, TIME_START_MIN, TIME_END_HOUR, TIME_END_MIN, SUM1, SUM2
    ITEMS on the form:
    P1_ID (hidden)
    P1_MYDATE (date picker)
    P1_TIME_START_HOUR (select list)
    P1_TIME_START_MIN (select list)
    P1_TIME_END_HOUR (select list)
    P1_TIME_END_MIN (select list)
    P1_SUM1 (hidden)
    P1_SUM2 (hidden)
    After user fill in MYDATE, TIME_START_HOUR, TIME_START_MIN, TIME_END_HOUR, TIME_END_MIN then I need proces for calculation SUM1 en SUM2. Result stored (one record) at table INFO.
    Report shows all columns. User had possibility to update the record
    Formule:
    Select
    (CASE
    when to_char(mydate,'DY','nls_date_language=dutch') in ('ZA','ZO')
    THEN substr(to_timestamp (mydate||':'||TIME_END_HOUR||':'||TIME_END_MIN ||':00','DD-MM-YY:HH24:MI:SS') -
    to_timestamp (mydate||':'||TIME_START_HOUR||':'||TIME_START_MIN ||':00','DD-MM-YY:HH24:MI:SS') -
    (interval '00 00:00:00' day to second)
    ,12,5)
    ELSE '08:00'
    END) SUM1,
    (CASE
    when to_char(mydate,'DY','nls_date_language=dutch') in ('ZA','ZO')
    THEN substr(to_timestamp (mydate||':'||TIME_END_HOUR||':'||TIME_END_MIN ||':00','DD-MM-YY:HH24:MI:SS') -
    to_timestamp (mydate||':'||TIME_START_HOUR||':'||TIME_START_MIN ||':00','DD-MM-YY:HH24:MI:SS') -
    (interval '00 04:00:00' day to second)
    ,12,5)
    ELSE '04:00'
    END) SUM2
    FROM INFO
    where id=:ID
    What is the best way for the calculation: computation or processes or etc? The calculation after or before user push button(New:create button of Update:Apply Changes)?
    How to fill the answer (SUM1 and SUM2) at table INFO?
    Thanks Walter

    I have something similar I use:
    DECLARE
      str_day      VARCHAR2(10);
      dt_indx      DATE;
      db_dt_indx   VARCHAR2(20);
      str_st_tm    VARCHAR2(20);
      dt_st_tm     DATE;
      db_st_tm     VARCHAR2(20);
      str_ed_tm    VARCHAR2(20);
      dt_ed_tm     DATE;
      db_ed_tm     VARCHAR2(20);
      shft_flag    NUMBER;
    BEGIN
      str_day    := :P1050_DATE_MM || '/' || :P1050_DATE_DD || '/' ||  :P1050_DATE_YYYY;
      dt_indx    := to_date(str_day, 'MM/DD/YYYY');
      db_dt_indx := to_char(dt_indx, 'MM/DD/YYYY');
      str_st_tm  := str_day || ' ' || :P1050_TIME_IN_HH || ':' || :P1050_TIME_IN_MI || ' ' || :P1050_TIME_IN_AM;
      dt_st_tm   := TO_DATE(str_st_tm, 'MM/DD/YYYY HH:MI AM');
      str_ed_tm  := str_day || ' ' || :P1050_TIME_OUT_HH || ':' || :P1050_TIME_OUT_MI || ' ' || :P1050_TIME_OUT_AM;
      dt_ed_tm   := TO_DATE(str_ed_tm, 'MM/DD/YYYY HH:MI AM');
      --Alter date if night shift
      SELECT NVL(:P1050_NIGHT_FLAG,0) into shft_flag from dual;
      IF dt_ed_tm < dt_st_tm THEN
        dt_ed_tm := dt_ed_tm + 1;
      END IF;
      db_st_tm   := to_char(dt_st_tm + shft_flag,'MM/DD/YYYY HH:MI AM');
      db_ed_tm   := to_char(dt_ed_tm + shft_flag,'MM/DD/YYYY HH:MI AM');
    end;You'll need to modify it for your page variables.

  • Urgent! Using Reports parameter forms with RUN_REPORT_OBJECT on 9iAS

    Hi all, I am migrating client-server to 3-tier with 9iAS Rel2 on AIX 5.1. The forms and reports are upgraded from Forms4.5 to forms9i and Reprots 2.5. We used to have user defined parameter in parameter form(e.g. articale no.) to select records appearing in the report.
    However, the Report parameter form doesn't work on web.
    I have read Note : 139546.1 but I want the parameter entered in Report parameter form, not in the Form that call the report.
    Does anyone has samples of Forms and Reports doing to achieve that? Thank you very much in advance.
    best regards,
    Kathy

    Kathy,
    please have a look at the Forms and reports integration Whitepaper that is available from otn.oracle.com/products/forms. This shows you a coding example of what needs to be done to make parameter forms work on teh Web. This papaer is available for Forms9i/Reports9i and Forms6i/Reports6i
    Frank

  • Migration of forms and reports developed using Headstart  VERSION 3.4.1

    Hi,
    We have developed an application in forms 4.5 reports 2.0 based on repository 1.3.2 and Headstart
    Designer/2000 Template Package VERSION 3.4.1
    Now we want to migrate to Oracle 9i(web enabled)
    1)Is it possible to migrate only the forms and reports in 4,5 to 9i without the designer repository?Can the repository be left out?
    2)What about the templates and packages on the 2000 Headstart version.Is it necessary to migrate the same to 9i also?
    2)In case the repository has also to be migrated how do i go about migration to 9i??
    4)In case the headstart template/packages to be migrated how do i migrate to 9i?
    5)Where is the documentation available for headstart?
    Kindly help..

    Hi 23768 ( ;-) ),
    There is a whole wealth on information regarding upgrade/migration of headstart generated application systems.
    What you need is a licence on iDevelopment Accellerators and the Supplement Option (cso.oracle.com) to download this material.
    Contact your Oracle Consulting representative if you would like to know how to do this.
    Best regards, Marc Vahsen
    Headstart Team
    Oracle Consulting Netherlands

Maybe you are looking for

  • Generating Alert Message XML file and placing it in Queue

    Hello Team, I want the alert mechanism to generate the Alert file in XML format and it should be placed in the Queue it is the requirement of the client and it should be done without the help of the BPM can any one suggest me is this scenario can be

  • ANSI X12 meta data availability in conversion agent??

    Hello, Is there a provision for availability of ANSI X12 meta data in SAP conversion agent. We are trying to process EDI orders using the X12 INDUSTRY standard. Please advise. -Kris

  • Podcasts show up on iPod but not in iTunes

    My (old) podcasts show up on my iPod, but they don't appear in iTunes. I can't delete those podcasts and I really want to throw them away. Could somebody help me?!

  • Special scenario- IMP IMP IMP

    HI All, I have a scenario kindly guide me how achive this, Implementation in ECC6.0, 1. I have two diffrent manufacturing plants at two diffrent locations which manufactures same kind of products at both these plants, and CNF( delear location from wh

  • Print sales order

    Hi Experts I have configured an output for sales order. When I go to VA03 -> Sales document -> Issue Output To I can see the printout in print preview, but when I click "print", no printout is generated even though I got a message "Output was success