the use in the operator not to take value of list item

Hi gurus,
I have four types of employees
such as 'C' for consultants, the from ' for the staffs, 'W' for workers, ('E', the of ',' W') for all types of employees.
I write four queries to show four types of employees.
can it is possible in a single query.

Please guide me...

I wrote this in oracle forms
I took a list item for the workers, I took 'W', for the staffs, I took the of ' consultants, I took 'C' and for all I took 'A '.
my column name is emp_type in (: block.list_item)
but it does not have the value of the list item when the value is emp_type, in('C') etc etc...
same for workers, the staffs.
When he is 'A' it will be emp_type in ('E', the of ',' W')

Please answer...

where did you put that "emp_type in...". "- thing? In the WHERE clause of the blocks? Also, check the value of the SYSTEM. LAST_QUERY after the query has been run.

Published by: Andreas Weiden on 07.07.2011 19:52

Tags: Oracle Development

Similar Questions

  • Difference between the operator NOT EXISTS and NOT IN

    Hi experts,

    I understand that this question has been asked several times, but I would like to have a clear understanding of the following:

    SELECT MEANING FROM FND_LOOKUPS WHERE LOOKUP_TYPE='WIS_WORK_DEFINITION_NAME';
    

    The results are:

    Spare

    Main working definition

    Rework

    Test

    User_Defined_WD

    Check

    I have run this query:

    select work_definition_name from  WIS_WORK_DEFINITIONS WSD WHERE WSD.ORGANIZATION_ID=207 AND WSD.INVENTORY_ITEM_ID=2686;;

    The query gives output below:

    MAIN

    REWORK

    When I run the sub query, I expect no result because the inner query in the NOT IN operator returns a NULL value.

    Query -1: the query is:

    SELECT fl.meaning FROM fnd_lookups fl WHERE fl.lookup_type='WIS_WORK_DEFINITION_NAME' AND fl.lookup_code NOT in
    (SELECT NULL FROM wis_work_Definitions wsd WHERE wsd.organization_id=207 AND wsd.inventory_item_id=2686
    AND  fl.lookup_code=wsd.work_Definition_name);
    

    If the inner query returns null, the query gives the result:

    Spare

    Test

    User_Defined_WD

    Check

    I was under the assumption that if the inner query returns null, then the global query would return no data. Example:

    Query-2:

    SELECT fl.meaning fl fnd_lookups WHERE fl.lookup_type = 'WIS_WORK_DEFINITION_NAME' fl.lookup_code AND NOT IN (SELECT NULL FROM dual);

    The query above pulled out no data as the inner query returned NULL. What I failed to understand was the difference between the query-1 and query-2.

    While Query1 returns data, query-2 not return all the data.

    There is no apparent difference between these two queries, because of the last sentence of your NOT IN query:

    AND fl.lookup_code = wsd.work_Definition_name

    Consider the row where lookup_code = HAND. The NOT IN query is a single line in wis_work_definitions where wsd.organization_id = 207 AND wsd.inventory_item_id = 2686 AND 'MAIN' = wsd.work_Definition_name. If your queries are actually like that for this line:

    SELECT fl.meaning fl fnd_lookups WHERE fl.lookup_type = 'WIS_WORK_DEFINITION_NAME' AND fl.lookup_code = 'MAIN' fl.lookup_code AND NOT in ('HAND')

    SELECT fl.meaning fl fnd_lookups WHERE fl.lookup_type = 'WIS_WORK_DEFINITION_NAME' AND fl.lookup_code = 'MAIN' fl.lookup_code AND NOT in (NULL)

    No one who will return a line, for reasons that are obvious, hopefully.

    Now consider the row where lookup_code = TEST. The NOT IN query finds a no line in wis_work_definitions where wsd.organization_id = 207 AND wsd.inventory_item_id = 2686 AND 'TEST' = wsd.work_Definition_name. A list NOT IN containing no words can be ignored, so the two queries become like this:

    SELECT fl.meaning fl fnd_lookups WHERE fl.lookup_type = 'WIS_WORK_DEFINITION_NAME' AND fl.lookup_code = 'TEST'

    Which returns a line.

    So the effect of these two queries is to return all values except those that appear in that particular (set of) definition (s) of work.

  • Switch poplist display of the list item selected for its value of list item

    Is it possible to change the display in a poplist of the list item to its corresponding list item value?

    For example, I have a list item is filled with a group of records. Name of the country (e.g., Canada) is the list item, and the country code (e.g. CA) is the value of a list item.

    I want users to be able to see the names of countries, when the list is expanded. However, once users choose and click on a country, the country code must be included in the display.

    I suppose that if it is possible to do at all, he would be using a trigger a times-news-point-instance, but I do not know where to go to from there. Please let me know if you need clarification or more information from me. I'd appreciate any help you can give me.

    With the help of Oracle Developer Suite 10 G
    Version of Forms - 9.0.4.3.0

    Hello
    Welcome to the forum,

    Just an idea. Why you do not keep the country with the description at the time code. I mean, it's like you say you query group will be like this...

    SELECT code, description
    FROM table_name;
    

    So, I mean just change this query to concatenate the code with description. for ex.

    SELECT code, code||' - '||description as description
    FROM table_name;
    

    It will show you the code and the name in the list. So, it will not trigger etc.

    -Clément

  • The fluid grid layout cannot resize a list item

    I use Dreamweaver CC checkerboard to fluid.  I inserted the Navigation, then a bulleted list, then a list item.  The list item has no bar menus bit on it to allow me to move, copy or delete the list item.  It also doesn't have the little tab on the right side to allow me to resize the list item.  This all has worked fine until today.  What I am doing wrong?  Or the last download of the dw break something?  Here is the code I use.   Thanks for your help.

    list item.PNG

    Try to remove the personal configuration file as in http://forums.adobe.com/thread/494812

  • How to choose the item value list based on another value of list item

    Hello friends,
    I have two list items named xxx and yyy... OK, my problem is I want to choose a value of yyy list item based on the value of article xxx...

    Example: I select 'Computer' in xxx... Based on this I want to choose the item values in yyy as a monitor, keyboard, mouse, etc... This must be done at run time. How can I do this... Give me a few examples of code [pls tell me trigger appropriate to place this encodings]
    Thanks in advance,
    Battistelli

    Very simple to use the LOV and query of the lov which is attached to the YYY field, use the query as below...

    SELECT columns
    FROM table
    WHERE column_name = :XXX_FIELD
    

    Use the ENTER OF LIST Yes property for the YYY field.

    -Clément

  • How to change the value of list item

    Hi all

    The scenario is like this...

    I have two country and state list item... Now when I select a specific country from the list item... corresponding State will come in the State list item...

    Please help me to solve the problem...

    Thanks in advance.

    T.Halder

    Hamadi,

    In the trigger WHEN-LIST-CHANGE of the list of countries point write,

    DECLARE
         Num_Temp           NUMBER;
         RG_Group_ID RECORDGROUP;
    BEGIN
         RG_Group_ID := CREATE_GROUP_FROM_QUERY('RG_STATE', 'SELECT STATE_NAME, STATE_CODE FROM STATE_TABLE WHERE COUNTRY_CODE = ''' || :CB_COUNTRY || '''');
         Num_Temp           := POPULATE_GROUP(RG_Group_ID);
         CLEAR_LIST('CB_STATE');
         POPULATE_LIST('CB_STATE', RG_Group_ID);
         :CB_MODULE := GET_LIST_ELEMENT_VALUE('CB_STATE', 1);
         DELETE_GROUP(RG_Group_ID);
    END;
    

    Replace the field names, table and and the name of the control according to your requirement.

    Kind regards

    Manu.

    If my answer or the answer to another person has been useful or appropriate, please mark accordingly

  • Changing the values in drop-down list in the event not return current value

    Hello

    I have a combo that I'm filling using javascript according to the post by Brad here http://blogs.4Point.com/Brad.White/2010/03/populate-a-drop-down-with-a-Web-service-in-a-PD e.html .

    I hooked the change event from the drop-down menu to display the new selection in a separate as text box below

    ApplicationForm.Page1.ddlUsers::change - (FormCalc, client)

    txtSelected.rawValue = ddlUsers.rawValue

    This code works, but shows the previous values (or the last) that has been selected in the drop-down list, but not the current value, which has been selected by the user. I also tried to use selectedIndex rather rawValue on ddlUsers but it has the same behavior. "Commit on" from the drop-down list is set to "SELECT".

    Am I missing something here? How can I get the current value is selected in the drop-down list.

    Thank you

    Marie Pascale

    Hi Carole,

    I didn't look at the blog, but the most appropriate property for use with the change event is xfa.event.newText instead of .rawValue.

    Thus, as the Javascript:

    txtSelected.rawValue = xfa.event.newText;
    

    Hope that helps,

    Niall

  • How do I dynamically set values of the pages on a null value when an item is changed

    Hi all

    I am new to Oracle Apex.

    I have P_ITEM1 as a selection and P_ITEM2 also a list selection of value P_ITEM1. (to my condition that I do not use cascading article Parent LOV)

    I submit the page when the P_ITEM1 value is selected then LOV on P_ITEM2 gets refreshed based on the P_ITEM1 value.

    I am train to clear the item previously selected to P_ITEM2 when the value of P_ITEM1 is changed.

    I tried to create a dynamic action on the change on P_ITEM1 event and net Action on P_ITEM2.

    and the dynamic action does not work.

    Thank you.

    -Kumar

    Kumjeeth

    Set the attribute area of the Page to send items to P_ITEM2. He would submit the P_ITEM2 on dynamic action of refreshment.

    Nicolette

  • Is it possible to get the 2nd line in an indented bulleted list item?

    It sounds so terrible! http://pcmcu.avastonetest.com/virtual_branch.html

    I chose to dash the ball more than normal, but even by default they never dash, doesn't it?

    In fact, by default lists them line up properly. Remove the text-indent and use the following (in bold) CSS code.

    .bulletsNorm li {}
    do-family: Verdana, Geneva, without serif.
    do-size: 12px;
    list-style-image: url(images/bullet.png);
    Color: #000000;
    line-height: 20px;
        list-style-position: outside;
    left margin: 45px;

    }

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB

  • How to display the list item values both from 2 different tables?

    Hello world.

    I have a problem for the display of the data.

    There are 2 tables in the database.

    Table-1 has lc_value, lc_no, lc_dt, and vendor_code columns.

    Table-2 has vendor_code, $vendor_name & vendor_address.

    I created the form where I display data in list item 30 (tabular presentation - 30 records displayed).

    I need to display all values automatically at the same time in the form just by clicking on "Enter_Query" and "Execute_Query".

    It worked when the form had fields in a table in a single table.

    I created fields in a table for tables; then created the relationship between the tables by using the join (vendor_code).

    But when I run the form, click on "Enter_Query" and "Execute_Query", its does not work.

    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production.

    How can I do this?

    Help me.

    Thank you.

    Dear Bruno,

    Each provider code is to have a folder, then

    Why keep two tables?

    Why you want to update both the table at the same time?

    Master / detail means,.

    a master record depends on several detail records.

    Please, understand and try to build your form with single table.

    If you have already created 2 tables, then merge these into a single table.

    Or other wise keep table_1 as a database block and to vend_name as a data field (element of database in the palette of the property is set to 'no').

    Then go to the trigger of table_1 block post_query and write the following:

    Select vend_name in: vend_name from vendor_mst where vend_cd =: lc_vend_cd;

    In doing the above, the form will look as you wish but the change on the vend_name not to be saved because that is the point of no database.

    Other than vend_name all fields in table_1 will be recorded.

    Hope this will help.

    Post edited by: Priyasagi

  • What is the value of repeat items only?

    I'm trying to understand the value of repeating only objects. I was hoping to create a list with the editable elements < li > and < li > does not have a tag that is supported for the editable regions. But it is supported as a repeat region. Can someone explain to me, or provide an example of the real world, of why this might be useful to the customer? In other words, why a customer would want the opportunity to move up, down, add, or remove an item, but not be able to change the content of the element?

    Is there a workaround to create a combo box or list items?

    Thank you.

    Hello antlion.

    You can wrap the content of the

  • s in editable divs. You have created your repeating group and applied repeatedly = "true" for the list items, but only InContext Editing allows regions editable on div, th, and td elements.

    In Dreamweaver, select the content of your

  • then choose Insert > InContext Editing > create editable region. Dreamweaver invites you to 'wrap the current selection with a DIV tag and then transform '. Click OK, and then repeat this step for each item in the list. The result will create boxes for your list items, and you look at something like:

  • list item using xml from a django view


    I'm with django to deliver xml from a postgres database files. I have the connection using a HTTPService. I'm not able to get the XML to provide data to a list item.

    The mxml application is below:

    Quote:
    <? XML version = "1.0" encoding = "utf-8"? >
    < mx:Application
    ' xmlns:MX =' http://www.adobe.com/2006/mxml '
    layout = "absolute" >

    < mx:Script >
    <! [CDATA]
    Import mx.events.MenuEvent;
    Import mx.collections.ArrayCollection;
    Import mx.collections.XMLListCollection;
    Import mx.rpc.events.ResultEvent;
    Import mx.controls.Alert;


    [Bindable]
    private var emails: XMLListCollection = new XMLListCollection();
    [Bindable]
    private var units: collection ArrayCollection = new ArrayCollection();

    private void handleLoginClicked(event:MouseEvent):void {}
    svcAccountLogin.send ({username: "admin", password: "admin"});
    }

    private void handleLoginResult(event:ResultEvent):void {}

    trace (Event);
    trace (Event.Result);
    email = Event.Result.allMails.mail;
    Units = Event.Result.allUnits.Unit;

    }
    []] >
    < / mx:Script >

    < mx:HTTPService
    ID = "svcAccountLogin".
    "URL =" http://192.168.1.100:8080/accounts/login /? = / maillog following / "
    method = "POST".
    resultFormat = "xml".
    result = "handleLoginResult (Event)" / >


    < mx:VBox = "76" x y = "62" height = "100%" id = "loginUserPass" label = "Enter Username, password here" >

    < mx:Button id = "submitLoginBtn" label = "Login" click = "handleLoginClicked (event)" / >

    < mx:List id = "mailId".
    number of lines = "1".
    dataProvider = "{mails}.
    labelField = "mailFrom" >

    < / mx:List >
    < / mx:VBox >

    < / mx:Application >
  • Why I can boot into safe mode with internet connection, use the operating system, etc., but can not open a normal session without password administrator; who got the disabled.

    OEM Vista Home Premium. Normal startup does not recognize the password. When you click User icon it says: "your account has been disabled. Please, see your system administrator"I looked in the mirror, but it did not help. Booted, press F8, went in safe mode with network connection. Everything seemed to be there. Surf the internet and then started to ask me why I don't have a password here when I did normal start-up. What is the password? Check "Microsoft Answers", but what I came out which was, I need to reinstall the OS, which I can't do it without a drive anyway.  I thought that I've used it before, I knew the password. This computer has been recently "reinstalled" internal folder 'restore '. Something must happen. A unknown password can be removed from safe mode? Ultimately how reinstall you a clean Vista when all you have is the key to product and no local or OEM support? What would be the difference between a password reset disk and the OS disk.  The two would probably be stored side by side. Not to mention that most of us Dummies want to just surf to buy, and if we can not surf, we cannot buy. Dummies help us get back on the internet, Microsoft. At least take care of this shot.

    Hi PAM,.

    In Safe Mode, try to activate the high administrator account http://www.howtogeek.com/howto/windows-vista/enable-the-hidden-administrator-account-on-windows-vista/.  Then log in using account and use it to solve problems with your normal administrator account login via control panel / user accounts / manage other accounts.  Find the one you want and make the appropriate changes to fix it.  If you can't, then you need to address as a corrupt account by using the following procedure:

    To fix this use http://windows.microsoft.com/en-AU/windows-vista/Fix-a-corrupted-user-profile.  If this is the only available administrator profile (you must be an administrator to solve this problem), activate the hidden administrator account (HAA) (i.e. what you did above, or you can do this by using these instructions instead: http://www.computerworld.com/s/article/9001970/How_to_access_the_true_Administrator_account_in_Windows_Vista?taxonomyId=17&pageNumber=1.)

    Once that is done, don't forget to disable the HAA to save it in case it is necessary once again and for safety reasons (since people often try to hack into systems using this account).  Do NOT use the HAA as your administrator account because if you lose the only administrator on the system account or it is damaged again, then you're watered.

    The fact that it says it is disabled gives me to think that you can use the guest or built-in Administrator account already (as normally, you cannot disable an account, but you can with these two which cannot be deleted and only disabled).

    The password reset disk is only good if created before that you need and only to restore a password, do not to activate a disabled account.  Another thing that goes beyond passwords here.

    A recovery disk allows you to do some advanced options of recovery by booting the disk, but it will help you restore the operating system (or help you with this problem either).

    An Installation of Vista genuinve disc (the operating system drive as you seem to be describing) is a disk that contains the operating system.  That, if it is the original disc supplied with the system and is exactly the same as the product OEM key that you must allow you to do a clean OS install (although I would be first backup you'll pretty much lost everything in the process).  The following should help: http://www.vistax64.com/tutorials/117366-clean-install-full-version-vista.html.

    If you have a factory Conditions or a recovery Partition restore disk, then these are alternatives to a clean install if you don't have this disc.  But the procedure varies according to the manufacturer, make and model of PC.  Most of the manufacturers will allow you to buy these records of restoration (for a fee) If you cannot do it with a recovery Partition cannot create diskettes from the recovery Partition or have no other option.  Visit the support site of the computer for information on this topic, available options, and related costs.

    If you cannot enable the built-in Administrator account and cannot access the system in normal mode with this or another administrator account, then I'm afraid a clean install or restore to factory conditions is your only option.

    I hope this helps.

    Good luck!

  • By dictating the long notes, using Siri, Siri will stop as soon as I take a little break. Therefore, the note ends abruptly. Any solution for this?

    By dictating the long notes on Mac using Siri, Siri will stop as soon as I take a little break. Therefore, the note ends abruptly. Any solution for this?

    For long notes, you are better to use regular old dictation - under Mac OS for a few years now, Siri is not mandatory.

    To activate it, go to "System Preferences"-> keyboard-> dictation. Once enabled, you can press the "Fn" key twice to activate and dictate the long notes in any application.

    Siri is optimized for short, quick things. I don't think that you can change, you just use the method that is better to listen to what you want to do at the time (short notes, using Siri. Long notes, use dictation).

  • Moving backups Time Machine - the operation cannot take place because the backup item is not editable

    I want to change the external hard drive that I use for my time machine backups. I went through the steps listed here:

    Time Machine: How to transfer backups from a current backup disk to a new backup drive - Apple Support

    It seems to work correctly. I shot TM back and adding the new drive. TM is now backing up files on the drive up, but there is a problem.

    For some reason, TM has begun to put backups "freely" for lack of better in the external hard drive, and not in the backups.backupdb folder for a week, then returned to save them in the backups.backupdb > ComputerName > files from backups. So in other words, when you click on the hard drive in the finder, it opens the player and you see a folder named Backups.backupdb and then a bunch of mixed in which files are backups time machine named 2016-01-24-XXXXXX, etc.. When you go to the folder Backups.backupdb, there's a more random "loose" time machine backup file 2016-01-23-XXXXXX, and then another folder with the name of computers and in the folder are all TM backups except loose ones I mentioned earlier.

    It seems that TM is working properly now, but I don't know why he put the files from the first days outside the backup folder. However, when I do drag, I get the error:

    The operation cannot be completed because backup items is not editable

    I want to just put all the files in the right folder so that I can A) keep my disk organized and (B) ensure what TM can find everything correctly should I have to go back.

    No idea what is happening and how to fix it?

    Although the documentation Apple says you can copy Time Machine backups in the Finder, it is very slow and sometimes does not.

    This technique works only if the volume that you copy to the same size or larger that that you are copying to.

    First of all, please open the Time Machine preference pane and click the Select Disk... button. You may be able to unlock the settings first, by clicking on the padlock icon in the lower left corner of the window. Log in as administrator.

    Remove the volume you want to copy in the list of backup destinations. Then turn off Time Machine.

    Launch disk utility, open the built-in Help and search for the term 'Double '. Follow the instructions. All existing data on the destination volume will be deleted. That shouldn't be a problem, because you do not want to mix non-sauvegarde and backup data on the same drive anyway.

    If the volume you are copying has been encrypted by Time Machine, you must first unlock it. Click the release button in the toolbar of the disk utility window.

    Turn Time Machine back on and select the new volume as a backup destination. Alternatively, you can continue to use the old volume, if you wish. Both will be alternated when both are available.

    ATTENTION: If you copy the volume is corrupted, as shown by the ERD or first aid in disk utility, while corruption is copied to the new drive. Do not copy data from a damaged on a faulty disk volume. Put aside the reader and do not use until you don't know that you no longer need the data. Then securely erase it and bring it to a recycling center. Do the same if the restore operation fails with "disk errors."

Maybe you are looking for

  • Satellite Pro L550 - Realtek RTL8191SE Wlan connection issues

    Hello Affected by a big problem with my WLAN connection which is ongoing for about a month.I have problems with a very inconsistent connection. To start, turn on the laptop of its climate 50-50 I'll successfully connect to my internet. Once connected

  • Continuous update of computer after a restart/shutdown

    I have problems with my computer up to date everytime that I arrested him. A couple of weeks he 19 updates installed when I stopped him, since then I have had problems. Love my homepage, Comcast, does not, it just spins. And every time I stopped it i

  • Search for the Explorer of Windows XP does not display option "what do you want to search for.

    When I open the Explorer search in windows XP, the dog still works without the option "what do you want to search for" and other options. How can I solve this problem? * original title - search for windows problem images *.

  • Download Manager changed to Chinese version

    Original title: 2nd corrupt computer o Network Installation Download Manager on my computer, so nothing to download or installs when Chinese programs have been downloaded from the internet to the 2nd computer. Remember - this is a public forum so nev

  • Replacement XP

    Hi all I recently reached a particularly nasty on my main system spyware that my current (paid) protection software cannot get rid of. All of the software drivers etc are up to date prior to infection and I am hated for spending more money on another