To update the database by using selection lists in an interactive report

I use the Application Express 4.2.6.00.03.

I have an interactive report in two columns with a selection list in the second column. The generated query the report is

Select pn.project_name,

(Select APEX_ITEM. SELECT_LIST_FROM_QUERY(2, PN.) Batch, 'SELECT status_name d, r from RES_STATUS order by sequence batch', NULL, 'NO') of double) STATUS

of res_project_name_detail pnd, pn res_project_name

where pn.project_name_id = pnd.project_name_id

Now I need to find a way to change the database to reflect the changes made to a select list that appears in the second column (batch) as they are made. Are there any suggestions as to how this could be done? I have experience of limited Java script if a solution that I can use directly would be great.

Martin

Reference SebastianR


created a small example

https://Apex.Oracle.com/pls/Apex/f?p=28281:16:16619647501605:no:

WORKSPACE:-REEMATEST

username:-test

password:-test

application 28281

page 16

hope this helps you in some way

Tags: Database

Similar Questions

  • "Update the database", then stop playing audiobooks

    Hello.  I'm very frustrated and I hope you can help!

    I have been happily using my SansaClip for about eight months, but then a few weeks ago it stopped working correctly.

    When I turn it on, I get the message "Update the database" with a progress bar.  She fills in one or two seconds, and then for the regular menu, and looks like normal.  However, after listening to my audio book for a minute or two it just turns off.

    I tried to do a hard reset, reformatting, reset, and I've updated the firmware to 01.01.30, but no luck.

    Now, it behaves even more erratic, for example not immediately turn on, turn off even before I can choose music, etc.  The battery bar shows about 75% full.

    Any advice?

    Thank you.

    Lori

    Connect the player in MSC mode.  (Go to settings > USB Mode > MSCto put the player in MSC mode)

    Connect it to the computer.

    Then use Windows Explorer to do a Format (right click on the device and select Format)

    Next

    Unplug the unit and go to the settings menu and select "Format".

    This should clean the Clip and make it ready to transfer files again.

    You must return to the MTP mode.

  • E250 crashes to update the database

    OK, so I went and re - sync my player the other day.  Since then, when I turn it on, it starts to update the database, and then the screen goes crazy.  Nothing but colored lines.  I can stop, but it will do so when turned on.  I tried to boot from the recovery partition, and put the latest firmware files, it seemed to load, then again became 'crazy' at startup.  It will also do so if I connect to my PC and will not be detected...

    Any help would be appreciated.

    Thank you.

    Jason

    First, just for him heck of it, try to take out the battery (don't lose the screws bit) for a minute or two. It can reset.

    The problem is probably a file that has been bad or has been corrupted by mysterious Sansa bugs. If you are able to connect to the computer in MSC mode, you can run ChkDsk to zap the wrong file.

    If not, you will probably have to format and, unfortunately, lose all the music/video/pictures on it. Create a new empty folder on your desktop called sansa.fmt, go into the recovery partition and drag the sansa.fmt in there. Do not FORMAT THE PARTITION RECOVERY VIA WINDOWS - YOU're going to DESTROY VITAL FILES. When you disconnect, the Sansa will set up. Recharge a few albums at a time. Your most recent file was probably the one that crashed it.

    If it was the fault of a file that you added - and personally and not scientific, I don't think that it's always - you should look at the tags of your files and use a good tagging program, mp3tag. More information on ID3 tags here.

  • Update the database without affecting the application

    Hi all

    11.5.10.2 on linux.


    Recently, we are improving our test environment with the last group of patches of SOUL with 2 patches huge. now, the requirement is to update the database with the most recent data. I'm quite aware that refreshing db only will affect the fixes we applied. There is no work around for this?


    Kai

    Kai,

    You must apply the patches again after updating the database using "options = nocopyportion, nogenerateportion". In doing so, the part of the database apply only, and the database will be in phase with the application with respect to these two patches.

    Thank you
    Hussein

  • Impossible to update the database type in the Task Manager

    Hello

    I installed Oracle BI EE 10.1.3.4 with Oracle database 11 g (11.1.0.6.0) on my windows XP laptop.

    Also created a separate database and the schema for the Scheduler.

    Cannot update the database Type in the Task Manager for Oracle 11.1, I don't see any option for Oracle 11 g. The only available options of oracle are Oracle 8i, 9i, 10g R1 and 10g R2.

    The document on the Oracle 11.1.0.6.0 stated system requirements or higher versions are data sources supported for Oracle BI EE.

    Is someone did encounter this problem with BI EE 10.1.3.4?

    Thank you

    Simply use 10 g 2,
    Thus there is no 11G in the tool.

  • How can I change the size of a selection list?

    Hi all

    I know it's probably a beginner questiopn, but I spent some time in train and we have come to the forum to watch and found that nothing related to it.

    I m using apex 3.1, and I would like to know in what part of the question, I set its size, in the case of a selection list where I put its size?
    HTML I would like this:

    -----------------HTML CODE--------------------------

    < select size = "18" class = "bigselect" >
    < option > map 1 < / option >
    < option > map 2 < / option >
    < option > map 3 < / option >
    < option > map 4 < / option >
    < / select >

    -----------------HTML CODE--------------------------

    I've tried these and nothing:

    Attributes of HTML table cells

    Attributes of the Form HTML element <-this one says I can t set id and size in

    Shape element Option attributes

    Thank you and best regards

    Hello

    I misunderstood the first time :)

    It seems that the APEX is automatically affecting the SIZE 1 attribute when you create a list to select. I don't know if you will be managing change this value before the page is rendered. But if it's really important for you, maybe, you can change this attribute after the page is rendered using javascript.

    Add this function in the page header section:

    
    

    Then on the same page, insert the following code in the Page HTML Body attribute:

    onLoad="setLovSize();"
    

    I hope this helps.

    --
    Paulo Vale
    http://Apex-notes.blogspot.com

  • Sansa E280 going to update the database when it is connected to the computer

    Hello

    Just at the moment where I was getting things straightened on my drive and everything was working fine, I plugged my E280 on my computer and it says "Refresh database" on the player and my computer does not see the E280.

    I've been looking around on the forum, and there are so many different options to try (of: delete the SYSTEM folder, which I was told not; to turn off the drive and engaging the hold button and the button to rewind when connecting to the computer, etc., which I tried ~ nothing; take off Firmware and put one on; do something in Recovery Mode) , which I have no idea how do; etc.).  Sorry, but I hope you get my point... What do I do?

    Thanks for any help once more.

    Thank you clu31355.  I tried the very first thing that you said ' put in operation and allow it to update the database (if desired) before you connect. "and voila - it worked.

    These Sansas seem to be quite ticklish - who knows what will happen?

  • differences between the Data Pump to back up the database and use RMAN?

    What are the differences between the Data Pump to back up the database and use RMAN? What is DISADVANTAGES and BENEFITS?

    Thank you

    Search for the backup of the database in

    http://docs.Oracle.com/CD/B28359_01/server.111/b28318/backrec.htm#i1007289

    In brief

    RMAN-> physical backup. (copies of the physical database files)

    DataPump-> logical backup. (logical data such as tables, procedures)

    Docs for RMAN-

    http://docs.Oracle.com/CD/B28359_01/backup.111/b28270/rcmcncpt.htm#

    Datapump docs

    http://docs.Oracle.com/CD/B19306_01/server.102/b14215/dp_overview.htm

    Published by: Sunny kichloo on July 5, 2012 06:55

  • Difficulties to use Task Scheduler to update the database of the program

    Hello

    I would like Win 7 Task Scheduler to cause Locate32.exe Explorer file update there database every 45 minutes when I am connected. (Locate32 can do it by itself, but must operate continuously in the background to do).  I'm obviously not in the right info, because it does not work for me. I got the details to enter another site, as I am not familiar with the Task Scheduler.

    Task field name walked - locate32.

    In trigger I select daily

    then by selecting a time of 5 minutes before present, to test works

    then, in the action, I'm selecting Start a program

    then in program/script I enter 'C:\ProgramFiles\Locate\locate32 '.

    then in arguments - U

    Usually it is a notification when I update of database Locate32. This does not occur with the scheduled task, and when I look in the Task Scheduler for tasks that have been made, this one does.

    I checked the user information is correct.

    Please could someone tell me what I should do instead? Thank you, Jay

    Hello

    We apologize late in the response. This problem can be caused by incorrect settings.

    To display hidden scheduled tasks, follow these steps:

    1. Click Start. In the search box, type Task Scheduler. Then, in the list programs, click Task Scheduler.

    2. On the view menu, click Show hidden tasks.

    Try to re-create the task and check if it helps:

    1. Press the Windows key + R > type taskschd.msc and press enter (it will launch the Task Scheduler)
    2. Click with the left button of the right pane on the Task Scheduler Library > open Action on the menu at the top of the page > new folder... > name MyTasks > click OK
    3. Left-click on the MyTasks > menu, choose Action > create a basic task (it open Assistant tasks)
    4. You can enter the name , for example "restart" and press Next
    5. In the trigger section, you can specify when you want to run your task, for example:
      • Select daily and press Next
      • Now, you can specify the day, time and the game to be repeated daily, after that press Next
    6. In the Action section, you can choose what you want to run, for example, restart your system to do this:
      • Choose start a program and press Next
      • in the area of program/script, type shutdown /r and press next
    7. And that's all, you can press Finish

    Let us know the status.

  • CRUD using ADF fails to update the database table

    Hi all

    I am very new FAD and JDev. I use JDev 11.1.1.2.0 and oracle 10g DB.

    I created the necessary
    1 model, view, control files of data using JDev to a DB table control.
    2 .jspx file having a "Panel Accordin ' and a page layout"Panel formLayout"to display the fields in table required on the page."

    I use Panel corre layout to display data with buttons of browsers and works very well.
    In the the Panel layout form, after posting the fields I added the button 'submit '. I've linked this button with the operation "Commit" by drop and simple drag.
    PS: I've added the fields by simple drag / drop control of the data file maps to the table in question.

    The performance of the page I find things work fine until I want to use the submit button. It just updates the UI front, but when I check in my database table I find that it has not been updated.

    I am naïve. Pls Guide.
    A site with step - by - development of end to end step will be very large.

    Desperately waiting to get this resolved.

    Thank you all

    Published by: user8925296 on January 16, 2010 02:13

    The performance of the page I find things work fine until I want to use the submit button.

    See if your button submit has an EL expression in its property "disabled".
    Depending on how you want it, delete this EL expression or add partialTriggers button to make it refresh partially each time that a field can be changed on your page changes...
    (Assuming it's all ADF faces that you use. Also, see more here: Re: activate/register button )

  • T/t with the WHERE clause using a list breaks

    Hello, all,.

    I have a project where I need to use a list as part of the WHERE clause for a t/t, and it is breaking.  I don't know what I'm doing wrong.

    For some pseudo-code, do I have a complete query of a database called 'people '.  A list of values for the t/t with the first query; the second query is my t/t:

    <cfquery name="getDIR" datasource="#request.THISDSN#">
        SELECT thisName dir FROM orgs WHERE thisID in (<cfqueryparam value="#form.org#" cfsqltype="cf_sql_varchar" list="yes" />)
    </cfquery>
    
    <cfquery name="people" database="people">
        SELECT colA, colB, colC, colD
        FROM people
        WHERE 1=1
            AND (
                div IN (<cfqueryparam value="#valueList(getDIR.dir)#" cfsqltype="varchar" list="yes" />)
                OR dir IN (<cfqueryparam value="#valueList(getDIR.dir)#" cfsqltype="varchar" list="yes" />)
                )
    </cfquery>
    
    
    

    I get the error message is "t/t syntax error: encountered" div IN \'thisValue\' ".»  Incorrect conditional expression, waiting for one of [as | null | between | in | comparison] condition. »

    Can support _not_ QoQ lists of WHERE clauses?

    V/r,

    ^_^

    SMH - so much... I just found.

    I forgot to give the lists in the second query bracket.


    (The pseudocode was manually typed, since my dev system is isolated from the internet, and I added the in my pseudo code when they were not in my original code.)

    * headdesk * headdesk * headdesk * headdesk *.

    V/r,

    ^_^

  • Cannot create files in the database by using the PHP Data Service

    Hello, I was stuck on this during a few days and get up and down for this on the net, no response, I found did work, so I come back to you...

    Here are the steps I took, I think that's pretty standard

    1. I have a macbook pro running osx 10.7.3

    2. I installed MAMP default all the (I've acually reinstalled this because someone suggested it could fix)

    3. via phpMyAdmin, I created a database called my_test

    4. in this database, I created a table, it is the export of this table: (I also tried with InnoDB, which is the default)

    CREATE TABLE 'client')

    int (10) 'id' unsigned NOT NULL AUTO_INCREMENT,

    'name' varchar (50) NOT NULL,

    'email' varchar (150) NOT NULL,

    PRIMARY KEY ('id'),

    UNIQUE KEY 'id' ('id')

    ) ENGINE = MyISAM DEFAULT CHARSET = latin1 AUTO_INCREMENT = 1;

    5. I created a new project of Flx (running Flash Builder Premium 4.5.1)

    Project name: PHPTest

    Type of application: Desktop (although I did the same thing with the Web and got the same results)

    > > Next

    Type of application server: PHP

    Web root: / Applications/MAMP/htdocs /.

    Root of the URL: http://localhost: 8888 /

    Click on "Save Configuration" and who worked

    Output folder: / Applications/MAMP/htdocs/PHPService (default value of Flash Builder)

    > > Finish

    6. in the Data/Services on the background tab, I click on "connect to data or services...". »

    Select "PHP".

    > > Next

    Select «Click here to generate a sample»

    Select the option "Generate database"

    User name: root

    Password: root (default for MAMP)

    Host name: localhost

    Server port: 8889 (default for MAMP MySQL port, the default HTTP port is 8888, which, in both cases, seems to work, but all the videos I've seen that use MAMP on youtube uses 8889)

    Database: my_test

    Click 'Test connection' (work)

    Table: customer

    Primary key: id of (this field is dimmed and Flash selects Builder 'id', which it appears in the SQL table)

    > > Click OK

    7. then if I do not have the Zend Framework folder in my/Applications/MAMP/htdocs/folder it tells me its going to do this and I mean. Then Flash Builder said some things about how it really is for testing, not production server ready and I mean.

    8. then it brings back me to the form of step 6 when I have the chance to select «Click here to generate a sample»

    These fields are now filled with these data automatically:

    PHP class: /Applications/MAMP/htdocs/PHPTest/services/CustomerService.php

    Name of the service: customer service

    Package: services.customerservice

    Type of data package: valueObjects

    > > Click on Next (shows all functions, which will now be availible)

    > > Click done (end shapes and she opens Dreamweaver in the php file it created CustomerService.php that I didn't need to change so that I have that closes down)

    9. back in Flash Builder I switch to design mode and drag a datagrid control onto the large white area in the Middle, no matter who is called.

    10 slide below in the Data/Services on the bottom tab I click the "GetAllCustomer" function on the top of the data grid.

    I say yes to bounce, then click ok and the display of the data grid is updated with the columns of the 'customer' table in mySQL.

    (Now I would like to say that when I hit save and compile it, if I actually had documents in this table I have insert via phpMyAdmin, this is displayed in the datagrid control) So for all the CRUD, I am able to get the R which is read)

    11. now go back to the designer view in Flash Builder, I'll create a form to create the table records... (I guess this isn't really a step)

    12. in the data on background tab/Service I select the function 'createCustomer' and then there is an icon called "Form generating" that looks like a white sheet of paper with a sprocket on the bottom of things.

    13. This opens a new form and because I don't have a crazy bunch of fields in my table I click just finished (if you click then you can specify which fields you want to exclude from the form, but this time I don't have to)

    14. This creates actually 2 forms if you look at the code, the second shows just the return type of when you click on the button 'CreateCustomer' on the first form. Because they overlap in design mode I drag the form so you can see the entry form, the return form and the datagrid

    15 then I save and compile...

    (Also if your reading this fact does not delete the field in form of code, I get the same result, so be it, but if you do not delete the form field in the code/design you must also update the function button do not deal with the id before he is deported to the php page, since in this case the MySQL table's auto_increment sorry id value that does not have a lot of) sense, but this small area does not matter much anyway)

    16. now fill some data you want for name and email, try different numbers in the field id as 0, nothing, 1, 1000, then click on 'CreateCustomer '.

    (For me that nothing happens, no return is put on return, no error appears and the datagrid control is not updated with the new record, passing also to phpMyAdmin and checking her browse the table does no changes, I know that the button calls the function because if I add a state change it in this function of changes) , it seems that the line:

    createCustomerResult.token = customerService.createCustomer (customer2); does nothing)

    So no idea what is wrong here, I am convenced that's something stupid easy simple, I can't see it.

    So, I thought about it after 24 hours to post my question and probing every thing I could think about. I've been stuck with this problem for over a week, so I'll give myself credit for this one...

    userService.commit ();

    need to be added at the end of the function of button to force flex to do what seems every tutorial that I've ever read on how to do online is no need or mention, don't know why it worked without them but at this point I don't really like.

  • How to set the width of a Select list in APEX 5.0?

    Hello

    I have been using APEX 4.2 for a couple of years now. I am currently building my first application in APEX (Oracle DB 11g XE) 5.0

    On a page with multiple selection lists, I'm trying to set the width of each of them, so they are all the same size regardless of content.

    APEX 4.2, I used to just add: style = "width: 200px ' to 'ownership of the attributes of element HTML Form.

    How do I in the APEX 5.0? Property of the 'HTML Form Element attributes does not seem to exist anymore. Is there another way?

    Nick

    Hello

    You can use custom attributes: CSS min-width and max-width properties

    Concerning

    J

  • In the 5.0 Apex selection lists

    I'm getting confused with the list of selection for Apex 5.0 feature. I build a report that is generated using values in select list. The problem is, Apex does not recognize the syntax : nom_element.

    I tried a very simple example described here http://docs.oracle.com/cd/E59726_01/doc.50/e39147/app_contrls001.htm#HTMDB29715 and it doesn't work, I get the following error:

    Error during rendering of the element on the page P2_EMPNO.

    ORA-06550: line 4, column 8: PL/SQL: ORA-00904: "DEPTNO": invalid identifier ORA-00904: "DEPTNO": invalid identifier ORA-06550: line 1, column 13: PL/SQL: SQL statement ignored ORA-00904: "DEPTNO": invalid identifier

    My selection follows (and there is a page element called P2_DEPTNO as selection list in my page):

    SELECT ename like d,

    EmpNo as r

    WCP

    WHERE deptno =: P2_deptno

    ORDER BY ename

    If I change a few numbers P2_deptno, everything is ok, the result appears correctly.

    I don't understand, what's wrong? Help me please!

    Thanks in advance!

    2608792 wrote:

    I'm getting confused with the list of selection for Apex 5.0 feature. I build a report that is generated using values in select list. The problem is, Apex does not recognize the syntax : nom_element.

    I tried a very simple example described here http://docs.oracle.com/cd/E59726_01/doc.50/e39147/app_contrls001.htm#HTMDB29715 and it doesn't work, I get the following error:

    Error during rendering of the element on the page P2_EMPNO.

    ORA-06550: line 4, column 8: PL/SQL: ORA-00904: "DEPTNO": invalid identifier ORA-00904: "DEPTNO": invalid identifier ORA-06550: line 1, column 13: PL/SQL: SQL statement ignored ORA-00904: "DEPTNO": invalid identifier

    My selection follows (and there is a page element called P2_DEPTNO as selection list in my page):

    SELECT ename like d,

    EmpNo as r

    WCP

    WHERE deptno =: P2_deptno

    ORDER BY ename

    If I change a few numbers P2_deptno, everything is ok, the result appears correctly.

    I don't understand, what's wrong? Help me please!

    Thanks in advance!

    Referring to your statement

    If I change a few numbers P2_deptno, everything is ok, the result appears correctly.

    I don't understand, what's wrong? Help me please!

    Because

    If you use the emp table, which is by default .deptno is supposed to validate only number you can desc emp

    EMP EMPNO NUMBER - 4 0 1 - - -
    ENAME VARCHAR2 10 - - - - -
    JOB VARCHAR2 9 - - - - -
    MGR NUMBER - 4 0 - - -
    HIREDATE DATE 7 - - - - -
    SAL NUMBER - 7 2 - - -
    COMM NUMBER - 7 2 - - -
    DEPTNO NUMBER - 2 0 - - -

    DEPTNO datatype is number, and you cannot pass varchar.

    Hope you got the point where is your fault.

  • How do the default editing a selection list after a change in another list of selection is made (not in cascade LOV).

    Hello

    I searched for the answer for a while now, but could not find a solution to my problem. It's a rather trivial issue, but after dealing with more urgent problems, I stuck with it and I can't move forward I use Apex 4.2.1

    OK, lets start with a description.

    I have two selection lists. After making a choice in the first, I would like to than the second value to change. It is not cascade LOV case, however, at least I don't.

    Let me give you an example. Suppose we have a table with name and default to the occupation.

    Name By default occupancy
    JohnDoctor
    MarkFirefighter
    GeorgeFirefighter
    TomConcierge

    End user first selects the name in the first list, then the occupation of another. It's perhaps not clearly in the example given, but the order of the questions.

    What I want is to force a change in the second value in the list after a choice in the first. So after the name is chosen, the occupation should switch to the default.

    The assignment is the most typical, but not the only one. So I want the end user to be able to change the occupation if necessary. Tom of sense is not to be janiotor, it can be whoever he wants this is why it is not cascade LOV problem.

    I tried with dynamic action - definition of value and then refresh. It works when the second selection list is the text field. I can't find a way to make it work with another selection list.

    Hope you can help.

    Concerning

    AEMs salvation,

    What I wanted with display and return value, you usually have a list of selection like this query:

    SELECT occupation d, occp_id r

    OF professions

    If your return value is an identifier. To use the text as return value is rather rare. Where my question, because obviously you must select the return value in your query, NOT the display value.

    So let me explain what is a set value. It takes the value of the server by using your query and AJAX in the background, then uses Javascript to set the value of the item in the browser.

    At this point your selection list still has the OLD value in the session. Then, you do a refresh and the element uses the old value, and it seems that nothing happens.

    So solution:

    -clear default values, you don't need those

    -get rid of refresh it in your DA

    Kind regards

    Joni

Maybe you are looking for