APEX in the form of table 4.2 question

Hi all

I tried the new version of 4.2 APEX on apex.oracle.com and I have a problem with the tabular forms.

When I create a new table (for example on demo_customers) form that everything works fine, but when I changed the customer_first_name in a pop-up key Lov (based on request), and then I saw the error for each line: list of values query execution error.

The query I used is:

Select cust_first_name, cust_first_name
of demo_customers

Why I got this error Message?

Hi Stephen,

the reason for the error that is in your query LOV you use the same column for the display column and the column to return. I don't know if it makes much sense to use the same search for a column of type "Popup LOV key" column, because it will show the same value that you already have query and the opening LOV will do the same...

Anyway, if you modify your query to use unique alias names it will work fine. I will file a bug that the generator checks the column names for uniqueness.

select product_name as d, product_name as rfrom    demo_product_info

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

Published by: Patrick Wolf, Sep 5, 2012 13:28

Tags: Database

Similar Questions

  • Apex 4.0: In the form of table: how to make reference to the elements?

    Hello
    I have a tabular layout with a certain query. A column in the query (say comm, is not displayed. This column is required in the table

    When a new row is added in the form of tables, I want to add a (complex) value for this column hidden by default.

    I want to add a process (before submitting) to the page.
    How can I make reference to this particular point?


    : P23_COMM: =...

    does not work. It is a column in the query, not a page element.

    Any help appreciated.
    Sincere friendships Erik

    Loop over the hidden PK table, identification of the new line (by finding with PK NULL table th eone) and assign the hidden item corresponding

    Assumung 01 is the primary key column table (use firebug to check this) and 05 is the hidden field

    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_F01.COUNT
      LOOP
         --Identify new rows
          IF ( APEX_APPLICATION.G_F01(i) IS NULL ) THEN
              APEX_APPLICATION.G_F05(i)  := 
          END IF;
      END LOOP;
    END;
    
  • In the form of table and colspan or how to return more items in one line?

    I want to put a line in a higher number of items table it fits. So I want to put several options on an entry line field and text on another and so on. To restart the line, I made a dummy field with html like this:

    < table > < /tr > < tr > < td >

    But it's really ugly: http://apex.oracle.com/pls/apex/f?p=29764:1
    How to force colspan = X extend this cell of the input line along the table and get rid of these unnececary of the empty cells on the right? Attribute of the element does not (obviously)...

    Create a model of a named column custom report to meet the requirements in the form of tables.

  • How to make the tree of the APEX in the form "Expand all" by default?

    Could someone enlighten me please how to do the tree of the APEX in the form 'Expand all', by default, please? I created a tree of the APEX and by default, it is in the form "any collapse." I use APEX 4.1.0.00.21

    Hello

    You can check the show the HTML source and check the onclick code written on this sign (Expand All), just copy this code from javascript onclick and put it on page javascript event.

    Thank you
    Abdou Bosamiya
    + 91 76000 23053
    http://jbosamiya.blogspot.com

  • Create the form on table in the different schema

    Hi all

    in APEX I am logged in as long as user APEX_USER and the table, I'm trying to access the site with the creation on Table Wizard form belongs to the user. I have granted all privileges on a given user APEX_USER table, the wizard allows me to choose this table in the list, but when I press the next button, I get the following error message:

    You do not have access to the schema that you import. Import failed.

    Contact your administrator for the application.

    Seems to me that something similar had been already discussed here, but still no response.

    V4.1 assistants when you use a different schema

    Please, what are the rights must have my APEX_USER to be able to create forms tables belonging to someone else?

    Thank you very much

    Pavel

    Edit: I did the same thing on my laptop (APEX 4.2.6.00.03) here and it works as expected. This error I get to work with APEX 4.2.3.00.08 (of course you should not necessarily be the cause, very likely, I don't have all of the necessary privileges) :-).

    Hi Mike,.

    Thanks again for your response. If the schema was not related to my workspace, I would yet be able to choose the other schema of the selection list.

    In fact, there seems to be a bug in the link in my message original (for example it is still not fixed in version 4.2.3), but fortunately I was able to find a workaround - I created a view with the same name and the same structure as the original table, and then I was able to generate the form with the wizard , finally I gave up the display and modification of processes page manually. So the solution is I have to force the DBA APEX upgraded to the current version :-).

    Best regards

    Pavel

  • How to create elements of the checkbox on the form of tables

    I use the Application Express 4.2.1.00.08
    We currently have a spreadsheet that is who I am trying to replace application using APEX.

    I have loaded the spreadsheet into a table and have created a tabular presentation using the tabular presentation wizard who created the field in the form of text fields.

    The table has 38 columns in total, so I am trying to retrieve the columns to fit the screen.

    Most of the columns in the spreadsheet contain just the value 1 or null, so I want to make these fields check box so that they are checked if the value of the field is 1 and not controlled if the value is null. If the user selects the checkbox on the ground so I want to write a 1 in the table.

    Can you suggest I do this because several things that I have tried don't seem to work.

    Any suggestions or links to the doc on how to do that would be great.

    The structure of the table is the following:
    Name Null? Type
    ----------------------------------------- -------- ----------------------------
    IDENTIFICATION NUMBER
    FIELDNAME VARCHAR2 (30)
    ENTITY_CATEGORY VARCHAR2 (30)
    ATRIBUTE_GROUP VARCHAR2 (30)
    MASTER_SOURCE_SYSTEM VARCHAR2 (30)
    ENTERED_BY VARCHAR2 (30)
    DESCRIPTION VARCHAR2 (30)
    EXAMPLE_DATA VARCHAR2 (30)
    10891 VARCHAR2 (1)
    VARCHAR2 (1) 11072
    10892 VARCHAR2 (1)
    10487 VARCHAR2 (1)
    11065 VARCHAR2 (1)
    VARCHAR2 (1) 11078
    11066 VARCHAR2 (1)
    11067 VARCHAR2 (1)
    VARCHAR2 (1) 11061
    VARCHAR2 (1) 11062
    11063 VARCHAR2 (1)
    11064 VARCHAR2 (1)
    11079 VARCHAR2 (1)
    VARCHAR2 (1) 11057
    VARCHAR2 (1) 10520
    11058 VARCHAR2 (1)
    VARCHAR2 (1) 11056
    1262 VARCHAR2 (1)
    11070 VARCHAR2 (1)
    11059 VARCHAR2 (1)
    11060 VARCHAR2 (1)
    11071 VARCHAR2 (1)
    VARCHAR2 (1) 10819
    11069 VARCHAR2 (1)
    VARCHAR2 (1) 11068
    11074 VARCHAR2 (1)
    11075 VARCHAR2 (1)
    11076 VARCHAR2 (1)
    11077 VARCHAR2 (1)
    11073 VARCHAR2 (1)

    Published by: Kay Richards on June 7, 2013 16:51

    Published by: Kay Richards on June 7, 2013 17:14

    Click on the shape of table on the edit page

    go to the report attributes tab

    you will find the list of form elements

    now, click the icon to change the required column (small pencil icon).

    go to the tab column attributes, change the display as simple field check box.

    Then go to the values tab list.

    you will find the list of values definition text box just add 1 then click on apply changes.

    Run the page, you are gud to go.

    NULL is the default if the checkbox is in a disabled state, just use 1 in the list of values.

    Kind regards

    Mohan.

  • Setting value using javascript on the form of tables created by APEX_ITEM

    I can assign the value using javascript on normal form of table as below:

    var vRow = pThis.id.substr (pThis.id.indexOf ('_') + 1);
    $x_Value ('f05_' + vRow, 'Value');

    However I can't do the same if the tabular presentation is dynamically created by APEX_ITEM.

    Some tips on how to do this?

    Thank you

    If this should not be something like:

    this.id.substring(4, 8)
    

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Column of link does not work on a manual in the form of table

    Hello

    I'm having some problems by creating a link on a column based on a tabular presentation manual (I use Apex 4.1.1.00.27, Oracle DB 10.2.0.5.0):

    On my 1 page, I created a method that deletes and creates a collection based on the table 'emp '; Then I have a manual tabular presentation based on this collection; and finally, a link in the column "deptno" of the manual tabular form that points to my Page 2 (form of Department) and is passing the P2_DEPTNO parameter: #DEPTNO #.

    The problem is that when I press on the link, the page does not present the value of DEPTNO. In addition, I note that as soon as I specify the column as a column of link, it does not show the value in the form of my table, but if I remove the link, it shows the value correctly.

    I created an example on apex.oracle.com in case some of you want to look at the question:
    Workspace: EDIAZJORGE
    User name: test
    Password: test123
    App name: Sample App
    Number of app: 12231

    I appreciate any ideas or suggestions on how to solve this problem.

    Thank you
    Erick

    Hello
    Change in the report query, check it out.

    In a Word, changed APEX_ITEM. TEXT to APEX_ITEM. DISPLAY_AND_SAVE for the DEPTNO column.

    See you soon,.

  • view complete information used in the form of tables...

    Hi all...
    Asked by management to design a form in which they can view the following information for all employees in a tabular presentation... STAFFNO, NAME, TYPE, NATIONALITY, POSITION, SITUATION, ASSESSMENT, NUMBER of PROBATE,... this info was previously available in MS-ACCESS now that they want in oracle, I did... after the form using the wizard of datablock project how hsould as when I run my forms, information for abv of 800 employees are dispalyed...

    , you have executed a query in your block with CTRL + F11 (may F8 with PC key mapping)?

  • Comparison of column in the form of table II

    Hello

    At the APEX 4.1 I am doing something similar to this thread: in table form: compare two fields in column where I need to do a validation on two columns in tabular form. It works for both columns are columns of text box, but I can't make it work when comparing to a single column to display. For validation, I have defined it as an "Expression of PL/SQL" and my expression is: CURRENT_VALUE >: PREV_VALUE where CURRENT_VALUE is a column of text box that accepts user input and PREV_VALUE is only one display column.

    Regardless of the absorbed power, the row is updated without any errors raised; He seems to treat the single display value in the vacuum and made the comparison with an empty value. The only solution I could find was to make the comparison in a update trigger on and will raise an error if validation fails; but the result is not as nice as the built in features of validation of the APEX.

    No indication on how to make it work using the validation of the APEX is greatly appreciated.

    Thank you!

    Only column display are for display only and are not saved in the session when you send, so that you can't access with pl/sql.

    So either do the validation in javascript/jQuery or, and it is best if you ask me, make a text field and set to read-only.

  • in the form of table and non-standard display

    Hello
    I create a form in a table, but not can not use the standard view:

    Column1 | Column2 | Column3
    Column1 | Column2 | Column3

    The screen should look like this:

    Column1
    new line
    Column2
    new line
    Column3
    new record
    Column1
    new line
    Column2
    new line
    Column3
    and so on

    Can someone help me please. (Apex 3.2)

    Thank you
    Siegwin

    Hi Siegwin

    In the attributes report, select a report template, something like "default: vertical report, look1 (include null columns)".

    See you soon

    Ben

  • No coordination happening between the form of table and adf Adf

    I created an entity object.

    In the page, I separated the two page in horizontally with separator and top once again part I applied the vertical separator.

    Upper area, left side, I created adf search fast and right side have added the collection of panel above it, I added adf table.

    The bottom region, I created the dashboard Panel and I created two box. 1 box, I created the shape of the adf.

    Now the part of the question.

    What I've inserted into the quick query part are completed in the table of the adf, but when I move the cursor on each line on adf table form respective adf not getting not changed and it only shows the 1st record of adf table.


    Please guide me where I made mistake.


    Thanks in advance


    Kind regards

    Iqbal

    Now, I changed af:table set rowSelection = "single" and previously empty

    but I don't know what 'something' must map as I am new to ADF for this part selectionListener = ' something '

    Drag / move your new VO as a table and the 'select lines' option so it is automatically generated.

    Dario

  • Cannot perform the insert/update on the form of tables, due to the dynamic action

    Hi all

    I created a dynamic action that calculates multiple cells in a table.

    This feature works well, when I change the value of the associated cell then the computed value is changed by the dynamic action.

    But I am not able to insert or update the line in a table when the dynamic action is enabled. When I put the condition 'Never', then the line is inserted or updated without any problems.

    All guess where is the problem?

    Apex version: 4.1.1.00.23

    Jiri

    Nina wrote:

    I don't know why the 123,40 value (or other) is set to the next item in line (f09, fsc, etc.)
    >

    What is hidden and generated Apex elements are always included in the last cell (td) of the line. Thus, it has nothing to do with the next item, only the last cell.
    If you see the last cell of the 888 Page you will see probably the same type = "hidden" entries here also.

    Your problem is not related to the HTML fragment to the last cell in the row showing all those extra items, it's somewhere else.

    Oh, here comes the jQuery selector:

    var clickedRow = $(this.triggeringElement).closest('tr');
    
    $(clickedRow).children('td[headers="SAL"]').find("input").val(myCalculatedTotal);
    

    SAL, COMM, w/e. here you will find the TD with headers = "COMM" and all the input fields and the value of all the entries in total calculated. Your selection is not precise enough in this case.
    So, target the specific entry.
    With the code example:

    
    
    
    
    
    
    
    
    

    change the switch on

    $(clickedRow).children('td[headers="SAL"]').find('input[name="f08"]').val(myCalculatedTotal);
    
  • How to put in the form of tables in one analysis

    Hello

    I'm new to OBIEE and trying to self teach, so I hope someone can help me with this very annoying issue

    I created a new analysis and cannot, for the life of me, get the results of the table to fill the entire screen, it appears only in a small table and I have to scroll left to right and top to bottom to see all columns and rows and it is very annoying.

    I tried this in IE and Firefox, and that Firefox seems a little better, it is not always by making use of the full screen.

    I would send a picture, but confidential data, will have to change before the download.

    Any ideas anyone?

    Thank you very much

    Charlie

    Hi Charlie,

    Table--> properties view and select content Paging

  • In the form of table-update of rows based on the selection of the checkbox

    Hi all

    I have a tabular layout with line selector. I need to update manually checked columns, how would write a process audited records updated?

    Something like this:
    BEGIN     
         FOR i in 1..apex_application.g_f01.count LOOP
    
              IF apex_application.g_f01(i) is not null THEN
                   UPDATE TEST_USERS
                        set USER_ID = :P14_TO
                   WHERE rowid = :APEX$ROW_ID;
                   COMMIT;
              END IF;
         END LOOP;
    END;
    Thank you very much.

    You can refer to the line that you want to process through the value stored in the box.

    If you use apex_application.g_f01 (i) to make reference to the line and you want to update the row based on the ROWID in your request, your SQL query should have the box as follows:

    apex_item. CheckBox2 (1, rowid)

    Then your PLSQL process would be like this:

    BEGIN
         FOR i in 1..apex_application.g_f01.count LOOP
    
              IF apex_application.g_f01(i) is not null THEN
                   UPDATE TEST_USERS
                        set USER_ID = :P14_TO
                   WHERE rowid = APEX_APPLICATION.G_F01(i);
                   COMMIT;
              END IF;
         END LOOP;
    END;
    

    I hope this helps.

    Cheers, Pete

Maybe you are looking for