Insertion of multiple values in the report (not in the database)

Hello!

I have a procedure that shows example of 50 people and for each text element three different person I access values and submit to the database. There is a check box for each line. I have a selection list of Pentecost that you choose the column and a text element where you enter the value to insert. What I want to do is insert this value just in the lines that have a selected check box. I would like to insert this value just in the report (not in the database) when I click on a button.

What do I have to use javascript? I really have no idea how to do that.

Thanks for any help!

This will give you an idea on how to handle the selected lines:

http://Apex.Oracle.com/pls/OTN/f?p=31517:95

Other examples show how to use tabular forms.

Denes Kubicek
------------------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------------------

Tags: Database

Similar Questions

  • Insert some values into the database of field boxes




    I had a similar probem and error when you use the drop-down list instead of a checkbox. It was solved by putting the SELECT name = "CarMake in the menu dropdown.

    But in the box, I don't know?
    I seem that the problem is the action page has the Form.carmake, but the page does not work. What Miss me and where should I put in the entry below page.


    The main objective is to have checked checkboxes to insert some values into the database field carmake based on what is checked.


    If the Honda checkbox is checked then
    It inserts into the carmake field value Honda.

    If the Toyota checkbox is checked then
    It inserts into the carmake field the value of Toyota.

    If both are true then 2 rows are inserted two values
    Honda and Toyota.

    Ditto for the last option.

    Thanks for your help


    Here's the error again

    error:
    Error occurred while processing request
    CARMAKE element is not defined in the FORM.

    12:21:50.050 - term Exception - in C:\CFusionMX7\wwwroot\Author\CarAddAction.cfm: line 16
    CARMAKE element is not defined in the FORM.

    line 16 is:
    "#Trim (Form.carmake), #
    Join the Code


    <! - Here is the form - >
    < html >
    < head >
    < / head >

    < body >


    < h1 > < / h1 >

    < table >
    < action = "CarAddAction.cfm cfform" method = "POST" > "
    < b >
    < td > Honda: < table >
    < td > < Center > < input type = "checkbox" name = "HONDA_MODEL" value = "HONDA" checked > < / center > < table >
    < /tr >
    < b >
    < td > Toyota: < table >
    < td > < Center > < input type = "checkbox" name = "Toyota_MODEL" value = "Toyota" Unchecked > < / center > < table >
    < /tr >
    < b >
    < td > SUBARU: < table >
    < td > < Center > < input type = "checkbox" name = "SUBARU_MODEL" value = "SUBARU" unchecked > < / center > < table >
    < /tr >



    < Tr > < td > < table > Honda model
    < td >
    < input type = "Text".
    name = "Honda_Model".
    Value =""
    size = "22".
    MaxLength = "20" >
    < table >
    < tr > < /tr >
    < Tr > < td > < table > Toyota model
    < td >
    < input type = "Text".
    name = "Toyota_Model".
    Value =""
    size = "22" >
    < table >
    < tr > < /tr >
    < Tr > < td > < table > Subaru model
    < td >
    < input type = "Text".
    name = "Subaru_Model".
    Value =""
    size = "22" >
    < table >
    < tr > < /tr >
    < td > < table >
    < td >
    < input type is 'submit' value is "Take Add to database" >
    < table >
    < /tr >

    < / cfform >
    < /table >

    < / body >
    < / html >



    <!-action page
    --------->
    < cfdump var = "#form #" >
    < name cfquery = "InsertCarInfo."
    DataSource = "#request. MainDSN #">"
    INSERT INTO Car_tab)
    car_Make,
    Honda_Model,
    Toyota_Model,
    Subaru_Model

    )
    VALUES)

    "#Trim (Form.carmake), #
    "#Trim (Form.Honda_Model), #
    "#Trim (Form.Toyota_Model), #
    "#Trim (Form.Subaru_Model) #
    )
    < / cfquery >

    You check in one or more of the boxes before continuing? Remember what I said about the form field box existing only on the page of treatment at least 1 or more checkboxes are checked on your form. Make sure you use to avoid this problem.

    What happens when you take a look at the output of your dump of form? Your fields are present?

  • a problem in passing multiple values in the loop settings for

    Hi all

    I am facing a problem in passing multiple values in the loop settings for.


    EX:

    CREATE or REPLACE PROCEDURE (pr_id OUT NUMBER) HAVE


    tab type is table of NUMBER;

    TEMP_TAB TAB;

    BEGIN

    Select the COLLECT LOOSE pr temp_tab pr_id;

    I'm in 1.TEMP_TAB. loop of COUNTING

    PR_ID: = temp_tab (i);

    end loop;

    END TEST;

    OUTPUT:-

    pr_id = 234578


    in the example above, I'm only a value as an out parameter. but I send you PR_ID of the loop.
    why I don't get all the values that the parameters.please offer a solution for me.

    Thank you my friend.

    More clarification, let's look at your code...

    -- create a procedure and have a single numeric out variable
    CREATE OR REPLACE PROCEDURE TEST ( pr_id OUT NUMBER ) AS
      -- declare a type as an array of numbers
      type tab is table of NUMBER;
      -- declare a varianble of that array type
      TEMP_TAB TAB;
    BEGIN
      -- query all the values from the table into the array
      select pr_id BULK COLLECT INTO temp_tab from pr;
      -- loop through each value in the array
      for i in 1..TEMP_TAB.COUNT loop
        -- set the value of the single OUT parameter, OVERWRITING any previous value it has
        PR_ID := temp_tab(i);
        -- loop around to the next value
      end loop;
      -- end the procedure with the final value of PR_ID
    END TEST;
    
  • Inserting a new record in the database using a form empty ADF

    Hello

    I'm trying to insert a new record into the database using a form.

    I have an Employee table and its corresponding entity object and the view object. The table has an id that is used as the primary key and is filled using a sequence in the comic book.

    Data controls, I dragged and dropped at the sight of the employee as a form of ADF and checked the submit button include. Then I dragged and dropped the validation on submit button operation.

    When I connect to the app and go to the page used to create, I have 2 problems:
    1 - the form is filled with the logged in user info.
    2. If I try to change the news and validation, the user info is changed in the database and no new record is created.

    It makes a little sense to me, but I would like to know if there is a way around it (get an empty form and insert a new record).
    NB: the employee id is not part of the form, I want to be filled using the sequence.

    Kind regards
    MB

    User, please tell us your jdev version!

    To do this, you must create a new record before going to the display of the form page. In a stubborn workflow (btf), you drag the operation createInsert of the VO on the btf and it will generate a link method, add a view to the btf and put a navigation of the binding of the method of the page. Mark the method as 'Activity by default'. Now, ren, you call the workflow, you create a new record that will show your blank form.

    Timo

  • Adding values to the database.

    Hi guys,.

    I have a simple form consisting of first name and family name.
    I want to add the text box values in the database.
    I have to write a custom form handler. Can any body tell me how can I do. ??

    I created my mapping Xml file.
    I am facing difficulties to get the form Manager custom... I don't know how how dynamically call my point descriptor name to correspond with the repository.
    There is no coe good for adding value OTS database and I do not know the syntax. Help, please.

    In the code above we have:
    The student class
    StudentFormHandler
    StudentManager
    StudentTools
    Formhandler ranks Manager user and class manager will use class to add in the database tools.

  • Question about real store type value in the database on Z10

    Hi all

    I'm trying to store a value in the database (datatype is defined as REAL), but the result on Simulator and Z10 is totally different, the two of them, the SDK version is the same (10.0.10.672)

    on the simulation, the value in the database is correct, like this

    Z10, the valve can become bad like this.

    Define a type of incorrect data or someone has an idea?

    Thank you.

    I think I have sloved... the problem before you record a double or real value in the database, convert QString

    fenceValue["latitude1"] = QString::number(m_FenceFromJson->m_PointFs.at(0).x(), 'f', 6);
    
  • Passing multiple values to the report

    Hello
    I have a form of parameter. One of the field will have at least one value. When there are multiple values, the values will be separated by a comma and pass on to the State. Please tell me how to separate them and put them in the citation in the report query.
    EX: values are: PO, DR
    There will be in the where condition as: where code in ('OP', 'DR');
    Thank you in advance.

    PS. I use 10g

    Published by: 945599 on 10 July 2012 14:04

    Hello

    I sent the unit test by mail.
    Please note that there are some hardcoded values when you use run_report_object (name of report server and host name).

    Kind regards
    Alex

    Published by: AlexDiniasi on 19.07.2012 17:14

  • To show multiple values in the report?

    Hi all

    I have to show the value of prompt in demand from a prompt of dashboard.

    If the type drop-down list command prompt, a single value, I can use variable presentation.

    But I have a problem when multiple selection prompt property...

    How to display selected prompt in the report header values?

    Thank you

    Impossible to display the different values in a report header, but here is a workaround to display the selected values.

    (1) create a report smaill with just a single column, the column that is used in the multiple selection prompt.

    (2) put a filter on this "is invited" to receive the values selected from the prompt.

    (3) to customize the header and enter, "selected to request values.

    (4) place this report on the regular report.

    Now, when the user selects values, the list of values will appear at the top of your report.

  • Passing multiple values at the request of the State (no status page)

    Hello

    [APEX 4.2.4.00.08 on the 11.2.0.3 database]

    I didn't know how to explain briefly what I need in the title of the discussion, that's why I added the song "(non page rapport)". "  I met a lot of threads associated with passing of selections multiple values from one page to another, or via a URL from one page to another.  I know how to do this.  The problem I have right now is trying to pass the commas of the values contained in an application to a report query element.  Here's where the "(rapport non page) ' comes into play."  I refer to the report query at the level of the application (i.e. shared components-> report queries).  I wish really it had another name for it.  "Report on the application of queries", perhaps?

    In any case, my report query has a bind variable, AI_ID_NUMBERS, that is defined correctly in the shared-> components report queries. However, when this item application has multiple values such that AI_ID_NUMBERS = 4, 5, 6, 7 etc., my URL looks like this:

    myapexsite.com/f? p = 456:2:1234567890:PRINT_REPORT = report_1:AI_ID_NUMBERS:4, 5, 6, 7

    So, this returns only one record for the report where the identification number is 4, one.  I tried a string parameter of Substitution of Application (URL_REPORT_1) with the two following variants (for which both return only a single record):

    Substitution string = URL_REPORT_1 and Substitution value = f? p = & APP_ID.:0 : & SESSION. : PRINT_REPORT = report_1:AI_ID_NUMBERS: & AI_ID_NUMBERS.

    Substitution string = URL_REPORT_1 and Substitution value = f? p = & APP_ID.:0 : & SESSION. : PRINT_REPORT = report_1:AI_ID_NUMBERS:-& AI_ID_NUMBERS. \

    returns...

    myapexsite.com/f? p = 456:2:1234567890:PRINT_REPORT = report_1:AI_ID_NUMBERS:4, 5, 6, 7

    myapexsite.com/f?p=456:2:1234567890:PRINT_REPORT=report_1:::AI_ID_NUMBERS:\4,5,6,7\

    .. .respectively

    I really thought that the backslashes would have solved the problem.  Any ideas why my report request (PDF) returns only one line?

    Thank you

    -Seth.

    Well, too bad. I realized the mistake I did.

    When you work with 'request report queries', there is an option to include variable bind, for example the application or page elements.  I had already done that, but for some reason, thought that I also had to pass the parameter and its values in the URL.  This is not necessary since the report query query already has the issue of the application/page related to it.  The following URL works fine:

    myapexsite.com/f? p = 456:2:1234567890:PRINT_REPORT = report_1

    And, Yes, it's the URL that is provided when you set up a "application report query.  I was thinking too hard.

    -Seth.

  • Create null values in the database for interactive report link column values

    Hello

    I'm pretty new to APEX and tries to create an interactive report with the form. This report examines essentially for more information for a particular employee. If the employee has any information in the table, the report presents information with a button change beside him. If there is no record in the table for this employee, a create button appears. Now when you click create, a new creation page. This page contains the employee number as a single display field with the value from the previous page. This value is displayed in the page, but it is not in the database. Create the page has view-only number and a couple of other columns. The other columns get inserted into the table with an empty number!

    Can someone please? Looks like the page keeps the value zero for the number of the employee who came during the search of the interactive report. Hope I made myself clear, being the newbie hope I haven't used any incorrect terminology.

    Thank you!
    Robet

    Without the DB column, apex will not determine which DB column the data in this field are mapped to (it would be quite impossible to guess the destination since the name of the element column).

    If you want to assign to the previous element of the page, use the default section

    return: P1_EMP_NUM

    By default the value Type: body of the PLSQL function

    and configure the attributes of source as I said before

  • spend multiple values on the interaction of click value

    Hi gurus:

    I have a requirement where I need to display a report of the first (a table or a PivotTable), with the type Cust_ID, recipes, etc. Cust_id is a unique dimension. Most of the stuff is made.

    And then the user wants to select 4 different values of Cust_ID and run another report of detailed comparison of the attributes of these clients.

    Now, the solution I proposed one or the other was a copy and paste in the new edition box prompt, or multiple selection on cust_id on new page.

    But the 'expert' user interface wants something like boxes to tick next to all ranks and press a button that automatically starts a comparison report.

    I know that we can pass a value to the other report using the value interaction. But how I spend 4 different values to the click?
    Or is there no other way?

    Please help me.

    V

    Sorry there not be useful. I think that the solution works and book it that the user needs. Article is that sometimes we spend too much time trying to satisfy a user wants and brings us to spend our valuable time that could be spent more productively. Well...

    Good luck, however, Vinay!

  • Multiple values in the dashboard application application database Direct

    Hello

    I created a direct request from the database that accepts input from a prompt by a variable of presentation, either placed in request of db query. I realized in the process that I had to give a default input to the variable of the presentation of the petition. The input variables passed from the dashboard quick came in the right format, only if they are placed in quotation marks, Eg: "Input_Var".

    After all this, I came across a problem when multiple values are entered, the query is generated with an incorrect format. Here is the example:

    Select col1, col2

    of TabXX

    where username IN "Acct_Nm1", "Acct_Nm2"; ')}

    Is there anyway to solve this problem. Thanks in advance.

    Hi all

    I used the sequence next to convert the string separated by commas, received XML from the dash prompt.

    "Select XXX".

    movies XXX

    where the value

    in (SELECT )

    EXCERPT (VALUE (d), ' / / row/text () ") .getstringval)

    Of

    (SELECT XMLTYPE ('' |)) REPLACE ('VALUEOF (NQ_SESSION.req_var)', ';', ''). ') AS xmlval

    The DOUBLE) x,.

    ( TABLE (XMLSEQUENCE (EXTRAIT (x.xmlval, '/ lignes/ligne'))) d)"

    Create a query variable 'req_var' in the prompt to serve in "VALUEOF (NQ_SESSION.req_var)" and pass it to the report. It will be useful.

    Thank you.

  • display multiple values at the completion point

    All,

    IAM create multiple entries for autopopulate point as shown in this jquery plugin link below but iam trying to change that, then values from the query to the table. How can I achieve even using web services apex 4.1.1 but iam trying NOT to use remote url or external file?

    http://jQueryUI.com/AutoComplete/#multiple

    concerning

    All,

    I'm still digging around and looking everywhere but this blog below how I can pass the valueset returned to my jquery as variable below.

    sample:

    http://ORA-00001.blogspot.com/2010/02/ref-cursor-to-JSON.html

    var availableTags is ['data1', 'data2', 'data3'];.

    concerning

  • APEX 4.0.1: $v () function returns multiple values for the box?

    Hello

    I have a report that uses apex_item.checkbox (...) to generate the check box. This report correctly displays a check box for each line. The source code that is generated in the html page is:
    < input type = "checkbox" name = "f01" value = "202" id = "P1_CHECKBOX" / >
    ...
    ...
    < input type = "checkbox" name = "f01" value = "220" id = "P1_CHECKBOX" / >
    ...
    ...
    < input type = "checkbox" name = "f01" value = "210" id = "P1_CHECKBOX" / >
    ...
    ...

    I want to use the javascript function $v () to get the values of the enabled check box. I thought that the return of this function all the checked values separated by ':' but I noticed that my code alert ($v ('P1_CHECKBOX')); return whenever the value of the first checkbox if it is checked.
    It returns '202' if the first box is checked, but nothing, if only the second checkbox is checked and '202' if the box of the first and the second is checked.

    Hello

    first of all, $v, $x and $s are supposed to not work for items on the page, not the columns in a table or manually generated HTML elements.

    Secondly, I think that your HTML code is not correct, because each of your boxes has the same ID. But the ID must be unique in the DOM of the browser tree. Thus the different box should actually named P1_CHECKBOX_1... P1_CHECKBOX_3. Just look at what is actually generated for a page element real checkbox. BTW, I think that you should not name the checkbox as part of page elements, because they are not actually page elements. I think that this could be confusing for other developers.

    Hope that helps
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Multiple values in the Variable.

    How can I assign multiple values to a variable in the RPD?
    I want 'NY', 'CA', 'HE', 'TX' declares a variable, is it possible? If so, how?
    Thank you.

    Hello

    In your init block change for initialization and use SQL statements like this:

    Select 'STATE', Sun-places where the State IN ('NY', 'CA', 'HE', 'TX')

    This will create a STATE variable that has all of these values in it.

    You can then use it in a report as a filter [column name] = STATE the server OBIEE should automatically turn this into one for physics SQL.

    Kind regards

    Matt

Maybe you are looking for

  • Argument not valid error of DMG

    I have a Macbook Pro 2012 model and all my programs are up to date. But this week, seem all my DMG files don't load to give an invalid argument error. I thought it was because the downloads were incomplete, but it wasn't the case, as the other applic

  • Suffered the laptop using the recovery, but now only see 1 hard disk, not 2 disc

    Hello I used the system recovery disk to erase all the data on my laptop and re - install Windows Vista a-fresh. I used to have two hard drives (C and E), but now when I restored it I have only one. Should I just stick with it like that, or I can re

  • Update of ICS hampered by AT &amp; T or motorcycle?

    I am really very angry of the news of the ICS does not come to our phones at the end of the 3rd quarter after waiting so long. I want to know WHY and WHO is responsible, so I can correctly direct my anger in all its force. Does anyone have any idea w

  • T500 Windows 8.1 drivers 64-bit

    I just installed an SSD in my 2081CTO ThinkPad T500 and did a clean install of Windows 64-bit Professional 8.1. As the system seems to be faster than with the original HARD drive / WIndows 7 Pro 64-bit, there are a number of missing drivers and Think

  • How is - a detach a X 31?

    There is no documentation that can inform me how it is supposed to remove an X 31. I managed to do it, but it didn't feel "right" and I was afraid of damaging. So... What's the official procedure of removing a X 31 of its docking station?