using listener of selection for table cause some problems

Hello

I'm using jdev 11.1.1.4.0

My use case:
I have the master/detail table
When the user changes data in the secondary table then it click directly to anather record in the main table
I need to display alert message ("you must save changes first") and prevent the movement, so I do the following:
in the main table, I used bean manged in SelectionListener attribute called onTableSelect(SelectionEvent selectionEvent) like this:
If (ADFUtils.getApplicationModuleForDataControl("CodesModuleDataControl").getTransaction () .isDirty ()) {}
FacesContext context = FacesContext.getCurrentInstance ();
context.addMessage (null, new FacesMessage (FacesMessage.SEVERITY_WARN, getValueFromResourceBundle("hr.view.vcBundle","global.msgUnsavedChanges"), null));

* / / HERE, I need to move the selection to the previous record *.
}
else {}
Table richeTableau = (RichTable) selectionEvent.getSource ();
CollectionModel tableModel = (CollectionModel) table.getValue ();
JUCtrlHierBinding adfTableBinding = tableModel.getWrappedData ((JUCtrlHierBinding));
DCIteratorBinding tableIteratorBinding = adfTableBinding.getDCIteratorBinding ();
Object selectedRowData = table.getSelectedRowData ();
JUCtrlHierNodeBinding nodeBinding = (JUCtrlHierNodeBinding) selectedRowData;
Key rwKey = nodeBinding.getRowKey ();
tableIteratorBinding.setCurrentRowWithKey (rwKey.toStringFormat (true));
}

the code is working properly but in the main table, the culmination of save becomes different from the table itterator,
My question is how can I move point highest record in the table according to it itterator.

Best regards

In the selectionListener, you can get the previously selected like this lines:

    public void onSelectionListener(SelectionEvent selectionEvent) {
        Key removedKey = null;
        List removedkeys = null;
        RowKeySet removed = selectionEvent.getRemovedSet();
        for (Object l: removed) {
            removedkeys = (List)l;
            for (Object k: removedkeys) {
                removedKey = (Key)k;
                logger.finer("previously selected row key: " + removedKey.getAttribute(0));
            }
        }

If you want to select the line above again, you can do something like the following:

        DCIteratorBinding someiteratorIT = ADFUtils.findIterator("SomeIterator");
        someiteratorIT .setCurrentRowWithKeyValue((String)removedKey.getAttribute(0));
        getT4().setSelectedRowKeys(removed);
        AdfFacesContext.getCurrentInstance().addPartialTarget(getT4());
    }

where getT4() is the richeTableau.

Published by: John on March 19, 2012 13:55

Tags: Java

Similar Questions

  • Disable the call to the listener of selection for certain cells of a row in the table.

    Hi all


    I have a table with 5 columns. I applied a listener of custom for this table in the bean selection. Now, what is my requirement, an action should happen in some specific cells in this table not all cells. So, how can I get that cell was clicked while the user selects a row in the table? If I can get my problem is apparently solved.

    Help, please.

    You could do this by putting a client listener on the element inside the columns instead of a listener of the selection on the table. You will then get a server event that will tell you which column was clicked.

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/11-client-listener-169135.PDF

  • ORA-22992 cannot use LOB Locators selected remote tables

    Hello.
    I have a problem.
    When I want to create a table select o sing a table a dblink, and the remote table has a clob field returns the error.
    I'll fix it, using dblink. Is there a way to fix? export/tax free.

    Thank you.

    PD: 10 gr 2.

    Hello
    Insert of canoe read you a remote via dblink database table when that table has a clob or blob column.

    If you must use inport / export option.

    Use the Data Pump functionality in 10g. Then, you can export and import only your table without major issues.

    Thank you

    * If the answer is correct please mark.

  • DW broken do not use 'Scope of TH' for tables?

    When I use DW to generate a new table, he always puts in the elements "TH". This can make things difficult when dealing with CSS, because I want to apply a style to all the cells in a table, but the TH elements do not get the style because they aren't TDs. is there a way to tell DW to use plain old TD tags for all the cells instead of trying to force the sematic "table header" in there? Most often I'm not using the first row as a header, and I want not marked as such by default.

    Thank you!
    Drew

    INSERT | Table and uncheck TH options shown in the diagrams at the
    the bottom of the Panel. The setting is sticky.

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.dreamweavermx-templates.com - template Triage!
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================

    "Drew PCR" wrote in message
    News:eqq2cn$S4B$1@forums. Macromedia.com...
    > When I use DW to generate a new table, he always puts in the "TH".
    > elements.
    > This may make things tricky when dealing with CSS, because I want to apply
    > a
    > style to all the cells in a table, but the TH elements do not get style car
    > they
    > are not the TDs. is it possible to tell DW to use the Plains old TD tags for all
    > cells
    > instead of trying to force the sematic "table header" in there? Most
    > I am often
    > do not use the first line as a header and I don't want that to identified as such
    > by
    > by default.
    >
    > Thank you!
    > Drew
    >

  • [DITA] How to use the attribute valign for table row to control the position of a list

    This attribute seems quite apply to < TEXT >. If a ul, p, or fig element appears in the table cell, it will not work.

    I also tried to write a rule context to li, as ul < entry < row [valign = "middle"], but there is no chance.

    OK, I had finally it works.

    I should have written the rule of context as a paragraph, so that it will not be substituted by another rule.

  • Handheld computers upgrading blackBerry Smartphones cause some problems

    I support a company that has 5 BlackBerrys. They just recently updated to the Curve 9330 handheld. I went through the backup process of the old phones, restore data for new phones and then by setting up their accounts in BlackBerry Enterprise Server.

    Now, only one user is having problems with not receiving emails sporadically. Initially, the user could not receive e-mail from within their organization, then the user could receive emails from inside of their organization, but not yet all. Then the question reverses to not be able to receive e-mail from outside the organization.

    The Organization has an Active Directory domain with a Spam filter. I checked that I can send an email to my email account to the user successfully and that there are no emails stuck in the junk e-mail filter to anyone the user sent an email.

    Any ideas on this issue?

    I am replying to my own message and resolve the issue at the same time.

    I found that the BlackBerry has an option to select folders that are created in an Inbox of users for the transfer to the BlackBerry. In short, by default, if a user has Outlook configured with several records in their Inbox for Joe, Sally, Bill, etc and the rules set up to send emails from them to these folders and the folder redirection on the BlackBerry handheld must be configured. This will allow emails that are entered by Outlook rules first to be sent to the BlackBerry.

    My users are using BlackBerry Curve 9330 s and Verizon as their Service provider...

    -In the home screen (with the Red Verizon check) select Messages
    -Once the messages are to ensure that the date is highlighted at the top of the screen and press the BlackBerry button (left of the big black button in the middle of the phone)
    -Select Options at the bottom of the menu
    -Once the Options menu appears, select the email settings
    -Once in the email settings Menu, press the BlackBerry button and select the Folder Redirection
    -Once the Redirection Menu of folder is displayed select Inbox and press the black button to expand
    -Once the Inbox is expanded highlight each subfolder and click it to select it for the Folder Redirection
    -Once all desired files are selected press the BlackBerry button and click Save
    -Save all the folders that have been selected and cause all email sent to these folders in Outlook to be sent to the BlackBerry

    -Also if you press the BlackBerry button in Folder Redirection menu and select 'Select all' then all records in this menu will be selected and all emails will be forwarded to the BlackBerry

    Have fun!

  • Windows refresh caused some problems

    Recently for some reason any my Windows 8 did not work properly. In fact, I had tried to install a game GTA4 and it was not properly, installing as I uninstall it this problem started... Victory beginning would show the logo winner 8 and then the screen would go black forever. I went to repair (with the DVD of Win8) mode, but the system could not recover old date of recovery. That's why I went for the 'Refresh' system that was not as easy and I got this message twice that system could not be updated. Finally I could update the system.

    Now, I've seen two questions:

    (1) drive C has a folder called "Old Windows" which I deleted.

    (2) whenever I'm starting I get an option to choose an operating system when the OS are Win 8 and are both on Volume 2.

    I have attached a screenshot.

    If I click on one of the highest the Win 8 operating system load. If I do not choose... the countdown ends and charge of Win8.

    If I click on "change default settings or choose the other option... I get what you see in the screenshot below.

    In addition, I check my C drive and I only have a single instance of Windows installed.

    How can I remove this to load Windows 8 normally.

    Hello

    As far the Windows.old folder is concerned, you can remove it by using the rest of way:
    Press the Windows key + R, type in msconfig and press ENTER. Switch to the Startup tab in the System Configuration utility window  then, delete an entry that is not desired. Click apply then OK. Fact!
    Hope this helps, good luck :)
  • Printers HP PageWide: infrequent use of printer HP PageWide can cause a problem on inkjet printer

    On the new printer HP PageWide, if I don't have that infrequent use, ink clog or dry as it does on inkjet?

    Plugged in and turned on, will be fine.

    Unplugged or turned off, 3 months is the longest we would like to see it go.

  • By using the impl class for functions on a table

    I'm looking for a bit of advice on best practices.

    I have an app with 35 paintings.  I need to have a button "reset comes out" on each table.

    Each resetSort method should specify the table and the specific iterator.

    I tried to not having all the functions of 35 in the bean to support (1 for each table).

    Can I bind each table has associated feature class impl and each resetSort button call a method in this class?

    I use jdev 11.1.1.6.

    Any advice would be appreciated.

    Ray

    Then your real mission is to find the table for which the use wants to put sorting by pressing a button?

    This should be doable with the bean and a function that you bind to each of the reset buttons that you use for your tables.

    If your presentation is for the tables and the button to reset sorting, you can use an actionListener to the button. In the event of action, with the knowledge of the layout, it is easy to get to the table and once you have the table that you get the iterator from the table.

    Assuming that your tables are always surrounded by a panelCollection, who owns a toolbar now your reset button

    emptyText = "#{bindings." EmployeesView.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." EmployeesView.rangeSize}' rowBandingInterval = '0 '.

    selectedRowKeys = ' #{bindings. " EmployeesView.collectionModel.selectedRow}.

    selectionListener = "#{bindings." RowSelection EmployeesView.collectionModel.makeCurrent}"="single"id ="t1">

    You can use this code actionListener

    {} public void resetSort (ActionEvent actionEvent)

    get the link container

    BindingContainer links is BindingContext.getCurrent () .getCurrentBindingsEntry ();.

    DCBindingContainer dcBindings = (DCBindingContainer) links;

    UIComponent toolbar (UIComponent) = actionEvent.getSource ();

    Try to get the source of the event table

    assuming that the button is in a toolbar of a panelCollection we get using parent.parent.children

    List of children of = toolbar.getParent () .getParent () .getChildren ();

    Table richeTableau = null;

    for (UIComponent uic: children) {}

    If (uic instanceof richeTableau) {}

    table = uic (richeTableau);

    break;

    }

    }

    If (table! = null) {}

    the model in the Collection is the object that provides the

    structured data

    for the table to render

    CollectionModel tableModel = (CollectionModel) table.getValue ();

    the purpose of the ADF that implements the CollectionModel is

    JUCtrlHierBinding. It is surrounded by the CollectionModel API

    JUCtrlHierBinding adfTableBinding = (JUCtrlHierBinding) tableModel.getWrappedData ();

    Acess the ADF, which is used with iterator

    ADF table binding

    DCIteratorBinding iterBind = adfTableBinding.getDCIteratorBinding ();

    table.queueEvent (new SortEvent (table, new ArrayList()));

    CurrentRow key = null;

    Line = iterBind.getCurrentRow ();

    If (line! = null)

    currentRow = row.getKey ();

    SC SortCriteria [] = new SortCriteria [0];

    iterBind.applySortCriteria (sc); iterBind is that the table iterator use

    iterBind.executeQuery ();

    If (currentRow! = null)

    iterBind.setCurrentRowWithKey (currentRow.toStringFormat (true));

    }

    }

    This code looks for the table of the source of the action, which is the button in the toolbar, get the tabel. Once you have the table you get the iterator from the table and reset the sort. This works as long as we find the source of the action table. If you always use the same layout for tables (for example. panelCollection > table), which is a practice of good uix, you have need of a bean to reset all tables. Simply link the toolbar button actionListner to the listener in the bean.

    Timo

  • Partially with a form when you select a table row

    Hello

    I have a use case and would like to know how to go forward with it. This, it can be shown as:

    SUBFORM
    -TABLE 1
    -TABLE 2
    -FIELD ENTRY
    -INTRODUCE the BUTTON - send partial

    TABLE 1 is a SELECTABLE list READ only, while TABLE 2 list depends on the selection in TABEL 1 and consists of the input elements and is electronic. Whenever I press SUBMIT, all contents are partially submitted (it's trivial to implement).

    The question is how can I activate the PARTIAL of the subform PRESENTATION by simply selecting a new line in TABLE 1.

    Say for exmple... I select ROW 2 in TABLE1, my TABLE2 is updated according to the value of ROW2 from the server and then I change in TABLE2. Now when I select LINE 4 in TABLE1, it should submit TABLE2, submit the goto the server INPUT FIELD, performs the necessary processing and return with a TABLE2 refreshed with values dependent on the ROW4.

    How can I achieve this?

    I'm assuming that the Table2 is already defined as a part of Table1 (as far as you said that it has been updated whenever you change the selected line in table 1). If this is not so, then mark Table2 like Table1 partial target ("partialTriggers' Table2 set for example attribute to reference Table1).

    Then mark the autonomous input as partial target of the Table1 field in order to be presented whenever Table1 causes a partial shipment (e.g. set of entry of 'partialTriggers' field attribute to reference the Table1).

    If you need to make special treatment (e.g. sending data not only standard and validation) during a partial submit from Table1, and then you have to implement your own listener of selection for Table1 (use the attribute of the tag of the table "selectionListener").

    Dimitar

  • How to prevent a user not to access a table of perticular? This user has select any table privilege. Please help me solve this problem.

    Hello

    How to prevent a user not to access a table special (xxx)?

    This user has SELECT a TABLE ALL privilege. I need to restrict to only not for access xxx to the table, but this table is not existed in its own schema.

    But there is access able as select * from schema.table;

    How can I revoke this privilege.

    Please help me solve this problem.

    Thank you

    Lacombe

    1623609 wrote:

    How can I select privilege on specific tables at the same time?

    I want to create a new user and grants the right to select for tables, except a table (xxxx).

    It will be possible without the keystone of the database?

    One way, in several sql

    coil doit.sql

    Select ' grant select on ' | owner: '. ' || table_name |' to someuser. »

    from dba_tables

    where

    spool off

    Then sanity check "doit.sql" and execute it.

  • How to use the Type of Oracle Table values in the Select statement.

    Hello

    I get the initial set of values in the Table of Type Records of the Oracle and want to use the list of values in the Select statement.

    For example, try something like the following:

    TYPE t_record () IS RENDERING
    ID TABLEA.ID%type,
    NO TABLEA.NO%type

    );
    v_record t_record;
    T_table TYPE IS the v_record TABLE % TYPE;
    v_table t_table;

    -Code to fill the values of v_table here.

    SELECT ID, NO, COLLECT in BULK IN < some other table variabes here > FROM TABLEA
    WHERE ID IN (i) v_table USER.USER;

    I want to know how to use the Type of Oracle Table values in the Select statement.

    Something like this:

    create or replace type t_record as  object (
    id number,
    no number
    )
    /
    
    CREATE or replace type t_table AS TABLE OF t_record;
    /
    
    set serveroutput on
    declare
    
      v_table t_table := t_table();
      v_t1 t_table := t_table();
    
    begin
    
      v_table.extend(1);
      v_table(1).ID := 1;
      v_table(1).No := 10;
    
      v_table.extend(1);
      v_table(2).ID := 2;
      v_table(2).ID := 20;
    
      SELEC t_record (ID,NO) BULK COLLECT INTO v_t1
      from TableA
      FROM TABLEA
      WHERE ID IN (select t.ID from table(v_Table) t);
    
      for i in 1..v_t1.count loop
        dbms_output.put_line(v_t1(i).ID);
        dbms_output.put_line(v_t1(i).No);
      end loop;
    end;
    /
    

    No test!

    P;

    Published by: bluefrog on March 5, 2010 17:08

  • my privacy setting is stuck on do not forget history, won't stay on using the custom settings for history, after I've selected and click ok

    When I go to tools, Options, privacy and "Use the custom settings for history" of the value and then click on OK it won't save. It remains on "Remember history", even if she never will save "remember history" as I tested it. It seems if be produced after these recent last Firefox update. Anyone know why I can not choose "Use the custom settings for history", as is the parameter I want to use?

    Why aren't satisfied with the history settings by default that you currently have?

    Any changes (for example, to disable the cookies third party or form not given memory or keep cookies until you close Firefox and make an exception for the cookies you want to keep) that you will cause "use... custom parameters. "to be selected if you really want to see.

  • Collects statistics for tables using jobs in Oracle 11 G 11.2.0.1.0?

    Hello

    My query is regarding the collection of statistics for tables.

    My Version of Oracle DB is:
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    AMT for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production

    In versions of prior oracle db, we used to schedule tasks to run on a daily basis for collecting statistics. Especially for tables that are frequent and huge inserts.

    I read that in 11g stats for all of the schema on a database are automatically make every night jobs. I checked these jobs and I see that they are running on a monthly basis [joined query]. This job is enabled and is scheduled to run monthly.
    This means that my diagram will be analyzed on a monthly basis. My understanding is correct?

    Can I still plan jobs to collect statistics for specific tables on every week? This will diminish the performance?
    We expect 100000 documents to insert on a daily basis.
    SELECT  JOB_NAME,  
       START_DATE, REPEAT_INTERVAL, 
         LAST_START_DATE, 
        NEXT_RUN_DATE,ENABLED
    FROM dba_scheduler_jobs
    WHERE job_name LIKE '%STAT%'
    ORDER BY 1;
    JOB_NAME                       START_DATE                             REPEAT_INTERVAL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  LAST_START_DATE                        NEXT_RUN_DATE                          ENABLED
    ------------------------------ -------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------- -------------------------------------- -------
    BSLN_MAINTAIN_STATS_JOB        16-AUG-09 12.00.00.000000000 AM -07:00                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  14-APR-13 12.00.00.427370000 AM -07:00 21-APR-13 12.00.00.400000000 AM -07:00 TRUE    
    MGMT_STATS_CONFIG_JOB          15-AUG-09 12.24.04.694342000 AM -07:00 freq=monthly;interval=1;bymonthday=1;byhour=01;byminute=01;bysecond=01                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           01-APR-13 01.01.01.710280000 AM -07:00 01-MAY-13 01.01.01.700000000 AM -07:00 TRUE    
    Thank you
    Somiya

    Your understanding is not correct. These jobs are in dba_autotask_task.
    And they will be run every day.

    HTH

    -------------
    Sybrand Bakker
    Senior Oracle DBA

  • Problem with "select * from table" for dynamic IN the list

    I have a 'for loop' based a query that does not work. The query is supposed to return the name of the table, the data type and the name of the column in the columns poses a number of name filters. The problem I have is when I run the query into a TOAD with:

    schema_list value SCOTT, MED and the clause of 'in' as ' to (select * from table (DATAPUMP_UTIL.in_list_varchar2 (:schema_list))))»

    The query returns the expected lines.

    When I have it in my code as shown below it returns no rows. I don't know what hurts me, but any help would be great! I'm on Oracle 11.1.0.6.0.
    PROCEDURE export_schema_ondemand (schema_list VARCHAR2, encrypt_file NUMBER default 0, mask_sensitive_data NUMBER default 0) IS  
        ...
        schema_list_t := my_package.in_list_varchar2(schema_list);
        ... 
        for c1 in
           (
            with ok_to_mask as (
            select 
                owner,
                table_name, 
                column_name
            from   
               all_tab_columns
            where
                owner in (select * from table(schema_list_t))
            minus
            (SELECT 
                c.owner,
                p.table_name,
                cc.column_name
            FROM 
                all_cons_columns cc, 
                all_constraints p,
                all_constraints c
            WHERE 
                c.owner in (select * from table(schema_list_t))
                c.constraint_type = 'R'
                AND p.owner = c.r_owner
                AND p.constraint_name = c.r_constraint_name
                AND cc.owner = c.owner
                AND cc.constraint_name = c.constraint_name
                AND cc.table_name = c.table_name
            UNION ALL
            SELECT 
                c.owner,
                cc.table_name,
                cc.column_name
            FROM 
                all_cons_columns cc,
                all_constraints p,
                all_constraints c
            WHERE
                p.owner in (select * from table(schema_list_t))
                AND p.constraint_type in ('P','U')
                AND c.r_owner = p.owner
                AND c.r_constraint_name = p.constraint_name
                AND c.constraint_type = 'R'
                AND cc.owner = c.owner
                AND cc.constraint_name = c.constraint_name
                AND cc.table_name = c.table_name))
            select 
                atc.table_name as mask_tab, 
                atc.column_name as mask_col, 
                atc.data_type as mask_type
            from   
                all_tab_columns atc,
                ok_to_mask otm
            where
                atc.owner = otm.owner
                and atc.table_name = otm.table_name
                and atc.column_name = otm.column_name
                and atc.owner in (select * from table(schema_list_t))
                and 
                (
                atc.column_name like '%LAST%NAME%'
                or atc.column_name like '%FIRST%NAME%'
                or atc.column_name like '%NAME_LAST%'
                or  atc.column_name like '%NAME_FIRST%'
                or  atc.column_name like '%ENAME%'
                or atc.column_name like '%SSN%'
                or atc.column_name like '%DOB%'
                or atc.column_name like '%BIRTH%'
                )
                and atc.column_name not like '%PHYSICIAN_%'
                and atc.column_name not like '%DR_%'
                and atc.column_name not like '%PROVIDER_%'
                and atc.column_name not like 'PRESCRIBER_%'     
           )
          loop
             ...
    
    FUNCTION in_list_varchar2 (p_in_list  IN  VARCHAR2)  RETURN VARCHAR2_TT is
    
        l_tab   VARCHAR2_TT := VARCHAR2_TT();
        l_text  VARCHAR2(32767) := p_in_list || ',';
        l_idx   NUMBER;
            
    BEGIN
        LOOP l_idx := INSTR(l_text, ',');
            EXIT WHEN NVL(l_idx, 0) = 0;
            l_tab.extend;
            l_tab(l_tab.last) := TRIM(SUBSTR(l_text, 1, l_idx - 1));
            l_text := SUBSTR(l_text, l_idx + 1);
        END LOOP;
    
        RETURN l_tab;
            
    END in_list_varchar2;
    Published by: BluShadow on June 29, 2011 16:11
    addition of {noformat}
    {noformat} tags.  PLEASE READ {message:id=9360002} TO LEARN TO DO THIS YOURSELF.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    Hello

    If you have a query that works well when you launch it directly, and that breaks down when you start with a procedure, this can be a problem of privileges.

    Points of view ALL_ * shows only the objects you have access, but using a procedure, privileges must be granted directly to the user and not with a role.

    You should check the SELECT privileges to your user through roles and give them directly to the user.

    Hope this will help.

    Sylvie

Maybe you are looking for

  • Icons do not appear in the bookmarks as they did before installing Lion

    I have a MAC 10.7.2. Until recently, all of the pages I have my favorites on the web had an icon to represent the place it comes: Bank, hospital, newspaper.After that we have recently installed the latest Application from Word Lion, icons have disapp

  • How to add a currency symbol

    Hello I checked the discussion where you suggest how to add a currency symbol, but unfortunately I do not have an icon to display all currencies in numbers preferences. Can someone help me with this problem Bobi

  • generate a double exponential wave

    Nice day How can I generate double exponential wave through labview? Best regards Ahmad Tarmimi

  • Error code 80070490 searching Windows updates

    original title: Code error 80070490 Hi all I have this Windows Update icon in my tray on the right saying I need to update my computer, which is good, but every time I have try I get "Windows could not search for new updates" "Error Found." "Code 800

  • Acer aspire7741z

    Recently, I contacted the aceer store to buy the software to reset my laptop after it crashed. I finished all the steps to the factory as the said instructios mode. However, just before the cd over language he gave me an error. When it restarts, it s