Same display and return in a LOV value

Hello

I have a project referenced by change_name name.

I have the table using the values of change_name, now in the shape I want to display the value of change_name can be in a shuttle or the list manager.

The problem, I can not display and return the same value of a LOV.

The code is :-d Select distinct (change_name), separate (change_name) r QLM_project

This code gives me an error message indicating that the display value and the return value has different verses.

Thank you
Rakesh

Hi Rakesh,

It is perfectly possible to have the same performance and display the value in a LOV.
The problem here is your query; It is syntactically incorrect.

Try this query:

select distinct change_name d, change_name r from qlm_project  

Good luck
Nick

Tags: Database

Similar Questions

  • display and return value to the selection list.

    Jin

    I want to display the value in the list of selection from this quary.

    Select student_id in the class_record where class_id =: p1_class_id and SECTION =: p1_section
    less
    Select student_id in the STUDENT_TYPE_DETAILS where class_id =: p1_class_id and SECTION =: p1_section;

    but I want what and name with student_id l_name store in the s_per_det.student table and .f_name is also in this table.


    How to define the display value and return in this quary value using 3rd table s_per_det.


    How can I do that.


    Thank you
    Maury

    Ooh, NEGATIVE... Can you not use a NOT EXISTS in this case, could have a significant impact on the execution plan?

    Something like this maybe?

    SELECT f_name||' '||l_name,
           stundent_id
    FROM class_record a,
         s_per_det b
    WHERE a.student_id = b.student_id
    AND   a.class_id   = :P1_CLASS_ID
    AND   a.section    = :P1_SECTION
    AND   NOT EXISTS(SELECT 'X'
                     FROM student_type_details c
                     WHERE a.student_id = c.student_id
                     AND   c.class_id = :P1_CLASS_ID
                     AND   c.section = :P1_SECTION)
    

    See you soon

    Ben
    http://www.munkyben.WordPress.com
    Don't forget to mark the answers useful or correct ;)

  • LOV - values additional display friendly way

    Hello

    I'm on Apex 4.1.1. I have a form with LOV pop-up on the foreign key field. But this LOV contains only a subset of all records in the foreign table (for example, only free pieces, rooms, etc..) That's why I changed Yes setting "Display additional values" in the LOV properties. My problem is that the extra values are shown only as ID (foreign key) - not in easy-to-use way (as it is by LOV - display and return value). How can I change this?

    Kind regards
    Mateusz

    Mateusz

    Instead of using "Show extra values" to ensure that the additional value is part of the LOV by adding one or to select.
    For example

    select emp.last_name
    ,      emp.employee_id
    from   oehr_employees emp
    where  emp.department_id = 10
    or     emp.employee_id = :pXX_lov
    

    Where pXX_lov is the name of the element of the lov belongs.

    Nicolette

  • Execute and return a value (or object) from another script

    I wish I could have some of the functions of the little that I often use in my scripts, just like seporate scripts. so I can then update in one place and do not copy in every script, I want to use them in.

    I don't know if this is possible at all. But I'd love to be able to just call them and return of their share values somehow.

    for example

    Swatches of color key code, I need:

            var inCutColorCMYK = cmykColor(50, 0, 100, 0);
            var intCutSPOT = makeSwatch("CutIN", inCutColorCMYK);
    

    so I have these functions I have tweeked/found:

       function makeSwatch( swName, swCol) {  
        var doc = app.activeDocument;
        var sel = doc.selection;
        if (!inCollection(doc.swatches, swName)) {  
        var aSwatch = doc.spots.add();  
        aSwatch.name = swName;  
        aSwatch.color = swCol;  
        aSwatch.tint = 100;  
        aSwatch.colorType = ColorModel.SPOT;  
        var aSwatchSpot = new SpotColor();  
        aSwatchSpot.spot = aSwatch;  
        return aSwatchSpot;  
        }else{  
            return doc.swatches.getByName(swName);  
            }  
        };
    
    
    function cmykColor(c, m, y, k) {  
        var newCMYK = new CMYKColor();  
        newCMYK.cyan = c;  
        newCMYK.magenta = m;  
        newCMYK.yellow = y;  
        newCMYK.black = k;  
        return newCMYK;  
        };
    
    
    
    
    function inCollection(collection, nameString) {  
           var exists = false;  
       try{
        for (var i = 0; i < collection.length; i++) {  
            if (collection[i].name == nameString) {  
                exists = true;  
                }  
            }  
        }catch(e){//alert("Illustrator needs drop kicked!!\nPlease restart Illustrator :/\n\n"+e)
            }
            return exists;  
            
          };
    

    in any case! I keep finding my self using functions like that again and again new scripts and hope there is a way to do this!

    Any help is appreciated!

    -Boyd

    You have the file a.jsx, something like myLibrary.jsx, and in it, you can have all the functions for future use. In the file, it can look like this:

    ------------------------------------ Library file -----------------------------------

    #target illustrator

    function MyLibrary() {}

    this.cmykColor = function (c, m, y, k) {}

    var newCMYK = new CMYKColor();

    newCMYK.cyan = c;

    newCMYK.magenta = m;

    newCMYK.yellow = y;

    newCMYK.black = k;

    Return newCMYK;

    };

    function applyFillColorTo (item, color) {}

    item.fillColor = color;

    }

    function CataloguedPathItem (pathItem) {}

    var p = pathItem;

    p.applyFillColor = {function (color)}

    applyFillColorTo (this, color);

    };

    return p;

    }

    this.cataloguedPathItem = {function (pathItem)}

    var p = new CataloguedPathItem (pathItem);

    return p;

    }

    };

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

    And then you can understand and use this file in other scripts, like here:
    -------------------------------------- Script File ---------------------------------

    #target illustrator

    #include 'C:\\Users\\Me\\Desktop\\My Adobe Scripts\\Illustrator\\MyLibrary.jsx.

    function test() {}

    var MyLib = new MyLibrary(); the script library is used as an object - elements of its scope of application are available through point (.) as mylib.myFunction ();

    If (app.documents.length > 0) {}

    var doc = app.activeDocument;

    If (doc.selection.length > 0) {}

    var MonElement = mylib.cataloguedPathItem(doc.selection[0]);

    var mylib.cmykColor (0,100,50,0) = myColor;

    myItem.applyFillColor (myColor);

    }

    } else {}

    Alert ("there is no open document.");

    }

    }

    test();

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

    The colors test script just a pathItem, but it uses functions from the inside of the object of 'library' to power the process. Note that to use the library of color a path implied instantiate this path as a custom which is a 'applyFillColor' method that uses a function of the scope of the library (called "applyFillColorTo") for power. Then, we can not simply the function "applyFillColorTo" use within the scope of the Script file because it is protected by the MyLibrary object.

  • LOV query is not valid, a display and a return value is necessary, column n

    Hello

    I AM FACING
    LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, 
    the first FROM clause in the SQL statement must not belong to the in-line query.
    with two table, I create lov

    the tables are
    CREATE TABLE  "CRM_SALES_DEPARTMENT" 
       (     "DEPT_ID" NUMBER NOT NULL ENABLE, 
         "CUSTOMER_ID" NUMBER NOT NULL ENABLE, 
         "DEPT_CODE" VARCHAR2(50) NOT NULL ENABLE, 
          CONSTRAINT "CRM_SALES_DEPARTMENT_PK" PRIMARY KEY ("DEPT_ID") ENABLE
       )
    CREATE TABLE  "CRM_SALES_CUSTOMERS" 
       (     "ID" NUMBER, 
         "CUSTOMER_NAME" VARCHAR2(255), 
         "CUSTOMER_ADDRESS1" VARCHAR2(255), 
          PRIMARY KEY ("ID") ENABLE
       )
    I USE QUARY
    select (SELECT CS.CUSTOMER_NAME FROM CRM_SALES_CUSTOMERS CS WHERE CS.ID=SD.CUSTOMER_ID) AD D, SD.CUSTOMER_ID R  
    from CRM_SALES_DEPARTMENT SD where SD.DEPT_CODE=:P16_MARKET 
    But who show me LOV query is not valid, a display and a return value is needed, the column names must be
    different. If your query contains a query online, the first CLAUSE in the SQL statement must not belong to the query online.

    How to solve this problem.

    Thank you

    Published by: 805629 on January 10, 2011 03:46

    Published by: 805629 on January 10, 2011 03:58

    Published by: 805629 on January 10, 2011 03:59

    ¿AD?
    Select (SELECTION of CS. CLIENT_NAME CS CRM_SALES_CUSTOMERS WHERE CS.ID = SD. CUSTOMER_ID) AD D, SD. CUSTOMER_ID R
    CRM_SALES_DEPARTMENT SD where SD DEPT_CODE =: P16_MARKET

    But the correct way is a join outher

    select CS.CUSTOMER_NAME D, SD.CUSTOMER_ID R
    from CRM_SALES_CUSTOMERS CS,
            CRM_SALES_DEPARTMENT SD
    where SD.DEPT_CODE=:P16_MARKET
    And CS.ID(+)=SD.CUSTOMER_ID
    
  • If I have the two LOV in the same table then how to connect when I select first and second LOV value also change?

    Mr President

    If I have the two LOV in the same table then how to connect when I select first and second LOV value also change?

    My two fields are FLOW AND DR_NAME

    FLOW = ACCT_ID

    DR_NAME = ACCT_NAME

    I created with success of LOV for these fields.

    First LOV gives acct_id in the debit field and second LOV gives the value of acct_name to dr_name.

    How can I report these lov, it's that when I change my acct_id then acct_name also change

    I have these two tables

    CREATE TABLE "NOM"  (
      "ACCT_ID" VARCHAR2(7) NOT NULL ENABLE, 
      "ACCT_NAME" VARCHAR2(50) NOT NULL ENABLE, 
      "O_BAL" NUMBER(13,2),
      CONSTRAINT NOM_PK PRIMARY KEY ("ACCT_ID")ENABLE
       
       );
    CREATE TABLE "VOUCHERDET" (
      "V_ID" VARCHAR2(9) NOT NULL ENABLE,
      "LINEITEM" NUMBER ,
      "DEBIT" VARCHAR2(7) , 
      "DR_NAME" VARCHAR2(50), 
      "CREDIT" VARCHAR2(7) , 
      "CR_NAME" VARCHAR2(50), 
      "PARTICULARS" VARCHAR2(100), 
      "AMOUNT" NUMBER(21,2),
    CONSTRAINT VOUCHERDET_PK PRIMARY KEY ("V_ID","LINEITEM")ENABLE, 
    CONSTRAINT PUR_SAL_LINE_POD_FK FOREIGN KEY(PROD_ID)
      REFERENCES PRODUCTS (PROD_ID)ENABLE,  
    CONSTRAINT VOUCHERDET_DEBIT_FK FOREIGN KEY ("DEBIT")
       REFERENCES "NOM" ("ACCT_ID") ENABLE, 
    CONSTRAINT VOUCHERDET_CREDIT_FK FOREIGN KEY ("CREDIT")
       REFERENCES "NOM" ("ACCT_ID") ENABLE,  
    CONSTRAINT VOUCHERDET_V_FK FOREIGN KEY ("V_ID")
       REFERENCES "VOUCHER" ("V_ID") ON DELETE CASCADE ENABLE
      );
    
    

    Concerning

    so, instead of this second ActId, choose ACCT_NAME:

  • Compare multiple columns and return a different value

    I have more access to excel and I'm running my previous workflow in numbers of duplication of issues.

    I have a worksheet when a sheet with all my power tools.  On the "Power Tools" sheet I have columns for the brand, Type, model, purchase date, etc...  An example of this would be: pass a "DEWALT", "Jackhammer" Col B, Col C "DCD995M2" and so on.

    I have a second sheet in the same document which is my front end if you want.  I wanted to have selections for this dynamic drop-down list but it seems it is not possible without scripts, but is not the immediate question yet I'm the mention the case where someone knows a good fix.  The second sheet "Sorting Test", I created manually drop-down boxes, one in column A of the brand and the other in column B for Type.  I'll choose the brand and type and I want numbers autofill the rest of this line based on these two selections.

    Example:

    In the 'Sort Test' sheet I select DEWALT in column A and I select the drill in column B and I want DCD995M2 is displayed in column C and the purchase date in column D and so on.

    Excel in it would be a game table or something similar.  So far every site and search google only gave a lot of people who try to do VLOOKUP or correspond to errors, but I've really met anyone corresponding to two distinct cells from two separate columns and return data from this same line a match was found on.

    I must also mention I'm really trying to avoid adding a hidden line that combines some of these but I know it's the most noticeable work around.

    Basically, I want to match two selections separated against two separate columns, and when it finds the match, I want it returns a different value of this corresponding line how I got everything just copy this formula on adjacent cells and simply adjust to the column in the same row matched.

    I know that I shouldn't do this on separate sheets, but it's just a choice that I made a point of design.

    Any help would be appreciated, because I'm trying to really get the most out of the numbers, especially with how it syncs between desktop and mobile and I have more access to Excel.

    You can it as what you do and why?  This will help us understand what drives the design.  Leave out how to solve the problem,

    also post screenshots can be very useful

  • create popup LOV values depends on the return values of select tabular list

    Hello

    My requirement is

    In a table, first column is selection list and second column is LOV Popup.

    I want to create if select user from the selection list value 'A' then displays the popup LOV values.

    If the user selects 'B' values in the select list and then display nulls within the popup LOV.

    Kind regards

    Arianne.

    Hi ujwala1234,

    ujwala1234 wrote:

    In a table, first column is selection list and second column is LOV Popup.

    I want to create if select user from the selection list value 'A' then displays the popup LOV values.

    If the user selects 'B' values in the select list and then display nulls within the popup LOV.

    Use the Popup LOV cascading given by Jari wool in this blog: Blog APEX of Jari: pop-up list of the 'waterfall' Article on slot form of

    Write your Popup LOV query such as if, 'A' is selected it returns other values it will return null value.

    Kind regards

    Kiran

  • passing two values in a guest column for the display and filtering

    Hi all

    Is there a workaround solution to use two columns in a command prompt to display and the passage of the input for a prompt value in dashboard prompt value? For example we want to display the description in the command prompt, but pass the variable value or the presentation of the filter id, just as we have in bi publisher, LOV automatically enter the value both for the display and the actual value to pass to the query. Therefore, the user clicks the description and corresponding id will be stored in the variable presentation of the guest of.

    Thank you

    Sushil

    Published by: 872073 on April 5, 2013 11:06

    Check this box
    http://www.rittmanmead.com/2010/08/Oracle-BI-EE-11g-handling-double-columns-iddescription-interoperability/

  • LOV value to present the field order LOV/text multi by return value!

    I have nested LOV and return the value reduced to another text/LOV field in good order.

    My problem,
    The text field or return value LOV must be dispay with one by an order of values by (dynamic) .the I using the query in each source LOV.
      select DMS_DD_ENG_DESC dis, DMS_DD_ID ret from DMS_DEPT_DETAILS 
    where DMS_DD_DT_REF_ID=:P3_DETAILS
    
    Workspace          :RAM_R&D
    User Name/Password :aramani/apex
    App                http://apex.oracle.com/pls/apex/f?p=36167:3
    I do dynamic action for this case?

    can someone help me please.
    Thank you
    RAM

    Hi Ram,

    I changed your application and I think it works as desired.
    I don't know if it exactly what you need, but take a look and let me know.

    Kind regards
    Kees Vlek
    -----
    Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66

    If the answer to question please change replied and mark the appropriate post as correct / helpful.

  • Using the application process, I need display CITY_NAME and return CITY_CODE

    Hello

    I have little problem .i have created an application process
    BEGIN
      OWA_UTIL.mime_header ('text/xml', FALSE);
      HTP.p ('Cache-Control: no-cache');
      HTP.p ('Pragma: no-cache');
      OWA_UTIL.http_header_close;
    htp.prn('<data>');
       HTP.prn ('<select>');
       HTP.prn ('<option value="' || 1 || '">' || '- Select City -'|| '</option>');
    FOR c IN (select CITY_CODE ,STATE_CODE   from CITY_MAS where STATE_CODE =:SELECT9)
    LOOP
      HTP.prn ('<option value="' || c.CITY_CODE || '">' || c.CITY_CODE  || '</option>');
       END LOOP;
    
       HTP.prn ('</select>');
    htp.prn('</data>');
    
    END;
    i have two Item 
    
    P1_STATE_NAME Select List 
    
    select STATE_NAME D, STATE_CODE R from   STATE_MAS 
    
    P1_CITY_NAME
    
    select CITY_NAME D, CITY_CODE R from CITY_MAS
    My Table are
    Table for STATE 
    
    CREATE TABLE  "STATE_MAS" 
       (     "STATE_CODE" VARCHAR2(3) NOT NULL ENABLE, 
         "STATE_NAME" VARCHAR2(50) NOT NULL ENABLE 
         
       )
    /
    
    
    ------------
    
    Table For CITY
    
    CREATE TABLE  "CITY_MAS" 
       (     "CITY_CODE" VARCHAR2(3) NOT NULL ENABLE, 
         "CITY_NAME" VARCHAR2(1000) NOT NULL ENABLE, 
         "STATE_CODE" VARCHAR2(3) NOT NULL ENABLE 
         
     )
    /
    When I select the name state select and city name of the list has changed with CITY_CODE AS the SEA, GUJ, MOM. CITY_CODE display in the selection list.

    I want Francisco in select cities list and return the value CITY_CODE

    I want when I select the name of the State of list select State then CITY_NAME should be enter in list to select the city names and CITY_CODE to return in to Table.

    I try this with in the last two days, but I can't.

    Please tell me how I can do this.


    Thank you

    Published by: 805629 on January 12, 2011 06:41

    Published by: 805629 on January 21, 2011 12:01 AM

    This is an old blog post which explains step by step. It is for cascading selection lists and must be exactly what you are looking for
    AJAX cascading select list in APEX

  • Sometimes a web page is displayed with only text and no picures. It is not always the same site and is not always the case. If I'm going to explore for the same website that always works

    Sometimes a web page is displayed with only text and no picures. It is not always the same site and is not always the case. If I'm going to explore for the same website that always works

    Hello

    Also try a Ctrl + F5 refresh. This allows to bring the content of the page again.

  • FrameMaker 2012 or 2015 tab and returns Soft displayed as numbers

    In Framemaker 2012 or 2015, how will we change the tab and returns soft characters is displayed as numbers?

    Thank you
    Rich

    You see these numbers when you have the view > text option enabled symbols, but otherwise the required action (tab or soft return forced) happens?

    If so, then it could be that the fm5font.ttf in your \fminint file is missing or damaged.

  • Are working day following or collect and return expenses, the same?

    Hello

    When I bought an XPS 13 (2015), the announcement said NBD, I just checked my status of the warranty on the dell site and he says collect and return.

    Are they the same?

    I'm looking, to extend the warranty but not sure that such extensions exist.

    Thank you

    NBD is on-site, next business day.  To collect and return costs is repair - they send a box, you ship the system and he returned to 7-10 working days later.

  • Property not found on flash.display.Loader charger and there is no default value

    Hi, I want to drag a single image of set of images loaded via xml, but it is showing an error.

    ReferenceError: Error #1069: property not found on flash.display.Loader charger and there is no default value.

    "hand / mouseDownHandler ()" thanks in advance...

    XML

    /////////////////////////////////////

    <? XML version = "1.0" encoding = "utf-8" standalone = "yes"? >

    < GALLERY >

    < IMAGE THUMB = "photo_tb/pic1.jpg" / > "

    < IMAGE THUMB = "photo_tb/pic2.jpg" / > "

    < IMAGE THUMB = "photo_tb/pic3.jpg" / > "

    < IMAGE THUMB = "photo_tb/pic4.jpg" / > "

    < / GALLERY >

    /////////////////////////////////////////////

    package

    {

    import flash.display. *;

    import flash.events. *;

    flash.net import. *;

    import flash.display.Sprite;

    import flash.display.Loader;

    import flash.events.MouseEvent;

    main/public class extends MovieClip

    {

    private var levelXML:XML;

    private var myLoader:URLLoader;

    private var my_images:XMLList;

    private var my_total:Number;

    private var my_thumb_width:Number;

    private var container_mc:MovieClip;

    private var my_mc:MovieClip;

    public void main()

    {

    levelXML = new XML();

    var XML_URL:String = "data / data.xml."

    var myXMLURL:URLRequest = new URLRequest (XML_URL);

    myLoader = new URLLoader (myXMLURL);

    myLoader.addEventListener (Event.COMPLETE, lanceApp);

    }

    private void startApp(e:Event):void

    {

    var myXML:XML = new XML (e.target.data);

    my_images = myXML.IMAGE;

    my_total = my_images.length ();

    createContainer();

    callThumbs()

    for each {(var niveau: XML dans levelXML.level)}

    trace (Level.leveltitle);

    trace (Level.identifyme);

    //}

    }

    private function createContainer (): void

    {

    container_mc = new MovieClip();

    container_mc.x = 50;

    container_mc.y = 50;

    my_mc.x = 100

    my_mc.y = 100

    addChild (container_mc);

    }

    private function callThumbs (): void

    {

    trace (my_total)

    for (var i: Number = 0; i < my_total; i ++)

    {

    'loader_' + i

    my_thumb_width = 100

    var thumb_url = my_images[i].@THUMB;

    var thumb_loader = new Loader();

    thumb_loader. Load (new URLRequest (thumb_url));

    thumb_loader.contentLoaderInfo.addEventListener (Event.COMPLETE, thumbLoaded);

    thumb_loader. Name = i;

    thumb_loader.x = (my_thumb_width * I);

    }

    }

    private void thumbLoaded(e:Event):void

    {

    var my_thumb:Loader = Loader (e.target.loader);

    container_mc. AddChild (my_thumb);

    my_thumb.contentLoaderInfo.removeEventListener (Event.COMPLETE, thumbLoaded);

    Sprite: var loader = Loader (e.target);

    var my_thumb:Loader = Loader (e.target);

    trace (my_thumb)

    my_thumb.addEventListener (MouseEvent.MOUSE_DOWN, mouseDownHandler);

    my_thumb.addEventListener (MouseEvent.MOUSE_UP, mouseUpHandler);

    }

    private void mouseDownHandler(e:MouseEvent):void {}

    var my_thumb:Loader = Loader (e.target.loader);

    container_mc. AddChild (my_thumb);

    e.target.startDrag ();

    }

    private void mouseUpHandler(e:MouseEvent):void {}

    trace ("mouseUpHandler");

    var sprite: Sprite = Sprite (event.target);

    sprite.removeEventListener (MouseEvent.MOUSE_MOVE, OnMouseMoveHandler);

    sprite.stopDrag ();

    }

    private void mouseMoveHandler(event:MouseEvent):void {}

    trace ("mouseMoveHandler");

    event.updateAfterEvent ();

    }

    }

    }

    In your function mouseDownHandler target you 'e.target.loader', however, e.target is a Loader and Chargers have no property loader.

    private void mouseDownHandler(e:MouseEvent):void {}

    var my_thumb:Loader = Loader (e.target.loader);

    Try just "e.target" instead since this should be your code is looking for.

    var my_thumb:Loader = Loader (e.target);

    Although you might find you need to use "e.currentTarget" instead since e.target can point to the content of the loader instead of the charger itself

Maybe you are looking for