APEX_ITEM can. SELECT_LIST_FROM_QUERY be used in tabular form?

Hello

Is it possible to add an apex_item to an existing query in tabular form, such as the one below?

SELECT APEX_ITEM. SELECT_LIST_FROM_QUERY (3, job, 'Employment SELECT DISTINCT FROM emp') job

WCP

It is an example that can be found at APEX_ITEM.

My actual query is as follows:

Select

"ROWID",.

"REF."

"DESCR",.

APEX_ITEM. SELECT_LIST_FROM_QUERY (10, code, 'SELECT code FROM lov') 'CODE '.

of ' #OWNER # '. " LOVREF ".

The report definition, I put the element 'Code' as 'List of selection (query based LOV)' and I get the following error when I run the report:

report error: ORA-20001: Error fetching column value: ORA-20001: Query must begin with SELECT or WITH

REF

Descr

Code

Can someone please say if the use of APEX_ITEM. SELECT_LIST_FROM_QUERY is valid in tabular form?

Thanks in advance

Yes, but your column definition must use "column of report Standard", if you want to use apex_item.

Tags: Database

Similar Questions

  • Adobe Central forms will disappear in June. Can I still use "create a form" and "distribute form" after June?

    Last year, I used Adobe Acrobat to generate a registration form and used to collect inscriptions. Then I could download to Excel. This functionality will still be available once the central forms is stopped?

    Hi phyllis,.

    From June 23, 2015, you will not be able to create forms or collect data from existing forms.

    Best,

    Sara

  • Protection against XSS attacks with tabular forms

    Hi all

    I read in various items of security Apex if we create a box on a table with a report, we should set columns of type report "" display text (escape special characters, does not save the State) "" instead of "Standard report column" in order to avoid XSS attacks.

    How can I avoid this for tabular forms? Editable for my sub columns form table are defined as "text field. I tried to save the form after you enter a Java script to one of the field in the form, and it worked fine. Apex escaped special characters. But I want to confirm with the experts who are supposed to make something different? Apex automatically escapes the special characters for tabular forms?

    Please advice.

    Thank you

    RN

    Hello

    "Text field" or any other type of column in table form where you can enter data is not affected by XSS, because they always escape the value when it is displayed. Only 'column Standard report' is not secure if you do not have total control of the displayed value. But sometimes, it's intentionally use this type if you want to display values that contain HTML tags. But always be aware of potential security issue if everyone is allowed to enter the HTML code.

    Concerning

    Patrick

    Member of the APEX development team

    My Blog: http://www.inside-oracle-apex.com

    APEX Plug-Ins: http://apex.oracle.com/plugins

    Twitter: http://www.twitter.com/patrickwolf

  • Tabular form on a synonym

    Hi all

    I work with Application Express 4.1.1.00.23 on
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE     10.2.0.5.0     Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Productio
    NLSRTL Version 10.2.0.5.0 - Production
    I create and successefully test my application in which I use DML on myTable and I have a tabular presentation on myTable.


    Can I move my table on a different database that is
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
    PL/SQL Release 10.2.0.3.0 - Production
    CORE     10.2.0.3.0     Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.3.0 - Productio
    NLSRTL Version 10.2.0.3.0 - Production
    I create and successefully test a dblink and a sysnonym from myTable.


    When I test the tabular presentation error ORA-00942: table or view does not exist (row 1) is triggered.
    Is it possible to use a tabular form on a synonym?
    I try DMLvia Apex workshop SQL > SQL commands and it works.

    Thank you all for any help or suggestion.
    Alex.

    Hi Alex,

    Means on a Table with data link does not work with APEX. You can work around by the definition of a view on this Table, which will work with the TabForm.

    brgds,
    Peter

    -----

    get syntax highlighting for Application Builder: http://apex.oracle.com/pls/apex/f?p=APEX_DEVELOPER_ADDON: SUBJECT: 0:

    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at and http://www.wirsindapex.at

  • 'Length' is null or not an object for tabular forms V4 error

    Hi all

    We have recently updated our applications APEX of version 2 to version 4. We use many tabular forms in various applications that worked fine before the upgrade.

    Since the upgrade, when we run the pages in a table we get an error JavaScript 'Length' is null or not an object and the button "Add row" everything hangs and does nothing.

    We tried to remove one of the forms in table form in an application, and then re create it in the same application unsuccessfully.

    We then tried to create a new application from scratch, then creating the same page (which did not work in the previous sentence) and it works well.

    Of course we can just delete applications that contains a tabular form and then begin to recreate them from scratch.

    Someone had a similar problem? I Googled it and a few people have mentioned similar problems with v4. Is this a bug in APEX v4?

    Thank you

    Hi Cashy,

    Unfortunately, you will have to do for each application. Go to shared components

    1) go to themes
    (2) click on create
    3) repository
    (4) choose your new theme
    (5) create the new theme
    6) click on "change the theme.
    (7) check that the mapping is ok
    8) click 'Remove the theme' to remove the old theme

    But to make it easier to change the templates in all your applications in the future I would say the following steps.

    (1) create a new application "Main Theme" and choose the new theme you want to have.
    (2) copy this application and call it "new model of demand."
    3) go to shared Component\Templates
    (4) for each model of defined "Reference Master model of" in the region of "Subscription" for the same model in the application "main Theme".
    (5) I would also say to remove these themes you don't want that developers use in application here (eg. variations of different button model,...)
    6) go to shared Component\Themes
    7) click on "export theme".

    For each application:

    1) go to Components\Themes shared
    2) click on "import theme."
    (3) choose your exported theme
    6) click on "change the theme.
    (7) check that the mapping is ok
    8) click 'Remove the theme' to remove the old theme

    The advantage is that if you change a model in your theme, you just make the change in your 'Main Theme' application and publish it on applications that have subscribed the theme.

    Concerning
    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

  • Tabular form - how to set a field to a constant?

    I use a tabular form to update a table - and it works. Then I remembered that I also have to update the field which keeps track of who made the change.

    Configuration of the field via SELECT it (for example Select "userX" as a publisher of...) for the tabular presentation fails due to an error of concurrency of db (MRU 20001) on presentation.

    Try to substitute the current value in [column attributes] of the field in the context of the [attribute] - [value = "userX"] he added simply as the second argument to the value of the entry (of the html source).

    Suggestions?

    This as a trigger in the database... Setting that introduced the change, the date/time, and who have created the line is also a function, imo, a trigger for insert/update in the database, not the form...

    Thank you

    Tony Miller
    Webster, TX

    Never give up dreams!
    JMS

  • Tabular form using dynamic Action set

    I have a tabular presentation created using APEX_ITEM.

    That is to say. APEX_ITEM. SELECT_LIST_FROM_LOV(3,NVL(D.FK_ATTENDANCE_CODE,'%null%')

    I want to use a dynamic Action to set the value based on the value of a hidden page element.
    I created a Page element 'P1358_HOLD_ATTENDANCE_CODE', and I can see he's up to the correct value.

    I tried to create a dynamic Action (run Javascript) to set the form of tab selection list item (f03), but it does not work.

    Here is what I tried:

    var line = $x_UpTill (this.triggeringElement, 'TR');
    var otherElement = $(' input [nom = "f03"]', ligne) [0];
    otherElement.value = $x('P1358_HOLD_ATTENDANCE_CODE').value;

    Any ideas?
    I know, as a backup, I could put the ID = when creating elements in a tabular form so that all the lines are different, but I hope that the JQuery can do it more easily.
    Thank you

    Did change selection that I said fix the prob?

    If this isn't the case, him DA is without a doubt was fired at your event?

  • APEX_ITEM. DATE_POPUP2 in case of manual tabular forms

    Hi all

    I'm unable to view the based on jQuery popup calendar in my manuals tabular forms by using the APEX_ITEM. Function DATE_POPUP2. It displays the text of an item but without the calendar button. What I need to change the attributes of the column and set the option ' display as ' on 'Date Picker?'

    Request Express 4.0.2. Here is my report query:
    SELECT
       cust_first_name,
       cust_last_name,
       apex_item.hidden(1,customer_id,NULL,'f01_'|| '#ROWNUM#')
       || 
       apex_item.date_popup2(
          2,
          SYSDATE,
          'MM/DD/YYYY',
          12,
          12,
          NULL,
          'f02_' || '#ROWNUM#'
       ) dob
    FROM demo_customers
    Please let me know what the problem with my query above.

    Thank you!

    JMcG

    Hello

    Try

    SELECT
       cust_first_name,
       cust_last_name,
       apex_item.hidden(1,customer_id,NULL,'f01_'|| ROWNUM)
       ||
       apex_item.date_popup2(
          2,
          SYSDATE,
          'MM/DD/YYYY',
          12,
          12,
          NULL,
          'f02_' || ROWNUM
       ) dob
    FROM demo_customers
    

    I think the problem is that you can't use substitution #ROWNUM # in the report query.
    Your code has generated the same attribute of id for all text fields (id = "" f02_ #ROWNUM # ' ").
    ID attribute must be unique within the HTML document.

    Kind regards
    Jari

  • Button to apply tabular form - can I just update region c. send this page?

    Hi all -
    I have a tabular form of base with a button apply. After the button is clicked the MRU is done properly, but it then triggers a sending of full page. I would rather just refresh the region like nothing else on the page requires a refresh. If I create a dynamic action, I think that I need the pl/sql to do the update and I hope I can find an easier way around this.

    The only action the button options are send page, redirect to a page or the url and "defined by the dynamic action. I'm on request Express 4.1.0.00.32.

    I hope it's something really basic but I have ideas or suggestions,

    John

    Hi John,.

    If you want to stay with the built-in feature in a table, as the process of page MRU, optimistic locking, etc., then you need send a page and the full reload. You can easily navigate the game following lines using partial page refresh and also make sort. But for writing data in the database, you must send the page. Especially if you have extra in the form of validations and related processes. Of course, you could go entirely manual, write your own JavaScript to collect the data from all the tables in table form and submit this via an AJAX request and initiate an update of only the region in table form. But you loose some features in doing so.

    We are looking for in this, addressing a new component to edit grid several rows before us for inclusion in the APEX 5.0:

    http://www.Oracle.com/technetwork/developer-tools/Apex/application-express/Apex-sod-087560.html

    ... However for the moment, I would strongly recommend to stick to submit to full page and reload in this case.

    Kind regards
    Marc

  • Can simple Question - I do the colors change in tabular form

    Can simple Question - I do the colors change in tabular form.
    How can I change the colors, green, white alternating on tables?

    Doug,

    Here's some javascript that I use for tables/reports of Ray...
    Don't forget to replace "t15" with your model references.

    
    
    
    
    Also, if you go edit the report template > Column Templates > Column Template 1 > You can set the condition to even/odd rows and then add in your own html/css..
    
    
    #COLUMN_VALUE#
    
     -Chris
    
  • I changed my password to get into my phone and I don't remember, I can get by using the contact ID, but I don't remember the password. Is there a way to change this without typing the former in?

    I changed my password to get into my phone and I don't remember, I can get by using the contact ID, but I don't remember the password. Is there a way to change this without typing the former in?

    N ° you'll need to restore your iPhone:

    If you have forgotten the password for your iPhone, iPad or iPod touch, or your device is disabled - Apple supports

  • PC/tablet-is there a laboratory touchscreen top that works on windows 7 / 8, where the screen can detach the keyboard to use in the form of tablets, or screen can be reached for keyboard vertically or horizontally?

    Labtop / Tablet question -I'm shopping for a new Labtop.    Is there a laboratory touchscreen top that works on windows 7 / 8, where the screen can detach the keyboard used in the form of tablets and then transformed (with long vertical side) and attached to the keyboard to type a length full page (8.5 x 11 page) and then returned (long horizontal side) one attached to the keyboard (to be used as a stand) for a movie with all the features of present characteristics of a top laboratory such as 4 to 8 GB memory and a 500 GB hard drive (perhaps as part of the screen or connected to / through the keyboard, if it is used as a docking station)?

    It seems with all the technology of the tablet on the market that Microsoft or somebody would do something like that now.  Can someone help me? Thank you

    -Scott M

    PS: My wife has an ASUS transformer where the screen detaches from the keyboard, so it can be used in the form of tablets.  When it is attached to the keyboard, the keyboard acts as a stand to sit on the counter for watching movies.  And then the keyboard and the screen can fold them together, so when it is closed there is a stand-alone case. This, however, runs the Android operating system.  Basically, I want this same design (for the potability in a Briefcase), but with it running Microsoft Windows so it can be used as any other labtop.  It the keyboard could have a number pad are associated with, that would be a bonus.

    Hi pr-e-s,.

    You can check with asus.

    http://us.Acer.com/AC/en/us/content/home

    http://us.Acer.com/AC/en/us/content/group/notebooks

    http://us.Acer.com/AC/en/us/content/group/notebooks

  • Can the files used by forms 11g jar be deployed in a directory custom instead of/forms/java?

    We have several .jar files used by our applications forms that we put in $ORACLE_HOME/forms/java and everything works well.

    However:

    (1) we have 3 Weblogic domains on the same server, sharing the same $ORACLE_HOME/forms/java - we want to be able to separate them for a different version of jar files

    (2) we do not want to have to give access to the/forms/java developers to deploy their applications

    I want to be able to be:

    (a) set a custom (for example, archive=/mydir/myfile.jar) in the formsweb.cfg directory

    or

    (b) define a subdirectory under/forms/java (for example, archive=/dev/myfile.jar - which means $ORACLE_HOME/forms/java/dev/myfile.jar) (isn't this how it worked in 10 g?)

    Thank you

    You can locate the jars anywhere you like as long as there is a virtual path mapping.  If you have had the right idea, but not exactly.  In ARCHIVE settings, use the virtual path to locate the files.  This means that you may need to create new virtual mappings.   Do what of WLS can be painful, use SST before WLS is preferred.  OSH, the creation of a virtual mapping is simple.  Once you have created simply refers in ARCHIVE.  For example:

    Archive = frmall.jar, /virtualpath/myjar.jar

    You can also create new physical subdirectories under ORACLE_HOME\forms\java.  This would allow you to skip the step of creating new virtual directories.  For example, to create these new physical directories and put your custom pots.

    ORACLE_HOME\forms\java\domain1

    ORACLE_HOME\forms\java\domain2

    ORACLE_HOME\forms\java\domain3

    Then in formsweb.cfg each area set ARCHIVE something like this:

    Archive=frmall.jar,Domain1/myjar.jar

  • Add button of tabular form a line can open several rows?

    Hello

    I use apex 4.2

    I create tree on page when when I click on any node tabular presentation open and display reports record.

    Now, I want, in my article a tabular presentation contain a selection list

    My requirement is when I click on any node tabular form open the no. lines on the no equals. entries in the respective selection of each tree node list.

    Is it possible?

    Help appretiate.

    Thank you

    GO

    Go

    I've created a demo by adding several lines slot table using dynamic action form.

    Select the number of rows in the selection list and click the button "Add line".

    See the information on the page for what I've done.

    Nicolette

  • APEX: Can we add additional items in tabular form existing

    Hi Experts,

    I built a nice tabular form with all the buttons and whistles.  All goes well until my request for the user to add another

    the point in the form of tables and here's my night Mare, I have this error code

    failed to parse SQL query: ORA-01403: no data found 

    I pinned it down to the process of the ApplyMRU or ApplyMRD; because once I delete these.

    I see the tabular presentation.

    But when I tried to manually recreate the SRM process, with the same criteria, I have the same error code

    Is this a Bug or just the way the behaviour of tabular presentation?

    What should I do to fix the error?

    Please don't tell me that I have to rebuild the tabular presentation.  :-(

    Hi JAS-Oracle,

    JAS-Oracle wrote:

    Hi Experts,

    I built a nice tabular form with all the buttons and whistles.  All goes well until my request for the user to add another

    the point in the form of tables and here's my night Mare, I have this error code

    failed to parse SQL query: ORA-01403: no data found
    

    I pinned it down to the process of the ApplyMRU or ApplyMRD; because once I delete these.

    I see the tabular presentation.

    But when I tried to manually recreate the SRM process, with the same criteria, I have the same error code

    Is this a Bug or just the way the behaviour of tabular presentation?

    What should I do to fix the error?

    Please don't tell me that I have to rebuild the tabular presentation.  :-(

    Here an other elements means another column in the form of tables... Right?

    This column to another is the same table on which you build your tabular presentation.

    If this is the case, then you must add the extra column in your select query and a few changes in the properties of this column, no need to do anything with the process of the MRU.

    for that go to report attributes-> change the newly added column-> slot of the attributes of tabular form

    The Table - name of the schema reference owner

    The Table name - name of the reference table

    Column name of the column in reference

    If this isn't the case then of additional information on the same.

    If the column is in the other table, to check out this blog: manipulate several tables in a tabular form

    or create the sample on the apex.oracle.com, allowing the user to resolve your issue quickly.

    ,

    Hope this helps you

    Kind regards

    Jitendra

Maybe you are looking for