LOV and return value

Hello

I have a lov and the return value of this lov is assigned to a formval. I have a Viewobject VO1 which is attributed to the return values of point LOV. After selecting a value from the lov, I am tring to get the return value later of the viewobject Vo1 but he still presents as null.

Don't know how to get the return value. Any help is appreciated.

Thank you

KK

KK,

That's what I understood.

You have a LOV which has 2 lovMaps, it returns the field of LOV and 2 returns the value for the FormValue field.

The formValue field is mapped to an attribute of the VO.

After you select the value from the LOV, you try to get the value returned to the FormValue using the VO attribute attached to the value of the shape.

How are you trying to access the value and where?

See you soon

AJ

Tags: Oracle Applications

Similar Questions

  • LOV, not return values more some limit

    Hi guys,.

    I created 2 fields of research (State, region) in report page. Two of them are based LOVs. The user select the first value in the field, the next field LOV return values based on the first field (AJAX call). First field is States as "VIC", "NSW", "HIS" etc., next field is 'Space'. When I select State other than "NSW" in the State field and then the next field is filled with success. But when I select the State as 'NSW' then the next field is empty. "NSW" State has made more than 100 in the table (LOV based on), but other States have even less than 10 records. When I remove "NSW" (more than 50) documents in the table then it works.

    Can - as anyone knows if there is a limit of LOV that can be taken in charge?

    Bill:

    The presence of special characters is exactly what I had suspected.

    You must use the function replace in the query that is run by the "application process" that is called by your AJAX call. This process of applicition generates the XML code, which is then used by your Javascript to build the LOV.

    CITY

  • How to do a function with the same argument multiple times and return values in the variables?

    The problem I have is that I have created a function that is really kind of database.  Basically, a bunch of:

    If (a.value == 'number') {}

    b.value = "this expression."

    }

    Inside of the shape are 2 drop-down lists that return numeric values I want to process through this function and the value of return inside separate variables.

    var a = this.getField ("OPE003. EVEN.1.MIP");

    MIP (a);

    var Result1 = Mip();

    I tried to smash * a * to treat the second field

    a = this.getField ("OPE003. EVEN.2.MIP");

    MIP (a);

    var Result2 = Mip();

    Result1 and result2 are placed in an array, joined as a string.

    In doing so, I always get the last treatment twice more than the final result.

    Can I use a function as a batch processor that way?

    You're right, I changed the code to what you said, but how to pass another value by my function so I can get Result1 and Result2?

    is it

    var a = this.getField ("OPE003. EVEN.1.MIP");

    var b = this.getField ("OPE003. EVEN.2.MIP");

    Result1 var = Mip (a);

    var Result2 = Mip (b);

    var c = new Array [performance(1), result2]

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

  • PL/SQL exception handling and return values

    Hi all

    I use Oracle 10.2.0

    I have a problem in the return values of the procedures if there is no exception.

    For example:

    procedure a.
    (
    P_in number,
    p_out on varhar2
    )
    as
    p_valid varchar2 (10);
    number of p_no1;
    Select 1 in double p_no1;
    B (p_valid, p_no);
    exception when others then
    c (errmsg);
    end;
    put an end to;
    procedure B
    (
    p_in number,
    p_valid out varchar2
    )
    as
    fake number;
    Select 1 in double dummy;
    dummy cases = 1
    then
    p_valid = "OK".
    C (MSG);
    end;
    exception when others then
    p_valid = "OK".
    C (errmsg);
    end;

    end b;
    In the example if theres no exceptions or dummy = 1 in procedure B, then I need to return the value as 'OK' in the setting out of the parent procedure "A".

    I could not this value, returning null. How to get this...

    Please advice...

    TIA,

    ORCLDB wrote:
    Hi all

    I use Oracle 10.2.0

    I have a problem in the return values of the procedures if there is no exception.

    Ok

    The code you have posted is not valid code if you have forgotten some important things. However, we will make it simple...

    If you have a set OUT that will not be filled if an exception is thrown, unless it is set to NOCOPY.

    Example of...

    Here, we regularly parameter output and when an exception occurs in procedure B it REVIVAL of the exception to the procedure a...

    SQL> ed
    Wrote file afiedt.buf
    
      1  create or replace procedure B (p_in in number, p_valid out varchar2) as
      2    dummy number;
      3  begin
      4    select 1 into dummy from dual where p_in = 1;
      5    p_valid := 'OK';
      6  exception when others then
      7    p_valid := 'EXCEPTION';
      8    raise;
      9* end b;
    SQL> /
    
    Procedure created.
    
    SQL> create or replace procedure A (p_in in number) as
      2    v_valid varchar2(10);
      3  begin
      4    B(p_in, v_valid);
      5    dbms_output.put_line('Returned without exception: '||v_valid);
      6  exception when others then
      7    dbms_output.put_line('Returned with exception: '||v_valid);
      8    raise;
      9  end A;
     10  /
    
    Procedure created.
    
    SQL> exec a(1);
    Returned without exception: OK
    
    PL/SQL procedure successfully completed.
    
    SQL> exec a(2);
    Returned with exception:
    BEGIN a(2); END;
    
    *
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at "SCOTT.A", line 8
    ORA-06512: at line 1
    

    Obviously, when the procedure B raised an exception it went directly to the procedure exceptions A manager that indicates that an exception has happened and the value returned in the OUT parameter was NULL.

    Now, if procedure B just handles the exception rather than erect in...

    SQL> ed
    Wrote file afiedt.buf
    
      1  create or replace procedure B (p_in in number, p_valid out varchar2) as
      2    dummy number;
      3  begin
      4    select 1 into dummy from dual where p_in = 1;
      5    p_valid := 'OK';
      6  exception when others then
      7    p_valid := 'EXCEPTION';
      8* end b;
    SQL> /
    
    Procedure created.
    
    SQL> exec a(1);
    Returned without exception: OK
    
    PL/SQL procedure successfully completed.
    
    SQL> exec a(2);
    Returned without exception: EXCEPTION
    
    PL/SQL procedure successfully completed.
    

    Here, procedure B fills the output parameter and just returns execution to the block to execute procedure A, so A procedure isn't aware of no exception, but the output parameter does not contain the value B populated with.

    But if you want the procedure B to throw the exception and pass out a value in the output parameter, you must set the out parameter as NOCOPY...

    SQL> ed
    Wrote file afiedt.buf
    
      1  create or replace procedure B (p_in in number, p_valid out NOCOPY varchar2) as
      2    dummy number;
      3  begin
      4    select 1 into dummy from dual where p_in = 1;
      5    p_valid := 'OK';
      6  exception when others then
      7    p_valid := 'EXCEPTION';
      8    raise;
      9* end b;
    SQL> /
    
    Procedure created.
    
    SQL> exec a(1);
    Returned without exception: OK
    
    PL/SQL procedure successfully completed.
    
    SQL> exec a(2);
    Returned with exception: EXCEPTION
    BEGIN a(2); END;
    
    *
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at "SCOTT.A", line 8
    ORA-06512: at line 1
    
    SQL>
    

    Now, as in the first example, procedure B defines the output parameter and throws the exception, causing execution to go directly to the procedure A exception handler, but this time, A procedure return parameter value out.

    To understand the execution of blocks and managing exceptions take a look at this article...

    [PL/SQL 101: exception handling | http://forums.oracle.com/forums/thread.jspa?threadID=697262&tstart=50]

    ;)

  • C++ call and return value

    hand. QML

    app.importGraph (selectedFile);

    I call a C++ function to get a file in the system

    c ++

    void ApplicationUI::importGraph (QString fileName) {}

    QString newGraph;

    bunch of code that adds the contents of the file to newGraph

    Here, I want to newGraph back to what ever QML did importGraph C++ function call, how is this done?

    }

    Hello

    This can be done simply return from the function:

    QString ApplicationUI::importGraph(QString fileName) {
      ...
      return newGraph;
    }
    

    In QML:

    var myString = app.importGraph(selectedFile)
    

    importGraph must be reported as Q_INVOKABLE and "app" saved as contextProperty.

    A property may be used to track the changes. We must define a getter, setter and a signal. There are some sample code in the section "Object C++ exposing to QML" on this page:

    http://developer.BlackBerry.com/Cascades/documentation/dev/integrating_cpp_qml/

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

  • copy the select value in the textfield of LOV, and allow the user to modify

    Hello
    I have a datablock with 20 records and each record has a comment (say field_comments) fields. I would like to allow the user to choose LOV populated predefined comments (say lov_comments) and add a few additional comments after they choose the value of LOV.

    I created a LOV and added the return type 'field_comments' in column mapping properties. When the user clicks a button, LOV opens. They choose the value of the LOV and the value goes to the field 'field_comment '. The problem with this approach, the user cannot add their comments after selecting in LOV.

    I tried this too much. I created another area of non-visible text (i.e. fake). In the LOV, I added "dummy" field as returntype. In the dummy field, I created the trigger 'After the CHANGE', which basically says: block. field_comments =: block. Mannequin.

    But, the user must click another field to display the value selected from the LOV. The values of the 'field_comments' is not being updated as soon as the user click on the 'OK' button in the LOV.

    I'd appreciate if someone could give me feedback and help to solve my problem. Thank you for your help.

    I thank.

    Well, I tried exactly what you posted and it allowed me to SELECT from LOV, then CHANGE/ADD new text in front of returned value in the field. He recorded in the database and questioned without any problem.

    Your article is allowed to INSERT/update? If this isn't the case, then set yes "Update/Insert allowed" and attach your LOV to the element and set "post to list" No.

    You can also see if you have any validation done on WHEN-VALIDATE-ITEM trigger or after CHANGE which will fail because you change LOV populated values.

    I hope that helps!

  • Lov return value in a variable to library package (PLL)

    Hello world!

    I use a kind of generic/dynamic LOV for multiple forms (referenced LOV and custom in a library (PLL) functions.

    Is anyway to set a LOV to return a value into a variable package library?
    When I try, I get the error "+ name of the FRM-11908 element must be valid and exists in the form. +"When you click on the '+' column mapping LOV...

    I also tried to use the global variable... I can put my LOV to return value to a global variable... but I can not access in the library package... I get an error: "+ error 49 bad bind variable... blah blah blah... met the OVERALL symbol while waits for blah blah blah... +»


    Did anyone of you knows how to work around these errors and get my LOV returns values returned in a package variable or access a global variable in a package?

    Thank you
    Guillaume

    Apart from the form (pll, menu), read you with Name_In() and you write with Copy()

    François

  • 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

  • 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
    
  • How to return a NULL value in LOV and insert into a field of allowingNULL number 4?

    Hello

    I have the following LOV and the return_value is PeopleId which is number 4, allowing NULL. And the LOV options are as follows:

    LOV named--> select named LOV-
    Show Extra values-> no
    Dynamic translation-> - untranslated-
    The number of columns - > 1
    Display Null-> Yes
    Null-> - Select value-
    Return NULL,-> NULL value
    ^^^^^^^^^^^^^^^

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

    List of values definition:
    Select Lname | ', ' || Fname | ' ' || Mname as display_value, PeopleId as return_value
    of PEOPLETB
    where PEOPLETYPE ('i', 'HERE', 'IF')
    order by 1
    --------------

    Given that PoepleId is a number 4, allowing NULL. I want a NULL value will be inserted, if the user does not select anything in the drop-down list. It seems that I would get "ORA-01722: invalid number" error when the PeopleId msg is null (ie: user doesn't have a selection). What is the good 'return Null value' I need to put it in? I tried "NULL" (see above) or nothing, it still does not work.

    Any suggestions?

    Thank you very much
    Helen

    Hello Helen,.

    You have found one of the many sources of my frustration with APEX. Here's what I do:

    In the definition of the element in your page, go to the LOV part and implemented like this:

    Display Extra values: Yes a dynamic conversion (I ignore this)
    Number of columns: 1 display Null: No.
    Display null value: (leave blank) return Null value: (leave blank)

    An empty row is displayed when the user comes first to the screen. If they do NOT select the drop-down list, the value is left empty (null).

    If anyone has a better way, I will definitely experiment with it.

    Don.

  • Possibility to get a popup to display the display value "" and not the "return value".

    Version - Application Express 3.2.1.00.11

    I have a list of values that exceed 1500 files and am so impossible to use a Select list.

    When you use a popup lov after choosing the recording, apex displays the return value (in my case a number). Is it possible to let him use the display value (in my case, a text string).

    Concerning

    Ben

    Benton says:

    Version - Application Express 3.2.1.00.11

    I have a list of values that exceed 1500 files and am so impossible to use a Select list.

    When you use a popup lov after choosing the recording, apex displays the return value (in my case a number). Is it possible to let him use the display value (in my case, a text string).

    See limiting the number of values in a LOV

    If it comes to a page element, and then change the type of Popup LOV key.

    If there is a control in a table, it's another reason to upgrade to a supported version, or the tabular form will need to be converted to be manually generated and processed in order to allow the appropriate control be returned using the apex_item.popupkey_from_lov method

  • Event just after obtaining return value of lov inline search page

    Hi all

    I created a lov inline search, my page looks like this:

    page.png

    When I search and select the result I want.

    page1.png

    I get this result selected as back to my point of return of my page:

    page 3.png

    What I want is:

    At the time when the page is displayed to show me the value selected, I want to show him something else on this return value. For this I need to know what the event or the setting I need to take to whether or not the selection is made.

    I hope I made clear what I need

    Thank you very much for your help

    Kind regards

    Afaf

    Not really sure what you are after. You can try this.

    If (PageContext.isLovEvent ())

    {

    String lovInputSourceId = pageContext.getParameter (SOURCE_PARAM);

    If ("".equals (lovInputSourceId))

    {

    }

    }

    See you soon

    AJ

  • APEX: LOVs and it is the Null attribute return

    I have two or three fields of research LOV and I FACT NOT fill the value Null return a value, simply leave it blank.

    Do you have a County chart that looks count of status for each of the elements of the LOV and I realized that in order to get

    a full account of how many fields 'null', I do combine is null and the like '% null' |' %' select 5 display_order.

    Select MyLOVCount

    from my_table

    where MyLOVCount is null or MyLOVCount like '% null' | '%';

    My approach is appropriate?

    I would have thought that the 'is null' have taken into account all 'null' values in the column.

    Please help me understand in layman's term

    Hello

    JAS-Oracle wrote:

    I have two or three fields of research LOV and I FACT NOT fill the value Null return a value, simply leave it blank.

    Do you have a County chart that looks count of status for each of the elements of the LOV and I realized that in order to get

    a full account of how many fields 'null', I do combine is null and the like '% null' |' %' select 5 display_order.

    Select MyLOVCount

    from my_table

    where MyLOVCount is null or MyLOVCount like '% null' | '%';

    My approach is appropriate?

    I would have thought that the 'is null' have taken into account all 'null' values in the column.

    Please help me understand in layman's term

    I don't want to argue, but your column of the MyLOVCount table contains the string "null", which is not equal to null.

    You not fill it but the fact is that there is the mystery.

    Your condition <... or="" mylovcount="" like="" '%null'||'%';="">is looking for the word "null".

    Please see the screenshots below; line with col1 = 'b' meeting condition tran_type is null and col1 = 'a' tran_type meeting = 'null '.

Maybe you are looking for

  • 4th generation Apple TV connected to the projector

    I have an Apple TV 4th generation connected to a projector with a Kenex of HDMI to VGA with Audio for the 4th generation.  Whenever I want to play Netflix or HBO NOW I get a black screen. I can only here the sound and I get a black screen.  It works

  • V5.8 DVD player: error-70012

    Dear Apple community, I use a MacBook Pro 13 "(mi-2010) and replaced the Superdrive (SD) by a 750 GB HD (using the iFixit statement)." At the time I build on the 750 GB HD, it had Mac OS X 10.11.1. I noticed recently that the DVD player (v.5.8) not s

  • iMovie disappeared

    I had technical problems with my MacBook Pro that Apple has not been able to solve.  They ended up having me wipe my Mac to fix everything that was the problem.  I did not notice until I tried to use iMovie that he was no longer there.  How can I get

  • Magnetic sleeve prevents MacBook Eve or commissioning

    FYI, when using a magnetic sleeve for my MacBook, I have found that if I tried to wake up or start the laptop with the sitting underneath sleeve (on my lap, for example), then I was unable to wake the portable computer. I also found that if I moved t

  • HP 15-ac026t: problem installing Windows

    Hello I try to install activated windows 7 DVD. After starting the installation, I get an error message like "missing device driver for the CD/DVD device. Help, please