How can i allow a set of user to access to an application

At the moment i have an application that only i can login as the adminstator and i want to be able to let a group of students run the application only (no editing of the application).
I then have a form that loads straight after the login that should show the details of the student that has just logged in.
I already have a students table so is it just a case of adding a password field to the table and pointing the login screen to check this table? If so how can i then set their access to read only?

This is what I did... it is quick and dirty!
1 exported the app "Project"
2 imported the app "project" and renamed it "project2". Doing this means that I won't cause any damage to his current application
3 examined authentication- currently set to Application Express. Application Express requires that the user and passwords match account created in the admin section of application express.
4 We're after a scheme that authorises based on a table of users in the application workspace schema. The authentication scheme just needs to know the name of a function which has a standard signiture such as fn_auth(p_username varchar2, p_password varchar2) return boolean;
In the SQL Workshop I looked at the "user" table to be used and noticed that it does not contain a loginname column so for this example based this on a case insensitive first name and last name concatenation (with a space in the middle).
Now we need to add a simple authenticate function...
create or replace fn_auth (p_username varchar2, p_password varchar2) return boolean is
begin
for x in(select 1 from student where upper(trim(first_name' 'family_name))=upper(p_username) and upper(password)=p_password) loop
return true;
end loop;
return false;
end;
5 And finally modify the app to use this new function. Add a new scheme and in the Login Processing section of the ahthentication scheme modify the function to
return fn_auth
6 As an aside, I also added a report of user names and their passwords which is shown on page 101 if the user is running in debug mode. Obviously, this would need to be stripped out when the app was released to production. This will not show if the URL is navigated to and the user is not logged in as an APEX developer by using a condition based on a funtion body and the following to determine whether the app is being run for a user or for a developer:
IF APEX_Application.g_edit_cookie_session_id IS NOT NULL THEN return true;
ELSE
return false;
END IF;

Similar Messages

  • How can I see which roles or users have access to a table?

    How can I see which roles or users have access to a table?
    For a given table, how can I see the grants, who and what?
    Many thanks

    dba_tab_privs.
    Grantee can be a role or an user, as roles are fake users.
    Sybrand Bakker
    Senior Oracle DBA

  • How can I restrict more then one user to access the table?

    Hi !
    I have a problem and two solutions and I am a bit confused as to
    which one is the best one and/or can there be any better way of
    handling the problem ?
    Problem : I have to update a key field of a table when I update
    it in the form 5.0 screen. I am basically doing a maintenance of
    a table and if a certain field is updated then the change has to
    be reflected in two more tables. But the issue is that the field
    is a part of the key in those two tables. So all I can think of
    is that I need to insert new set or rows for that new value of
    the field and delete the old set of records for old values of
    the field.
    There are two ways of doing it;
    1.One option can be to explicitely define two cursors separately
    and fetch the values in them one by one and then insert the new
    records and then delete the old records in both the tables. This
    I feel will be a cumbersome process both in terms of processing
    time and the coding.
    2.Second option I was thinking can be to create two flat tables
    (without keys) and insert the values in them and update the
    changed field there and then insert the rows in the respective
    tables. Delete the old records in the main tables and delets the
    records in these flat tables. This is a bit more faster and
    easier to predict and code. This seems to be a better option for
    me.
    Any comments on these ?
    In both the cases I was thinking of making some provision so
    that more then one person can't update the table simultaneously.
    Since if there are more then one persons doing the processing
    then some inconsistency might creep into the whole process.
    This is easier to do in the second process as if I check the
    data in the flat tables and if there is some data then I can
    presume that some one is doing the processing and I can ask the
    other person to hold for a while. But in this case how can I
    stop more then two people to simultaneously check for the empty
    table and start inserting the record ?
    I was just thinking of having a sepatare table having only one
    field and this will be a key field and as the process begins the
    process will insert a fix value say 'Y' in the key field and at
    the end of the process the record will be deleted and this way
    we can restrict the user to access the process more then one at
    a time..? Since you can't have same value of the key in a table
    more then once.
    Any better way of handling it will be deeply appreciated.
    How about locking the table at the begining and releasing the
    lock at the end ? Will there be any issue in that? since I am
    inserting and deleting the rows in the same transaction.
    Comments welcome,
    Shobhit
    null

    How about performing the update IN the database using a stored
    procedure?
    By using non-database fields on your form to get the
    information, you can then call the procedure in the database to
    perform the updates. If an error occurs in the procedure you
    rollback, if necessary, and send a message or status back to the
    form. If it succeeds you might wish to commit and then re-
    execute the form's query -- using either the original key values
    or the new key values...
    null

  • How can I allow or block the use of local storage by specific sites for all users in my domain.

    How can I allow or block the use of local storage by specific sites for all users in my domain.
    I tried to do this by MMS.cfg but it is not working, the problem is also described in your blog "http://forums.adobe.com/message/3272907".
    What I Want -: "I want to allow youtube for all the users in my domain and this should be listed in Control panel-->flash player-->storage-->local storage setting by site-->websites tab."

    Wow, cor-el... Did you -intend- your reply to be inane, inappropriate and completely inapplicable?
    How would that possibly do what I asked?
    You -might- consider '''''reading''''' the question, -=before=- you reply. And it's really okay to NOT REPLY if you just don't know. Just an idea.
    Feel better, real soon.

  • How can I deploy the setting of clear cache on exit for all users?

    How can I deploy the setting of clear cache on exit for all users?

    Note that Firefox disables the disk cache if you use "Clear history when Firefox closes" to clear the cache (see about:cache), so you can either disable the disk cache via its related pref or set the prefs related to clearing this data,but then other items that have a check-mark by default are cleared as well.
    *browser.cache.disk.enable
    *privacy.clearOnShutdown.cache
    *privacy.sanitize.sanitizeOnShutdown
    You can use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.
    Place a local-settings.js file in the defaults\pref folder where also the channel-prefs.js file is located to specify using mozilla.cfg.
    pref("general.config.filename", "mozilla.cfg");
    These functions can be used in the mozilla.cfg file:
    defaultPref(); // set new default value
    pref(); // set pref, but allow changes in current session
    lockPref(); // lock pref, disallow changes
    See also:
    *http://kb.mozillazine.org/Locking_preferences
    *http://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files/
    *http://mike.kaply.com/2014/01/08/can-firefox-do-this/

  • How can I allow other users on my macbook to view my iphoto library when th

    How can I allow other users on my macbook to view my iphoto library when they are logged in. I do not have a network, and the users (my family) all log in seperately when they use the computer. Does anyone know? Thank you.

    rdoss
    Welcome to the Apple Discussions.
    If you want others to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account(s). In the other account(s), enable 'Look For Shared Libraries'. Your Library will appear in their source pane.
    Remember iPhoto must be running in both accounts for this to work.
    Regards
    TD

  • How can I allow a user (client) to choose a local image file (on his hard d

    How can I allow a user (client) to choose a local image file (on his hard drive) and modify it using an applet from his browser ? I am trying to develop a web page that enables the user to choose an Image file, manipulate the image using a java applet, and display the results.
    Using Java�s �JFileChooser� does not work when called from a browser, probably due to security privileges issues. On the other hand, I can choose and upload any file using a JavaScript form:
    <FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="process.asp">
    <INPUT TYPE=FILE NAME="file1"><BR>

    It seems that I can choose an image file with a Java script form and process an image with an applet. How can I choose a file AND process it locally ?
    (I do not wish to upload the file to the server using JavaScript form and then back to the client�s applet for processing since it will be a tremendous waste of resources).
    Will appreciate any solution.
    Thanks !
    ( my email is: [email protected] )

    "Using Java�s �JFileChooser� does not work when called from a browser, probably due to security privileges issues. "
    You can do this if you sign the applet...

  • Text messages on the Iphone 5c do not forward to non-Iphone users.  How can I communicate with both Iphone users and non-Iphone people?

    How can I create a setting that allows me to text to Iphone users and non-Iphone users?  Where do I find those settings?

    That is the default behavior when startng a message to a number that is not associated with iMessage. such as that of non iPhones.
    If you choose to user an email address it will always attempt to send an iMessage.
    For ease of identifcation, Messages sent thorugh SMS will be green in the Messages App, while iMessages will be blue.

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

  • How can I do a set ?

    Hello people,
    How can I do a set ? like ... set = {1,2,3,4,5,6,7,8,9,10} I need to know that becouse in one of my programs there is a menu and the user can not choise another number .

    I don't want to give the impression of being a wise-crack - but um, that isn't a set, that's an array.
    Would this be a set containing only 2 items of value 1 and 2?
    int[] myStuff = {1,2,1,2,1,2}
    No, it would not, it would be a 6-element array containing duplicate values.
    A set can be created using the java.util.Set and related classes/interfaces.
    Depends on what you really meant.

  • In ST03 , how can i see the Query name, user id,how many times .

    HI Experts,
    In ST03 , how can i see the Query name, user id,how many times executed the query.
    these details how do i get from the above transaction.
    Points will be awarded.
    BR
    sivs

    Hi Siva,
    Reporting statistics data is only written to the database table if BW statistics have been manually activated for the corresponding InfoProvider first. If this has not been done, it is therefore not possible to display any reporting statistics in transaction ST03.
    Therefore activate the reporting statistics for all relevant InfoProviders. To do this, set the OLAP flag in the BW Administrator Workbench (transaction RSA1) in the area Tools ® BW Statistics for InfoProvider.
                    Check here...........
    http://help.sap.com/saphelp_nw04/helpdata/en/ca/86df4254d81e1fe10000000a155106/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c8c4d794-0501-0010-a693-918a17e663cc
    Hope this will help you shiva.........
    Regrads,
    Vijay

  • How can I change to a different user on iPad

    How can I change to a different user on iPad, please help!

    Unlike a computer, an iPad is designed for a single user.  You can't set up separate user accounts for multiple people on an iPad and give each user their own workspace.

  • How can I allow the application to line through a field that has been locked after being digitally signed?  We have multiple sections on a form with some fields being proposed information and other in another section having the approved information. once

    How can I allow the application to line through a field that has been locked after being digitally signed?
    We have multiple sections on a form with some fields being proposed information and other in another section having the approved information. once the approved information is entered we line through the proposed field so the data entry clerk won't pick up the wrong information.  However we are receiving an error when attempting to enter data  in the field which we have this edit.  Error property: line through cannot be set because doing so would violate the document permission setting.  any idea how we can get around this issue?

    You can control which fields are locked down after signing by setting up a collection. Then those that are not locked can be changed after signing. If this is not possible, then the line outs must occur prior to signing.

  • How can I allow a customer to upload an image to be stuck onto a mug or t-shirt and then view what it would look like on that mug or t-shirt?

    How can I allow a customer to upload an image to be stuck onto a mug or t-shirt and then view what it would look like on that mug or t-shirt?

    In the absence of drivers, a rather nasty way to achieve this would be to ensure that your software always occupies the same portion of the screen such that you know the position of the 'sample' button. You could then simulate a mouse click at those coordinates when you require a sample to be taken.
    This would not be a robust solution as a user could move or minimise the window, or other windows could also find their way into the critical position and cause the application to work incorrectly or cause unexpected things to happen.
    However, if you just need a short term work around this method might be acceptable, just be aware of the risks if you try it.
    Searching for simulate mouse clicks and having a play is the way forward.
    As an example of simulating a mouse click in a certain position, have a look here:
    http://forums.ni.com/t5/LabVIEW/Programatically-Se​lecting-a-ring/m-p/1463242#M557128
    Ian

  • How can i  get report no of user login in system

    Hello
    how can i  get report no of user login in system
    means user license login per day in system
    what is strategy of SAP against licenses audit
    how can i manage my license users ??????????
    Jayesh

    Hi Jayesh
    You can use the Audit Transactions. Set the Audit Profile with Tx SM19 and then report with Tx SM20.
    You can also use the programs CCUINIT and CCUEVAL. Report CCUINIT initialises the measurement of current users and report CCUEVAL will provide the report and the logs for you to download.
    Also regarding the licensing of users,
    Refer to http://www.sap-img.com/sap-overview/help-to-understand-sap-licenses.htm
    and https://websmp104.sap-ag.de/licenseauditing
    You will get everything you need
    Rohit

Maybe you are looking for

  • Disk Image too big in iDVD 6.0.1

    I created a 1 hour 27 minute movie in iMovie 6.0.1 and dragged it into a new iDVD 6.0.1 project. Used Travel widescreen theme and the default audio clip for that main menu. Removed the audio clips from the chapter menus. Created a disk image: 4.29GB,

  • 2 c:import   in one Jsp Page

    Hi all, I wondering can a jsp page have 2 <c:import> statement? i having an error which is "javax.servlet.jsp.JspException: Cannot forward a response that is already committed" when i doing it. what i want to do is something like: <c:import url="/stu

  • Sharing Outlook Mac 2011 Calendar with Google Calendar (Andriod phone)

    my husband has an android phone. If I buy an iphone and I use Outlook for the mac, will he be able to see my calendar?  How would I make that happen?  What software would I need to make that happen?

  • Cross dissolve

    I am trying to make a simple video loop using a 30sec water ripple scene. I split and inverted the 2 halves so that the end/beginning would match but when I tried to cross dissolve the transition the video stops, the still frames cross dissolve then

  • Copy Pictures out of the Photos Application

    Hi, I am having troubles dragging out pictures from the new Photos application on my MacBook Pro, into safari and webpages like google drive.  I need to export it onto the desktop and from there drag it into google drive. Exporting it like this is a