Fill in the select list with two different queries depending on the user's group

Hello

I finished my first production application using apex. I have a Select list that takes its values from a sql query. Now, I want this different query for each user based on the group. Basically each user sees only the projects they are responsible - that works fine. But I want all the people of the admin group to see all the projects - how can I do this?

Thank you very much!!!
Henrik

Hello

Try this

SELECT s.caption || ' - ' || s.sapnr display_value
      ,s.sharedservice_id return_value
FROM   sharedservices s, sharedservicelead l
WHERE  (   s.sharedservicelead_id = l.sharedservicelead_id
        OR s.ssldeputy_id = l.sharedservicelead_id
       )
AND    l.username = :app_user
UNION
SELECT s.caption || ' - ' || s.sapnr display_value
      ,s.sharedservice_id return_value
FROM   sharedservices s
WHERE  HTMLDB_UTIL.get_groups_user_belongs_to(:APP_USER) = 'capacitymanagement'

See you soon

Ben

Tags: Database

Similar Questions

  • Two Select lists with Submit single page branching to different page each?

    Hi all

    I have a page (No. 1) with two 'select list with Submit"(A and B). This page contains also two branches defined. I want to realize that the first list selection with present (A) would always use the first branching (at page n ° 2) and the select list a second with the submit (B) would use the second fork (at page no. 3).

    How can I achieve this? Y at - it a tutorial describing lists of selection and the ramifications?

    Thank you for your time.

    Daniel

    When the selection list submits the page, the value of "motion" is the name of the selection list item. So all you need to do is add a condition to each Directorate-General: Request = Expression 1 and enter the name of the element (top) in the field of 1 the condition Expression.

    Scott

  • LOV selection list with submit the value Null

    I have a select list with submit in which another fileld fills based on the selection. I have the TEXT Null in the LOV "Select Vendor" value but I do not know how to set the Null VALUE, while I get this error:

    ORA-01722: invalid number
    Calculation of default value of the element of error ERR-1019: page = 2 name = P2_VEND
    Ok

    I tried the following to the default value of the select list with submit without result:
    Replace (: P2_VEND, '%' | 'null %', null)

    Thanks in advance.

    Hello

    You can set the NULL value - 1 (or any other provider code which may not exist).

    Greetings,
    Roel

    http://roelhartman.blogspot.com/

  • Simultaneous use of Berkeley with two different environment

    I try to use Berkeley with two different environment at the same time in a single program. But I get an error of databases that have been left open. The first environment to close with no error, but the 2nd environment, having an error like that,

    Exception in thread "main" java.lang.IllegalStateException: no closed database: element_primary_key_index\\192.168.150.211\glassfish3\Berkeley\environment\Testing11
    Cavities not clogged database: class_catalog\\192.168.150.211\glassfish3\Berkeley\environment\Testing11
    Cavities not clogged database: element_database\\192.168.150.211\glassfish3\Berkeley\environment\Testing11
    Left open databases: 3

    at com.sleepycat.je.Environment.close(Environment.java:383)
    at com.svi.tools.gfs3v10domain.database.GFS3v10ReadWriteDatabase.closeUpload(GFS3v10ReadWriteDatabase.java:155)
    at com.svi.tools.gfs3v10domain.GFS3v10Domain.closeReadWrite(GFS3v10Domain.java:160)
    at com.svi.tools.gfs3v10.util.GFS3v10UploadUtil.closeUpload(GFS3v10UploadUtil.java:97)
    at com.svi.tools.gfs3v10.GFS3v10.closeUpload(GFS3v10.java:115)
    at com.svi.tools.gfs3v10uploader.util.Uploader.uploadFiles(Uploader.java:89)
    at com.svi.tools.gfs3v10uploader.GFS3v10Uploader.mainMethod(GFS3v10Uploader.java:109)
    at com.svi.tools.gfs3v10uploader.GFS3v10Uploader.main(GFS3v10Uploader.java:52)

    Please someone help me with my problem. Thanks in advance.

    >
    Private Shared StoredClassCatalog classCatalog;
         
    /**
    * Item Database.
    */
    private static database elementDatabase;
         
    /**
    * The item database primary key.
    */
    private static database elementByPrimaryKeyDatabase;
         
    private static database catalogDatabase;
    >

    These fields are static - they are globals - if you crush them when you open the 2nd environment.
    -mark

  • When selecting a "select list with redirect', all variables are losing value

    I have a form where a field (: P38_CUSTOMER_ID) receives its value from the parent report and it appears as: "display text (saves the State)).".

    I have 2 fields from selection list. The first (: P38_COUNTRY) is shown in the form "select list with redirect.
    As soon as I select the value (name of the country) in this list box, I lose the value: P38_CUSTOMER_ID.

    An idea on what I need to do to ' P38_CUSTOMER_ID to avoid losing its value?

    Thanks in advance.

    You are welcome. There are many options to choose from ;-)

    Be sure to note the answers as people only get points if you do.

    Thank you
    Dimitri

  • How to display data that filled by the user after you send the form?

    Right now I am doing a project on the e-complaint, can someone help me how to view the data that have been filled by the user based on the submitted form which also displays the primary key for the reference of the user.

    Here is my form code:

    <?php
      if(isset($_POST["compSubmit"])){
    
      $category=$_POST['category'];
      $typeDamage=$_POST['typeDamage'];
      $serial=$_POST['serial'];
      $location=$_POST['location'];
      $description=$_POST['description'];
      $name= $_SESSION['sess_nama'];
      $SiD=$_SESSION['sess_sID'];
      $Course= $_SESSION['sess_Course'];
    
    
      $con=mysql_connect('localhost','root','') or die(mysql_error());
      mysql_select_db('kktm') or die("Cannot select DataBase");
    
    
    $sql="INSERT INTO complaint2(Name,ID,Department_Course,Category,Type_Damage,Serial,Location,Data_Time,Complaint,Status,Report) 
    VALUES ('$name','$SiD','$Course','$category','$typeDamage','$serial','$location',NOW(),'$description','Pending','')";
      $result=mysql_query($sql);
      }else {
      echo "Fail to Complaint!";
      }
      ?>
    

    I hope someone can help me with this...

    Thank you.

    You use the deprecated mysql connection. YOU NEED to SWITCH TO MYSQLI OR PDO.

    You also do not have a data validation and remediation. You really need to.

    But to answer your question, you can add the following code:

    ECHO '.

    ";

    print_r($_POST);

    echo "

    ";

  • Invoke an adapter on the change of the coordinates of the user's group membership

    Hello

    I need to invoke an adapter on the change of the coordinates of the user's group membership. I am not able to understand where I can call him my adapter.

    Does anyone have any idea on this?

    -Another Question: what is the purpose of having "tcUSRautoGroupMembership" as an object of the user on the updated Post. Would be nice if you give some details on this task.


    -Hardew

    You can try using "User Groups.User Members" in the DOM? I would like to know if it works.

    -Aman

  • How to associate the same contact with two different accounts to import

    Hello

    (1) I want to associate the same contact (ex: person) to two different accounts (account A and account B) import.

    I tried with the Unique ID from outside Contact but it is accidental and in the end, I am able to associate this Contact with a single account.



    (2) I also can't records to import custom object with the same name through the import process.



    Could someone advice on the same.

    With regard to your questions:

    (1) currently, it is not possible using the Import Wizard. However, it could be done using web services.
    (2) the name must be different.

  • How to mount the afp share with two different users

    I use Terminal to mount three actions of my SIN.  I want to mount a mount point in my user folder.  One of the actions has a user name and password, so that the other two mount as a guest.  I can ride through Finder > to connect to the server without any problem, but this goes to /Volumes and not in my user folder and also indicates the actions on my desk.  I use to get the following:

    mount_afp o nobrowse 'afp://username:password@Servername/Share1' ~/Mount point/folder 1 /.

    This example goes up the part properly, but when I run the following command:

    mount_afp o nobrowse 'afp://Servername/Share2/' ~/Mount point/folder 2 /.

    I have the following error:

    mount_afp: AFPMountURL returned error-5023, errno is-5023

    This happens if I invert the controls as well, for example to get the comments share first, then the part of the user.

    Am I missing something?  I can't get different actions for different credentials?

    OS X has no Linux - bind option that allows multiple points of Assembly of nickname for the same file system.

    OS X allows a file system mounted only once.

    I suggest you get the file normally, system create an OS X Alias, can put copies of this Alias in the account of each use.

    And/or create symbolic links that point to the real mount point.

  • Tile of handle with two different names in the Apex 4.2

    Hi all

    We designed the application based on regions HTML as shown below

    1. when the page loads designed using the IR report, in which we are displaying create button & edit icons.

    2. When you click on create button us will be re - direct to new page where I had mentioned tile as 'Creating new product', in which all the elements on this page are new.

    3. When you click on edit the icons that we will be redirected to the same page, but in what we are displaying existing values based on the source.

    Now in this scenario, when the user clicks on the icon title should be "Existing product Editing" and when click on create the button title should be "creating new product."

    Kind regards

    Sruthitamiri

    Sruthi Tamiri wrote:

    We designed the application based on regions HTML as shown below

    1. when the page loads designed using the IR report, in which we are displaying create button & edit icons.

    2. When you click on create button us will be re - direct to new page where I had mentioned tile as 'Creating new product', in which all the elements on this page are new.

    3. When you click on edit the icons that we will be redirected to the same page, but in what we are displaying existing values based on the source.

    Now in this scenario, when the user clicks on the icon title should be "Existing product Editing" and when click on create the button title should be "creating new product."

    It is very simple and has been repeated several times in previous discussions.

    1 create a display only element to hold the dynamic title. Save Session State Yesvalue and the Type of Condition Never so that it is not rendered on the page.

    2. Add a calculation by pressing the point before the header with the Expression PL/SQL type to set the title based on the existence of a primary key value. No PK value will be existing for a request to create, but is present when an existing line is selected for editing.

    case
      when :p6_product_id is null
      then
        'Creating New Product'
      else
        'Editing Existing Product'
    end
    

    3 change the attribute title of page to be a reference to static substitution to the element of the title page:&P6_TITLE.

  • Need to query the result with two different of a same attribute values

    Hi all

    I have a search query where I need the query result when an attribute have two different values (e.g.: want the query result when the attribute 'status' is equal to 1 and 2)

    And also, the user will be able to search by any State result.

    What is the best way to implement this.

    Thank you
    DK

    The solution to this use case is to put the part by default ((statut == 1 ou statut == 2) and: bindUserInput is null) as part of the query and the Pratt of the query to run when a value is entered by the user in a view criteria. East view criteria (Status ==: bindUserInput) and the value of the checkbox to ignore the values null. If the binding variable: bindUserInput is null, only the portion of the query is running, if the binding variable is not null, the display criteria is added at the request of three and three default components will not return any line.

    Timo

  • Can a selection list cause two lists of parent of Cascade?

    4.2.1

    THM:2

    Hello world

    I have two regions

    Region 1 has a selection list and a text called order box and category of the order. There could be several orders in a category. When I choose a selection list order, he fills the text box with the corresponding category by using dynamic "SetValue".

    Now, I also want the second region that has an another LOV orders, fills only order_ids not selected in region 1 LOV however, it should show only other orders in the same category.

    So something like select commands from P4_ORDERS1 where category and <>P4_ORDERS order_id = P4CATEGORY

    But seems to not work. I created this on Apex

    https://Apex.Oracle.com/pls/Apex/f?p=64292:4

    workspace: ryansun

    user: [email protected]

    PWD: ryansun123

    Ideally, when I select the No. 1 of the order of P4_orders, P4_ORDERS1 should show 4 for the other order_ids, that p4_orders1 will be null.

    Thank you

    Take at look at page 5 and 6.

    Page 5 the query for the LOV P5_ORDERS1 was modified to use the value of P5_ORDERS.  Not really necessary to include the value of P5_CATEGORY

    Page 6 the parent element is P6_CATEGORY for the LOV is updated when the value of P6_CATEGORY is modifed by the dynamic Action.  Dynamic Action will present the P6_ORDERS value in session state to be used by the LOV P6_ORDERS1.

    As for the original question in the title, a list of selection may have two lists of parent of cascade? The answer is Yes.  You can include 2 (separate control) in the area of the waterfall LOV article Parent (s).

    -Jeff

  • try to set up a home network with two different operating systems.

    My mother has a desktop in Vista and two laptop computers, 1 on Vista and XP 1. the office is connected to the internet and has a wireless modem. the two laptops are wireless connections and both can connect to the internet using the wireless. The printer is connected to the desktop computer and file/printer sharing enabled. I can't connect to a home network.

    Home both my desktop and my laptop are Windows 7 and both are connected to the home network and I can share my printer. I can't seem to find the right/instructions buttons to connect his and do his work. Any suggestions?

    I tried to run the tutorial "set up a home network" and solve problems, but since they are different versions that the buttons are not in the same place and are marked differently.

    Hello

    This"the desktop computer is connected to the internet and a wireless modem" , is not clear.

    To have a coherent network, the Modem is connected to the network, the router must be connected next Modem WAN, and the wire from the computer or the wireless must be connected to the router.

    -------------------

    In general.

    For the best newspaper of the results of each computer screen system and together all computers on a network of the same name, while each computer has its own unique name.

    http://www.ezlan.NET/Win7/net_name.jpg

    Make sure that the software firewall on each computer allows free local traffic. If you use 3rd party Firewall on, Vista/XP Firewall Native should be disabled, and the active firewall has adjusted to your network numbers IP on what is sometimes called the Zone of confidence (see part 3 firewall instructions

    General example, http://www.ezlan.net/faq.html#trusted
    Please Note that some 3rd party software firewall continue to block the same aspects it traffic Local, they are turned Off (disabled).
    If possible, configure the firewall correctly or completely uninstall to allow a clean flow of local network traffic.

    If you end up with the 3rd party software uninstalled or disabled, make sure that Windows native firewall is active .

    ------------------------------

    Vista file and printer sharing - http://technet.microsoft.com/en-us/library/bb727037.aspx

    Windows XP file sharing - http://support.microsoft.com/default.aspx?scid=kb;en-us;304040

    In Win XP Pro with simple sharing Off, you can visually see the Permission/security level and set them up at your convenience.

    http://www.Microsoft.com/windowsxp/using/security/learnmore/AccessControl.mspx#securityTab

    Sharing printer XP - http://www.microsoft.com/windowsxp/using/networking/expert/honeycutt_july2.mspx

    Setting Windows native firewall for sharing XP - http://support.microsoft.com/kb/875357
    Windows XP Patch for sharing with Vista (no need for XP - SP3) - http://support.microsoft.com/kb/922120

    When you have finished the configuration of the system, it is recommended to restart everything the router and all computers involved.

    -------------

    If you have permission and security issues with Vista/Win7, check the following settings.

    Point to a folder that wants to share do right click and choose Properties.

    In the properties

    Click on the Security tab shown in the bellows of the photo on the right) and verify that users and their permissions (see photo below Centre and left) are configured correctly. Then do the same for the authorization tab.

    This screen shot is to Win 7, Vista menus are similar.

    http://www.ezlan.NET/Win7/permission-security.jpg

    The Security Panel and the authorization Panel, you need to highlight each user/group and consider that the authorization controls are verified correctly.

    When everything is OK, restart the network (router and computer).

    * Note . The groups and users listed in the screen-shoot are just an example. Your list will focus on how your system is configured.

    * Note . All the users who are allowed to share need to have an account onall computers that they are allowed to connect to.

    Everyone is an account, that means a group of all users who already have an account now as users. It is available to avoid the need to configure permission for each on its own, it does not mean all those who feel that they would like to connect.

    Jack - Microsoft MVP, Windows networking. WWW.EZLAN.NET

  • AJAX select list with checkbox cascading

    Hello

    I point the selection and dependent check list item on a form. When a user selects a selection list value, this value must be used in the query for the checkboxes to filter this value while displaying the boxes with the AJAX implementation. any ideas are appreciated.

    Kind regards
    Surya

    Or a slightly different version:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:236

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • 5508 interfaces with two different switches configuration

    Hello

    I have a 5508 WLC and two 4507 switches that are configured in HSRP.

    Now, I want to configure 5508 interfaces:

    If I want to configure management interface, I need the physical port card

    Question: How can I correspond to two physical port that are connected to two different chassis?

    Configuration interface AP-Manager's optional?

    in this scenario, I'll have to divide AP traffic between two switches (EQ. Assume that 10 aps are, I want to connect to a switch and another 5 to another switch 5).

    How to divide?

    Please guide me to configure the interface in this scenario...

    I have with your answer.

    Hi Vinod,

    Wasn't this already answered here: https://supportforums.cisco.com/thread/2052962 ?

    HTH,
    Tiago

    --

    If this helps you or answers to your question if it you please mark it as 'responded' or write it down, if other users can easily find it.

Maybe you are looking for

  • adjust frame numbers 3.6.2

    I'm under 3.6.2 numbers on my Mac with El Capitan. I want to adjust the exposure of some of the images of certain cells. I found this Apple info below, but there is NO Picture tab. I found a picture tab to set under VIEW, but it is grayed out.  Can I

  • Transfer photos from the ipad

    My mini Ipad was synced with my mac I erase and sold. I have all my photos on my ipad but not in Icloud. (30 GB of photos) Is there a way I can recover the pictures? If I click on synchronize with Icloud will it delete all my photos and keep only abo

  • C7280 - cannot scan. Error message indicates another program has control over the device

    I open the HP Device Manager to do a scan. I accepted the parameters and the scanning started. But the part passing through the analysis, I stopped the scan that I realized that I wanted to change the resolution. I leave the Manager device and reboot

  • Could not find the game Freecell

    Original title: "Freecell" card games Sorry, but I'm looking for Freecell card game and don't see any.More I try to get Mahjong and keep the error message and to get my purchase failed and try again I did several times with the same message. Please c

  • Uncdms.dll could not be found.

    The application has failed to start because uncdms.dll was not found.  Reinstalling the application may fix this problem.  Recommendations to remove the Windows Desktop Search of add/remove programs might work if I had it on the list of programs, but