Creating views for users by entering a field

Hi I want to create a veiw for a new user.
I want the user to view details for a member after he has entered a Membership No
create view member_details
(&memberno, name, address)as
select memberno, name, address
from member
where memberno = &memberno;
when i use this command it asks me for a memberno, I enter one so when the user logs in and
select * from reilly.member_details;
all he gets is the info for the memberno I have entered
how do I fix this so the user is the one entering the memberno

If your admin staff need to access details for any member, can't they just query a view of all members and specify a memberno then?
View (presumably more complex than this in reality) would be
create view member_details
(memberno, name, address) as
select memberno, name, address
from members;Admin user query would be:
select * from member_details
where memberno = &memberno;Is SQL*Plus really the interface you provide your admin users with?

Similar Messages

  • Creating View for an extractor with reference field

    Hi All,
             Here is my requirement.
    I need to create a DB view for an extractor. I need to join 3 tables : AUFK,AFIK & AFKO.
    Table Join Conditions:
    AUFK     MANDT     =     AFIH     MANDT
    AUFK     MANDT     =     AFKO     MANDT
    AUFK     AUFNR     =     AFIH     AUFNR
    AUFK     AUFNR     =     AFKO     AUFNR
    This AUFK table has a Z field ZZACCOMPLISH(QUAN field) and it it referning to MARA-MEINS.
    I created  view  successfully with all fileds including ZZACCOMPLISH.
    But when i give the view name in RSO2, i am getting an error message that 'ZZACCOMPLISH' is refering to some other table.
    In this case i don't know how to include MEINS in ths view and There is no link between table AUFK and MARA.
    Please guide me on this.
    Regards,
    Ashok

    Could you please share how this was resolved?
    I currently have the same requirement/issue.
    Many Thanks,

  • How can I create a form for users wherein the text field will expand to accommodate additional text?

    How can I create a form for users wherein the text field will expand to accommodate additional text?

    You need to use LiveCycle (PC Only) to create a dynamic form like that.
    The best you can do with Acrobat to view all of the text in a field is to set the field to multiline, and set the size to "Auto" (If you don't set the size to 'Auto', you can enter as much text as you wish, but the user will need to use the scrollbar to view all of the text.)

  • To fix the length of a textfield for user to enter date

    hi,
    i need to display a textfield for user to enter the date in the format MM/DD/YY.With the slash in between present and fixed and the possibility of entering only 2 digit figures for the month,day n' year.I am using JTextField .how can i acheive that pls help.

    You must design you own document where you will manage the text that will be entered/displayed in your textfield
    here's a sample of the code I use to do this:
    import javax.swing.JTextField;
    import java.io.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import java.awt.*;
    import java.awt.event.*;
    public class MaskedTextField extends JTextField
    private String initStr;
    public MaskedTextField (String mask, String initStr)
    super();
    setDocument(new MaskedDocument(initStr, mask, this));
    setText(initStr);
    this.initStr = initStr;
    this.addMouseListener(new java.awt.event.MouseAdapter()
    public void mouseClicked(MouseEvent m)
    this_mouseClicked(m);
    private void this_mouseClicked(MouseEvent m)
    if (getText().equals(initStr)) setCaretPosition(0);
    class MaskedDocument extends PlainDocument
    String mask;
    String initStr;
    JTextField tf;
    public MaskedDocument(String initStr, String mask,
    MaskedTextField container)
    this.mask = mask;
    this.initStr = initStr;
    tf = container;
    void replace(int offset, char ch, AttributeSet a)
    throws BadLocationException
    super.remove(offset,1);
    if (capitalised) super.insertString(offset,
    String.valueOf(ch).toUpperCase(),a);
    else super.insertString(offset, "" + ch, a);
    public void remove(int offs, int len) throws BadLocationException
    if (len==0)
    return;
    // Remove current contents
    super.remove(offs, len);
    // Replace the removed part by init string
    super.insertString(offs,initStr.substring(offs,offs+len),
    getAttributeContext().getEmptySet());
    tf.setCaretPosition(offs);
    public void insertString(int offset, String str, AttributeSet a)
    throws BadLocationException
    if ((offset==0) && str.equals(initStr))
    // Initialisation of text field
    super.insertString(offset,str,a);
    return;
    if (str.length()==0)
    super.insertString(offset,str,a);
    return;
    for (int i=0;i<str.length();i++)
    while ((offset+i) < mask.length())
    if (mask.charAt(offset+i)=='-')
    // Skip fixed parts
    offset++;
    else
    // Check if character is allowed according to mask
    if (str.charAt(i) != this.initStr.charAt(i))
    switch (mask.charAt(offset+i))
    case 'D': // Only digitis allowed
    if (!Character.isDigit(str.charAt(i)))
    return;
    break;
    case 'C': // Only alphabetic characters allowed
    if (!Character.isLetter(str.charAt(i)))
    return;
    break;
    case 'A': // Only letters or digits characters allowed
    if (!Character.isLetterOrDigit(str.charAt(i)))
    return;
    break;
    replace(offset+i, str.charAt(i),a);
    break;
    else
    i++;
    offset--;
    // Skip over "fixed" characters
    offset += str.length();
    while ((offset<mask.length()) && (mask.charAt(offset)=='-'))
    offset++;
    if (offset<mask.length())
    tf.setCaretPosition(offset);
    if (offset == mask.length()) tf.setCaretPosition(offset);
    Enjoy
    Bernie

  • Dropdown list (predefined list) along with provision for user to enter text

    Hi,
    Is there any provision in J2ME to have
    " a drop-down list , which contains predefined variables. if the user does not want to use those predefined variables, then a provision for user to enter text."
    thanks in advance

    Append Method
    I would create a box / div in Animate then when you publish it and put it on your page just append a form with an email input ( <input type="email></input>" ) and submit button.
    <form action="url">
      <input type="email" name="usremail">
      <input type="submit">
    </form>
    This page provides a lot of information on how to use Edge Animate and how to do more advanced things.
    http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html

  • How to create view for xmltype table in oracle

    hi:
    Can some one help me how to create view for xmltype table in oracle?
    XMLType do not have column
    Sem

    Thank you !!
    I read it and become very hard to implement what I want to do.
    Can you give me example please?
    My main goal to create view for xmltype table is to XQuery the XML data?
    Do you have any other suggestion?
    Please help
    Ali_2

  • To create View for the following req

    Hi Gurus
    Table view is to be generated for tables ZFUNCTION, ZPFUNCTION, and ZLOCATION.
    Assignment of T Code to this table so that SSC team can update as and when there is change in business requirement.
    Pls suggest me to create view for the above req and to assigning T code for the same.
    Regards
    Suresh

    I seem to recall (don't have the docs handy) that there is a higher level
    PDDest object and a PDAction object - you might want to look at using those
    higher level objects (created via PDXXXFromCosObj) if you are having trouble
    working with Cos.
    Leonard

  • Creating VIEW for Genric DS

    Hi guys, I just created a View using VBRP table in R# for (Billing item) documents.I selected 9 fields from this table in an extract structure. Now i am trying to create DS using RSO2, when i chose view and try to enter the name of database View name , it does not recognize it.It says invalid extract structure templete for DS. whats this message? should i create master data DS or transactional DS?
    I am trying to perform a simple loading  process to the cube in bw. Could anyone suggest me what are my next steps. AFter replicating DS , how should i go about creating cube, i want to create a customize cube.Whats the best way to create all infoobjects( fields in the extract structure) in the cube?
    I am trying to simply extract some data ( no specific requirement) from R3 table for SD component, and load it to the new Cube, and use BEx for reporting.Again, all these are for self practicing purpose.
    I am really confused , i have been reading lot of theoritical part, but when i try to see how it really works , i never have completed full load or extraction process.
    I would appreciate it if anyone could guide me here, I am using BI7. What table should i chose for this ,it could be from any Component, SD,MM etc. Whats the best way to proceed?
    I know all basic stuffs ..like..if using generic DS, create view, create DS using RSO2 and replicate to bw etc.
    i would really apprciate it if any one walk me thru or suggest me what should i try first. i ll assign points also.thanks
    dk

    Hi,
    A few more pointers
    Creating generic datasource
    Error when creating generic datasrc
    Errors in Generic Datasource
    Generic Data Source Creation Problem....URGENT!!!!!!!!!!!!!
    Reg GENERIC DATASOURCE
    Generic DataSource Problem
    Generic extraction
    Hope this helps.
    Thanks,
    JituK

  • Parameterized Views for User Reports

    I would like to be able to define a view such as:
    create view dept_emps(p_dept in varchar2) as
    select * from emps where dept = p_dept);
    and use this view to define a SQL Dev drilldown report with SQL such as:
    select * from dept_emps(:DEPT)
    where :DEPT is a bind variable passed from a selected depts report row.
    Oracle apparently does not support parameterized view definitions as suggested above, but I have found an article by Tom Kyte on the issue of parameterizing views, where Tom suggests using DBMS_SESSION.SET_CONTEXT (called within a user package) to set context values that can be retrieved in a view using the SYS_CONTEXT function. I can get this approach to work at the SQL prompt to work around the lack of formal view parameters. I have a package which defines a procedure which sets context values that I can then retrieve within a view using the SYS_CONTEXT function.
    To use this approach when defining a SQL Developer user report, the SQL for the report would need to be logically something like (which works fine at an SQL prompt):
    exec ssuper_context.set_ctx('DEPT', :DEPT) - - Call user procedure to assign context variable 'DEPT' with bind value from parent report
    select * from dept_emps
    where view dept_emps uses function SYS_CONTEXT to return the value for context variable 'DEPT'.
    SQL Developer complains about this as the SQL for a user-defined report. Can anyone suggest how I might pass a bind value from a selected parent record to a view which implements a drilldown report?
    TIA Jon

    I met CSI at a kongress a few weeks ago and pressed them a bit on how this works. Eventually they fezzed up about the table read but mentioned that in the next release being developed it would be different...
    Problems with this is that the FM has a couple of limitations, so you cannot read all tables correctly... so you end up reading some of the wrong ones or taking the easy ones.
    Another option is to let the database itself do the hard work, to get back to the performance aspect.
    Anyway, for neither of these two do you need any tcode, so indeed we are drifting off topic...

  • Create view from user type

    I need to create an "empty" view which would select from an user type. Is it possible?
    I have:
    create or replace TYPE my_type as object
    my_col varchar2(13)
    create or replace type my_type_array as table of my_type;
    And I need something like:
    create view my_view as select my_col from my_type_array where 1=2
    I'm not selecting anything I just need an view to read names and types of my_type_array fields. Is it possible?

    If you just want to see the name and datatypes of your types attributes, just:
    SQL> select attr_name
      2  from DBA_TYPE_ATTRS
      3  where type_name = 'MY_TYPE';
    ATTR_NAME
    MY_COL
    1 row selected.

  • Where in BAT for "Users Associated with Line" field......

    Hi All,
    I am trying to find where I can export all user lines via BAT to see if they have an assignment for “Users Associated with Line”.
    Basically, I have administered approx 1000 phones (some UDP and some not) however I was unaware that I needed to administer this field for CUPC etc….
    I have looked at other posts that explain to update line appearance under the “Users” in BAT however this does no contain the field that I am looking for.
    In essence, I need to export all user lines, wash the data for who is not administered for this, then BAT in a change to associate users with line.
    Any help much appreciated!

    Hi,
    I use phones first and than the users option to upload using BAT.
    In th phone's tab, edit the the Maximum number of phone lines according to your requirement and click on the Create file format and select Directory Number in the Line field as shown below.
    And create your phones with MAC, Description,Phone lines and upload it, make sure it gets uploaded successfully.
    Now come to Users tab in the Bat.xlt file, here click on the Number of Controlled Devices as 1 (we are basically making phone as the controlled device to the users, phone already has lines as mentioned in the above step). And fill rest of the other details and upload it.
    Note: You can mention the Primary extension and IPCC Extension as part of this operation only.
    Hope it helps.
    Anand
    Please rate helpful posts by clicking on the stars below the right answers !!

  • Creating View for a table with parent child relation in table

    I need help creating a view. It is on a base table which is a metadata table.It is usinf parent child relationship. There are four types of objects, Job, Workflow, Dataflow and ABAP dataflow. Job would be the root parent everytime. I have saved all the jobs
    of the project in another table TABLE_JOB with column name JOB_NAME. Query should iteratively start from the job and search all the child nodes and then display all child with the job name. Attached are the images of base table data and expected view data
    and also the excel sheet with data.Picture 1 is the sample data in base table. Picture 2 is data in the view.
    Base Table
    PARENT_OBJ
    PAREBT_OBJ_TYPE
    DESCEN_OBJ
    DESCEN_OBJ_TYPE
    JOB_A
    JOB
    WF_1
    WORKFLOW
    JOB_A
    JOB
    DF_1
    DATAFLOW
    WF_1
    WORKFLOW
    DF_2
    DATAFLOW
    DF_1
    DATAFLOW
    ADF_1
    ADF
    JOB_B
    JOB
    WF_2
    WORKFLOW
    JOB_B
    JOB
    WF_3
    WORKFLOW
    WF_2
    WORKFLOW
    DF_3
    DATAFLOW
    WF_3
    WORKFLOW
    DF_4
    DATAFLOW
    DF_4
    DATAFLOW
    ADF_2
    ADF
    View
    Job_Name
    Flow_Name
    Flow_Type
    Job_A
    WF_1
    WORKFLOW
    Job_A
    DF_1
    DATAFLOW
    Job_A
    DF_2
    DATAFLOW
    Job_A
    ADF_1
    ADF
    Job_B
    WF_2
    WORKFLOW
    Job_B
    WF_3
    WORKFLOW
    Job_B
    DF_3
    DATAFLOW
    Job_B
    DF_4
    DATAFLOW
    Job_B
    ADF_2
    ADF
    I implemented the same in oracle using CONNECT_BY_ROOT and START WITH.
    Regards,
    Megha

    I think what you need is recursive CTE
    Consider your table below
    create table basetable
    (PARENT_OBJ varchar(10),
    PAREBT_OBJ_TYPE varchar(10),
    DESCEN_OBJ varchar(10),DESCEN_OBJ_TYPE varchar(10))
    INSERT basetable(PARENT_OBJ,PAREBT_OBJ_TYPE,DESCEN_OBJ,DESCEN_OBJ_TYPE)
    VALUES('JOB_A','JOB','WF_1','WORKFLOW'),
    ('JOB_A','JOB','DF_1','DATAFLOW'),
    ('WF_1','WORKFLOW','DF_2','DATAFLOW'),
    ('DF_1','DATAFLOW','ADF_1','ADF'),
    ('JOB_B','JOB','WF_2','WORKFLOW'),
    ('JOB_B','JOB','WF_3','WORKFLOW'),
    ('WF_2','WORKFLOW','DF_3','DATAFLOW'),
    ('WF_3','WORKFLOW','DF_4','DATAFLOW'),
    ('DF_4','DATAFLOW','ADF_2','ADF')
    ie first create a UDF like below to get hierarchy recursively
    CREATE FUNCTION GetHierarchy
    @Object varchar(10)
    RETURNS @RESULTS table
    PARENT_OBJ varchar(10),
    DESCEN_OBJ varchar(10),
    DESCEN_OBJ_TYPE varchar(10)
    AS
    BEGIN
    ;With CTE
    AS
    SELECT PARENT_OBJ,DESCEN_OBJ,DESCEN_OBJ_TYPE
    FROM basetable
    WHERE PARENT_OBJ = @Object
    UNION ALL
    SELECT b.PARENT_OBJ,b.DESCEN_OBJ,b.DESCEN_OBJ_TYPE
    FROM CTE c
    JOIN basetable b
    ON b.PARENT_OBJ = c.DESCEN_OBJ
    INSERT @RESULTS
    SELECT @Object,DESCEN_OBJ,DESCEN_OBJ_TYPE
    FROM CTE
    OPTION (MAXRECURSION 0)
    RETURN
    END
    Then you can invoke it as below
    SELECT * FROM dbo.GetHierarchy('JOB_A')
    Now you need to use this for every parent obj (start obj) in view 
    for that create view as below
    CREATE VIEW vw_Table
    AS
    SELECT f.*
    FROM (SELECT DISTINCT PARENT_OBJ FROM basetable r
    WHERE NOT EXISTS (SELECT 1
    FROM basetable WHERE DESCEN_OBJ = r.PARENT_OBJ)
    )b
    CROSS APPLY dbo.GetHierarchy(b.PARENT_OBJ) f
    GO
    This will make sure it will give full hieraracy for each start object
    Now just call view as below and see the output
    SELECT * FROM vw_table
    Output
    PARENT_OBJ DESCEN_OBJ DESCEN_OBJ_TYPE
    JOB_A WF_1 WORKFLOW
    JOB_A DF_1 DATAFLOW
    JOB_A ADF_1 ADF
    JOB_A DF_2 DATAFLOW
    JOB_B WF_2 WORKFLOW
    JOB_B WF_3 WORKFLOW
    JOB_B DF_4 DATAFLOW
    JOB_B ADF_2 ADF
    JOB_B DF_3 DATAFLOW
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Workflow creating task for user in Outlook

    Is it possible to create a task in outlook for a specific user via workflow? My Boss want to have every user informed via mail that there is a new element in a list (that works fine) and one User should have a task (even better a complete to do list) in
    his outlook task tab.

    Hi Elite,
    Based on your description, my understanding is that you want to create the tasks for users in Outlook with workflow.
    I recommend to use workflow to create tasks in a task list in SharePoint and then sync the task list with outlook by clicking the button Connect to Outlook in the ribbon of the task list.
    After that, the tasks created in the task list will be automatically synced to Outlook.
    Please refer to the link below for detailed steps:
    http://netizenapps.com/blog/?p=6
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How to control actions printing,export in discoverer viewer for user

    Hi
    we use discoverer viewer .I want to control Printing,export,send email options
    for user for a worksheet.Hoe to do this. thru Enterprise Manager apps server control , i tried to change the settings , but i guess thats for all the users and all the workbooks.
    how do i set this for user??
    rgds

    Hi
    Yes, the settings you can apply are global and will affect all users. You cannot restrict these by user. Sorry.
    Best wishes
    Michael

  • Different Directory views for users

    How can I achieve different directory views on user's phones for different types of users using DCD?
    This is for a Centrex type of service.

    OK. I see this posting which mentions installing the IP Services SDK for such applications.
    http://forum.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Unified%20Communications%20and%20Video&topic=IP%20Phone%20Services%20for%20Developers&CommCmd=MB%3Fcmd%3Dpass_through%26location%3Doutline%40%5E1%40%40.1ddc61e0/0#selected_message
    I find it hard to believe that there is not an easier way.
    Why can't there be a directory-profile setting or a setting in the device profile to group users?

Maybe you are looking for

  • Iphone4s - iMessage, Call &amp; battery issues

    I cannont receive text or picture messages via imesssage every once in a while, it never appears to be an issue when i receive from OTHER phones on other networks. I am able to send the messages though. and this issue is not consistent. it happens ev

  • Oracle Mobile Server 11GR2

    Hi all, currently we are using Oracle Mobile server 10.3.0.3 and would like move to Oracle Mobile Server 11GR2. But before going to that quite new area would like to get some feedback about that version/release as is critical for us to be sure that c

  • Bind Variables...Urgent

    Thanks! I build a SQL statement, PARSE and Execute... Begin :l_result := Test(pa01=>':pa01',pa02=>':pa02'); End; I am binding ':pa01', ':pa02' When I try to Bind variables, it throws error "ORA-01036 illegal variable name/number". Do I need to instal

  • Deactivate automatic transfer order during PO process

    hi After transfer order ,system automatically confirmation of transfer order .i need to manual confirmation, I dont want Automatic transfer order confirmation during PO process. i deactivate confirmation  in warehouse number,storage type, movement ty

  • FINISH DATE VARIANCE AS OF DATA DATE

    Hello to Everybody, I would like present a tabular report with a column for "Finish Date Variance as of Data Date".... I would appreciate much for your immediate reply. Thanks and Regards, Raymond