Link aspnet user table

I need to link aspnet_user table to three tables.
I am developing a asp.net application using Oracle. The three tables are Student, tutor and admin. I have created three roles in database for permission on database.
table detail as as follow.
student-> STD_id(PK), username(unique), and other columns
staff->Staff_id(PK), username(unique), and other columns
Admin-> id(PK), username(unique), and other columns
How do I implement foreign key relations?
I want to implement login functionality where user enter user name and password and application detect user type and display his own custom page where they can perform database function according to roles I have created in database.

How do I implement foreign key relations?
Oracle Database Application Developer's Guide - Fundamentals
Chapter 6 - Maintaining Data Integrity in Application Development
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_constraints.htm#sthref612
Are you using the Oracle Data Provider for .NET (ODP.NET)? This is the forum for that product.
Regards,
Mark

Similar Messages

  • Linking user table with system table

    Hello, I'm trying to link a user table with IC table in order to asign many sales person to a customer.
    I've created a new button in the IC form. When clicked a new form is opened to asign sales person to the IC. Now I need to retrieve the records assigned to this IC. How can I do that???
    Regards.
    Angel.

    Hi Angel,
    I would put a matrix in the new form where you could see/asign/delete the sales person.
    Have a look at this post where you can find a great code from Sebastian Danober to fill a matrix from a recordset.
    Another option could be to modify the existing IC form and add a new folder with a matrix where you can manage the sales person.
    Check this other post with code for adding folder to an existing form.
    Regards,
    Ibai Peñ

  • Custom user table

    Hello,
    I'm a newbie to Oracle Portal and I'm currently working on a conference project. We already have database from last year. There we have user table and other tables. I have already created custom login portlet for users to login but I used portal SSO package. Here comes the tricky part: How can I link portal user table and my user table, so I would know the details of a user when he logs in.
    The best solution would be if I could use my table instead of PORTAL30_SSO.WWSEC_PERSON table.
    Can anybody help me please !?!
    Tnx in advance.
    Mitja.

    To handle using DIP, refer to the Oracle Identity Manager, Application Developers Guide. That gives recommendations on the ldap-ntfy package.
    Handling the operation using OID plug-in will have performance impact on the ldap operations performed on OID.

  • Linking a User Defined Field in Items table

    How to Link a User Defined Field in 'Item Master Data' table, to my own User Defined Table?
    Example:
    In Item Master Data table, I want to add 3 User Defined Fields, for e.g, Country, State and Region.
    When the value of Country combo is changed, values loaded in State and Region combos should change automatically.
    I'm storing the relationship between Country,State and Region in my own user defined table. I want to load the comboboxes with a query from that table.
    Or, if there's no solution to the above problem:
    when the Item Master data table is opened, can we launch our own form?
    Is there a way to specify that?
    Please reply me back.. I'm a beginner learning SAP.
    With Thanks in advance,
    Geetha
    Key: Loading a user defined field through Query defined by us.

    Geetha,
    You should search this forum on user defined fields as you will find many posts that may assist you with your question.
    HTH,
    Eddy

  • Best way to link user form with user table

    Hi all.
    What is the best way to link an user form with a user table (with all of the functions, add, update...)? I have created a simple form, and the question is next:
    depending the type object of the user table (document, master...) i have facilities to imlement the basic operations in the form?  if i create an UDO i have the functions but i want to use the form that i created with a screen painter.
    Thanks.

    Hi again i want add a new comment please.
    If i want do all functions (add,update...) of my form in my user table, and i want my user table is a <b>type document</b>? how can add new lines in my user table with objet <b>type document</b>? because when i make the instance i nedd to say what type of document is (item,order...) and when i do an add(), not add() in my user table. In what moment or how can assign that the add,update functions... affect in my table?
    Thanks again.

  • Link Button to User Table

    Hi. I have tried to search for this but cant get anything. I know how to add a link button to a matrix column when the link is to an SBO Business Object. what i need to do is to add add a link button to a user table.

    Hi,
       Sorry for delayed reply. I will be active in weekends.
    STEP 1: Catch The Event
    STEP 2: Load The New Form using code and Keep the form invisible
    STEP 3: Assign The Key Value To The form through your coding
    STEP 4: Navigate to Key value through code/write logic to get retrive details for given Key value of scree
    STEP 5: Make the form visible.
    HTH.
    With Regards
    B.Ravi Shankar

  • Link between User Name in user table and Personla number in HR

    Hi
    Could any one let me know the link between the User Name field in User table and Personal number in HR table. Pls let me know the table name which shows the relation between these two fields.
    Regards,
    Ram

    HI Ram
      The table which contains this data is PA0105. The value of field USRTY should be '0001'. For example if u want to get the UNAME related to an employee.
    SELECT usrid
      FROM pa0105
    WHERE pernr EQ p_pernr
          AND usrty EQ '0001'.
    Please award points if u found this helpful

  • User field linked to BP table

    Hello.
    I'm trying to create a userfield linked to OCRD.
    My code is as follows:
    oUserFieldsMD = vCmp.GetBusinessObject(152)   
    IF  fieldexists (Tabla,Campo)
         RETURN .t.
    ENDIF
    !         '// Set the Fields' mandatory properties
        oUserFieldsMD.TableName = "oSLP"
        oUserFieldsMD.Name = "REX_RelatedSu"
        oUserFieldsMD.Description = "Related Provider"
        oUserFieldsMD.Type = 0
        oUserFieldsMD.EditSize = 15
        oUserFieldsMD.LinkedTable = "OCRD"
    !         '// Add the field to the table
         oUserFieldsMD.Add
    But it fails with this error:
    "The field 'Related Table' should consist of 8 alphanumeric characters with no valid or default values       "
    I have tried with 8 also, same error, and the keyfield of OCRD is size 15.
    I have done this with user tables with success. What can be wrong with this?
    Edited by: vchigne on Nov 13, 2010 11:45 AM

    Formatted Search with user defined fields??
    and
    Formatted Search
    Edited by: vibinvarghese on Nov 18, 2010 10:22 AM

  • Error while linking udf to user table.

    Hi All,
    If i am gong to joined my UDF to user table by using option then alphanumeric size of that udf changes to 8 from 15. In such condition when i m going to update ths udf thn it is giving error as "Alphanumeric column size cannot be decreased".
    Reply ASAP

    Hi swapy
    put the udf size as 8 before the computer does the work.then try to attach the udf.

  • Get the row index by clicking on a link in a table

    Hi,
    I am using a table to display a product catalog in Web Dynpro ABAP.
    The user should be able to click on any material number (link) in the table to get a detail view of this material.
    How do I get back the table line, the user has clicked to show him a detail-view?
    Thanks a lot for your help.
    Reagards.

    Hi,
    To get the details of complete row,
    Data lo_nd_products type ref to if_wd_context_node.
    Data lo_el_products type ref to if_wd_context_element.
    Data ls_products type wd_this->Element_products.
    data ld_material type string.
    lo_nd_products = wd_context->get_child_node( name = wd_this->wdctx_node ).
    lo_el_products = lo_nd_products->get_element( ).
    lo_el_products = wd_event->get_context_element( name = 'CONTEXT_ELEMENT' ).
    lo_nd_products->set_lead_selection( Exproting element = lo_el_products ).
    lo_el_products->get_static_attributes( importing static_attributes = ls_products ). "ls_products contain selected row content.
    ld_material = ls_products-material. "To get selected material number
    Regards
    Vasundhara

  • TSQL for capture and insert to a user table when blcoking is happening on a SQL server

    Hi,
    I am searching for a TSQL which will capture the blocking script to a table with execution plan and all other necessaryu details. I tried with below script but its not giving the text for blocked statement
    I t will be nice if i get RequestingText and  BlockingTest
    SELECT @@servername as Instancename,getdate() as [date],session_id,start_time,status,command,database_id,blocking_session_id,
    wait_type,wait_time,last_wait_type,ST.TEXT AS SQL,
    wait_resource,open_transaction_count,cpu_time,total_elapsed_time,reads,writes,logical_reads,text_size from sys.dm_exec_requests SR
    CROSS APPLY SYS.DM_EXEC_SQL_TEXT(SR.SQL_HANDLE) AS ST 
    where blocking_session_id >0
    I tried the below link also, this this script also got blocked
    http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/

    But when you run select * from sys.sysprocesses where blocked >0 
    i can see blocking
    and it will be nice if I get RequestingText and BlockingTest
    in the user table
    You can get the requesting text for the spid that is blocked, plus all the other information you get from sys.sysprocesses by
    select SUBSTRING(st1.text, (p.stmt_start/2)+1,
    ((CASE p.stmt_end
    WHEN -1 THEN DATALENGTH(st1.text)
    ELSE p.stmt_end
    END - p.stmt_start)/2) + 1) AS RequestingText,
    p.*
    from sys.sysprocesses p
    CROSS APPLY sys.dm_exec_sql_text(p.sql_handle) AS st1
    where p.blocked <> 0;
    But you will not bee able to get the command that caused the lock that is causing the blocking.  SQL does not keep that information.  For a lock, it only keeps the spid that owns it, what is locked, and the kind of lock.  It does not keep
    the command that caused the lock.  And while you can, at least sometimes get the last command the blocking spid has issued, but that may well not be the command that caused the lock.  The command that caused the lock might be anything the blocking
    spid ran since it entered transaction state.  And since that could be the last command or many, many commands ago, you won't be able to get that information with a query into the system tables and/or views.
    Tom

  • User Tables ( Object Type )

    Hi
    Can u tell me wat is the uses of user tables ( Object type )  Master Data , Master Data Rows, Document, Document Rows and no object. plsss.
    Thanks in advance
    Giridharan V

    Check this link
    [https://websmp209.sap-ag.de/~sapidb/011000358700005796502005E]
    you should have an SUSerId
    Requires Flash Players and Mulitmedia enabled to play the video.

  • Synchronising User Tables not Happening

    Hello All ,
    I am using SSM 7.5 SP 04. We configured SSM to connect to the BusinessObjects User store.(BOE). I am able to login as the "cmstechnicaluser" who is  an admin on the BOE side.
    I created a new user called "VJ" and added him to the strategy_users group in the BOE user groups. If I login into the administration UI ,using the credentials of "VJ" , it is logging in , but displaying a message that "you have no access to this application. Contact your system administrator".
    I tried adding this user "VJ" to the application groups. But this user is not coming in the user list in the Admin UI. I went to the system defaults and clicked the Synchronise User Tables. It is throwing up an error saying "  SM Script error"
    Error message 'error' is undefined
    URL http://sgpsrv011:50000/strategy/pipadmin/pa_settings.htm
    Line #547
    Even after restarting the listeners and the NW CE , this error is persisting. Moreover , the clear cache link is not appearing . Is there any other way to clear the cache ?
    Thanks and Regards,
    Vijay

    Hi,
    I am also getting this exact error message. Is this problem occurring often in SSM to 7.5 SP04 .
    I was on SP3 but did not get this problem.
    The error says
    "Error message 'error' is undefined
    URL http://<servername>:<port>/strategy/pipadmin/pa_settings.htm
    Line #547 "
    Carlos and Vijay also have the same error on SSM 7.5 SP4.
    In my case I have checked the trace file also. It seems to be saying that it cannot connect to SAPCEDDB at a lot many places.
    But my CE database is already being accessed when I log on the SSM Admin UI.
    Anybody's got a hold on this one?
    Milan.
    Edited by: Milan Gupta on Dec 24, 2009 2:55 PM

  • Centralized user tables

    Hi,
    I'm sure that this question has been asked over and over by different people. If I have a common user table (PERS) and a couple of tables (PERS_APP_ROLE, ...) to store user roles in a schema in one standalone database - Oracle, of course. I have a separate APEX application that handles self-service things like user changing their password or personal information. Then, I have multiple APEX applications, residing in different databases, that authenticate against the user tables in the above remote database schema - via database link. In addition, I log the numeric ID of the user who creates and updates the records in many of these applications. Therefore, in many pages of these applications, I need to query the remote database in order to get the user name of these ID's.
    In the PERS table in the remote database, I store both the LDAP Active Directory usernames (for LDAP authentication in APEX) and the "hashed" passwords (for table authentication in APEX) because my applications are used by both internal and external users.
    Is this the correct approach to handle these mixed authentication needs - LDAP and table authentication? Can anyone help?
    Thanks.
    Andy

    thanks for your replies.
    i did check to see what happend when describing v$session as both a regular user (and as internal), and for each i received:
    ERROR:
    ORA-04043: object USER1.V_$SESSION does not exist
    and laurent - thanks - i had it in my head that it was a synonym problem, but i couldn't remember the keyword 'synonym' - i kept thinking it was something along the lines of 'alias', which of course it isnt.
    it appears, however, after looking at dba_synonyms a little more closely, that somehow the owner of a bunch of the USER_% synonyms were USER1? no idea how that happened, and like the previous poster stated not sure why an export or import would have an effect on the dictionary or synonyms.
    anyway, reran catalog.sql, and all seems fine now.
    thanks again for your help!
    sandeep

  • Synchronising HR and WF User Tables !

    Dear All
    I am facing a workflow issue, whereby a valid and active HR employee (also linked to an active FND User) record is not registered within the WF User and Role tables.
    How do I ensure that the WF User/Role/Directory tables are synched with the HR/FND Tables.
    I am told that under the 11.5.10 (which is the environment I am working on), this should be automatic, but clearly, this is not the case.
    I even tried updating the HR record through the form, just to check if it fires an update to the WF table, but no luck there.
    I tried running the various Workflow Synchronization and Validation Concurrent Programs under the SysAdmin, but again, none of them did anything.
    Has anyone faced this issue and how do you get the WF User tables updated ?
    Any help and suggestion is appreciated.

    Hi,
    I am also getting this exact error message. Is this problem occurring often in SSM to 7.5 SP04 .
    I was on SP3 but did not get this problem.
    The error says
    "Error message 'error' is undefined
    URL http://<servername>:<port>/strategy/pipadmin/pa_settings.htm
    Line #547 "
    Carlos and Vijay also have the same error on SSM 7.5 SP4.
    In my case I have checked the trace file also. It seems to be saying that it cannot connect to SAPCEDDB at a lot many places.
    But my CE database is already being accessed when I log on the SSM Admin UI.
    Anybody's got a hold on this one?
    Milan.
    Edited by: Milan Gupta on Dec 24, 2009 2:55 PM

Maybe you are looking for