How to implement APP_USER variable in oracle apexHow does database indexing work?How can I prevent SQL injection in PHP?Get list of all tables in Oracle?How do I limit the number of rows returned by an Oracle query after ordering?How do I UPDATE from a SELECT in SQL Server?Dynamic action using date picker in APEX 5.0Referencing oracle apex APP_USERClose modal dialog page and refresh the page Oracle APEXOracle Apex - Download CSV produces an empty reportLinking user accounts to primary key values in Oracle Apex

As an Operations Research professional, how is your time divided when working on an optimization project?

Do equal angles necessarily mean a polygon is regular?

What is this opening trap called, and how should I play afterwards? How can I refute the gambit, and play if I accept it?

Why isn’t the tax system continuous rather than bracketed?

"Strength" of free falling objects' ground-impact

Alphabet completion rate

Ending: accusative or not?

In the Marvel universe, can a human have a baby with any non-human?

Are Finite Automata Turing Complete?

How to determine what is the correct level of detail when modelling?

How to reply to small talk/random facts in a non-offensive way?

Analog is Obtuse!

Should I hide continue button until tasks are completed?

What would Earth look like at night in medieval times?

Is it OK to bottle condition using previously contaminated bottles?

Should I include salary information on my CV?

What is the line crossing the Pacific Ocean that is shown on maps?

Fedora boot screen shows both Fedora logo and Lenovo logo. Why and How?

Do French speakers not use the subjunctive informally?

Can I cast reaction spells like Shield or Counterspell when I'm in the middle of casting a spell with a long casting time and don't stop casting it?

Does Marvel have an equivalent of the Green Lantern?

Does ultrasonic bath cleaning damage laboratory volumetric glassware calibration?

How risky is real estate?

What reason would an alien civilization have for building a Dyson Sphere (or Swarm) if cheap Nuclear fusion is available?



How to implement APP_USER variable in oracle apex


How does database indexing work?How can I prevent SQL injection in PHP?Get list of all tables in Oracle?How do I limit the number of rows returned by an Oracle query after ordering?How do I UPDATE from a SELECT in SQL Server?Dynamic action using date picker in APEX 5.0Referencing oracle apex APP_USERClose modal dialog page and refresh the page Oracle APEXOracle Apex - Download CSV produces an empty reportLinking user accounts to primary key values in Oracle Apex






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I have a teacher table that stores a teacher username, password, id and other things. I have a course creation page and a teacher details page. Currently, when a teacher logs in with their username and password and clicks on the teacher details page, they can see every other teachers details including their own and can edit every teachers details. I want to allow the teacher to only edit and see their details. I know this will involve using the app_user variable but i have no idea how to implement this (would it be a dynamic action or computation). I also dont know what sql expression i would write. If someone could list the steps to do this and the type of code i would need to write that would be appreciated.



Thanks.










share|improve this question






























    1















    I have a teacher table that stores a teacher username, password, id and other things. I have a course creation page and a teacher details page. Currently, when a teacher logs in with their username and password and clicks on the teacher details page, they can see every other teachers details including their own and can edit every teachers details. I want to allow the teacher to only edit and see their details. I know this will involve using the app_user variable but i have no idea how to implement this (would it be a dynamic action or computation). I also dont know what sql expression i would write. If someone could list the steps to do this and the type of code i would need to write that would be appreciated.



    Thanks.










    share|improve this question


























      1












      1








      1








      I have a teacher table that stores a teacher username, password, id and other things. I have a course creation page and a teacher details page. Currently, when a teacher logs in with their username and password and clicks on the teacher details page, they can see every other teachers details including their own and can edit every teachers details. I want to allow the teacher to only edit and see their details. I know this will involve using the app_user variable but i have no idea how to implement this (would it be a dynamic action or computation). I also dont know what sql expression i would write. If someone could list the steps to do this and the type of code i would need to write that would be appreciated.



      Thanks.










      share|improve this question
















      I have a teacher table that stores a teacher username, password, id and other things. I have a course creation page and a teacher details page. Currently, when a teacher logs in with their username and password and clicks on the teacher details page, they can see every other teachers details including their own and can edit every teachers details. I want to allow the teacher to only edit and see their details. I know this will involve using the app_user variable but i have no idea how to implement this (would it be a dynamic action or computation). I also dont know what sql expression i would write. If someone could list the steps to do this and the type of code i would need to write that would be appreciated.



      Thanks.







      sql oracle oracle-apex oracle-apex-5






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 25 at 16:23









      chrisis

      1,4405 gold badges15 silver badges16 bronze badges




      1,4405 gold badges15 silver badges16 bronze badges










      asked Mar 25 at 11:02









      john leonardjohn leonard

      211 bronze badge




      211 bronze badge






















          2 Answers
          2






          active

          oldest

          votes


















          3














          You can use :APP_USER as shown below



          SELECT * FROM some_table WHERE user_id = :APP_USER


          Below link helps you to learn more about it.



          https://docs.oracle.com/database/121/HTMDB/concept_sub.htm#BEIHCJBG






          share|improve this answer






























            0














            you have to use this query in your teacher details region



            select * from teacher_details where user_name = :APP_USER;


            for more details https://docs.oracle.com/database/121/HTMDB/concept_sub.htm#BEIHCJBG






            share|improve this answer

























              Your Answer






              StackExchange.ifUsing("editor", function ()
              StackExchange.using("externalEditor", function ()
              StackExchange.using("snippets", function ()
              StackExchange.snippets.init();
              );
              );
              , "code-snippets");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "1"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55336340%2fhow-to-implement-app-user-variable-in-oracle-apex%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              3














              You can use :APP_USER as shown below



              SELECT * FROM some_table WHERE user_id = :APP_USER


              Below link helps you to learn more about it.



              https://docs.oracle.com/database/121/HTMDB/concept_sub.htm#BEIHCJBG






              share|improve this answer



























                3














                You can use :APP_USER as shown below



                SELECT * FROM some_table WHERE user_id = :APP_USER


                Below link helps you to learn more about it.



                https://docs.oracle.com/database/121/HTMDB/concept_sub.htm#BEIHCJBG






                share|improve this answer

























                  3












                  3








                  3







                  You can use :APP_USER as shown below



                  SELECT * FROM some_table WHERE user_id = :APP_USER


                  Below link helps you to learn more about it.



                  https://docs.oracle.com/database/121/HTMDB/concept_sub.htm#BEIHCJBG






                  share|improve this answer













                  You can use :APP_USER as shown below



                  SELECT * FROM some_table WHERE user_id = :APP_USER


                  Below link helps you to learn more about it.



                  https://docs.oracle.com/database/121/HTMDB/concept_sub.htm#BEIHCJBG







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 25 at 12:15









                  AhamedAhamed

                  2771 silver badge8 bronze badges




                  2771 silver badge8 bronze badges























                      0














                      you have to use this query in your teacher details region



                      select * from teacher_details where user_name = :APP_USER;


                      for more details https://docs.oracle.com/database/121/HTMDB/concept_sub.htm#BEIHCJBG






                      share|improve this answer



























                        0














                        you have to use this query in your teacher details region



                        select * from teacher_details where user_name = :APP_USER;


                        for more details https://docs.oracle.com/database/121/HTMDB/concept_sub.htm#BEIHCJBG






                        share|improve this answer

























                          0












                          0








                          0







                          you have to use this query in your teacher details region



                          select * from teacher_details where user_name = :APP_USER;


                          for more details https://docs.oracle.com/database/121/HTMDB/concept_sub.htm#BEIHCJBG






                          share|improve this answer













                          you have to use this query in your teacher details region



                          select * from teacher_details where user_name = :APP_USER;


                          for more details https://docs.oracle.com/database/121/HTMDB/concept_sub.htm#BEIHCJBG







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered yesterday









                          mohamed subhi bouchimohamed subhi bouchi

                          13 bronze badges




                          13 bronze badges



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55336340%2fhow-to-implement-app-user-variable-in-oracle-apex%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                              용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

                              155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해