How to extract specific data from the user to view?

Hello

I have a requirement I need to display only the Session_user-specific data in the table. Scenario is that if the user belongs to a specific region should be able to see data for that specific region only.

I think passing the session_user view query name but don't know if it of possible or not. If possible how to do this.

What is the best way to achieve this?

Thank you

Angelica

Hello

If you use the ADF for authentication security, the user name is then accessible from the context of the ADF in British Colombia ADF. You can then

1. create a view of the criteria in British Colombia ADF to a specific view

2. set the display criteria to use a variable binding

3. use groovy to add the value of the bind variable

-set the type of value of 'Expression '.

-Add adf.context.securityContext.userName

4. go in the Module--> Application data model

5 Select the instance of the View object

6. press on "change."

7. Select the view test

If you download the example in this article: Oracle ADF: security for everyone so you see that users have a profile page containing data for the authenticated user. Sound by using the method described above

If you do not use ADF security you can always use this approach. Instead of providing the value of the variable bind using Groovy you can run the view object using executeWithParams operation in this case, you can read the value of the authenticated user to the side view ADF. The binding variable would not be set to the Expression in this case though.

Frank

Tags: Java

Similar Questions

  • How to extract specific data from a text file

    Hello world

    For my project, it is necessary that a parameter file is read at the beginning, so that variables be initialized with specific values that change with the user.

    For now, the mode of action is as follows: the values in a sequence specified in a text file are read and saved in a table and the elements of the array are extracted according to their index.

    The problem with this implementation is, that if for any reason any changes file format, for example we want to use a settings file from a previous version of the program, which has the values for the variables of same but in a different order, the only way to have good values for the parameters is to change everything accordingly which is really time wasting.

    Could someone suggest another implementation that make reading the different values independently of their order in the file, for example by analysing the file for specific strings and by reading the value after the string?

    Thank you very much.

    P.S. I've attached a screenshot of the routine, which I use now.

    Hi panagiov,

    Find attached files.

    Method 1: in this you can search for each variable separately. You can use "Live Config file" to get all the keys (variable) at a time, and then you can use for loop to get their values. Or you can access values as indicated in the present code.

    Method 2: Here you will have all the data at once. You will get variables and data (table 2D), you should look for the variables as needed.

    I hope you understand these methods.

    Good luck

  • DV7 - 7333cl: how to extract usable data from a bad drive using 22 pins adapter usb to SATA on the new HD

    Greetings HP Forum,

    Recently, I replaced a bad hard drive on my laptop. I need now step by step procedure to extract usable data from the wrong drive using 22 pins adapter usb to SATA on the new HD.

    NOTE: I can't not all data that especially if some of the software downloaded on the replaced disk can be altered. Should I first download Internet Antivirus to protect my new hard drive? I'm not an expert, or even close to this when you work on the back of the laptop, so I'll have to step by step how to download and to partition the data recoverable and software, etc..

    Thanks in advance for your help... I greatly appreciate it!

    See you soon!

    Wes

    It is not complex. Attach the drive to the adapter and connect it to any other computer with good antivirus and antispyware installed. I use Malwarebytes and Avast. When you connect the adapter with the drive connected to the usb port, the drive will appear and it will be assigned a letter maybe E:\ or F:\ or something else. Immediately, he analyzes with the antivirus and anti-spyware. Quarantine or delete any virus or malware it finds. Then, it's just a matter of navigate the disk and copy and paste the contents of the host computer in a directory for this purpose. Obviously, you can copy from documents word, photos, music files, but you cannot copy the applications like Microsoft Word, iTunes. Photoshop.  You may need to take ownership of the files on the old hard drive, but Windows will guide you through this. Don't know what else I can answer.

  • My browser is running do not. I uninstall, install several times. Uninstall cookies, delete the data from the user, install in another user - no reaction. What's wrong? Help, please

    My browser is running do not. I uninstall, install several times. Uninstall cookies, delete the data from the user, install in another user - no reaction. What's wrong? Help, please

    Start Firefox in Safe Mode {web link} by holding down the < shift >
    (Mac options)
    key and then from Firefox. Is always the problem?

    Start your computer in safe mode with network. Then launch Firefox.
    Try the sites secure web. Is always the problem?

    Start the computer in Mode safe;
    Free online encyclopedia

  • Set initial value as the number of sequence/date/from the user

    Hi guys, I created a datablock and set up the user interface to allow users to insert all the data they need, however my table has a:

    ID - which is uniqe with each entry of the table is then gernerate by a sequence (that I created on the database), but when I put seq.nextval in the initial value on the datablock it says that I can not do that, so how can I use the sequence to insert the value in this field in the database. It's my first key in my whichobviosuly database my users cannot enter data for, on the contrary, it is generated automatically.

    User - in the same way in the datablock is a user field that has the user that inserted record, I know I can set the default for this field, but how to make the user automatically insert through forms on the database.

    Same again how put SYSDATE is automatically entered in the field date when the user submits the file?

    Any help on this would be GREATLY appreciated.

    Thanks in advance.

    Published by: user13390506 on August 5, 2010 04:11

    The DUAL table:
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/queries009.htm#sthref3198

    With: new, you reference the column should be inserted (in a trigger to update you: old and: where new: old contains the value before and: new value after the update of the column)

    Regarding your real problem: without a few pieces of code fails and you did, it's a little difficult to say what happened here. If you could get better answers by sharing.

    Sharing also the Versions of database (4 digits) and Versions of forms is important in order to obtain a response apropriate.

    Anyway: you seem to be new to the whole forms / SQL / PL/SQL stuff, so I might suggest:
    http://Tahiti.Oracle.com is a very good starting point for SQL and PL/SQL. This isn't a RTFM but rather a Council. Once you got used to you will like it. For my part, I could not live without tahiti: D.

    Cheers.

  • Specific Date of the user data recovery

    My 16 year old son has a user account on my Windows 7 (Ultimate - SP1) desktop computer he uses when he stays with me. I am trying to retrieve specific date data (related to its use) to validate when he was with me / on this computer. I use CCleaner from time to time. Any technical help is appreciated! Thank you! Mike-

    The Windows event recorder records the events of connection but only if logon auditing is enabled. On the flavors of Windows 7 (Windows 7 Professional and above) you can do this with the gpedit.msc Group Policy Editor. On lower versions, GPEdit is not available but can be activated with a hack. Regardless of the above, you can't enable ex post auditing.

  • How to convert string data from the serial port to double?

    Hello!

    I am very new in LabView and attempt to read data from an OHAUS pioneer pa-313 electronic scale via RS232 serial port. I use the VISA. I can read the data and see it as a string to the screen, but when I try to convert it to a double, it is just the integer and decimal numbers have disappeared. Here's the question: what can be the problem? How can I get the decimals as well?

    What is your normal decimal point?. or?

  • Write and read data from the user's local file system

    Hello

    I write my first extension for dreamweaver. My extension should backup the data on the local file system of the user. I know that I can use DWfile.read () and DWfile.write () as described in Chapter 2 of the Dreamweaver API reference. I store the data using the XML format. What is the best way to read and parse the XML data in the file? What is the best way to write the XML data in the file?

    If you recommend one format other than XML, I'm open to suggestions. The data are only a few configuration information for the extension which should be persisted.

    Thank you

    mitzy_kitty

    How will the data be used? If it is used by JavaScript, use JSON format which includes js. If you use XML, then you will need to find an XML parser to read the data.

    Randy

  • How can I transfer data from the database in a variable (or array)?

    I made my request according to the example (http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/). Everything works fine. I changed a single function to query the database - add two parameters and get the value from the table to a string format. A test operation shows that everything is ok. If I want to display this value in the text box, I just do drag and drop off service to this element in Design view

    (< s:TextArea = "153" x = "435" id = "nameText" text = "{getDataMeanResult.lastResult [0] .name}" width = "296" height = "89" / > ").

    Also, it works fine, just a warning and encouraged to use ArrayCollection.getItemAt ().

    Now, I want to send the value to a variable or an array, but in both cases, I get an error: TypeError: Error #1010: a term is undefined and has no property..

    How can I pass a value to the database in a variable? Thank you.

    public var nameTemp:String;

    getDataMeanResult.token = authors.getDataMean (arrayOfNumber [0], dir_id);

    nameTemp = getDataMeanResult.lastResult [0] .name;

    public var nameArray:Array = new Array();

    for (var i: uint = o; i < 3; i ++) {}

    getDataMeanResult.token = authors.getDataMean (arrayOfNumber [i], dir_id);

    NomTableau [i] = getDataMeanResult.lastResult [0] .name;

    }

    And how do I use syntax highlighting in this forum?

    Astraport2012 wrote:

    Thank you.

    Then this simple question: How can I place a mySQL database data in a variable using the wizards FB4 (connect with PHP)?

    If you can show examples please.

    I couldn't find examples. Send data to a field text or DataGrid - much, but no variable.

    the use of assistants? not sure... it is generally a bad idea to rely on them, because they will never fully what you want anyway. I would recommend learning abit of PHP and manage by yourself, because it allows you to manage everything exactly as you wish.

    small example of communicating with a database using PHP + FB4:

    mount a database

    write you a small script that will access your database, get a value, for example:

    ";
    
        while($row = mysql_fetch_array($result))
        {
            if($row['messageID'] == "3")
            {
                print $row['message'];
            }
        }
        print "\n";
    ?>
    

    This will get the message with ID '3 '.

    make an HTTPService in FB4 app to call this Script, as follows:

    
    
        
            
    
            
        
    
        
            
        
        
    
    
    

    and the value must be picked up by the Script and properly stored in a variable

  • How to back up data from the iphone water damage over 6 sec.

    I dropped my iphone more than 6 s in sea water, and it seems capable of lighting (which shows a black screen). I'm trying to back up data. When I connect the iphone with the computer, the following prompt box appears on itunes. Now I'm confused. Could someone answer my questions please?

    1. This means that my iphone is still able to turn it on?

    2. that means that only the screen is broken and the motherboard still work?

    3. How can I save the data without entering the password by using the touch screen?

    Thank you very much.

    This means you should STOP PUTTING ELECTRICITY through your phone untreated, ack!

    Your phone has a display problem, but yes - it lights up.
    Perhaps your problem is just a bad screen (which is unfortunately a part of $250 to a 6 sec more now).  Apple cannot help you with other water damage that offers to sell you an iPhone refurbished for $349.

    But most likely, your problem is also on the logic board - usually fixable.

    There is no way around the need for touch operation and the image on the phone to access the data.

    In order to access the data on the phone, you need your advice to hold the power and start, (it does) you need of your screen image lines, and you need to contact work.  Ideally, you would also have your backlight lines works as well.

    Most of the phones in this condition have a pretty good shot in data recovery in this situation - touch, and line of the image problems are usually solvable if your phone can be detected by iTunes.   It is certainly not DIY work, this is a troubleshooting open-ended the microsoldering and level of card issues.

    Your only option for recovering data would be to find a good microsolderer experienced in data recovery.

    I recommend to replace any phone which has seen water, corrosion on the Board always weakens solder everywhere, so the phone is likely to have a shorter duration of life more problematic.

    Note: It may be possible to cancel your option for the swap of OOW $349 at Apple if you continue recovering data at the level of Council - although I've never seen this happen.

  • A satellite will not start - how to back up data from the HARD drive?

    Hello
    My laptop won't turn. How can I take backup of internal hard drive?

    Please read my writing as soon as POSSIBLE

    If you n t have access to your saved data remove the laptop HARD drive, connect it to the other PC as external device and you should have access to all stored data if the HARD drive is not defective.

    What you need is USB 2.0 IDE 2.5 HD enclosure disk hard drive / external case/Box.

  • How to put a text from the user in the global chain

    I use the odbc interface to record the measurement result in an excel sheet.

    Now I need the ability to enter text in a separate column.

    This text is a free user input string.

    But I have not found a way to transfer a string from the input message to a global string module.

    Is there a way to do this?

    Concerning

    Andreas

    This is the solution.

    Thank you very much.

    (An example says more than thousand words)

    Concerning

    Andreas

  • Inserting data from the user-defined Type

    Hi all

    I have the following type
    create or replace type answer_obj is object (all_employee_seq integer,questionseq varchar2(10),text_answer varchar2(4000),optionseq varchar2(10));
    
    create or replace type answer_tbl is table of answer_obj;
    I have the procedure (within a package) that pulls in the python papers.
    TYPE answer_tbl_type IS TABLE OF question_answer%ROWTYPE
                                   INDEX BY PLS_INTEGER;
    
    PROCEDURE submit_survey (p_answers IN OUT answer_tbl)
       IS
          l_answers_tbl   answer_tbl_type;
       BEGIN
          FOR i IN p_answers.FIRST .. p_answers.LAST
          LOOP
             l_answers_tbl (i).all_employee_seq := p_answers (i).all_employee_seq;
             l_answers_tbl (i).questionseq := p_answers (i).questionseq;
             l_answers_tbl (i).text_answer := p_answers (i).text_answer;
             l_answers_tbl (i).optionseq := p_answers (i).optionseq;
          END LOOP;
    
    
          FORALL idx IN l_answers_tbl.FIRST .. l_answers_tbl.LAST
             INSERT INTO QUESTION_ANSWER
                  VALUES l_answers_tbl (idx);
       
       END;
    My question is, is it better to insert the data directly from the (record) (records) argument using for LOOP INSERT or the conversion of the argument in an associative array and a FORALL?
    As you can see, it's a FOR LOOP to set the values in the array and then by the FORALL.

    I think the above is even faster because of the first LOOP IS done in memory and real integration is carried out with FORALL.
    I want to get as many opinions.


    See you soon,.
    Joel

    Hello

    Because you created the SQL Types, what just to do this within your procedure?

    INSERT INTO QUESTION_ANSWER (all_employee_seq, questionseq, text_answer, optionseq)
    SELECT all_employee_seq, questionseq, text_answer, optionseq
    FROM TABLE(p_answers);
    
  • Extraction of data from the xmlclob attribute

    Hi all

    I am trying to extract the value of the attribute below clob.

    kindly advice how to retrieve the value by using the xml functions.

    I use version 11.2.0 and toad 9 oracle database.

    I've highlighted the comment tag. the highlighted, I need to recover ' time changed according to the dtd VSG mail 25/01/2013 14:27.» SVK, & #xD; & #xA; Recipient added by mail from Richard dtd 20/02/2013 09:45. SVK" of the value attribute.

    Please suggest how to achieve using SQL. Data stored in xml format in the clob column.



    <? XML version = "1.0"? >

    " < ValuationRequest xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "container =" " http://www.w3.org/2001/XMLSchema "ValueID ="169821"Version ="2.6" "

    " xmlns =" http://XBank.FxVals/ProcessValuationRequest.xsd "Status ="AC"> "

    < ValueID '5' = ClientRelationShipType > < / ClientRelationShipType >

    < ValueID owner = '14539"Name ="JEREMY LEVINE"> < / owner >

    < ValueID customer = "6892067" Name = "XXXXXXXXXX, NEW YORK" > < / customer >

    < ValueID = "1" CMVRegion > < / CMVRegion >

    < ValueID = "1" ValuationTypeID > < / ValuationTypeID >

    < CSRContacts >

    < CSRContact Value = "917" Name = "EVALUATIONS NY[valuations.ny@gmail... com]' > < / CSRContact >

    < / CSRContacts >

    < title >

    < ValueID security = PrimaryID "900158" = "NY-518362" ItemLevel = '2' ItemType = "38" >

    "< rank EffectiveDate =" "2013-01 - 24 T 00: 00:00 ' TerminationDate = ' 0001-01 - 01 T 00: 00:00" comments = "" SecurityDetailID = "429190" > < / row >

    < / security >

    < ValueID security = PrimaryID "900158" = "NY-518362" ItemLevel = '1' ItemType = "38" >

    "< rank EffectiveDate =" "2013-01 - 24 T 00: 00:00 ' TerminationDate = ' 0001-01 - 01 T 00: 00:00" comments = "" SecurityDetailID = "429191" > < / row >

    < / security >

    < / securities >

    < created Value = "2013-01 - 24 T 12: 20:48" > < / creation >

    < ValueID '37126' = CreatedBy > < / CreatedBy >

    < LastModified Value = "2013-02 - 21 T 01: 56:00" > < / LastModified >

    < ValueID = '18732' LastModifiedBy > < / LastModifiedBy >

    < ReportDefinition ValueID = "1" > < / ReportDefinition >

    < StartDate = value "2013-01 - 24 T 12: 00:00" > < / StartDate >

    <Comment Value = "time changed according to the dtd VSG mail 25/01/2013 14:27." SVK, & #xD; & #xA; Recipient added by mail from Richard dtd 20/02/2013 09:45. SVK">< / comment >

    < ValueID = "100" PricePercentage > < / PricePercentage >

    < ISDSL Value = "F" > < / ISDSL >

    < ValueID effects = '0' > < / Effects >

    < WorkFlowAction >

    ActiveChangesApproved < action > < / Action >

    < / WorkFlowAction >

    < ValueID = "4" RecertificationFrequency > < / RecertificationFrequency >

    < RecertificationDate Value = "0001-01 - 01 T 00: 00:00" > < / RecertificationDate > "".

    < RecertificationNextDate Value = 'January 24, 2014' > < / RecertificationNextDate >

    < StatementFrequency >

    < SFrequency Value = '1' Type = 'Daily' date limit indicator = "1005" = "F" PDeadline = '990' > < / SFrequency > "

    < / StatementFrequency >

    < value AutoGenerate = "T" > < / AutoGenerate >

    < monetary value = "Us $" > < / currency >

    < SLanguage ValueID = "1" > < / SLanguage >

    < GP2AccountID Value = "480352" > < / GP2AccountID >

    < SalesApproval Value = "F" > < / SalesApproval >

    < RegenerateAfterPartial Value = "F" > < / RegenerateAfterPartial >

    < SalesCoverageTeam >

    < = 'Sales' sales type Value = "14539" NotificationFlag = "N" name ="JEREMY LEVINE [[email protected]]" > < / sales > "

    < / SalesCoverageTeam >

    < OffSystem Value = "F" > < / OffSystem >

    < HolidayCalendar >

    < country value = 'US' > < / country >

    < / HolidayCalendar >

    < GP2AccountStatus Value = "P" > < / GP2AccountStatus >

    < CurrencySecondary / >

    < GP2ParentID Value = '16649' > < / GP2ParentID >

    < StatementPerspective Value = "D" > < / StatementPerspective >

    < DBEntity ValueID = "2" > < / DBEntity >

    < ValueID DisplayClientName = "6892067" Name = "XXXXXXX, NEW YORK" > < / DisplayClientName >

    < FXRates >

    < FXRate >

    < of Value = "EUR" > < / From >

    < value = "Us $" > < /pour >

    < / FXRate >

    < / FXRates >

    < ShowFXRates Value = "T" > < / ShowFXRates >

    < OfficialMTMs Value = "F" > < / OfficialMTMs >

    < ExcludeStructuredTrades Value = "F" > < / ExcludeStructuredTrades >

    < ValueID = "1" DisclaimerID > < / DisclaimerID >

    < TradeRisk Value = "F" > < / TradeRisk >

    < MTMsInTradeCurrency Value = "F" > < / MTMsInTradeCurrency >

    < / ValuationRequest >

    Thanks in advance.

    with t as)

    Select xmltype (')

    http://www.w3.org/2001/XMLSchema-instance"container ="http://www.w3.org/2001/XMLSchema"ValueID ="169821"Version ="2.6"xmlns ="http://XBank.FxVals/ProcessValuationRequest.xsd"Status ="AC">

    ActiveChangesApproved

    [email protected]]">

    ') double x

    )

    Select comment_text

    t,.

    XMLTable)

    XmlNamespaces (default 'http://XBank.FxVals/ProcessValuationRequest.xsd'),

    «ValuationRequest / / comment»

    go x

    columns

    comment_text varchar2 (200) path "@Value"

    )

    /

    COMMENT_TEXT
    --------------------------------------------------------------------------------------------------------------------------------------
    Time changed according to the dtd VSG mail 25/01/2013 14:27. Beneficiary SVK added according to mail from Richard dtd 20/02/2013 09:45. SVK

    SQL >

    SY.

  • Extraction of data from the node

    Hi all. Apologies if it's very basic, but a real beginner here!

    I use 10g and trying to extract data in a XML_Type column for use in a stored procedure. The data I received looks a bit like this:
    <TestRequest RequestName=”Test” TypeID=”1” RequestDate=”20091122093047” Status=”0”>
         <TestParameters>
              <TestParameter TPID=”4” TPName=”Test1”>Test1</TestParameter>
              <TestParameter TPID=”5” TPName=”Test2”>Test2</TestParameter>
         </TestParameters>
    </TestRequest>
    I'm interested in the value in the TestParamter where the TPID = '4 '.

    By using the following query:
    select extract (xml_data,'/TestRequest/TestParameters/TestParameter[@TPID="4"]') from table_name
    I can get:
    "< TPID TestParameter = '4' TPName ="Test1"" > Test1 < / TestParameter > ""

    But all I want is the value of Test1. How to do this?

    Thank you very much

    How to do this?

    Get it in this way:

    SQL> with t as (
      2  select xmltype('
      3  
      4  Test1
      5  Test2
      6  
      7  ') xml_data from dual)
      8  select extractvalue(xml_data,'/TestRequest/TestParameters/TestParameter[@TPID="4"]/text()') from t;
    
    EXTRACTVALUE(XML_DATA,'/TESTREQUEST/TESTPARAMETERS/TESTPARAMETER[@TPID="4"]/TEXT
    --------------------------------------------------------------------------------
    Test1
    

    Max
    [My Italian blog Oracle | http://oracleitalia.wordpress.com/2010/01/10/crittografia-in-plsql-utilizzando-dbms_crypto/]

Maybe you are looking for

  • Lock activation. Pirates.

    I have activation lock on my iPad and now the unit is under foreign control Apple ID. I've been hacked. Now, I can not activate my gadget. What can I do? I have the tab of the store where I bought the iPad and my work Apple ID. Help please!

  • Firefox 13.0.1 no longer works on google apps. (IE and Chrome work well)

    get the following error when trying to connect to google Apps hosted email account. (works fine in IE and Chrome). "The page is not redirecting properly". Firefox has detected that the server is redirecting the request for this address in a way that

  • Paint does not open

    By clicking on it, he said "There is not enough memory or resources to complete the operation close some programs, and then try again." The problem is that you can close all the programs, but it does not help. I tried to open an existing jpeg and sav

  • MS Visual runtime error

    Original title: error message error message just published... MS VISUAL RUNTIME ERROR PROGRAM C:\PROGRAM FILE R 6016, NOT ENOUGH SPACE FOR THREAD DATA What does that mean? How it get fixed?  It seems to be playing with the effectiveness of Outlook. I

  • Change the line key notify labels via sip

    Hi, I was wondering if anyone knew if the following text was possible. Is it possible to change any part of the config of the series phone Cisco SPA via a SIP notify or similar method. I have an asterisk server, where we have created a system to move