The list of values - return value identical to the display value

I fill a selection list with the names of the members with a lov sql like the following

< tt > select memberName d, r FROM whateverTable < /tt > memberId

The problem is that in the database, the stored value is the Member ID. I really want the real memberName stored in the database instead I want to use this name of Member elsewhere in my application.

When the integrated trigger executes its code

< tt >

   if NVL (:old. CONTACT_PERSON,'0') ! = NVL (:new. CONTACT_PERSON,'0'( ) then

Insert into eba_ca_history ()table_name component_rowkey COMPONENT_ID column_name old_value new_value) values

       ('EVENTS', :new.row_key, :new.event_id, 'EVENT_OWNER',:old. CONTACT_PERSON,:new. CONTACT_PERSON()

   end if ;

< /tt >


I get the following text shows on my apps update page-"owner of an event has changed from 457879885611315631565 to 2546454654546546546546..."

lov.PNG

I want the value of the actual display to display for an update instead of the return value.


I tried to convert the value to help

lov2.PNG


But which causes the following error


lov3.PNG


How can I make sure that the return value of the lov being stored in the database matches the display value for the lov?

Hi Richie,

If I understand your request, simply set your LOV query with the same column like screen and return:

select memberName as display_value, memberName as return_value FROM whateverTable

If this isn't what you're asking, I apologize for the misunderstanding.

Thank you

Erick

Tags: Database

Similar Questions

  • 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

  • Cannot change PopUp LOV width and height in version 4.2.5.00.08. I change the values of 450 400 in the Popup list template values (Section of the window), but my function genList0_f07_$ _row (), retains the same settings. Is this a bug?

    Hello

    I use APEX 4.2.5.00.08 to my app.

    I have a region of reports, where I display a column set. A column is the column attribute "display as" the value 'Popup LOV (LOV based query).

    I press the button to retrieve the LOV, I get a popup of 450 x 400 pixels.

    I go to the side of the model and navigate to "Popup list of values of model", where I can see in the section 'Window' attributes 'Width' and 'Height' value 450 and 400. I edit them and save them and there is nothing going on. I'm sure that the template belongs to my selected theme.

    I saw in the HTML source code that is the called function:

    <!--


    function genList0_f07_$ _row)
    {
    w = open ("wwv_flow_utilities.gen_popup_list" +)
    « ? p_filter ="+
    "& p_name = ' + escape ('f07') +.
    ' & p_element_index = ' + escape ('0') +.
    ' & p_elem_id = ' + escape ('f07_0000').
    ' & p_form_index = ' + escape ('0') +.
    ' & p_max_elements = ' + escape ("") +.
    ' & p_escape_html = ' + escape ("") +.
    ' & p_ok_to_query = ' + escape ('YES').
    ' & p_flow_id = ' + escape ('114') +.
    ' & p_page_id = ' + escape ('100201') +.
    ' & p_session_id = ' + escape ('16021544706004').
    ' & p_eval_value = ' + escape ("") +.
    ' & p_translation = ' + escape ('NO') +.
    ' & p_lov = ' +.
    ' & p_lov_checksum = ' +.
    ' & p_item_id = ' + escape('-683997768') +.
    ' & p_column_id = ' + escape ('25022622060292812'),
    "winLov,"
    "Scrollbars = 1, resizable = 1, width =400, height =450"); "
    If (w.opener is nothing)
    w.opener = auto;
    w.Focus ();
    }
    ->

    I see that the values has not changed. I also connected and disconnected. I am inclined to believe that it is a bug of the APEX.

    The only solution I think is to replace this function, which is NOT ideal.

    Thank you

    Digital

    The parameters are generated only, nothing you can do about it because it does not use the model for these properties of the couple. Other things work fine for example the names of button or title window etc. I guess that, Yes, it is a bug. It's still there in the apex 5 too, I checked. The default values of the template do not match, the value in the generated code is always 400/450. So I guess it's pretty much a wait on 5.1.

    Here's a fun hack to make it work well on your page (works in apex 5 too, because the code is always the same). Put this in the execute on loading of the page section:

    (function(){
      var _open = window.open;
      window.open = function(){
        if ( arguments[1] === "winLov" ) {
          arguments[2] = "Scrollbars=1,resizable=1,width=500,height=700";
        };
        return _open.apply(window, arguments);
      };
    })();
    

    Change the settings to your liking. This will replace the existing window.open call, which is what the popup lov use and replace it with our own code. It does not interfere with other things. As the name of the new window is always "winLov" for the popup lov, it is the argument that is checked.

    During the call to window.open to open a new window with the name "winLov", parameters are replaced with your own version of it. The window is called as usual, using the stored reference.

    Edit:

    Yes, do not use the trick of resizing. My hack can be a bit tedious, but it's much less invasive for the end user (see open, bam, resize. "Even gets funky on multiple monitors). Also, this thing in the popup lov template will affect each lov popup that you use in the application, which is much less interesting than my specific page code.

    Edit2:

    I did a little digging in the source code, and I don't know why it does not work. Popup lovs are actually equipped to deal with it. My guess is that the parameters are recovered only after that the lists were generated, causing the package variables global to use their default values instead of model parameters.

  • validation error message is not displayed for an attribute as a list of value of the entry

    Hello world

    I use jdev 11.1.1.7.0

    In my application, I created an entity Obj and Obj employees base table.

    for the attribute JobId , I took the actions listed below:

    1. in the EO staff, I created a validation for this attribute and in some cases the error message returns (the error message is "the salary is not high"):

        /**
         * Validation method for JobId.
         */
        public boolean validateJobId(String jobid) {
    
    
            if (...) {
                return false;
            }
    
    
            if (...) {
                return false;
            }
    
    
            if (...) {
                return false;
            }
    
    
         
            return true;
        }
    

    2. employees Vo, I created a LOV for this attribute (the view accessor is JobsViewObj) and I display the attribute entry of text with a list of values.

    in the jspx page, I drag / drop this attribute as below:

              <af:inputListOfValues id="jobIdId"
                                    popupTitle="Search and Select: #{bindings.JobId.hints.label}"
                                    value="#{bindings.JobId.inputValue}"
                                    label="#{bindings.JobId.hints.label}"
                                    model="#{bindings.JobId.listOfValuesModel}"
                                    required="#{bindings.JobId.hints.mandatory}"
                                    columns="#{bindings.JobId.hints.displayWidth}"
                                    shortDesc="#{bindings.JobId.hints.tooltip}"
                                    autoSubmit="true">
                <f:validator binding="#{bindings.JobId.validator}"/>
              </af:inputListOfValues>
    

    I opened the popup and I select a line in the list and then I click Ok. After that, if the validation method (validateJobId) returns false, the error message ("the salary is not high") must be show to the user. but the error message does not appear. I don't understand why this is happening.

    Can anyone guide me on this problem?

    Concerning

    Habib

    Hello Dario,

    I just found this post: http://andrejusb.blogspot.nl/2013/12/workaround-for-infamous-bug-13626875.html that apply ExceptionMode = immediate adjustment to control the use of data in DataBindings.cpx, then the error message is displayed as I hope.

    Concerning

    Habib

  • From the list of values in the procedure and trying to validate values

    Hello

    I create a procedure that will allow to validate data entered by the user.  Users can add values in a text box on my web page and I need to pass to an oracle procedure and check the table if these values exist.  I need to return a list of values that do not exist.  That's what I have so far

    CREATE OR REPLACE PROCEDURE VALIDATE 
    (
      P_VLIST IN VARCHAR2 ,
      P_RECORDS OUT SYS_REFCURSOR
    )
    AS
      V_SQL VARCHAR2(4000) := '' ;
    BEGIN
    V_SQL :=          'SELECT VAL '||CHR(10) ;
    V_SQL := V_SQL || 'FROM DVALUES '||CHR(10) ;
    V_SQL := V_SQL || 'WHERE VAL NOT IN (' || P_VLIST || ')'||CHR(10) ;
    V_SQL := V_SQL || ' ORDER BY VAL' ||CHR(10) ;
    OPEN P_RECORDS FOR V_SQL;
    END VALIDATE ;
    /
    

    My problem is that it will return all the values of DVALUES.  Can I put my list into a temporary table and do a left join to DVALUES and where the values of the two tables I can create a bool column that has a 1 or 0 indicating whether or not the value is good then select on the table and return the list of bad values?

    Thank you

    SQL > CREATE OR REPLACE
    PROCEDURE (2) P_VALIDATE
    3 P_VLIST IN VARCHAR2,
    4 P_RECORDS OF THE SYS_REFCURSOR
    5                        )
    6 AS
    V_STMT 7 VARCHAR2 (4000);
    BEGIN 8
    9 V_STMT: = ' SELECT ELEMENT FROM (SELECT ";)
    10 V_STMT: = V_STMT | REPLACE (P_VLIST, ',', 'ELEMENT OF DOUBLE UNION ALL SELECT');
    11 V_STMT: = V_STMT | FROM DUAL) WHERE THERE IS NO (SELECT 1 FROM DVALUES WHERE VAL = ELEMENT)';
    12. OPEN P_RECORDS TO V_STMT;
    13 END P_VALIDATE;
    14.

    Created procedure.

    SQL > EXEC P_VALIDATE('10,15,20,25,30,35,40',:V_CUR)

    PL/SQL procedure successfully completed.

    SQL > V_CUR PRINT

    ELEMENT
    ----------
    15
    25
    35

    SQL >

    SY.

  • Calculation for cutting the first part of the string in the Manager list item values

    Hello

    Please help me with a calculation after submit pl/sql function process for cutting the first part of the string (CQ.) within the values of list manager. For example the list manager support contains values such as

    CQ... SAMPLE1... TEST1

    CQ... SAMPLE2... TEST2

    CQ... SAMPLE1... TEST2

    The calculation process should cut the first part(CQ..) and must return to the list of values of Manager as

    SAMPLE1... TEST1

    SAMPLE2... TEST2

    SAMPLE1... TEST2

    Oracle APEX 4.0.2 is the version and Oracle 10 g r2 is the database.

    Please help me with possible approaches in the development of the service. Thanks in advance.

    Thank you

    Orton

    orton607 wrote:

    But when I insert/update Manager list item values I don't want the first part of the string in the database.

    I still don't understand why you can't change the LOV or create a new...

    The LOV should be:

    SELECT original_value  AS HUMAN_SEES_THIS_VALUE
        ,LTRIM (SUBSTR ( original_value, INSTR (original_value, '..') + 2))
          AS DATABASE_GETS_THIS_VALUE
    FROM (
      -- place original SQL for LOV here
    )
    
  • How to get the attributes from the list of values

    Hello

    I have two display objects, of 'Customer' and 'CustomerDetails '.
    'Client' view, has the attribute 'CustomerId' I've defined as LOV with view of 'CustomerDetails '.
    Like this:
    <ListBinding
        Name="LOV_CustomerId"
        ListVOName="CustomerDetailsView1"
        ListRangeSize="-1"
        NullValueFlag="start"
        NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
        MRUCount="0">
        <AttrArray Name="AttrNames">
          <Item Value="CustomerId"/>
        </AttrArray>
        <AttrArray Name="ListAttrNames">
          <Item Value="Id"/>
        </AttrArray>
        <AttrArray Name="ListDisplayAttrNames">
          <Item Value="Name"/>
        </AttrArray>
        <DisplayCriteria/>
      </ListBinding>
    I hung out in the soc on my page
    <af:selectOneChoice value="#{bindings.CustomerId.inputValue}" label="#{bindings.CustomerId.label}"
          required="#{bindings.CustomerId.hints.mandatory}"
           shortDesc="#{bindings.CustomerId.hints.tooltip}" id="soc16" autoSubmit="true">
     <f:selectItems value="#{bindings.CustomerId.items}" id="si16"/>
    </af:selectOneChoice>
    In the 'CustomerDetails' view, there is also "address" attribute.
    I would like to get the address according to the ID.

    How could I get through links?
    or in another way.

    Thank you!!

    Hello

    You want to display the address that is present in VO from customer to customer details?

    If so,.

    Perform the following steps:

    1 - Create a transient with string type attribute customer details VO (always updated).
    2 - I hope you have an attribute customer id here attribute where you created LOV. When LOV created in create list of values jump towards the top in the list of return values assign the value of the address in the transitional attribute.

    If you put this attribute on the user interface you can see the customer address id value correspondent.

    Thank you
    Prateek

  • How to render components based on the value selected in a list of values

    Hello
    I created a form of the ADF. I have a drop down that is a list of values. I want to toggle certain fields based on the values selected in the menu drop-down. Could you please let me know how to do it in the ADF?

    Kind regards
    Murielle

    Hello

    It should work. It is important to note that in case you use a component selectOneChoice for category then the value returned by #{bindings. Category.inputValue}
    is the index of the selected value in the list and not the value auto. To get the value, you must use ' #{bindings. " Category.attributeValue}"in the disabled state.

    If the problem is no display of code in your page to take a look.

    Gabriel.

  • How to get a prompt to return a list of values based on a prompt

    Hello
    In the link below, I show the chain and the guest of the station.
    The guest of the station must return a list of value based on the value I have insert for string.
    If for example I have insert FS for the Four Seasons chain, what resort it must return only the hotels belonging to four seasons.
    I tried as in the example with a variable, but not worked.
    Any idea?

    http://img163.imageshack.us/img163/4486/resortprompt.jpg

    Thanks and greetings
    Giuliano

    Hello

    Do you have values for the stations for the value of the selected channel. I assume that you have no station for the selcted string value values. Try to select values of chain of 5 or 10 and then check the value of the station. To force them to work there is no need to define any variable presentation.

    Kind regards
    Sandeep

    Published by: Teresa Sanchez on 10-Sep-2010 01:25

  • Join the query in a dynamic list of values query

    I have a join query in a dynamic list of values query. The value does not return a value of text, but rather the value of the ID.

    Is it possible to use a join query in a dynamic list of values query?

    For example... in the query below, I expect to see ename in the drop-down list, but I see class_emp_id.

    Select b.ename d, a.class_emp_id r
    of class_emp a, b of the emp
    where a.class_cat_id =: CURR_CLASS_CAT_ID
    and a.emp_id = b.emp_id
    order by 1

    Thank you
    Reid

    Hey Reid,

    The structure of the pairings/value of the item is incorrect - it should be: item1, item2, etc.: value1, value2, etc, so:

    ' f ? p = & APP_ID.: 50: & SESSION. ": P50_LP_ID, P50_LP_NAME, CURR_CLASS_CAT_ID: #LP_ID #, #LP_NAME #, #CLASS_CAT_ID #"

    I guess that CURR_CLASS_CAT_ID does not use the prefix P50_?

    Andy

  • The list of values for an unfounded of parameter database

    Hi all

    Again, the question is maybe stupid, but we are not able to find a work around.

    Scenario:
    We have a database record that contains a column named FLAG. FLAG column have values:
    Am a combination of 'W', 'F', 'and has'. That is, there may be values such as 'W', "WD", "WDFM"...
    What we weant must have a parameter say 1 m env, so that we can have a condition like FLAG like "%" | : P1 | » %'.
    Now, we insist on users to enter W, F, M or D to: P1 (P1 is an unfounded database parameter). Is it possible to make a list of values?

    Thanks in advance,
    Jac

    Hello

    Yes you can do it. You must create a folder in the EULS that returns 4 lines with 'W', first'm 'F', 'and has'. You can then create an item LOV class based on this issue.

    Then in the EUL, you create a dummy element in the folder that you use in the report. The dummy element can always return null, but you will be able to put the dummy element in your item class.

    Then in the workbook create the setting based on the fake item, but does not create a condition with the parameter. You can then use the parameter in a condition like "%" | : P1 | » %'. Because the setting is based on an element that is located in the item LOV class there will be a LOVs for the parameter.

    Rod West

  • The list of values in the table of the ADF is not other cela rather single attribute yourself.

    Dear all,

    I have a list of the values on the view object and and created a table by dragging the drop to the page.

    Problem is that LOV is advising no other attributes I mentioned as other attributes in the list of values. only the LOV element becomes selected ID.

    The following table properties

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

    < af:table value = "#{bindings." XxIncidentRptInjuredPersonsEOView1.collectionModel}.

    var = "row".

    lines = ' #{bindings. " XxIncidentRptInjuredPersonsEOView1.rangeSize}.

    emptyText = "#{bindings." XxIncidentRptInjuredPersonsEOView1.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." XxIncidentRptInjuredPersonsEOView1.rangeSize}.

    rowBandingInterval = '0 '.

    filterModel = "#{bindings." XxIncidentRptInjuredPersonsEOView1Query.queryDescriptor}.

    queryListener = ' #{bindings. " XxIncidentRptInjuredPersonsEOView1Query.processQuery}.

    filterVisible = "true" varStatus = "vs."

    selectedRowKeys = ' #{bindings. " XxIncidentRptInjuredPersonsEOView1.collectionModel.selectedRow}.

    selectionListener = "#{bindings." XxIncidentRptInjuredPersonsEOView1.collectionModel.makeCurrent}.

    rowSelection = "single" id = "t1".

    "partialTriggers =": cb2.

    Binding = "#{CreateReportManageBean.injurdemptable} '"

    Width = "100%" >

    - ComboboxListOfValues - Tags

    < af:inputComboboxListOfValues id = "empIdId".

    popupTitle = "search and select: #{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.label}.

    value = "#{row." Bindings.EmpID.inputValue}.

    Model = "#{row." Bindings.EmpID.listOfValuesModel}.

    required = "#{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.mandatory}.

    columns = "#{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.displayWidth}.

    shortDesc = "#{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.tooltip}.

    autoSubmit = "true" >

    < f: validator binding="#{row.bindings.EmpId.validator}"/ >

    < / af:inputComboboxListOfValues >

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

    Take the af: inputComboboxListOfValues Id (for example, "empIdId") and put it in the partialTriggers of other attributes.

    or

    You can go to pageDef. --> select iterator table--> properties--> Advanced--> ChangeEventPolicy set for ppr

  • FRM-41830: list of values contains no entry in the value name of game

    Dear friends,

    I am trying to query 'Operations company' value and I'm not able to query this set of values.

    I could see the defined value is available, but when I ask the application->-> Set Validation.

    But I'm not able to interrogate all of the value and add greater value to the value of Application-> Validation-> value (as a sysadmin in the responsibility of the system administrator).


    Actually the upward gaze displays all the values, cloud a guide me, is there a profile that I need the installation .


    EbS - EBS VM model 12.2.3

    Attached to the screenshot for your reference.

    Value_set_values_notdisplaying_lookup.jpg

    Flexfield value games appear not in the list of values (LOV) in Oracle E-Business Suite Release 12.2 as Segment FNDFFMSV values (Doc ID 1612727.1)

    Unable to query Descriptive Flexfield value values (Doc ID 1642035.1)

  • The list of values with contains criteria

    Hello

    I use Jdev 11.1.2.0.

    I created a template driven Input text with a list of values and display the page and works very well. (List of values to an attribute in a VO and display of this attribute as LOV)

    My requirement here, is when the user enter something in the inputtext LOV and clicks, then pop LOV should open with result of defined values.

    These defined values of result should be extracted from the operator 'Contains'.

    How to get there?

    I created a viewcriteia using the ' contains ' operator, but its giving the result set with the operator 'starts by .

    No solution to achieve this?

    I was unable to try it, because criteriaItems list contains nothing other than '{} '.

    We obviously do not understand each other.

    As I said in the previous answer, you can't check if criteriaItems contains 'something' with System.out.println ("criteriaItem" + criteriaItem);

    With this declaration, you can see that criteriaItems is not null.

    Thus, code comments, replace "=" with JboCompOper.OPER_CONTAINS (or with another operator) and try it.

    Dario

  • narrows the list of values

    Hello guys, I want to put something like where clause to the list of values. lets say I have an employees VO and VO of countries with ID and ID of country area in the attributes tab in the VO used, I can add a LOV of a specific attribute, I want to put a LOV on the employee name attribute. the source is the ID of country where the area ID =? I would like to declare the area ID grammatically. I know that this example doesn't do not any sense: P is it possible to make the VO.xml? Thanks in advance. Saidi

    Hi Saidi,

    Yes, you must first go to your country and create a view of criteria based on the zone ID. Next, you need to go to your EmployeeVO and create a LOV for countryId. Then in the tab to your EmployeeVo accessor, you must change the accessors for countries and criteria for views that you have created a shuttle. Oh, one thing is missing, since you want to add the country code grammatically you can create a transitional employee VO attribute and that attribute is that you select in the application of the criteria to view in your view accessors.

    Concerning

Maybe you are looking for

  • White tabs of Firefox 31.0, then no fields to twitter and Google maps!

    I'm on Firefox beta update, 30 and 31 now view files for a millisecond and then white - so far making google maps and twitter unusable (both great on Safari and Chrome). Firefox itsself blanks to tabs if I hit an arrow key < or > in the toolbar. Rend

  • Satellite L30 is turned off

    HelloI just bought the laptop L30 and I tried to install a game and first of all I had to install alcohol, when I installed the portable alcohol off immediately and whenever I turn it on, it turns after on 6seconds and I think it's for security reaso

  • Resize the object inside the tab control

    Hello I have problems with the design of a user interface. I need to have multiple controls resize with panel inside a tab control. I see it right, there is no way to have a resize done inside a tab with decorations control that separates controls? I

  • MICROSOFT MEGA LOTERIA - INFORMATION

    PREGUTA MICROSOFT ACAVO ALGUN SORTEO DEL CUAL LLEVO ME LLEGO UNA CARTA A MI CORREO DONDE YO ERA POSTER BY EL SORTEO ME PUEDEN DAR MORE INFORMATION THERE THAN THE PAQUETERÍA ME PIDE EXPENSES OF ENVIO (FEDEX)

  • You can disable a single line within the ACL?

    We have 881g on 15.1 code with a ZBFW. In an ACL, ip access list extra blah, with several lines, 10,20,30, etc... is there a way to disable a single line or make it inactive any leaving it in the config? He can't see in there, don't know if it is not