Read only List-Field

HI Folks
It seems to me that there should be an easy answer to the following
problem, so much so that I feel foolish for submitting it. However, since
this is my first posting, it is usually o.k. to be an dimwitted idiot.
Is there any way to have a list field (i.e. scroll list or drop list) that
doesn't display the icon at the right side of the box (the drop arrow or
scroll icon).
We wish to display an item from the list in a read-only fashion, thus is
not any need to display the list, just the corresponding item from the
list. (i.e 'sex' it comes from the database as a 1 (Male) or 2 (Female),
and rather than display the 1 or 2, we would like to display the 'Male' or
'Female'. )
Since we are displaying the records in an array and the array field is
mapped to an object that corresponds to the database table, extra fields
for translation, including virtual attributes, in that object fowl up the
writing to that database table. And, of course, the Drop list adds some
vertical height to the array field, screwing up the esthetic beauty of the
screen.
Thanks for reading this.
-later
-labeaux
[email protected]

Try some thing like below,
your data value that needs to be update should be in this format "ID of the lookup";#"Title of the Lookup" 
For example,
listItem["Product_x0020_Number"]
= "1;#iPhone";
listItem["Product_x0020_Number"]
= "2;#Mobile";
Hope this helped you....

Similar Messages

  • Re: Read only List-Field

    I'm not sure if this is what you're asking, but here it goes...
    Create a custom domain with IntegerNullable as the SuperClass
    From the properties of the custom domain, select Droplist or scrollistas the formwidget. Click on properties beside the formwidget label
    and datafill the matrix. Male 1
    Female 2
    Your widget will then popup with the choices Male and Female for your
    users to chose from. You can also dynamically set the contents of
    the list by using SetElementList? method on the droplist or scrollist.
    Check out the documentation for more info on manipulating the contents
    of the list.
    I use Express, so I would set this in the Business Model.
    If you use straight Forte, you probably select a DomainWidget from the
    Window workshop once you've created the custom domain.
    Hope this helps.
    Regards,
    Peter Kelly
    ____ \ / ____ CrossKeys Systems Corporation
    ___ \ X / ___
    \ X X / Crosskeys Centre Peter Kelly
    X X X 350 Terry Fox Drive Software Designer
    ___/ X X \___ Kanata, Ontario
    ____/ X \____ Canada K2K 2W5 [email protected]
    _____/ \_____ (613) 591-1600 Ext. 8247
    [email protected] wrote:
    >
    HI Folks
    It seems to me that there should be an easy answer to the following
    problem, so much so that I feel foolish for submitting it. However, since
    this is my first posting, it is usually o.k. to be an dimwitted idiot.
    Is there any way to have a list field (i.e. scroll list or drop list) that
    doesn't display the icon at the right side of the box (the drop arrow or
    scroll icon).
    We wish to display an item from the list in a read-only fashion, thus is
    not any need to display the list, just the corresponding item from the
    list.
    Since we are displaying the records in an array and the array field is
    mapped to an object that corresponds to the database table, extra fields
    for translation, including virtual attributes, in that object fowl up the
    writing to that database table. And, of course, the Drop list adds some
    vertical height to the array field, screwing up the esthetic beauty of the
    screen.
    Thanks for reading this.
    -later
    -labeaux
    [email protected]

    Gediminas 
    Datasource, extract structure and append structure(if any) not transported properly.
    Try to collect again and retransport and replicate.
    Check at RSA3 in QA system, now fields are visible or not.
    Srini

  • How to right align a read only numeric field in a panel form layout

    Hi, does anyone know how to right align a read only numeric field in a panel form layout? I am using: Style Class = AFFieldNumberMarker, but it only seems to work if the field is disabled. Disabling the field gives it a difference appearance that does not look right on our forms. These are calculated fields, which cannot be modified, so read only is necessary.
    I have looked online for some answers, and it seems that others are having similar issues.
    I have tried different combinations for the properties, but so far I cannot get it to work.
    Thanks
    Judy
    I am using JDEV 11.1.1.5

    Sorry for the delay in my response. Here is the code
    <af:inputText value="#{bindings.TotalAirlineCostEst.inputValue}"
    label="#{bindings.TotalAirlineCostEst.hints.label}"
    required="#{bindings.TotalAirlineCostEst.hints.mandatory}"
    columns="#{bindings.TotalAirlineCostEst.hints.displayWidth}"
    maximumLength="#{bindings.TotalAirlineCostEst.hints.precision}"
    shortDesc="#{bindings.TotalAirlineCostEst.hints.tooltip}"
    id="it20" readOnly="false"
    disabled="true"
    styleClass="AFFieldNumberMarker">
    <f:validator binding="#{bindings.TotalAirlineCostEst.validator}"/>
    <af:convertNumber groupingUsed="true"
    pattern="#{bindings.TotalAirlineCostEst.format}"
    type="number"
    maxFractionDigits="0"/>
    </af:inputText>
    thank you,
    Judy

  • OVS on read-only input field

    OVS will not allow me to change the value of a read-only input field.  If the input field is set to read-only, the OVS selection table does not display an 'OK' button, only close.
    Value cannot be copied (field is not editable)
      I do not want the field to be editable on the screen, but only allow input via the selected row in the OVS.  Any suggestions?
    Edited by: Bob DeNuto on Jul 31, 2008 1:22 AM

    Using Dictionary Search Help and OVS in this case will disable the Copy button and you don't have any control.
    Use Freely Programmed Value Help, this will solve your problem
    https://wiki.sdn.sap.com/wiki/display/WDABAP/Freelyprogrammedinput+help
    how to provide f4 help to the read only input field
    Abhi

  • Invalid data has been used to update the list item. The field you are trying to update may be read only (Lookup Field).

    Hi.
    I am getting below error while adding value to look-up field.
    Invalid data has been used to update the list item. The field you are trying to update may be read only.
    I have tried many forums ans post but didn't come to know what's the root cause of issue. I am also posting Code for creating and adding lookup field.
    CAML to create lookup field (It works Fine)
    string lkproductNumber = "<Field Type='Lookup' DisplayName='Product Number' StaticName='ProductNumber' ReadOnly='FALSE' List='" + pNewMaster.Id + "' ShowField='Product_x0020_Number' />";
    Code to insert value to lookup field
    ClientContext client = new ClientContext(SiteUrl);
    client.Load(client.Web);
    client.Credentials = new NetworkCredential(this.UserName, this.Password, this.Domain);
    // Lookup Lists
    List pmList = client.Web.Lists.GetByTitle("Product_Master");
    //List Conatining Lookup Columns
    List piList = client.Web.Lists.GetByTitle("Product_Inventory");
    client.Load(piList);
    query.ViewXml = "<View/>";
    ListItemCollection collection = pmList.GetItems(query);
    client.Load(collection);
    client.ExecuteQuery();
    int prodid=0;
    foreach (ListItem item in collection)
    if (Convert.ToString(item["Product_x0020_Number"]) == ProductNumber)
    { prodid = Convert.ToInt32(item["ID"]); }
    ListItem piItem = piList.AddItem(new ListItemCreationInformation());
    piItem["Product_x0020_Number"] = new FieldLookupValue() { LookupId = prodid };
    piItem.Update();
    client.ExecuteQuery();
    Exception Detail
    Microsoft.SharePoint.Client.ServerException was caught
    Message=Invalid data has been used to update the list item. The field you are trying to update may be read only.
    Source=Microsoft.SharePoint.Client.Runtime
    ServerErrorCode=-2147352571
    ServerErrorTypeName=Microsoft.SharePoint.SPException
    ServerStackTrace=""
    StackTrace:
    at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
    at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
    at WebServiceProviders.ClientServices.NewProductInventory() in Z:\.............ClientServices.cs:line 889
    InnerException:
    Quick response is highly appreciated.
    Thanks
    Mehar

    Try some thing like below,
    your data value that needs to be update should be in this format "ID of the lookup";#"Title of the Lookup" 
    For example,
    listItem["Product_x0020_Number"]
    = "1;#iPhone";
    listItem["Product_x0020_Number"]
    = "2;#Mobile";
    Hope this helped you....

  • Read External List Field on Custom ECB action

    I tryed to show a Custom ECB action on an External List.
    The External List have a Field "LOGICAL_ID" with an IP address, but the GetAttributeFromItemTable works only with Standard List.
    How i read the External List Field and open some shell or browser actions with these field?
    <script language="Javascript" unselectable="on">
    // START: Override Function
    function Custom_AddListMenuItems(m,ctx)
    var strDisplayText = "Ping";
    var strDisplayText1 = "Browse Http";
    var strDisplayText2 = "Telnet";
    var strDisplayText3 = "SSH";
    var strDisplayText4 = "Remote Desktop";
    // for test strDisplayText = currentItemID;
    var LOGICAL_ID = currentItemID;
    // var LOGICAL_ID = GetAttributeFromItemTable(itemTable, "LOGICAL_ID");
    // var LOGICAL_ID = itemTable.getAttribute("LOGICAL_ID");
    var strAction = "javascript:var x = new ActiveXObject('WScript.Shell');x.run('ping -t" + LOGICAL_ID + "');window.refresh";
    var strAction1 = "http://" + LOGICAL_ID;
    var strAction2 = "telnet://" + LOGICAL_ID;
    var strAction3 = "telnet://" + LOGICAL_ID + "/? -ssh";
    var strAction4  = "javascript:var x = new ActiveXObject('WScript.Shell');x.run('mstsc /v " + LOGICAL_ID + " /admin');window.refresh";
    var strImagePath = "";
    // Add menu item
    CAMOpt(m, strDisplayText, strAction, strImagePath);
    // add a separator to the menu
    CAMSep(m);
    CAMOpt(m, strDisplayText1, strAction1, strImagePath);
    CAMOpt(m, strDisplayText2, strAction2, strImagePath);
    CAMOpt(m, strDisplayText3, strAction3, strImagePath);
    CAMOpt(m, strDisplayText4, strAction4, strImagePath);
    // false means that the standard menu items should also be rendered
    return true;
    // END: Override function
    </script>

    Hi,
    If you want to disable the Rich Text Field dynamically, you can consider to use JavaScript and JavaScript Client Object Model.
    The “disable” attribute seems not work on Rich Text Editor control, so we can set the “display” attribute as “none” to hide the control instead:
    <script type="text/javascript">
    document.getElementById("ctl00_PlaceHolderMain_rftDefaultValue").style.display = "none";
    document.getElementById("ctl00_PlaceHolderMain_rftDefaultValue_toolbar").style.display = "none";
    document.getElementById("ctl00_PlaceHolderMain_rftDefaultValue_iframe").style.display = "none";
    console.log('hide');
    </script>
    You will need to find out the id of the toolbar and textbox of the Rich Text Editor control in page using IE developer(F12) first, then replace the ids in the script above.
    We can get values of list items using JavaScript Client Object Model:
    http://msdn.microsoft.com/en-us/library/office/hh185006(v=office.14).aspx
    More information about JavaScript Client Object Model:
    http://msdn.microsoft.com/en-us/library/office/hh185011(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/office/hh185015(v=office.14).aspx
    Feel free to reply if there are still any questions.
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they
    help and unmark them if they provide no help. If you have feedback for TechNet
    Subscriber Support, contact [email protected]
    Patrick Liang
    TechNet Community Support

  • Read-only/hidden fields in self request form

    I have a prepop plugin for one of the field which generates a number from an oracle sequence, i don't want requesters to modify it, so I would like to either hide it or make it read only.
    Also, can i put some label/help text to put in some instructions?

    Have a look at the following link for section- *19.1 Step 1: Creating a Request Dataset for the Resources* -> *19.1.1.3 The AttributeReference Element* ->Optional Properties -> approver-only
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e14309/request.htm#CIHGBGBC

  • OAF: Error While Formatting a Read Only MessgeTextInput field of an AdvanceTable "$#,##0.00" format.

    Hi Gurus,
    Please see the below issue I am facing while formatting the field in OAF.
    Situation:
    Custom BidPG page extends a shared region.(sharedRN.xml)
    and in SharedRN I have a advance table, with 5 columns each having  MessageTextInput read only Items.
    While the page is getting loaded values are coming from action fired in the PFR. and getting formatted with a $#,##0.00 format. which I have done over bean of all MessageTextInput items
    using below code in process request.
    Formatter formatter =  new OADecimalValidater("$#,##0.00;($#,##0.00)", "$#,##0.00;($#,##0.00)");
    OAMessageTextInputBean NetincPerMac = (OAMessageTextInputBean)webBean.findIndexedChildRecursive("item243");
    NetincPerMac.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
    Above formatting is working for below cases.
    285 becomes $285.00
    230.45 becomes $230.45
    But in case if there are numbers like 234.254 it will be formatted as $234.254. Here it wont set the precision to 2.
    I want to display till only 2 digits after decimal.
    please let me know Where I am going wrong or missing some steps to do so.
    I have tried below approaches but it did not worked out for me.
              OADecimalValidater dval= new OADecimalValidater("$#,##0.00;($#,##0.00)", "$#,##0.00;($#,##0.00)");
               dval.setMaxPrecision(2);        
              Formatter formatter = dval;
    Also , I have tried to set Currency Code as well to USD but it didnot worked out for me.
    Please let me know how we can set the precision to 2.
    Please note: in process request I dont have data in the bean, I have tried writing a method in controller and setting precision to 2.but it errored out for NULL values coming from bean in process request.
    Please reply. Its an urgent issue needs to be resolved.
    Thanks,
    Premanshu

    On another link I found the following :
    BKI4007E
    File filename cannot be read. Reason: errno(errno number) errno text.
    Explanation:
    Data could not be read due to some system error. Check errno text for further information. If this error recurs, this might indicate some hardware problems.
    User response:
    Contact your system administrator.
    The Link:
    http://ezbackup.cornell.edu/techsup-v5.4/ibmdocs/messages/html/anrcms5878.htm
    Regards,
    Siddhesh

  • Read-Only data fields/parameters

    Hi
    How can I make a data-field (parameter) Read-Only?
    For instance : let's say, someone (an Admin) has filled in data into a user form, and saved it. Someone else (who does not have similar Admin status) signs in, and views the form.
    I want the second person to be able to view as well as Edit the form. But, not ALL the fields. Some fields should be uneditable (i.e., read only). He can see the data in those fields. But, he is not allowed to modify them.
    How is this done?
    Thanks.

    example how this field is non-editable on condition basis, you can use your condition
    <Field>
      <Display class='Text'>
        <Property name='value' value='Solanki'/>
        <Property name='title' value='Last Name'/>
        <Property name='disabled'>
          <cond>
            <eq>
              <i>10</i>
              <i>10</i>
            </eq>
            <s>true</s>
            <s>false</s>
          </cond>
        </Property>
      </Display>
    </Field>

  • Read-only input field error

    I have an input field marked read-only on a form.  When I run the application, select the read-only field, press enter, then Save (validating action), I get a WebDynpro exception saying that I attempted to modify a read-only context attribute.  This does not happen if I select the field and press other keys (such as characters)...  only when I press enter.  If I make the field disabled (instead of read-only), this error is avoided because I cannot even select the input field - but I would rather use read-only because it doesn't gray out the field at runtime.  Is this a bug, or am I missing something?
    -Dave

    When you select the inputField and press enter the OnEnter action of the inputField is being called.
    When you disable the inputField it prevents you from entering values as well as accessing it actions also.
    When you try to keep you context attribute as read only and keep the input field as enabled it is similar to trying to modify a read only attribute which is not permissible.
    Hence the error.
    Revert for further clarifications.
    Message was edited by: Noufal Kareem

  • Search help unavailable in Read-only input field since EHP4

    Dear Experts!
    I have a problem with a Portal page since the deploy of the EHP4. The page has standard input fields with Search Helps. I needed to have the input field non-modifiable so the user would have to use the search help to get the proper information.
    Prior to the EHP4 installation, I set the input field to Read Only in the WebDynpro explorer, this disabled the editing while permitting the user to use the Search Help.
    Since the installation, the search help is no longer visible or accessible on a Read Only standard inputfield.
    Do you know if there is a way to allow the search help on a read only field?
    Thanks so much for your answer,
    Brian Foster.

    >Since the installation, the search help is no longer visible or accessible on a Read Only standard inputfield.
    This was a conscious design decision on SAP's part that disabled or read-only fields should no longer fire value help.  I am aware that this situation was used in the past as you describe.  It is even still used in SE80 for the Web Dynpro ABAP wizards. However usability studies showed that this often confused end users and therefore it is no longer allowed.  The field must be input enabled to fire the attached serach help.

  • Default value for Read-Only Picklist Field

    Hi, all--
    I would like to have a default value ("Undetermined") for the "Associated Account" read-only picklist value. I have an account record of this value for this purpose. This is because if there is no value in the field, the record will not be included in a report that includes the field. I do not want to make the field required at this point.
    Field management doesn't appear to allow any default value for read-only picklists. Does anyone know how to get around this, either at the lead record stage or at the lead report stage (without resorting to an analytic, which won't work for what we are doing)?
    Thanks.

    That's a great question. It doesn't appear as though you can select it from the typical method of Admin | Application Customization | Lead | Lead Field Setup | Associated Account.
    Have you tried creating a workflow to populate the field using Before Modified Record Saved?

  • How to populate read only input field or text view form value help only

    Hi experts,
    I have one requirement to populate a read-only field or text view from value help.
    User cant put any value there.value comes only from the value help.
    For example,
    when we read context using Code Wizard,we cant type any value there.value only comes from value help.
    How to implement that functionality?
    Please reply.
    Thanks in advance,
    Subhasis.

    Yes it is possible.
    1.Create a context Attribute and then bind this attribute to the Text view UI element.
    2. read context attribute and then set value to the context attribute like this way.
    DATA:
        elem_context1                        TYPE REF TO if_wd_context_element,
        stru_context1                        TYPE if_first=>element_context ,
        item_potxt                          LIKE stru_context-potxt.
    get element via lead selection
      elem_context1 = wd_context->get_element(  ).
    stru_context1-potxt = 'PO'.
    elem_context1->set_attribute(
        VALUE  = stru_context1
        name   = 'POTXT'
    thanks
    Suman
    Edited by: suman kumar chinnam on Sep 9, 2008 12:12 PM

  • Help with read only text field

    trying to refine a KW form
    I don’t want user to enter value in a box so I made it read only.  $<input name="proptax" type="text" size="10" readonly="true">
    Validation says:
    "true" is not valid value for the "readonly" attribute in any of the currently active versions. See the above warnings for more details.[HTML 4.0]
    So now what?

    DW's validation gives me an error.  W3C  says it's ok.  I wonder why DW (v8) disagrees.
    Actually I 'disabled' the field instead which actually works better for me but they all behave the same,  errors in DW  and ok in W3C
    Thanks

  • Make a read-only text field open by using button and javascript

    Hello
    I have a form with text fields that I will pre-populate with data. The text fields will be read-only by default. I want to make it so that when a user wants to make edits, he will need to click on a button and in turn, the text field's background will turn gray and he can make edits to the text field. I can already make the background turn gray but I cannot make the text field open.
    This is the code that will run after the button is clicked:
    color.ltGray = new Array("G", 0.75);
    this.getField('TestField').fillColor = color.ltGray;
    this.getField('TestField').access = "open";
    The text field's background turns gray but it is still read-only. Any ideas?
    Thanks in advance!

    Here's the online version of the Acrobat JavaSript documentation: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/js/html/wwhel p.htm?href=JavaScript_SectionPage.70.1.html&accessible=true
    It's also available as a PDF in the Acrobat SDK.
    Regarding your other question about adding a PDF to another, do you want to add it as an attachment, or add the pages from one PDF to another?

Maybe you are looking for

  • Facing Issue With Oracle SOA Suite 11.1.1.3.0

    Hi All, I am facing some issues with ORACLE SOA SUITE 11.1.1.3.0. Hope you people can help us out. Please find the issue details below along with all the relevant information’s I have following SOA suite installation at my server: Oracle 10g Express

  • Customer Master Report needed for jurisdiction, tax code, and district

    I am trying to pull a customer master report and need to include the following fields: Name (NAME1) Account (KUNNR) Jurisdiction ( TAXJURCODE) Tax Code (TAXKD) District, which is County for US addresses (CITY2) I haven't seen a report with CITY2 and

  • Time Capsule not showing up in finder

    I have a new TB TC and I had a failure the first time trying to back up. I then noticed when I restarted the backup the ata speed was very slow over a 100baseT network connection. It finally finished and then did a bunch of backups during the day but

  • How do I stop the pop up blocker from blocking popups? I have already disabled it.

    how can I stop the popup blocker from blocking popups? I have disabled it but they are still being blocked. == This happened == Every time Firefox opened

  • ChaRM: SDTM Test Message, no actions available

    Hello Solution Manager Gurus, in our system, when a Test message is created it can be set to In Process, but when it is In Process there are no actions available. This is the contents of the action determination log: Determination started Application