Display value instead of key in input field with LOV?

Sorry, this is so basic I'm sure it must be easy but somehow I can't find it in the documentation. The LOCATION table contains a foreign key referencing the CLIMATE table. As well as its primary key, CLIMATE has a column called NAME holding the name of the climate (e.g. temperate, tropical, etc.). The user must be able to update the climate value for the location he is working on. So I have a list of values which looks up possible climate names, the user selects the name he wants and the value gets set in the LOCATION table. That works, but the problem is that the input item displays the key value of the CLIMATE record, and I need it to display the value of NAME instead. Of course I can have another field showing the name, but that is messy, the user doesn't understand the key value and shouldn't have to see it. So how do I make one input field display the NAME, while actually updating the key value from the LOV choice?
Thanks

Thank you, Joseba. It does help to some extent. Now I have a non-updatable field with the climate name in it, and below that is the magnifying-glass icon that invokes the list of values. I guess that's not bad, and I can put a label next to the magnifying class saying "Click to select climate". So it's better, but still looks very odd compared to updating fields that are in the LOCATION table itself, where it's an updatable field and the maginfying glass is right next to it. Really the user should not have to behave differently just because the database chooses to hold the value that he wants to alter as a reference to another table.
Is there at least a way to put the list of values magnifying-glass next to the field that displays teh value, rather than underneath it? They are all inside a thing called "af:panelFormLayout", and I tried setting MaxColumns to 2 in its properties, but it still won't let me move the list-of-values field alongside the other one.
Thanks.

Similar Messages

  • Add input field with date salector inside a TableView

    I’m trying to build an user interface for my ones step-screen flow command, this user interface needs a TableView and for each row i need an input field with date selector.
    I’ve been trying to use de DefaultTableViewModel as the model for my TableView. I create a method to build my vector with the data for my DefaultTableViewModel as follow.
         private Vector createData() {
              Vector dataVec = new Vector();
              Vector retVector= new Vector();
              TextView text1 = new TextView("text1");
              dataVec.addElement(text1);
              TextView text2 = new TextView("text2");
              dataVec.addElement(text2);
              InputField date1 = new InputField("date1");
              date1.setType(DataType.DATE);
              dataVec.add(date1);
              retVector.add(dataVec);
              return retVector;
    then i use the vector as follow:
    Vector data=createData();
              Vector colName = new Vector();
              colName.addElement("Col1");
              colName.addElement("Col2");
              DefaultTableViewModel model = new DefaultTableViewModel(data, colName);
              TableView tabla = new TableView("tabla", model);
    But when I Display my user interface the TableView shows a string that I thing is a reference of the Input and the TextView inside my TableView instead of showing the components.
    Any Ideas?
    Regards,
    Orlando Covault

    Hi Orlando,
       Check this thread on date selector in tableview.
    <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=198839">Tableview</a>
    Hope it helps.
    Regards,
    Saravanan

  • JS error while using input fields with type=file on XP SP2

    Hi all,
    we found a new problem in applications which use input fields with type=file running in a browser on Microsoft Windows XP with SP2.
    A typical test layout might look like:
    <html>
      <head>
        <title>File-Upload</title>
      </head>
      <body>
        <form action="/cgi-bin/upload.pl" method=post
              enctype="multipart/form-data">
          <input type=file size=50 maxlength=100000 name="file"
                 accept="text/*"><br>
          <button onclick="document.forms[0].submit();">Send</button>
        </form>
      </body>
    </html>
    When you add a link without the fully qualified path (for example pic01.jpg instead of c:\pictures\pic01.jpg) and click on the 'Send' button, nothing happens and you get a Javascript error 'Access denied'.
    The solution can be found in the MS Knowledge Base article 892442:
    http://support.microsoft.com/default.aspx?scid=kb;en-us;892442
    We still investigate this issue and will inform you about the further proceeding.
    Regards,
    Rainer

    Hi Yepin Jin,
    I am facing the same issue did you solved it?
    Regards,
    Orlando Covault

  • PDF files not being displayed correctly, instead I get a blank screen with some sort of small pinned icon in the centre.  It was working fine until today HELP!

    PDF files not being displayed correctly, instead I get a blank screen with some sort of small pinned icon in the centre.  It was working fine until today HELP!

    What is your operating system?  Reader version?  Are these local or online PDFs?  If online, in what browser?
    Can you post a screenshot: https://forums.adobe.com/thread/1070933

  • Input Text with LOV in table, the search list will be limited with 25 row?

    Hi, experts
    I got a strange problem with JDev 11.1.1.5.0, I created Input Text with LOV in Data View for one attribute with default setting, the LOV worked fine when I drop the DC with 'ADF form'; but when I drop it with ADF Table, the search function will just show 25 rows, I can see it try to fetch data when scroll down just like form, but then nothing happened, only the first 25 rows will be show without any error log.
    Any special configuration needed for LOV in table? or a bug in LOV?
    many thanks.

    You can change the range size on the VO which you use for the LOV. If you only want to change it for the VO the lov uses, select the VO in question in the application module data model and clic edit. There you enter -1 fro raneg size.
    If you want to change it globaly for this VO you open the VO and select the Tuning section and check 'all at once' which should get you all rows. Be careful that the VO don't return too much rows. A LOV wiht more then 50 rows is too big. In this case you may choose an other component.
    Timo

  • Selection options for field display text instead of key

    Hi All,
    In the selection screen in my reports, when the user clicks on the selection options for one the fields to display the possible values they can use. Instead of the key the pop up box only displays the text for that field. This is an issue because one of the fields is equipment number and the user needs to be able to see the key not the descriptions. This is occurring in multiple reports and for multiple fields. I haven't been able to find anything in the infoobject properties or the query properties to change this.
    Please help!
    Edited by: Anthony Loh on Sep 29, 2010 10:57 PM

    Hi Anthony,
    Cud u pls check in backend how it is created ...
    RSA1>Mdeling>IO Properties>Second tab BEx properties>Display-->it shud be Key and not text...
    Check this and come back ..
    Rgds
    SVU123

  • How to display zero in the screen's input field using numc type

    Hi,
    I want to display the zero value in the input field , when I  using the NUMC input field on the screen .
    The zero will be changed to blank ,when I click the Enter key.
    What I should do for it?
    Any help is appreciated.
    Regards,
    Trevor

    Hi ,
    Thanks for your quickly answer!
    I use the numc input field in the dialog's screen.
    I am not sure how to do the realize the function like 'UNPACK'?
    In fact, I can't changed my input field's data type.
    When the status of my input field is display, I can display the zero on the screen. But when the input field is input status , there is blank!
    Regards
    Trevor

  • LOV problem ... returning display-value and not key-value

    Hi. Sorry for my broken English.
    I have a problem with pop-up dynamic LOV.
    I have a simple form called Form A containing item_code and item_name. Users can create, update and delete new item by using this form.
    Another form called Form B has a field called item_code, and the item_code field is a dynamic pop-up LOV field and a query for this LOV is like this;
    select item_name d, item_code r from item_master order by item_code;
    When i create the new record in Form B and use LOV to find and get the item code, LOV works fine
    and it returns key-value to the item_code field.
    But when i try to update the record (I have a link from report page to Form B), value of the item_code field is not the key-value from LOV, but is a
    display-value from LOV.
    Any ideas?
    Thank you.

    Well, from what you have described, this is working exactly as it should. Form B's LOV is intended to retrun the key value but should show the dispaly value. When you go from the report to the form, the key value is being passed (or should be depending on your code) and Form B ought to show the display value.
    So, in short, I would say that Apex is doing what it should. Unless I misunderstand something.
    Bruce

  • Validate a input field with multiple values.

    Hi,I have to restrict decimal values for a input text field that is "Number"
    When i click on SAVE it will say, that decimal values are not allowed.
    This part is fine. But the problem is that when i save multiple entries(batch save). It validate the first row only and then as per the first row value it throws exception.
    I am using this piece of code to fetch values of  "Number".
    OAMessageTextInputBean oamessagetextinputbean = (OAMessageTextInputBean)webBean.findChildRecursive("Number");
    String qty = (String)oamessagetextinputbean.getValue(pageContext);
    // But this is only returning one value of the field Number. By using this value i am validating it against the Decimal values.
    How to get the value of the field Number on the next row. Also i need to validate it as well.
    A quick help is appreciated.
    Thanks in Advance.

    Hi Myvizhi,
    This is latest piece of code i am using. But still it is printing the value of QUANTITY in first row .
    public void processFormRequest(OAPageContext pageContext,
    OAWebBean webBean) {
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am =
    (OAApplicationModule)pageContext.getApplicationModule(webBean);
    OAViewObject oaviewobject =
    (OAViewObject)am.findViewObject("PoRequisitionLinesVO");
    int rwcnt = oaviewobject.getRowCount();
    System.out.println(rwcnt +  "rwcnt");
    OATableBean oatablebean =
    (OATableBean)webBean.findIndexedChildRecursive("ItemTableRN");
    OAMessageTextInputBean oamessagetextinputbean =
    (OAMessageTextInputBean)oatablebean.findIndexedChildRecursive("Quantity");
    if (pageContext.getParameter("Save") != null ||
    pageContext.getParameter("Checkout") != null) {
    if (oatablebean != null) {
    RowSetIterator queryVOIter =
    oaviewobject.findRowSetIterator("queryVORow1");
    if (queryVOIter != null) {
    queryVOIter.closeRowSetIterator();
    queryVOIter = oaviewobject.createRowSetIterator("queryVORow1");
    System.out.println("queryVOIter is " + queryVOIter);
    while (queryVOIter.hasNext() &&
    i < rwcnt) // rowcount is number of rows
    String qty =
    (String)oamessagetextinputbean.getValue(pageContext);
    System.out.println("Value1 is " + oamessagetextinputbean);
    System.out.println("Value2 is " + qty);
    queryVOIter.next();
    i++;
    String MessageTextValue =
    oamessagetextinputbean.getValue(pageContext).toString();
    System.out.println("Value of mtv " + MessageTextValue);
    if (MessageTextValue != null ||
    MessageTextValue.length() != 0) {
    if (MessageTextValue.contains(".")) {
    throw new OAException("Decimal values not allowed in the Quantity field, Try Again",
    OAException.ERROR);
    } else {
    } else {
    Please help.
    Thanks.
    Chinmay

  • How to set a value on a hidden required input field.

    I have a form that I need to set a value that is stored within the session onto it. I would like the input field to be hidden when a new row is created and just set the value with a value that I have stored with sessionScope.
    Is this possible?
    Any help would be appreciated.

    Frank,
    I sure can access the session attribute. I just wasn't sure how to set it. Here is a snippet of my jsp
    <af:inputText value="#{bindings.Createdby.inputValue}"
    binding="#{backing_Project.inputText3}"
    id="inputText3">
    If I set the value="" attribute to be say value="#{sessionScope.userInfo.userId}" then how does ADF know to update the CreatedBy column? This is where I got confused. I figured the value="#{bindings.Createdby.inputValue}" had to stay that way in order for the column to be updated correctly.
    Basically what I am wanting is to programatically set the userId of the person who is creating the row into the CreatedBy column and then show the user's readonly name when a user edits an existing row.
    Any help would be greatly appeciated.
    Marty

  • Need to display value from ztable to a free field in a standard tcode...

    Hello Experts,
    I have a requirement wherein I need to get some data from a custom table and
    need to display it in one of the free fields of transaction FBL1N(Vendor line item display).
    I really do not have any idea how to go about this. Hope you can help me guys.
    Thank you and take care!

    Hi!
    You will have to look for an appropriate user-exit (if there are any) for transaction FBL1N. In the user-exit you can fetch the data from the custom table and populate the fields of the std transaction. Alternative - The fields in FBL1N are populated from the FI documents. So you can create a substitution rule (using a user-exit) and populate the field in the FI Doc. For this you might require the help of your functional consultant.
    Hope this helps
    Cheers!

  • Printing Multiselect LOV display values instead of code

    I have a report with a multiselect LOV (shows text, returns code), so users can choose one or more things based on the description but when they "print" (using the navigation bar print option to open a printer friendly page), the multiselect field on this new page has the codes, not the text. How can I make the text show up here too? (Apex 3.0)

    Oh - I see what I was saying wrong - it's a summary report that is having the problem - I am not returning the details, only a series of counts of various data (there are about 20 columns). Each column is a count of people, broken down by age group and gender. So the :P89_ENVIRONMENT value shows up with its text value when only one is selected from the multiselect, but when more than one is chosen, the text is replaced by the list of values separated by colons.
    I.E. (with one environment selected)
    Environment, Total, Females 10-20, Males 10-20, Females 20-30, Males 20-30 [...]
    Woods             2               1                    0                       0                       1   
    I.E. (with 4 environments selected)
    Environment, Total, Females 10-20, Males 10-20, Females 20-30, Males 20-30 [...]
    11:13:44:67        2            1                0                  0                   1
    The report query looks like this:
    SELECT :P89_ENVIRONMENT, count(gender) Total , (select count(gender) from client where gender_type = F and age > 20 and age <30), (select count(gender) from client where gender_type = M and age > 20 and age <30), (select count(gender) from client where gender_type gender_type = F and age > 30 and age <40) [...]
    Any suggestions on how I can keep a text value in the Environment column regardless of how many are selected?

  • How do you wrap the text on an input field with type="button"

    I want to put 2 lines of text on an input field.
    The button size is fixed at 75 and if there is more than 10 characters it truncates the text.
    The input field is defined as :
    <input type="button"
    value="CI<br>Discrepency"
    class="buttons75x75"
    onclick="javascript:callForm('ciDiscrepency');"/>
    If you can show me how, I would really appreciate it.
    -Gary

    Dug up the code I used to do this a while back:
    //The style sheet
      <style type="text/css">
        .buttonUp {
          border-style:outset;
          border-width:2px;
          width:3em;
          float:left;
          padding:2px;
          background-color:#ccc;
          text-align:center;
        .buttonDown {
          border-style:inset;
          border-width:2px;
          width:3em;
          float:left;
          padding:2px;
          background-color:#ccc;
          text-align:center;
    </style>
    //... Example buttons
      <div class="buttonUp" onmousedown="this.className='buttonDown';"
                            onmouseup="this.className='buttonUp';"
                            onclick="alert('Clicked on Small One');">He</div>
      <div class="buttonUp" onmousedown="this.className='buttonDown';"
                            onmouseup="this.className='buttonUp';">Hello</div>
      <div class="buttonUp" onmousedown="this.className='buttonDown';"
                            onmouseup="this.className='buttonUp';">Hello World</div>
      <div class="buttonUp" onmousedown="this.className='buttonDown';"
                            onmouseup="this.className='buttonUp';">Hello<br/>World</div>
      <div class="buttonUp" style="width:5em;" onmousedown="this.className='buttonDown';"
                            onmouseup="this.className='buttonUp';">Hello World</div>You could put any javascript you want on the onclick event, so you would call the javascript you previously used to submit the form and set the input name. In this example I had all the buttons be a fixed width, if you leave out the width in the style sheet then the block will snap to fill the same width as the text inside it, much like normal buttons do. The difference is, with a fixed width then text wrapping occurs automatically (like in the 3rd button) while without a defined width the div will only display a second line when the line break is added. Note the the fixed width can be over-ruled by an inline style if needed (last sample).
    The website I pointed to before has a simpler solution (less javascript events needed). An implementation for his approach would be:
    //The style sheet
      <style type="text/css">
        .button {
          border-style:outset;
          border-width:2px;
          color:#000;
          float:left;
          padding:2px;
          background-color:#ccc;
          text-align:center;
          text-decoration:none;
          display:block;
        .button:active {
          border-style:inset;
          border-width:2px;
          color:#000;
          float:left;
          padding:2px;
          background-color:#ccc;
          text-align:center;
          text-decoration:none;
          display:block;
      </style>
    //... Example buttons
      <a class="button" href="#" onclick="this.blur();alert('Now you clicked linkey');return false;">Hello<br/>World</a>Same deal here with the fixed-width vs.fit-to-content. I add the 'return false;' to the list of the onclick commands so IE doesn't make the 'link clicked' noise and the URL doesn't go to thispage.html#.
    All these buttons work in FireFox 2, IE 7, and Safari 3 if they are running in STRICT mode. The button colors and borders don't precisely match FF and IE buttons, but they are close (although they aren't close at all to Safari buttons).

  • Disable an Input field with the help of a radio button selection.

    Hi Guys,
    I know it is a very basic question and also has many threads for the mentioned query. None of the threads gave me a real clue about the problem. It is as follows:
    Simply, I have an input field and there are two more radio buttons on the screen, say rd1, and rd2.
    Initially Rb_gtgr is active and input field is blank and disabled, and when i select Rb_selgr, input field should be active and mandatory. It means when i try to execute the code with out entering any value after it is enabled, an error message should appear. For this the code is as follows:
    AT SELECTION-SCREEN OUTPUT.
      PERFORM screen_grace_on.
    AT SELECTION-SCREEN ON p_grace.
      PERFORM check_grace_days.
    FORM screen_grace_on .
      DATA: l_v_grace TYPE char2.
      CONSTANTS: l_c_grace TYPE char7 VALUE 'P_GRACE'.
    l_v_grace = p_grace.
    CLEAR p_grace.
      IF rb_selgr EQ c_x.
        LOOP AT SCREEN.
          IF screen-group1 = 'ABC'.
            screen-required = 1.
           screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-group1 = 'ABC'.
            screen-input = 0.
            screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " SCREEN_GRACE_ON
    FORM check_grace_days.
      IF rb_selgr EQ c_x AND  p_grace EQ 0.
        PERFORM screen_grace_on.
        MESSAGE e492(/ams/ramfcmess1).          " Enter the number of Grace days
      ELSEIF rb_selgr EQ c_x AND p_grace GE 0.
        PERFORM screen_grace_on.
      ENDIF.
    ENDFORM.
    Ideally this code should work since in the PBO i.e., At selection screen output i am enabling the fields, and also when i select the second radio button i am also checking for the value too..
    I am working on 4.7 version of SAP. The Most interesting observation is it works fine for few variants, and not with others.
    Thank you

    Hi,
    Go through this following code,
    selection-screen begin of block B2 with frame title TEXT-005.
    selection-screen begin of line.
    parameters:     P_BIRPT type C radiobutton group RAD1 default 'X' user-command UCOMM.
    selection-screen comment 3(20) TEXT-002 for field P_BIRPT.
    selection-screen end of line.
    selection-screen begin of line.
    parameters:     P_COLRPT type C radiobutton group RAD1.
    selection-screen comment 3(20) TEXT-003 for field P_COLRPT.
    selection-screen end of line.
    selection-screen begin of line.
    parameters:     P_PAYRPT type C radiobutton group RAD1.
    selection-screen comment 3(20) TEXT-004 for field P_PAYRPT.
    selection-screen end of line.
    selection-screen end   of block B2.
    selection-screen begin of block B1 with frame title TEXT-001.
    select-options: SO_KTOKD for  KNA1-KTOKD modif id M4,
              SO_BLART for  BSIS-BLART modif id M2.
    parameters:     P_PAID   type ZCLEAR     modif id M3 as listbox visible length 20.
    selection-screen end   of block B1.
    at selection-screen output.
      loop at screen.
        if P_BIRPT eq 'X'.
          if SCREEN-GROUP1   = 'M2' or SCREEN-GROUP1 = 'M3' .
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
        elseif P_COLRPT eq 'X'.
          if SCREEN-GROUP1   = 'M3'.
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
        elseif P_PAYRPT eq 'X'.
          if SCREEN-GROUP1   = 'M2'.
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
          if SCREEN-GROUP1   = 'M4'.
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
        endif.
      endloop.
    Thanks
    Anil D

  • Input Field with multiple selection

    I am planning to add an input field to my BSP application.
    I have already implemented a self-made F4 help for it.
    But now my customer wants a multiple-selection for it (as in the workbench, when you display the content of a database table).
    Is there anything I get for free, or do I have to implement this all on my own?

    Hi Daniel,
    Are you looking for implementation of select-options within BSP? For this you have a beautiful article by Thomas Jung... You look for it....
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cd465292-0801-0010-e19f-e67172032668
    Thanks...
    Regards,
    Ravikiran

Maybe you are looking for

  • Save As PDF file size issues

    I am currently using Word 2008 to produce a club newsletter for email distribution. The Word (.docx) file can be up to 2.4MB in size. When I use Print > Save to PDF the resulting file can be as large as 12MB! I tried using the CUPS-PDF virtual printe

  • PDF Optimizer in Acrobat Pro X1

    Where are the same file minimizing functions that exist in PDF Optimizer in Acrobat Pro 9 found in X1? So frustrating. I work in Illustrator and am dependent on this function to get files down to a reasonable size for sending to print, the client and

  • Sync iPad album to mac

    I have bought the camera kit for my iPad, and am enjoying editing and creating new albums on iPad - perfect. But why won't the albums on my iPad sync back as new albums to iPhoto on my MacBook? Am I missing something, or am iI being nudged to depend

  • LV PDA 8 wait for ms and wait for next N ms multiple costs extrem performance.

    Dear LV PDA users. There is another bug using the PDA toolkit. The usage of wait for ms and wait for next N ms multiple costs me 200ms while the input is 1ms. I have tried it without the wait functions and the looptiming was 0..1ms. One possible work

  • Has anyone found bluetooth headphones that successfully pair with Apple Watch (not Beats)

    I've been trying to pair the Apple Watch with a few different bluetooth headphones including LG and Kinivo without success. Not really interested in buying another set of bluetooth headphones or dropping $200 on them. Any one have success pairing App