A report from a query using the Union

Hello. I try to select an account for this request and then to display the total in a message, but I'm getting one too many returned lines (ORA-01422). Can someone tell me how I can get a total for this request?
         SELECT nvl(count(*),0)
       INTO conflict_cnt
       FROM dropper_assign
        WHERE dropper_id = :dropper_vacations.dropper_id AND
            trunc(sched_date) between :begin_dt and :end_dt
          union                           
   SELECT nvl(count(*),0) 
    FROM exfc.bundle a, splits b
    WHERE a.bundle = b.bundle AND
         b.dropper_id = :dropper_vacations.dropper_id AND
         trunc(a.actual_dt) between :begin_dt and :end_dt;

          call_alert.the_error('test: '||to_char(conflict_cnt));
Any help would be greatly appreciated.

Hello
first: your Union will always return two rows
Second: there is no need to put a nvl() because a county will always return o If nothing with the criteria.

select count(1)
into v_1
from table1;
select count(1)
into v_2
from table_2;
conflict_cnt = v_1 + v_2;
/* that(s it !*/

Jean-Yves

Tags: Oracle Development

Similar Questions

  • DA on updatable report items Sql query using the class

    Request Express 4.2.5.00.08

    10-11 g Oracle

    I have a page, so it has a link/button when he clicks then modal region will appear. Modal region has a as a table (Type SQL Query (updateable report)). All work very well so far.


    However, I've now added some complex things.

    for example. My region is based on the query of SQL Type (editable report).

    SELECT id, name of family, Traghetti, area, d_date, start_time, End_time, displacement, role of table where id =: P10_ID;

    I can also add a new line of course.

    My problem is, (point) Shift display based on the value of Start_Time point) and so I made sure the class for two items.

    for example, Start_Time (' class = "st_tm" ') and Maj ('class to = "Shift_time" '). Start_Time is based on (LOV) and shift is off the point in the sql query, but change the Start_Time.

    And now, I created the DA.

    1. event: change

    Selection type: jQuery Selector

    jQuery Selector: .st_tm

    Condition: No.

    1. action: set value

    Set type: Expression Javascript

    The JavaScript Expression: $(this.triggeringElement) .val ();

    The element affected: P10_X1 (it is a hidden item)

    2. action: Plsql Code

    Code: start to null; end;

    Page items to submit: P10_X1

    3. action: Plsql Code

    Code: start

    If: P10_X1 between '03' AND '11' then

    : P10_X1: = 'EARLIES ';

    elsif: P10_X1 then '12' and '18'

    : P10_X1: = 'LATES ';

    on the other

    : P10_X1: = 'NIGHTS';

    end if;

    end;

    Page items to submit: P10_X1

    NOW another DA

    Event: change

    Article (s) P10_X1

    Condition (in list)

    value (HASTY, LATES, NIGHTS)

    Action:

    Set type: Expression Javascript

    The JavaScript Expression: $(this.triggeringElement) .val ();

    Affected item:

    Selection type: jQuery Selector

    jQuery Selector:. Shift_time

    Well, I look forward all the above work well, but I'm having a problem.

    If I have more than 1 lines on a modal region and if I change the Start_Time value for a row then MAJ (point) is changing but he effect on all lines.

    I want, if I make the changes on the line line # 2 while only 2 # MAJ (point) must be not performed any other lines?

    Help, please!

    Kind regards

    RI

    I found the solution me thank you.

    I removed all the DA mentioned above and created a new.

    1. event: change

    Selection type: jQuery Selector

    jQuery Selector: .st_tm

    Condition: No.

    Scope of the event: dynamic and light on page load.

    Action (Javascript code)

    ROW_ID = $(this.triggeringElement).attr('id').substr (4);

    If ($(this.triggeringElement). val() > = 03 &. val() $(this.triggeringElement))<= 11)="">

    .Val ('EARLIES') $(«#f11_» + row_id);

    }

    ElseIf ($(this.triggeringElement). > 11 val() & $(this.triggeringElement). val())<= 18)="">

    .Val ('LATES') $(«#f11_» + row_id);

    }

    ElseIf (. val() > $19 (this.triggeringElement)) {}

    .Val ('NIGHTS') $(«#f11_» + row_id);

    }

    also created another DA because I have a disabled report items.

    Event: before the page is sent.

    $('_:_disabled').removeAttr ("disabled");

    and finally created manual process of DML for tabular and everything works fine. (Insert, Update, and delete).

    Kind regards.

  • Detailed report of Master - by using the checkboxes and jquery

    I need to report master detail of 2 levels.

    The requirements of detailed report Master

    1. when users are visiting the first time on this page all departments have to display.

    2. the first line box should be checked by default.

    3. all employees of the Department Checked (selected) must be posted.

    4. the first line box must be checked.

    5. all the addresses checked employee must be posted.

    6 at a given time that a single checkbox should be checked.

    7. If United Nations a user controls check, he doesn't have to. If
    another checkbox in this report is verified previous activated box must
    be deselected

    8 if the top of the page master record (Dept) is modified, then all children reports must be refreshed.

    --------------------------

    Example:

    The master first report displays a tabular report with a Checkbox, check out a query for the report of the departments.

    SELECT
    DEPTNO,
    APEX_ITEM. CheckBox (2,
    DEPTNO, "class = 'deptnochk" ')
    DEPTNO_LINK,

    DNAME, LOC
    OF THE DEPARTMENT

    -The child report shows the employees of the audited Department.

    SELECT

    EMPNO,

    APEX_ITEM. CheckBox (2,

    EMPNO, "class = 'empnochk" ')

    EMPNO_LINK,

    ENAME, JOB,

    MGR, HIREDATE, SAL,

    COMM, DEPTNO

    FROM EMP WHERE DEPTNO =: P67_DEPTNO

    ----------------------------

    The third report is like a big kid of the Department and of the Emp.

    SELECT

    EMPNO, ADD1, DEPTNO

    EMP_ADDRESSES WHERE DEPTNO =: P67_DEPTNO AND EMPNO =: P67_EMPNO

    --------------------------------------------------------------------------------------------------

    I used jquery to refresh the reports. But it is not working properly. Created a demo application

    https://Apex.Oracle.com/pls/Apex/f?p=45925:1:11600119458562

    Please help to make it work.

    Thank you

    Satya

    In case anyone is still interested I've set up two demonstrations.

    A demo of different ways to select a line.

    And a demo of a refresh of master retail. With the selection of the first row on the updating of the report.

    Nicolette

  • select_list_from_query using the union

    As a manual, how to have the APEX_ITEM. SELECT_LIST_FROM_QUERY when the query is like
    SELECT 'A' D, 'A' R FROM DUAL UNION ALL
    SELECT 'B' D, 'B' R FROM DUAL UNION ALL
    SELECT 'C' D, 'C' R FROM DUAL UNION ALL
    Please suggest


    Sanjay

    Hello
    >

    select APEX_ITEM.SELECT_LIST_FROM_QUERY(04,NULL,'select 'A' D, 'B' R from DUAL
     union all
     select 'C' D, 'D' R from dual', 'style=""','','YES',' - Select Details - ', 'f04_' || '#ROWNUM#', NULL, 'NO')LR_COURIER from dual
    

    Bracket missing error appears when you run the above code.
    >

    To escape the single quotes shipped like this

    select APEX_ITEM.SELECT_LIST_FROM_QUERY(04,NULL,'select ''A'' D, ''B'' R from DUAL
     union all
     select ''C'' D, ''D'' R from dual', 'style=""','','YES',' - Select Details - ', 'f04_' || '#ROWNUM#', NULL, 'NO')LR_COURIER from dual
    

    See you soon,.

    PS: Or use the q! Construct

    select APEX_ITEM.SELECT_LIST_FROM_QUERY(04,NULL,q'!select 'A' D, 'B' R from DUAL
     union all
     select 'C' D, 'D' R from dual!', 'style=""','','YES',' - Select Details - ', 'f04_' || '#ROWNUM#', NULL, 'NO')LR_COURIER from dual
    

    Published by: Dominique 21 August 2012 16:19

  • Need help in the development of different customized reports for SCCM 2012 using the Report Builder version 3.0

    Members of the Group of respected

    I need your urgent assistance to solve my problem, if someone who at least somewhat or large information please help me.
    My problem is related to SCCM 2012 and SQL server 2008.
    : - I have to develop a custom reports for SCCM 2012 for one of my clients. I have configured all the settings required for preparing the report, and I have examples of reports provided with sccm 2012.
    I get the problem while developing new relationships, if I have examples of reports that I have studied the corresponding reports. I don't get detailed information from the database to create query and get the desired result. As I have not idea of detail of this database structure in it.
    So I need help to create the query as I am new on this database.
    If anyone understand please give me help or link where I can build the report
    Thanks in advance.

    Forums for this product are here: http://social.technet.microsoft.com/forums/en-US/category/configurationmanager/

  • a report from jj/mm to the jj/mm

    Hello

    on 5.6.4

    When we run a report we are invited to:

    Edit

    Change.

    On my server option change give nothing.

    Change the option suggest:

    Last X period (from now).

    How to run a report from date to date? For example can I run a report for the period from February 15 to February 25?

    How?

    Thank you.

    Use ADSI-> Type = Custom time range

    Then set the dates from and to in the range time custom editor:

    Kind regards

    Brian Wheeldon

  • Need help with the query using the aggregation

    If I have a table, defined as follows:

    CREATE TABLE range_test
    (
    range_id NUMBER (20) NOT NULL,
    rank of char (1) NOT NULL,
    lower_bound_of_range NUMBER (5.2) NOT NULL,
    upper_bound_of_range NUMBER (5.2) NOT NULL,
    received_date_time_stamp SYSTIMESTAMP NOT NULL DEFAULT TIMESTAMP
    );

    And I wanted to query the table to find the range associated with the last line inserted for each 'class' (for example 'A', 'B', 'C', etc.), how would I go about this?

    I want something like the following, but I know that it will not work right:

    SELECT
    grade,
    lower_bounding_of_range,
    upper_bounding_of_range,
    Max (received_date_time_stamp)
    Of
    range_test GROUP BY received_date_time_stamp;

    Thanks for your help... I am frustrated with this one and I think that it should be possible without having to use the PL/SQL (i.e. the functions of SQL aggregation or subqueries should work).

    Perhaps something along the lines of...

    SQL> ed
    Wrote file afiedt.buf
    
      1  select deptno, empno, ename, hiredate
      2  from emp
      3* order by deptno, empno
    SQL> /
    
        DEPTNO      EMPNO ENAME      HIREDATE
    ---------- ---------- ---------- --------------------
            10       7782 CLARK      09-JUN-1981 00:00:00
            10       7839 KING       17-NOV-1981 00:00:00
            10       7934 MILLER     23-JAN-1982 00:00:00
            20       7369 SMITH      17-DEC-1980 00:00:00
            20       7566 JONES      02-APR-1981 00:00:00
            20       7788 SCOTT      19-APR-1987 00:00:00
            20       7876 ADAMS      23-MAY-1987 00:00:00
            20       7902 FORD       03-DEC-1981 00:00:00
            30       7499 ALLEN      20-FEB-1981 00:00:00
            30       7521 WARD       22-FEB-1981 00:00:00
            30       7654 MARTIN     28-SEP-1981 00:00:00
            30       7698 BLAKE      01-MAY-1981 00:00:00
            30       7844 TURNER     08-SEP-1981 00:00:00
            30       7900 JAMES      03-DEC-1981 00:00:00
    
    14 rows selected.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  select deptno, empno, ename, hiredate
      2  from (
      3        select deptno, empno, ename, hiredate
      4              ,row_number() over (partition by deptno order by hiredate desc) as rn
      5        from emp
      6       )
      7  where rn = 1
      8* order by deptno, empno
    SQL> /
    
        DEPTNO      EMPNO ENAME      HIREDATE
    ---------- ---------- ---------- --------------------
            10       7934 MILLER     23-JAN-1982 00:00:00
            20       7876 ADAMS      23-MAY-1987 00:00:00
            30       7900 JAMES      03-DEC-1981 00:00:00
    
    SQL>
    
  • query using the JOIN

    Hello


    my appearance of the table structure:

    Column names:

    Road
    BU
    sub_bu
    report_order
    sub_bu_order
    q1py

    My query is:

    Select road, bu, Sub_bu, report_order, sub_bu_order, q1py, case
    When sub_bu = 'ISS' then (select q1py from STG where 'a.sub_bu =' ESS and a.rhead = b.rhead)
    When sub_bu = "TS" then (select q1py from STG where 'a.sub_bu =' Services and a.rhead = b.rhead)
    When sub_bu = "SW" then (select q1py from STG where a.sub_bu = 'SW' and a.rhead = b.rhead)
    otherwise NULL end as q1py_bu,
    case
    When sub_bu = 'ISS' then (select q1py from STG where a.sub_bu = 'TSG' and a.rhead = b.rhead)
    When sub_bu as 'R & D' and road in ('Region owned opex', '% of income', "opex Région", "Région opex %") then
    (select q1py from STG where a.sub_bu like 'STG' and a.rhead = b.rhead)
    ANY other purpose like STG q1py_tot b where report_order = 1

    Result:

    Bu road report_order sub_bu_order q1py q1py_bu q1py_tot sub_bu
    order ESS ISS 1162 1 1 1778,4 2953.9

    Here I use the sub query to produce the result. I need to give the same result by using JOINS.

    If someone help me, by using JOINS instead of QUERY SUB and produce the same result



    Thanks in advance

    Maybe you can use SQL as below. (B-)

    select Rhead,bu,Sub_bu,report_order,sub_bu_order,q1py,
    case
    when sub_bu='ISS'
    then max(case when sub_bu='ESS' then q1py end)
    over(partition by rhead)
    when sub_bu='TS'
    then max(case when sub_bu='Services' then q1py end)
    over(partition by rhead)
    when sub_bu='SW'
    then max(case when sub_bu='SW' then q1py end)
    over(partition by rhead)
    end as q1py_bu
    from tsg
     where report_order=1;
    
  • Unable to connect to a Sony DV from my laptop using the firewire port after the installation of updates

    Original title: connection for Vista FireWire camcorder problem

    I used to be able to connect my Sony DV camcorder to my laptop using the FireWire on the camcorder and laptop.   Once it is connected the Movie Maker detect my camcorder and automatically transfer the video.  However, since I've updated my computer laptop July 13, 2012, my laptop does not recognize not the camcorder.  I checked my computer and your camcorder is not yet listed.  I checked the latest updates for the driver of the firewire port 1394 and is the day the device is functioning properly.  Can anyone throw any light on this.  The only thing I can think is that since the update, he may have done something for the connection.

    Hi Scarlett,

    Thanks for the post. I'm sorry to hear that the Sony DV camcorder is not detected.

    I imagine the inconvenience that you are experiencing. I will definitely help you with this.
    To help you suggest several steps to solve the problem, I would appreciate it if you could answer the following questions:

    1. What is the model number of the Sony DV camcorder?
    2. you receive an error code or message?

    3 update do you have installed?

    See the Windows updates are installed:

    http://Windows.Microsoft.com/en-us/Windows-Vista/see-which-Windows-updates-are-installed

    Please follow the methods and mark the question below:

    Method 1:

    First of all, let us check the status of the FireWire port in Manager devices to do this, follow the steps below:

    Check the status of the port in FireWire devices Manager

    a. Click Start, in the search box type Device Manager and press to enter.
    b. If you don't see the FireWire controller (probably listed under "IEEE 1394 Bus host controllers") in the list, then it is not correctly installed.
    c. If you see a yellow exclamation point, then you must install the drivers, who are usually on a CD that comes with the FireWire card with the camcorder.

    Method 2:

    Step 1:

    Hardware devices do not work or are not detected in Windows

    http://support.Microsoft.com/mats/hardware_device_problems/en-us

    Step 2:

    A device driver is not installed or a hardware device does not work correctly after you install a Service Pack in Windows Vista:

    http://support.Microsoft.com/kb/948187

    Method 3:

    Connecting i.Link® (IEEE 1394) of the camcorder is not recognized by the computer.

    http://www.KB.Sony.com/selfservice/viewContent.do?externalId=C86798&sliceId=1&MDL

    For more information, see the link below:

    Import analog video to your computer by using a DV camera:
    http://Windows.Microsoft.com/en-us/Windows-Vista/import-analog-video-to-your-computer-by-using-a-DV-camera

    Import video from a videotape:
    http://Windows.Microsoft.com/en-us/Windows-Vista/import-video-from-a-videotape

    Your response is very important for us to ensure a proper resolution. Please get back to us with the information above to help you accordingly.

  • Can I get the total number of records that meet the conditions of a query using the Table API?

    Hello

    A < row > TableIterator is returned when I ask operations using the index of tables. If I want to get the total number of records, I count one by one using the returned TableIterator < row >.


    Can I get the total number of records directly meets the conditions of the query?

    I can get the total number of records directly the request of the meeting of the conditions of CLI using the command Global table - name tableName - count - index index-name-field fieldName - start startValue-end endValue.

    Can I get the same results using the Table API?

    I used MongoDB and NoSQL Oracle for about a year. According to the experience of the use of these dbs, I think mongoDB querying interface is powerful. In the contras, the query interface is relatively simple, which results is a lot of work that is usually a long time in the client side.

    Hello

    Counting records in a database is a tricky thing.  Any system that gives you an accurate count of the records will have a hotspot of concurrency on updates, namely the place where the counting is maintained.  Such a count is a problem of performance in addition to competitive access problem.   The problem is even more difficult in a system widely distributed such a NoSQL database.

    The CLI has overall command that counts, but does so by brutal force - iterate keys that correspond to the parameters of the operation.  This is how you must do this within the API.  There is not a lot of code, but you have to write.  You certainly want to use TableIterator TableAPI.tableKeysIterator (), because a key iteration is significantly faster than the iteration of lines.  Just one iteration and count.

    If you use TableAPI.multiGet () and a key with a touch of brightness full then, in fact, count the results as they are returned in a single piece (a list).

    Kind regards

    George

  • Ready for character animation... To start from scratch or use the template?

    Hey everybody!

    First of all... I'm so amazed with character animation. Good job Adobe!

    I have a children's music group called 'Panda Party' https://www.youtube.com/watch?v=j1HDW1Q-H-c

    Up to now, everything has been based costume, but now with the amazing launch of animation character I can now start to do complete cartoons.

    I have just completed all the elements separated from the parts of the body, forms of mouth, eye flashes etc one of the character 'Penny Panda' ready to make my first cartoon character. I used the basic model of puppet character animation in photoshop and began to move the layers where they should be. Unfortunately, even if the head has been correct at first... as I moved forward a lot of elements was incorrect, eyes were not suite and locations of shape and the body of the original puppet eyes threw a lot!

    With something like this you would tell completely from scratch, and rename elements of an original rather than a puppet template file? And if so is it as simple as just the final layered psd correctly named imported puppet and animation character will be ready?

    Or y at - it another puppet model more suited to this type of bodywork that I start with?

    Thank you Adobe! Can't wait to start rolling on our news with the new characters

    KOB

    penny panda.jpg

    Hi Kob... If your character does not have the views of profile/quarter for the head, you had to be able to use the model of default puppet (new puppet in Photoshop / Illustrator), but if you have multiple views, Wendigo as described Jerry would be a good idea to follow. Alternatively, you can boot from your original artwork and group/rename layers as needed.

    When you use any existing puppet (Wendigo, model by default, etc.) model, you want to make sure to spend all handles for Fixed/Dangle/etc. to suitable locations based on your artwork, so that they are not above the empty parts of the document.

    If you are still experiencing difficulties to achieve usable results, feel free to post a screenshot of your work layer hierarchy or a shareable link to your work file to look at us.

    Thank you.

  • Workflow of vCO of query using the REST API in PowerShell

    Hello

    I am interrogating a workflow vCO by name using the REST API of PowerShell based on this article:

    http://www.vcoteam.info/articles/learn-VCO/268-how-to-use-the-rest-API-to-start-a-workflow.html

    $username = "XXXXXX".

    $upassword = "XXXXXX".

    $auth = $username + ':' + $upassword

    $Encoded = [System.Text.Encoding]: UTF8. GetBytes ($auth)

    $EncodedPassword = [System.Convert]: ToBase64String ($Encoded)

    $headers = @{' authorization '=' basic $($EncodedPassword) ' ;}}

    $body = "<-xmlns = execution context" ". ' http://www.VMware.com/VCO ' > < / execution context > '

    #query for workflow named "donothing".

    Invoke-RestMethod-uri https://XXXX:8281/api/flow /? conditions = name = donothing -Headers $headers - body $body - ContentType "application/xml" - Get method

    Invoke RestMethod: failed to send a content-body with this type of verb.

    On line: 1 char: 1

    + Call-RestMethod-uri https://XXXX:8281/api/flow /? conditions = name = donoth ...

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo: NotSpecified: (:)) [invoking-RestMethod], ProtocolViolationException)

    + FullyQualifiedErrorId: System.Net.ProtocolViolationException, Microsoft.PowerShell.Commands.InvokeRestMethodCommand

    The request succeeds by using the customer REMAINS on Firefox, but I can't make it work on PowerShell. (NOTE: PowerShell workflow execution works very well)

    Any help is appreciated.

    Thank you

    Juan.

    OK, I managed to do work by removing

    [System.Net.ServicePointManager]: ServerCertificateValidationCallback = {$true}

    And add this at the beginning of the script

    "Add-type @ '.

    using System.Net;

    using System.Security.Cryptography.X509Certificates;

    public class TrustAllCertsPolicy: {ICertificatePolicy

    public bool CheckValidationResult)

    ServicePoint srvPoint, X509Certificate certificate,

    WebRequest request, int certificateProblem) {}

    Returns true;

    }

    }

    "@

    [System.Net.ServicePointManager]: CertificatePolicy = New-Object TrustAllCertsPolicy

    Now I can use the GET method:

    $ret = Invoke-WebRequest - uri $URL - Headers $headers - ContentType "application/xml" - Get method

    I spent to Invoke-WebRequest so I can get the return of application Web.

    Juan.

  • How to display the records from a query in the non-base data field

    Hello

    I have a problem:
    I have a query with a lot of tables and column 6 (select a, b, c, d, e, f x, y, z, t, s, g where the conditions) and I use 3 parameters.
    I create 3 settings: datai,: dataf and: partner and a button with a trigger when the button is pressed.
    Then a create a block manually with six field non-database a1, b1, c1, d1, e1, f1.
    Now, I want to display all the records in my query in a1, b1, c1, d1, e1, f1 where a1 = a, b1 = b, etc. and all the records (if I have 20 record, it will display 20 records in the non-base data field) when I press the button.

    How I did it:
    I create a cursor with the query, and then
    start the open cursor
    loop
    Fetch cursor in: a1,: b1,: c1: d1: e1,: f1;
    end loop;
    close the cursor;
    end;

    It displays a single record in a1, b1, c1 only, and it must display 100 records and date for all fields.

    Can someone help me with this problem?
    Thank you.

    Published by: 928437 on October 1, 2012 02:55

    Creating a view and the query in a database block are a great solution.

    To use the block non-base of data:
    You are missing the most important Next_Record; command.

     Begin
    Go_block('X'); -- block X is the non-database block
    Clear_Block(No_Validate);
    open cursor X1;
    loop
    If :System.Record_status != 'NEW' then
    Next_Record;
    End if;
    fetch X1 into :a1,:b1,:c1,:d1,:e1,:f1;
    Exit when X1%NOTFOUND;
    end loop;
    close X1;
    end;

  • Query using the functions, research and additions?

    I am new to SQL, databases, and APEX! I'm sure it's very easy for you all, but I've been racking me my brains for two days on it; time for experts.

    My simple request is:

    Select first_name. » '|| middle_name | » '|| last_name 'full name '.
    of name_table;

    The problem I have, is that each name above is in a foreign language (which I don't understand by the way!), but I have a table that has "English" translations for each name... so my question is how to replace my 'translanted' value in each case...

    to translate the values, I do a:

    Select translated_name
    of translated_table
    where orginal_name = FirstName (or middle_name or same last_name)
    and translation source = "Dictionary" (there may be 3-4 or four sources of translation for each name...)


    Looks like a 'feature' would be the best way to do it... After much googling, this is what I came up with (which obviously does not work!):

    create or replace function TRANS_NAME (v_original in varchar2)
    return varchar2
    is
    v_translated varchar2;
    Start
    Select translated_name from v_translated
    of translated_table
    where original_name = v_original
    source = "Dictionary".
    Return v_translated;
    end;

    I use the 'APEX' Explorer to create the function, for a few reasons:
    1 SQL more does not display the foreign language (shows just a buch of? s), the APEX SQL tool indicates that the original language!
    2. it gives immediate, if not cryptic, comments on syntax errors.

    FYI, I'm using Oracle 11 g on a Sun Solaris 10 Server.

    Appreciate any help you might be able to provide!

    create or replace function TRANS_NAME (v_original in varchar2)
    return varchar2
    is
    v_translated VARCHAR2 (255); -->> Add the LENGTH of your
    Start
    Select translated_name from v_translated
    of translated_table
    where original_name = v_original
    source = "Dictionary"; --->> AND A SEMICOLON HERE
    Return v_translated;
    end;

    Published by: hoek on May 15, 2009 16:21 bought some glasses and spotted the semicolon missing too

  • Component report from a form with the input of the user parameters

    Hello

    I am new to Oracle reports. I have an application coded 6i. I currently use the application in Oracle Forms Builder 9i. There are also few reports which are called Forms. Given that the application has been developed in 6i, the report was called using Run_Product. Forms are a set of parameters of the user of the report using the parameter list pl_id. The syntax used is Run_Product ('D:\Report\sales.rdf', SYNCHRONOUS, DURATION, REPORTS, FILE system, pl_id, NULL);

    I learned that the Run_product does not work in 9i and we need to use run_report_object. I changed the code to use run_report_object and using web.show_document () I am able to run the report in the form. There are 2 parameters that should be passed to report forms. The parameters are from_date and to_date which will prompt the user to enter the performance of the form. In the report, the initial values of these parameters are defined. Thus, the report runs fine for the initial value always. But when I try to change to the form_date user input and to_date, the release of the report does not seem to take the new values, instead the old report with initial values (defined in the report) is running again.

    Can someone give me the code to pass the parameters defined by the user to the State of the forms? I defined a report object in the node forms such as REPTEST and defined a parameter list pl_id and form_date and to_date adds pl_id and uses the following encoding:

    vrepid: = FIND_REPORT_OBJECT ("REPTEST");
    vrep: = RUN_REPORT_OBJECT (vrepid, pl_id);

    But it does not work.
    In addition, the parameters defined in the forms and States should have the same name?

    Hello

    If you want to send the settings when you use RUN_REPORT_OBJECT, you simply line:

    SET_REPORT_OBJECT_PROPERTY (report_id, REPORT_OTHER,' FROM_DATE ='|: BLK_INPUT.) FROM_DATE | "= TO_DATE' | : BLK_INPUT. TO_DATE | »
    paramform = no ");"

    The hidden_action parameter is required to use PARAMFORM = YES and RUN_REPORT_OB JECT

    PARAMFORM Specifies whether to display the form of run setting when you run a report through CGI or a servlet. PARAMFORM is only used to supply parameters to the layout of paper reports, Web reports no JSP-based.

    http://www.Oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/Cmdline/common/bld_paramform.htm

    Regardss

Maybe you are looking for

  • Satellite L40 - 15G has no power and no light

    Hello I have a Toshiba Satellite L40 - 15G. The keyboard was very dirty, so I followed the online instructions to remove it: Removed the cover that is over the ram and the wireless card has had and took off the two screws now the keyboard (in fact on

  • After the sync of the iPod, music parts are not not on iPod

    I hope I'm asking my question to the right group.  If this isn't the case, I'll be happy to submit my isse by another if done to group. I recently asked CSA 1) if iTunes could support/recognize an iPod and iPad on the ITunes App even on the same comp

  • Help me. I need win7 32-bit driver for sony vaio VPCEB3QFX/Wi

    I can't find win7 ultimate 32-bit driver for sony vaio help .please VPCEB3QFX/Wi me thank you very much...

  • My laptop - I for one keep gel

    I bought acer laptop Starter-set Windows to upgrade to home premium Aspire 4339-2487 s/n: 13203906625 Intel celeron p4600 14.0 "hd lcd led Intel hd graphics card 2 GB of ddr3 memory hard drive 320 GB DVD - super multi dl drrive Acer niplify 802.11b/g

  • 6.6 Lightroom crashes when importing each time

    Hi I have a relatively new version of Lightroom 6.6, purchased in March 2016. It is basically useless, because it will no more allow me to import the photos to change.Description of the problem: as soon as I click on the button IMPORT, a dialog box a