Error ORA-01445 tabular form on a Collection in APEX 5

When I load a page with a tabular presentation built on a display of a collection to the APEX 5, I'm getting an ORA-01445: cannot select ROWID, or the sample, a view of joining without an error table preserved key.

I create a view

CREATE or REPLACE FORCE VIEWS test_coll_vw

(

C001,

C002,

C003,

C004,

seq_id

)

AS

SELECT TO_NUMBER (c001),

C002,

TO_NUMBER (c003),

TO_NUMBER (c004),

seq_id

Of apex_collections

WHERE collection_name = 'TEST '.

Then create a tabular presentation on the view with the primary key of the source SEQ_ID and primary key of the trigger existing through the wizard.

Debug information shows the statement which is a failure:

Select NULL NULL "CHECK$ 01", "SEQ_ID,' NULL 'C001', NULL"C002', 'C003', 'C004', NULL NULL NULL "APEX$ ROWID ' sys.dual union all select ' CHECK$ 01", 'SEQ_ID', 'C001', 'C002', 'C003', "C004", "APEX$ ROWID" in (select NULL "CHECK$ 01", "SEQ_ID", "C001", "C002", "C003", "C004", "ROWID" "APEX$ ROWID" (select).

"SEQ_ID."

"C001."

"C002."

"C003."

"C004.

of 'WPCAMS_APP '. "" TEST_COLL_VW ".

) APEX$ RPTSRC

order of 1, 7

).

These tabular forms worked up to 4.2, but they seem to fail at 5 APEX for upgrade or newly created pages one.  The generated query is identical between versions, but it seems that the underlying apex_collections view has changed between versions and the origin of the problem.

Does anyone have a solution or workaround?

Thank you

Hi Phil,

APEX 5.0 the definition of the view of apex_collection had to be changed for security reasons. This change introduced a regression with tabular form validations, when the table refers to this view. Tabular form declarative validations require the ROWID in order to restore your changed data after a validation failed, and for this reason, APEX is insert the IDENTIFIER in the query in a table. It is currently not possible when tables refers to the sight of apex_collections. We are looking at a solution to this problem, but for now the only way to get around this is not, in this case, use the declarative validation and use some custom validations or process.

Kind regards
Marc

Tags: Database

Similar Questions

  • ERROR: ORA-01445

    Hello

    Can you please let me know how to select the ROWID of the table all_ind_expressions? I tried to run the following SQL query on the Oracle version 10.2.0.3 but received the error ORA-01445.


    Select the ROWID in all_ind_expressions
    where index_owner = "DBO."

    Thank you

    Published by: user12088323 on February 24, 2011 18:29

    Published by: user12088323 on February 24, 2011 18:30
    SQL> select text from dba_views where view_name = 'DBA_IND_EXPRESSIONS';
    
    TEXT
    --------------------------------------------------------------------------------
    select io.name, idx.name, bo.name, base.name, c.default$, ic.pos#
    from sys.col$ c, sys.obj$ idx, sys.obj$ base, sys.icol$ ic,
         sys.user$ io, sys.user$ bo, sys.ind$ i
    where bitand(ic.spare1,1) = 1         /* an expression */
      and (bitand(i.property,1024) = 0) /* not bmji */
      and ic.bo# = c.obj#
      and ic.intcol# = c.intcol#
      and ic.bo# = base.obj#
      and io.user# = idx.owner#
      and bo.user# = base.owner#
      and ic.obj# = idx.obj#
    
    TEXT
    --------------------------------------------------------------------------------
      and idx.obj# = i.obj#
      and i.type# in (1, 2, 3, 4, 6, 7, 9)
    

    Who should be returned to ROWID when SELECT view above?

    Published by: sb92075 on February 24, 2011 16:47

  • Error ora-02019 in PL/SQL call in the apex, but not in a SQL Client

    Hello

    I encountered a strange problem. I have a process page type PL/SQL that runs on submit a form.

    This process calls a PL/SQL package function.

    When I run the PL/SQL Code from a SQL, for example SQL Navigator Client it works without problems.

    When trying to run from the APEX, it is always fails with the error:

    ORA-02019: description of the connection to the remote database not found

    It's the SAME code in both situations.

    It's the process code:

    DECLARE

    v_result INTEGER. v_result_msg VARCHAR2 (4000);

    v_ref_date DATE; v_reset INTEGER.

    BEGIN

    -Prepare the arguments

    v_ref_date: = TO_DATE (: P73_REFERENCE_DATE, ' DD/MM/YYYY');

    v_reset: =: P73_RESET;

    -Use the feature

    TRC.trc_jobs.xade_daily_job (v_ref_date, v_reset, v_result, v_result_msg);

    END;

    When I debug Apex I trace to the bottom of the error, in a job that makes a join with a table in a database link.

    It is the offending function:

    FUNCTION (p_series_name IN VARCHAR2, p_date AS get_series_cfi_code,

    p_date_active_flag in FULL)

    RETURN VARCHAR2

    IS

    v_cfi_code instrument_type.full_cfi_code@dl_herds%TYPE;

    CURSOR c_get_series_cfi_code IS

    SELECT it.full_cfi_code

    I, instrument_type@dl_herds INSTRUMENTS it

    WHERE i.series_name = p_series_name

    AND ((i.expiration_date = p_date AND p_date_active_flag = 0) OR)

    (i.expiration_date > = p_date AND p_date_active_flag = 1))

    AND i.product_id2 = it.id

    ORDER BY i.expiration_date;

    BEGIN

    OPEN c_get_series_cfi_code.

    SEEK c_get_series_cfi_code INTO v_cfi_code;

    CLOSE C_get_series_cfi_code;

    RETURN v_cfi_code;

    END get_series_cfi_code;

    No idea why this is happening?

    I think to reproduce the table locally to eliminate the use of dblink as a last resort.

    APEX Version: 4.2.4.00.08

    Database version: 12.1.0.1.0

    NLS: UTF - 8

    TIA,

    Dionisis

    Are you sure that the dblink is accessible from the scheme of the analysis of the application? Run the code in your sql client in the same pattern?

  • ORA-01445 error: cannot select ROWID from where sample, a join without a view

    Hi all

    I get an error when I created a VO based EO with standard Table (forced) jtf_notes_vl
    It gives me the error ORA-01445: cannot select ROWID from where sample, a join without key preserved table view

    the Table has the ROW_ID as Primery key


    Thanks in advance

    Hello

    Creation of an EO-based the rowid as primary key is usually the cause of this error as is not recommended to use the rowid as the primary key. Try to use jtf_note_id as the primary key.

    Furthermore, why are you using NAV it is seen for the creation of EO. If I remember correctly, there is a JTF_NOTES_B and JTF_NOTES_TL table that you can use.

    Thank you
    AJ

  • "ORA-01445: cannot select ROWID' v4 tabular.

    Hi guys,.

    We had major problems since the transition from v2 to v4.

    One of the problems I've had is with tabular forms.

    I have a complex page with many regions which has always worked well in version 2. One of these regions is a tabular presentation. When loading the page, I get the:

    "ORA-01445: cannot select ROWID from where sample, a join without key preserved table view ' error."

    The initial request was quite complex, but I've broken down it:

    This query runs and allows me to update the base table (xxmel_apex_eco_alterations)

    Select
    replace. ALTERATION_ID,
    replace. ALTERATION_ID ALTERATION_ID_DISPLAY,
    replace. ECO,
    alt.ORGANIZATION_ID,
    replace. ACD_TYPE,
    replace. INVENTORY_ITEM_ID,
    replace. BEFORE_CHANGE_QTY,
    replace. AFTER_CHANGE_QTY,
    replace. MODIFY_FLAG,
    replace. REVISED_ASSEMBLY_ID,
    replace. BILL_SEQUENCE_ID,
    alt.COMPONENT_SEQUENCE_ID,
    replace. LAST_UPDATE_DATE,
    replace. LAST_UPDATE_BY,
    alt.COMMENTS,
    replace. BOM_IMPLEMENTATION_DATE,
    replace. BOM_CHANGE_NOTICE,
    replace. ASSEMBLY_NAME,
    alt.COMPONENT_NAME,
    replace. SELECTION_CRITERIA,
    replace. ORACLE_CHANGE_NOTICE,
    alt.COMP_CURRENT_COST,
    alt.COMP_NEW_COST,
    alt.COMP_CURRENT_SC,
    alt.COMP_NEW_SC,
    alt.COMP_DESCRIPTION,
    alt.COMP_CURRENT_UOM,
    alt.COMP_NEW_UOM,
    alt.COMP_CURRENT_PUR_STATUS,
    alt.COMP_NEW_PUR_STATUS
    ALT XXMEL_APEX_ECO_ALTERATIONS
    where eco =: P2_ECO


    But as soon as I try to join another table (I do not update, just view as shown below), I get the error.

    Select
    replace. ALTERATION_ID,
    replace. ALTERATION_ID ALTERATION_ID_DISPLAY,
    replace. ECO,
    alt.ORGANIZATION_ID,
    replace. ACD_TYPE,
    replace. INVENTORY_ITEM_ID,
    replace. BEFORE_CHANGE_QTY,
    replace. AFTER_CHANGE_QTY,
    replace. MODIFY_FLAG,
    replace. REVISED_ASSEMBLY_ID,
    replace. BILL_SEQUENCE_ID,
    alt.COMPONENT_SEQUENCE_ID,
    replace. LAST_UPDATE_DATE,
    replace. LAST_UPDATE_BY,
    alt.COMMENTS,
    replace. BOM_IMPLEMENTATION_DATE,
    replace. BOM_CHANGE_NOTICE,
    replace. ASSEMBLY_NAME,
    alt.COMPONENT_NAME,
    replace. SELECTION_CRITERIA,
    replace. ORACLE_CHANGE_NOTICE,
    alt.COMP_CURRENT_COST,
    alt.COMP_NEW_COST,
    alt.COMP_CURRENT_SC,
    alt.COMP_NEW_SC,
    alt.COMP_DESCRIPTION,
    alt.COMP_CURRENT_UOM,
    alt.COMP_NEW_UOM,
    alt.COMP_CURRENT_PUR_STATUS,
    alt.COMP_NEW_PUR_STATUS
    msib.segment1
    ALT XXMEL_APEX_ECO_ALTERATIONS
    mtl_system_items_b msib
    where eco =: P2_ECO
    and msib.organization_id = 26
    and msib.inventory_item_id = ALT INVENTORY_ITEM_ID

    I read Re: v4.0 - in the form of ORA-01445: cannot select ROWID from where sample, where someone had a similar problem for me, but their solution (by copying the script to create a new page) isn't really an option for us the complexity to the page as a whole.

    Is this a bug in 4 APEX?

    Any help would be great,

    Thank you
    Chris

    Hello

    This isn't a bug in the apex, if you want to display a different table column there is a way to create a function to get the value of this table

    to "msib.segment1", you must create a function that accepts that some primary key to and retrieves the value of 'mtl_system_items_b' and can return a value in the field "segment1".

    and you can use your previous query, you can add the name of function as a new field

    for example

    Select
    replace. ALTERATION_ID,
    replace. ALTERATION_ID ALTERATION_ID_DISPLAY,
    replace. ECO,
    alt.ORGANIZATION_ID,
    replace. ACD_TYPE,
    replace. INVENTORY_ITEM_ID,
    replace. BEFORE_CHANGE_QTY,
    replace. AFTER_CHANGE_QTY,
    replace. MODIFY_FLAG,
    replace. REVISED_ASSEMBLY_ID,
    replace. BILL_SEQUENCE_ID,
    alt.COMPONENT_SEQUENCE_ID,
    replace. LAST_UPDATE_DATE,
    replace. LAST_UPDATE_BY,
    alt.COMMENTS,
    replace. BOM_IMPLEMENTATION_DATE,
    replace. BOM_CHANGE_NOTICE,
    replace. ASSEMBLY_NAME,
    alt.COMPONENT_NAME,
    replace. SELECTION_CRITERIA,
    replace. ORACLE_CHANGE_NOTICE,
    alt.COMP_CURRENT_COST,
    alt.COMP_NEW_COST,
    alt.COMP_CURRENT_SC,
    alt.COMP_NEW_SC,
    alt.COMP_DESCRIPTION,
    alt.COMP_CURRENT_UOM,
    alt.COMP_NEW_UOM,
    alt.COMP_CURRENT_PUR_STATUS,
    alt.COMP_NEW_PUR_STATUS,
    newfunction (pkId) as segment1
    ALT XXMEL_APEX_ECO_ALTERATIONS
    where eco =: P2_ECO

    Thank you
    Abdou Bosamiya

  • ORA-01445: cannot select ROWID, or sample, a view of join without key - preserved table form w/report and LOV

    I create a page "Form on a Table with Report" (APEX 5). Table I has 3 columns: cat_key, item_value, item_description. The cat_key is a foreign key in a table with columns cat_key, cat_value. I created the report and everything works fine.  The page of the report shows my domain cat_key in number, so I want it instead to display the cat_value. I change the field cat_key to a text based on LOV, select my LOV and now when I view the page of report I get the "'ORA-01445: cannot select ROWID from where sample, a join without key preserved table view ' error." The report uses the ROWID as a link to the edit page field.

    If I use the same tables and even shared LOV in a report page interactive, it works fine.

    What I am doing wrong?

    This is a limitation of the IR Apex will rewrite your query to a query that includes the lookup table and the columns. So now you have actually created a query on an inline view, which causes the error. You can see the query apex created when running in debug mode. APEX will join the table of choice with your primary table. For example from one of my IR:

    Select 'ID '...

    "MSL". "" HIS_COUNTRIES "=> my primary table

    ) ) b,

    (select rv_meaning d, rv_low_value r

    of msl_ref_codes_table

    where rv_domain = "JOHN".

    ) L1 = > query My LOV Lookup

    ...

    So, if possible, base your reports and forms on the real primary key, no rowid.

    You can also write the IR query with the search yourself:

    Select T1.rowid...

    of primary_table T1

    look_table L1

    ...

  • v4.0 - in the form of ORA-01445: cannot select ROWID from where sample,.

    Hello
    I have created a form in table form in version 4.0.
    Selection is based on three tables that have primary keys, the keys are selected, and whenever I run the page I get the following error:-
    Failed to parse the SQL query:
    ORA-01445: cannot select ROWID, or sample, join without table views preserved key

    The query runs very well in the TOAD

    Any ideas?

    Thank you

    Mike
    ___________________________________________________________________________________
    Select
    CTR. PERF_RATING_LINE_ID,
    CTR. PERF_RATING_LINE_ID PERF_RATING_LINE_ID_DISPLAY,
    CTR. BUSINESS_UNIT,
    CTR. EMPLID,
    ''''|| CTR. REVIEW_YEAR REVIEW_YEAR,
    CTR. REVIEW_PERIOD,
    CTR. PERFORMANCE_SCORE,
    CTR. MODERATED_SCORE,
    CTR. HUMAN RESOURCES MANAGEMENT,
    PRL.COMMENTS,
    ACB. BU_DESC,
    ''''|| ACB. DEPTID DEPTID,
    ACB. DEPT_DESC,
    ACB. EMPLOYEE_NAME,
    ACB. GRADE,
    CTR. SCORE_APPROVED_BY,
    ACB. TEMP_PERM,
    ACB. GENDER,
    ACB. JOB_START_DATE,
    decode (DECODE (SUBSTR (ACB. FLAG, 1, 5), "S Job", substr (CPR. FLAG, instr (CPR. FLAG,'~ ', 1) + 2, 3));
    "HIR", "Committed", "XFR", "Transfer", "REH", "recall").
    Decode (SUBSTR (ACB. FLAG, 1, 30), "work starts the period ~ XFR ',' - ' | substr (CPR. FLAG, instr (CPR. FLAG,'~ ', 1, 2) + 2)) JOB_START_DETAILS,.
    ACB. APPOINTMENT_DATE,
    SUBSTR (CPR. JOB_END_DETAILS, INSTR (CPR. JOB_END_DETAILS,'~ ', 1, 2) + 2) JOB_END_DATE.
    SUBSTR (CPR. JOB_END_DETAILS, INSTR (CPR. JOB_END_DETAILS,'~ ', 1, 1) + 2, INSTR (CPR. JOB_END_DETAILS,'~ ', 1, 2) - INSTR (CPR. JOB_END_DETAILS,'~ ', 1, 1)-2) REASON,
    ACB. JOB_GROUP,
    ACB. JOB_GROUP_DESC,
    ACB. JOBCODE,
    ACB. JOBCODE_DESC JOB_DESC,
    ACB. JOB_FAMILY,
    ACB. JOB_FAMILY_DESC,
    ACB. PBR_ID,
    MD. MGR_DEPT_ID
    PERFORMANCE_BASE_REFRESH_V ACB,.
    PERFORMANCE_RATING_LINE PRL,
    Y00_OPR_MGR_DEPT MD
    WHERE (PRL. BUSINESS_UNIT = ACB. BUSINESS_UNIT
    AND PRL. EMPLID = ACB. EMPLID
    AND PRL. REVIEW_YEAR = ACB. REVIEW_YEAR
    AND PRL. REVIEW_PERIOD = ACB. REVIEW_PERIOD)
    AND MD. OPRID =: APP_USER
    AND INSTR (': ' |) MD. DEPTS_MANAGED |': ',' :'|| ACB. DEPTID |': ') > 0
    AND MD. MGR_DEPT_ID > 0
    AND CPR. ADMIN_CENTRE IN
    (select c.deptid AC
    of PSHR. PSOPRDEFN@PSHR. CSIR.CO. ZA,.
    PSHR.PS_SCRTY_TBL_DEPT@PSHR. CSIR.CO. ZA C
    where A.ROWSECCLASS = C.ROWSECCLASS
    AND C.DEPTID! = 'ZZZZ '.
    and a.oprid =: APP_USER)
    AND (: P2210_BUSINESS_UNIT IS NULL)
    OR PBR. BUSINESS_UNIT =: P2210_BUSINESS_UNIT)
    AND (: P2210_EMPLOYEE_NAME IS NULL)
    OR INSTR (UPPER (CPR. Employee_name), UPPER (:P2210_EMPLOYEE_NAME)) > 0)
    AND (: P2210_DEPARTMENT IS NULL)
    OR PBR. DEPTID =: P2210_DEPARTMENT)
    AND (: P2210_PERFORMANCE_RATING IS NULL)
    OR PBR. PERFORMANCE_SCORE =: P2210_PERFORMANCE_RATING)
    AND (: P2210_MODERATED_RATING IS NULL)
    OR PBR. MODERATED_SCORE =: P2210_MODERATED_RATING)
    AND (: P2210_GRADE IS NULL)
    OR PBR. CATEGORY =: P2210_GRADE)
    AND (: P2210_PERM_TEMP IS NULL)
    OR PBR. TEMP_PERM =: P2210_PERM_TEMP)
    AND SUBSTR (NVL (ACB. (JOB_END_DETAILS, "XXX"), 1, 3) NOT ("TER", "TOC")
    AND PRL. SCORE_APPROVED_BY IS NULL

    Mike,

    We also changed our Wizard to create only validations for columns that are selected to be updated (in the wizard on the page in a table). And in the case of the application wizard, we examine if the columns have been excluded on the edit page popup page, and they are set to read-only through the default user interface. If you should only get validations for the columns that are modifiable, view-only / save state or hidden. We include only display / save state and hidden, because in both cases, you have actual shape on your page elements, which could easily be manipulated through common web tools.

    Kind regards
    Marc

  • Updated APEX collection error ORA-04044: procedure, function, package, type

    Hi all

    I am trying to update the APEX MEMBER of the COLLECTION and encounter errors:


    1 error has occurred
    ORA-06550: line 9, column 8: PL/SQL: ORA-04044: procedure, function, package or type is not allowed here ORA-06550: line 7, column 3: PL/SQL: statement ignored

    The PLSQL code are as below

    DECLARE
    entire x;
    v_date_started VARCHAR2 (255);
    v_date_finished VARCHAR2 (255);
    BEGIN
    SELECT c.seq_id
    X
    OF APEX_COLLECTION c
    WHERE collection_name = "PHASE_COLLECTION."
    AND c001 =: P41_MPM_ID
    and rownum = 1;
    v_date_started: =: P41_DATE_STARTED;
    v_date_finished: =: P41_DATE_FINISHED;

    APEX_COLLECTION. () UPDATE_MEMBER
    p_collection_name = > 'PHASE_COLLECTION '.
    , p_seq = > x
    , p_c004 = > v_date_started
    , P_c005 = > v_date_finished
    );
    END;


    The process will take place after SUBMIT and validation.

    The code I used to add a colletion APEX will work perfectly and is as below

    -Initialization Collection PHASE_COLLECTION
    BEGIN
    IF THIS ISN'T APEX_COLLECTION. COLLECTION_EXISTS('PHASE_COLLECTION') THEN
    APEX_COLLECTION. CREATE_COLLECTION ('PHASE_COLLECTION');
    ON THE OTHER
    APEX_COLLECTION. TRUNCATE_COLLECTION ('PHASE_COLLECTION');
    END IF;
    -Add members to the COLLECTION PHASE of table PHASE_MEMBERSHIP
    IF: P41_MPM_ENG_ID IS NOT NULL THEN
    FOR x IN (SELECT mpm_id, mpm_eng_id, phase_number, date_started, date_finished, date_created
    OF phase_membership
    WHERE mpm_eng_id =: P41_MPM_ENG_ID
    AND active = 1
    ORDER BY date_created)
    LOOP
    APEX_COLLECTION. ADD_MEMBER
    (p_collection_name = > 'PHASE_COLLECTION')
    , p_c001 = > x.MPM_ID
    , p_c002 = > x.MPM_ENG_ID
    , p_c003 = > x.PHASE_NUMBER
    , p_c004 = > x.DATE_STARTED
    , p_c005 = > x.DATE_FINISHED
    , p_c006 = > x.DATE_CREATED

    );
    END LOOP;
    END IF;
    EXCEPTION
    WHILE OTHERS THEN
    Logger.Error (p_message_text = > SQLERRM)
    , p_message_code = > SQLCODE
    , p_stack_trace = > dbms_utility.format_error_backtrace
    );
    LIFT;
    END;


    What I tried to use APEX_COLLETION to check the overlap between the date_range.
    The requirement is just to display a warning if the user adds a record to the new phase or update record of current phase may overlap between the order of phase together.
    Table PHASE_MEMBERSHIP script is

    CREATE TABLE 'PHASE_MEMBERSHIP '.
    (
    ACTIVATE THE "MPM_ID" NUMBER NOT NULL,
    ACTIVATE THE "MPM_ENG_ID" NUMBER NOT NULL,
    ACTIVATE THE "PHASE_NUMBER" NUMBER (2.0) NOT NULL,
    "DATE_STARTED" DATE NOT NULL ACTIVATE.
    DATE OF THE "DATE_FINISHED."
    'NOTES' VARCHAR2 (2000 BYTE),
    'DATE_CREATED' DATE NOT NULL ACTIVATE.
    ACTIVATE THE 'CREATED_BY' VARCHAR2 (20 BYTE) NOT NULL,
    NUMBER (2.0) 'ACTIVE' DEFAULT 1 ACTIVATE NOT NULL)

    So, basically, I want to fill the documents associated with a particular to a collection of APEX called PHASE_COLLECTION MPM_ENG_ID.
    Then when the user specify date_started and date_finished, it will update/insert the APEX collection first.
    Then the rank based on audit collection date
    http://www.Oracle-base.com/articles/Misc/overlapping-date-ranges.php
    then display the warning to ask the user to confirm message.

    But then I'm stuck at the step of updating COLLECTION of APEX.

    If anyone has any ideas on what is wrong, please help.

    Thanks in advance.

    Ann

    Your syntx error line number should give you the trick - it is not a member of the update, rather the SQL - you are referring to apex_collection, not apex_collections view dictionary.

    Scott

  • '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

  • Collections and tabular forms

    Hi people
    Couple of Qs:

    1 special session of collections, or is it to me to give them unique names?

    2 collections can be used as a source for a tabular form can be updated by simply replacing the source of the region with something in the sense of

    SELECT c001,..., cnnn
    OF htmldb_collections
    WHERE collection_name = MY_COLLECTION'

    or I have to be a little smarter?

    TiA
    Steve

    (1) Yes. The collections are specific to the session. They are only available for this session. If you need to see data outside the session, store it in a table.
    (2) Yes. The collections are a great way to create tabular forms, that control you. They take a bit of effort, but can be very powerful. If you choose to use a collection for a tabular presentation, I recommend to create three procedures to manage them. The first is a process of page (PL/SQL) that fires when the page is loaded and fills your collection. The second is a page (PL/SQL) process that updates your collection with user values and lights BEFORE validation. The last is a process page that fires AFTER validations and writes the changes to your database.

    If you want a quick explanation, let me know and I'll walk you through an example.

  • 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

  • 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.

  • Tabular form validation

    Apex 4.2

    Problems with the validation of the form in a table and not sure what type of validation to use:

    My tabular presentation is based on a table SURVEY_JOB_TASKS:

    Survey_Job_Task_ID PK

    Percentage

    Task_Id FK

    Bundle_Id FK

    I also have a TASK table that contains all the tasks

    Task_Id

    TaskName

    In the validation form, the Survey_Job_task_Id is managed by a trigger. The percentage is an entrable field. The Task_Id is a selection list. The Bundle_Id is passed to the page; It is hidden.

    The Task_Id / select list is created with the following query

    Select task_name, task_id
    From TASKS
    
    

    I want a validation so that a user cannot enter the same task_id. If the selection list should look like:

    TaskName Task_Id

    Apples 1

    2 oranges

    Bananas 3

    Pears 4

    If a user accesses the page, enters an information line and select bananas in the selection list. The user saves / submits and leaves the page. The user returns to the page and they seek to enter another line, if they choose bananas once again, then validation strikes by saying that they cannot enter a double task identifier. There is an already established constriant in place which does not allow to do so. It gives an error ORA, but I wanted to make the error message a bit more friendly user.

    I tried some queries of variation of validation with type Exists or not exists but I may be missing it completely.

    Any help on this would be greatly appreciated. Thanks in advance

    plus extra extra extra... the logic should be a little different because otherwise it will always return false

    IF (( APEX_APPLICATION.G_F03(I) = APEX_APPLICATION.G_F03(j)) AND I<>J ) THEN
      RETURN false;
     end if;
    
  • 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

  • ORA-01446 tabular with CONNECTION BY LEVEL &lt; = 2

    I created a tabular presentation where I want the 2 last lines be empty so that the user can enter new lines immediately (for example, the first time that no data is found).
    Here's the sql code of the form of tables:
    select 
    "ID",
    "REQ_ID",
    "QUANTITY",
    "FRAME_SIZE",
    "FRAME_TYPE",
    "PROTECTIVE_COVERING",
    "MATT",
    "MATT_COLOR"
    from "#OWNER#"."CREATIVE_SVC_DESIGN_FRAMING"
    union all
    select
    null id,
    null req_id,
    null quantity,
    null frame_size,
    null frame_type,
    null protective_covering,
    null matt,
    null matt_color
    from dual
    connect by level <= 2 
    I get the following error:
    Failed to parse the SQL query:
    ORA-01446: cannot select ROWID, or sample, a view with DISTINCT, GROUP BY, etc.

    The query is not access ROWID view at all. And, as you can see, it does not use a DISTINCT, GROUP BY, etc...

    My APEX is Application Express 4.0.2.00.07
    My database is 10g (10.2.0.5.0)

    Help, please!

    Robert
    http://apexjscss.blogspot.com

    Robert,

    I wish I had a better explanation for you, but I know something again with 4.1 broke this trick union for tabular forms. I had to do a dynamic action that runs when the page loads and calls the javascript function of the: AddRow(). I think it has something to do with the validation of the form in a table, but I'm not sure.

    See you soon,.
    Janet Tyson

Maybe you are looking for