Display value in custom field selection of standard field

Hi,
I want to display the country value based on the Account selection, that is the country associated with the selected Account.
I created Contact extension BO and added country field with data type CountryCode. Account is a standard field.
I am able to fetch country value but assigning the value to Country field can be done in only BeforeSave.absl
I have also provided validation for this country field.
Issue here is:
First Validation-OnSave.absl gets called and then BeforeSave.absl.
I want the country value to be displayed once the user selects Account.
Regards,
Vijaya Chavan

Hi Vinod,
I got the issue.
AfterModify.absl gets called when the Contact Quick Create screen gets loaded and not after selecting the Account field value.
So I tried geting the value directly from the following path without firing a query in BeforeSave.absl.
this.CurrentDefaultIsContactPersonFor.BusinessPartnerRelationship.FirstBusinessPartner.AddressInformation.GetFirst().AddressSnapshot.PostalAddress.GetFirst().CountryCode;
But BeforeSave.absl gets called when I click on "Save". I wanted the value to be displayed soon after the Account Value is selected.
Regards,
Vijaya Chavan

Similar Messages

  • Custom  search help on standard field of PO Item

    Hi all,
    any one know a way to build a custom search help on field EKPO-AFNAM in transaction ME21n,ME22N?
    I'd prefer don't change the standard data element adding the search help. Is there a standard way, like badi or user exit?
    I'm using ECC 6.0
    Regards,
    enzo

    Check all Ewxits
    Transaction Code - ME21N                    Create Purchase Order
    Exit Name           Description
    LMEDR001            Enhancements to print program
    LMELA002            Adopt batch no. from shipping notification when posting a GR
    LMELA010            Inbound shipping notification: Transfer item data from IDOC
    LMEQR001            User exit for source determination
    LMEXF001            Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001            Customer-Specific Source Determination in Retail
    M06B0001            Role determination for purchase requisition release
    M06B0002            Changes to comm. structure for purchase requisition release
    M06B0003            Number range and document number
    M06B0004            Number range and document number
    M06B0005            Changes to comm. structure for overall release of requisn.
    M06E0004            Changes to communication structure for release purch. doc.
    M06E0005            Role determination for release of purchasing documents
    ME590001            Grouping of requsitions for PO split in ME59
    MEETA001            Define schedule line type (backlog, immed. req., preview)
    MEFLD004            Determine earliest delivery date f. check w. GR (only PO)
    MELAB001            Gen. forecast delivery schedules: Transfer schedule implem.
    MEQUERY1            Enhancement to Document Overview ME21N/ME51N
    MEVME001            WE default quantity calc. and over/ underdelivery tolerance
    MM06E001            User exits for EDI inbound and outbound purchasing documents
    MM06E003            Number range and document number
    MM06E004            Control import data screens in purchase order
    MM06E005            Customer fields in purchasing document
    MM06E007            Change document for requisitions upon conversion into PO
    MM06E008            Monitoring of contr. target value in case of release orders
    MM06E009            Relevant texts for "Texts exist" indicator
    MM06E010            Field selection for vendor address
    MMAL0001            ALE source list distribution: Outbound processing
    MMAL0002            ALE source list distribution: Inbound processing
    MMAL0003            ALE purcasing info record distribution: Outbound processing
    MMAL0004            ALE purchasing info record distribution: Inbound processing
    MMDA0001            Default delivery addresses
    MMFAB001            User exit for generation of release order
    MRFLB001            Control Items for Contract Release Order
    AMPL0001            User subscreen for additional data on AMPL
    No of Exits:         35
    Transaction Code - ME22N                    Change Purchase Order
    Exit Name           Description
    LMEDR001            Enhancements to print program
    LMELA002            Adopt batch no. from shipping notification when posting a GR
    LMELA010            Inbound shipping notification: Transfer item data from IDOC
    LMEQR001            User exit for source determination
    LMEXF001            Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001            Customer-Specific Source Determination in Retail
    M06B0001            Role determination for purchase requisition release
    M06B0002            Changes to comm. structure for purchase requisition release
    M06B0003            Number range and document number
    M06B0004            Number range and document number
    M06B0005            Changes to comm. structure for overall release of requisn.
    M06E0004            Changes to communication structure for release purch. doc.
    M06E0005            Role determination for release of purchasing documents
    ME590001            Grouping of requsitions for PO split in ME59
    MEETA001            Define schedule line type (backlog, immed. req., preview)
    MEFLD004            Determine earliest delivery date f. check w. GR (only PO)
    MELAB001            Gen. forecast delivery schedules: Transfer schedule implem.
    MEQUERY1            Enhancement to Document Overview ME21N/ME51N
    MEVME001            WE default quantity calc. and over/ underdelivery tolerance
    MM06E001            User exits for EDI inbound and outbound purchasing documents
    MM06E003            Number range and document number
    MM06E004            Control import data screens in purchase order
    MM06E005            Customer fields in purchasing document
    MM06E007            Change document for requisitions upon conversion into PO
    MM06E008            Monitoring of contr. target value in case of release orders
    MM06E009            Relevant texts for "Texts exist" indicator
    MM06E010            Field selection for vendor address
    MMAL0001            ALE source list distribution: Outbound processing
    MMAL0002            ALE source list distribution: Inbound processing
    MMAL0003            ALE purcasing info record distribution: Outbound processing
    MMAL0004            ALE purchasing info record distribution: Inbound processing
    MMDA0001            Default delivery addresses
    MMFAB001            User exit for generation of release order
    MRFLB001            Control Items for Contract Release Order
    AMPL0001            User subscreen for additional data on AMPL
    No of Exits:         35
    Rewards if useful....................
    Minal

  • Map a custom SRM field to a standard field in R/3

    Hello All,
    We have created a custom field in SRM and it needs to be transferred to one of R/3's
    standard field. it has to be done in both the classic and extended classic scenario.
    For the extended classic scenario I tried using the BADI BBP_ECS_PO_OUT_BADI
    but this is not getting called in the creation of local purchase order neither
    does it transfer the changes made to r/3
    As for classic scenario I tried using the BADI BBP_CREATE_BE_PO_NEW ~ FILL_PO_INTERFACE1
    but the structure cs_po1_document-IT_POITEM does not get filled up with the item_guid
    which needs to act as a reference field to read the table.
    At the backend i tried using the bbp_po_inbound_badi and tried to change the value in the
    debuggung mode. But it didn't carry the value to the field either.
    Thanks in advance,
    Prasanna

    1. The BADI BBP_CREATE_BE_PO_NEW will only be called in the classic
    scenario wherein the purchase order is directly created in the backend
    R/3 system.
    For extended classic scenario, kindly use the BADI BBP_ECS_PO_OUT_BADI
    instead.
    Please be sure that you have filled  BBP_CREATE_BE_PO_NEW  with these lines:
    CS_CTRL_ATT-BE_DOC_TYPE = 'SRM'.
    CS_CTRL_ATT-BE_STORAGE_CAT = 'DMS_C1_ST'
    Please also check the settings in the customing of the backend (DC10, DC20, DC30).
    2.  Please create test data in BAPI_PO_CREATE1 in backend system according to note 539978 As in the note described, please 
      - set the Parameter FBGENDAT 'X' in the backend system for the
        RFC user of the SRM system
      - execute the report FBGENDAT in the mode 'A'.
        after activating this report, test data will be created by every
        BAPI_PO_CREATE(1) call.
      - once you have a new entry in the SM13 of the backend system,
        please deactivate the generation of test data in report FBGENDAT.
    Please check the Data transfered from SRM.
    3, There are some field with will be cleared during MM processing when
    you run the BAPI_PO_CREATE1 with the data transfered from SRM.
    Examples : 
    Classic scenario.
    In this case you create service purchase order.
    For service purchase orders fields WEMPF and ABLAD(GR_RCPT and UNLOAD_PT in BAPI) are not filled when creating the document. It is absolutely not possible to have this unloading point/ Recepient on item level service documents. The account assignment is entered on service level and it is then used to determine the account assignment on item level.  So even if you were able to pass from SRM the unloading point/Recepient on item level in service documents it would be overwritten from the account assignment of services. This functionality won't be available in standard R/3.
    Please see note 118008 for more information.
    Extended classic scenario.
    As soon as you pass delivery address The system clears field EMLIF (supp_vendor in the BAPI interface). Do not pass delivery address and you will be able to have Vendor in the purchase order. Due to the fact that delivery address exist, a lot of fields in lt_item are cleared, including supp_vendor.
    Call stack:
    8 SAPL2012 FORM PROCESS_ADDR_TABLE
    7 SAPL2012 FORM CREATE_ITEM_ADDR
    6 SAPL2012 FORM PROCESS_NON_INTEGRATED_COMP
    5 SAPL2012 FUNCTION BAPI_PO_CREATE1
    Please see code in subroutine PROCESS_ADDR_TABLE:
                    CLEAR imt_item-kunnr.
                    imt_itemx-kunnr = bapi_yes.
                    CLEAR imt_item-emlif.            !!!!!!!!!!!!!!!!!!!!
                    imt_itemx-emlif = bapi_yes.
                    CLEAR imt_item-lblkz.
    If you have the fields cleared in MM process , it is not a SRM-EBP-POR issue , but a MM-PUR-PO-BAPI  The BADI BBP_CREATE_BE_PO_NEW will only be called in the classic scenario wherein the purchase order is directly created in the backend R/3 system. For extended classic scenario, kindly use the BADI BBP_ECS_PO_OUT_BADI instead.
    I hope this information will help you .
    Summer Wang
    Edited by: Summer Wang on Nov 24, 2009 2:50 AM

  • Get the display values of a multi selection listbox

    Hello, I am creating a visual jsf project and I have a multi selection listbox component. I have bound this component with a table of my database. For the value of the listbox's items I use the "id" field of the table, and for the display value I use the "name" field. I know that with the method getSelectedValues() I get the values "id" of the listbox, but what I want is to get the display values of the selected items of the list box. How do I do that?I have tried this code:
    Object[] selectedareas=getSessionBean1().getAreas();
    String[] mySelections=getSessionBean1().getAreas();
    selareas=areasDataProvider.findAll("id", selectedareas);
    for(int i=0;i<selectedareas.length;i++){          
    some= (String) areasDataProvider.getValue(areasDataProvider.getFieldKey("are_name"), selareas[i]);
    but I get an java.lang.ArrayIndexOutOfBoundsException: 0 error. Any suggestions?Thank you in advance!

    The way I get it in my <f:selectItems> is by binding my multi select listbox, with my database. So what the code is on my jsp page is:
    <f:selectItems binding="#{addcases.multiSelectListbox2SelectItems}" id="multiSelectListbox2SelectItems"value="#{addcases.languageDataProvider.options['language.id,language.lang_name']}"/>and I don't know how to work from here..

  • Add a custom table for field selection while creating field catalog for LIS

    Hi,
    I have a requirement to add a Custom table to be available for field selection while creating a field catalog for LIS. Its required as there are many custom fields to be used for field catalog creation and adding them in one of the existing tables listed is not a feasible option for us. Please let me knw if its possible..?? If yes how to get it done..??
    Regards,
    Akash Sinha

    hi,
    You need to add your field in the Data Dictionary first. For example, if
    you want the new field in the Order Item field catalog do the following.
    Look at structure MCVBAPUSR (SE11). If you already have a user structure
    appended to this structure then you can add your new field to your existing
    structure. If there is no structure already appended to MCVBAPUSR then you
    must create a new structure with your field in it and then append the new
    structure to this one.
    If you look at structure MCVBAP you will see the data appended to the end
    of it.
    Now you should see it in the field catalog.
    regards,
    balajia

  • How to display value based on LOV selection

    Hi,
    I have an editable table. On create operation one of the field is LOV, based on LOV selection the next field should be auto populated, please help me how to achive this.
    Thanks,

    Thanks for your reply........
    I did all these to get value based on LOV selection, but my problem is when i am trying to create a new record then everthing is working fine but normal search i am not getting the value of that attribute.
    below is my code
    Page:
    <af:column sortProperty="ProcessType" filterable="true"
    sortable="true"
    headerText="#{bindings.CmWeeklyProcesses.hints.ProcessType.label}"
    id="c36" width="340px;">
    <af:inputComboboxListOfValues id="processTypeId"
    popupTitle="Search and Select: #{bindings.CmWeeklyProcesses.hints.ProcessType.label}"
    value="#{row.bindings.ProcessType.inputValue}"
    model="#{row.bindings.ProcessType.listOfValuesModel}"
    required="#{bindings.CmWeeklyProcesses.hints.ProcessType.mandatory}"
    columns="#{bindings.CmWeeklyProcesses.hints.ProcessType.displayWidth}"
    shortDesc="#{bindings.CmWeeklyProcesses.hints.ProcessType.tooltip}" inlineStyle="width:800px;"
    valueChangeListener="#{backingBeanScope.backing_app_CalcSchedules.weeklyDescription}"
    autoSubmit="true" >
    <!-- <f:validator binding="#{row.bindings.ProcessType.validator}"/>-->
    </af:inputComboboxListOfValues>
    </af:column>
    <!--value="#{row.bindings.Description.inputValue}" backingBeanScope.backing_app_CalcSchedules.description-->//If i use this value in the below property line then i am not getting value while creating time but if i done blind search then i am not getting any value in this field.
    <af:column sortProperty="Description" filterable="true"
    sortable="true"
    headerText="#{bindings.CmWeeklyProcesses.hints.Description.label}"
    id="c35" width="390px;">
    <af:inputComboboxListOfValues id="descriptionId"
    popupTitle="Search and Select: #{bindings.CmWeeklyProcesses.hints.Description.label}"
    value="#{row.bindings.Description.inputValue}"
    model="#{row.bindings.Description.listOfValuesModel}"
    required="#{bindings.CmWeeklyProcesses.hints.Description.mandatory}"
    columns="#{bindings.CmWeeklyProcesses.hints.Description.displayWidth}"
    shortDesc="#{bindings.CmWeeklyProcesses.hints.Description.tooltip}" inlineStyle="width:1000px;"
    readOnly="true" partialTriggers="processTypeId">
    <f:validator binding="#{row.bindings.Description.validator}"/>
    </af:inputComboboxListOfValues>
    </af:column>

  • Signing: Empty list in "Field Selection" when picking fields to mark as read-only on signing

    I have a PDF form with some signature fields. I am attempting to mark some of the fields in the document as read-only when the document is signed. This is what I did:
    1. Modify the "Signed" properties of the signature field.
    2. Choose "Mark as read-only" and "Just these fields" in the drop down list beside this option.
    3. Click on the "Pick" button to select the fields to be marked read-only when the user signs this field.
    In the "Field Selection" dialog that comes up, nothing is shown in the list.
    Am I doing something wrong? Is there something I need to do to add fields to this list, or should it be populated automatically allowing me to choose what I want?
    I noticed this feature is only available for Acrobat 6.0 and later. The compatibility level for the document I created is 1.6 (Acrobat 7 and later). It is created in Acrobat X.
    Just figuring my way around these things. Did a google search for any solutions, but couldn't find anything on this.
    Any help would be greatly appreciated.
    Thanks,
    Ron

    Hi Ron,
    It certainly sounds like you are on the right track.What version of Acrobat are you using, is it Pro or Standard, Mac or Win? I see where you mentioned the file was created in Acrobat X, but I'm not sure that the app that create the PDF file is the same version as the one you are using for editing.
    Steve

  • Mapping of CRM BP standard field to ECC Standard field

    Hi Experts ,
    We have a requirement in which we need to copy "Identification Type" field (table field BUT01D-TYPE) in "Identification Tab" of Business Partner from CRM into ECC Standard Field 'Corporate Group' in Control Data in XD01 (Table Field KNA1-KONZS).
    Please let me know where I can do the mapping of the CRM field to ECC field for this requirement .
    thanks in advance.
    Anil

    Go to se19 and choose name for the implementaion and click create. Definition is 'CRM_DATAEXCHG_BADI'. Choose description for the implementation and Save your implementation. Next you have to implement method CRM_DATAEXCH_R3D_MBDOC_FILL by doubleclicking on it. Data coming from r3 are witen in table TI_BAPIMTCS. And to write data to crm you can use direct logic or fill structure of CT_BUS_TRANS_MSG.
    For more information about the badi goto SE18 and open badi CRM_DATAEXCHG_BADI and hit Documentation button.

  • Custom seach help for standard field in Web dynpro application

    Hi All,
    I have a requirement in SRM portal where in I have a to add a custom search help to the 'WBS_ELEMENT' field in the the 'ACCOUNT ASSIGNMENT' tab of the Shopping cart creation screen with some input parameters on the search help.
    As the SRM Shopping cartcreation screen is a standard web dynpro application.
    Can anyone help me in this regard for addition of search help for a field with some custom fields in the Search help screen.
    Any inputs will be very helpful.
    Thanks in advance.
    Regards,
    Ahmed.

    Hi Ahmed,
    If it is an standard application then you will have to do ENHANCEMENT in the component. And for using customised value help you will have to declare attribute in CONTEXT and dynamically change the binding of the Value property of UI element inside post-method of WDDOMODIFY. You can create your own customised value help for newly added attribute.
    Thanks,
    Vishesh

  • Clearing the displayed value for a SELECT-OPTION

    How do I clear the displayed value of a SELECT-OPTION? 
    I have 2 SELECT-OPTIONs on my screen (standard basic report program screen).  I use code like this to populate the drop-down boxes for each one. 
    =====
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prgrp-low.
      PERFORM fill_prgrp_values.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prctr-low.
      PERFORM fill_prctr_values.
    =====
    The value the user picks for the first SELECT-OPTION will affect what values I put in the drop-down list for the second SELECT-OPTION. 
    If a user enters a value for the second SELECT-OPTION, and then goes back and changes the value of the first SELECT-OPTION, then I want to do two things:
    1.  Create a new set of values for the drop-down list for the second SELECT-OPTION (no problem; working fine);
    2.  Clear the displayed value from the second SELECT-OPTION that the user entered previously.  That value became invalid when the user picked a new value for the first SELECT-OPTION. 
    How do I clear that second displayed value? 
    I have tried CLEAR and REFRESH for the second variable using the formats s_prctr, s_prctr[], and s_prctr-low.  They will erase the values of the internal table or part(s) of it, but the displayed value stays on the screen. 
    I need to clear out the displayed value so the user will either leave it blank or enter or select a new value. 
    I am using F4IF_INT_TABLE_VALUE_REQUEST to build the drop-down lists, and it works fine, but I do not see any function module to clear the displayed value off the screen. 
    Thanks for your help.

    Sorry, but calling DYNP_VALUES_UPDATE did not work.  This is how I coded it. 
    fld_reset_rcd-fieldname  = 'S_PRCTR'.
      fld_reset_rcd-stepl      = sy-stepl.
      CLEAR fld_reset_rcd-fieldvalue.      "  re-initialize s_prctr
      CLEAR fld_reset_rcd-fieldinp.        "  what goes in here?
      APPEND fld_reset_rcd TO fld_reset_tbl.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname = 'ZFI_GL_BALANCE_NGL'
          dynumb = '1000'
        TABLES
          dynpfields = fld_reset_tbl
    <Added code tags>
    I have discovered that CLEAR and REFRESH of s_prctr will clear it somewhat.  If I enter multiple values, ranges, etc., they will all be cleared, EXCEPT for the one single value that is displayed on the main screen.  It is not cleared and it remains if you push the button to display the pop-up to enter ranges, etc. 
    To devrath.sampat  --  Thanks for your example for building the drop-down list, but that is not the problem I am having.  I am already able to build it just fine. 
    To repeat my problem, if I: 
    1.  first enter / select a value for the first SELECT-OPTION s_prgrp
    2.  then enter / select a value for the second SELECT-OPTION s_prctr
    3.  And finally go back and select a new value of the first SELECT-OPTION s_prgrp from its drop-down list,
         when I do, the program needs to clear the value displayed on the main screen for the second SELECT-OPTION s_prctr (any additional values, ranges, etc., are cleared by CLEAR and REFRESH, if I go look; but not the value shown on the main screen).
    Edited by: Scott Crosby on Feb 14, 2012 4:20 PM
    Edited by: Suhas Saha on Feb 15, 2012 12:03 PM

  • Copying custom fields from SRM PO to ECC PO standard fields

    Hi All,
    There are three custom fields which are added in SRM SC and PO at item level. My requirement is to map these three custom fields to three standard fields in ECC PO. Can any one please explain me, how the replication of SRM PO to ECC PO happens? I could find a function module "B470_PO_CREATE". Can any one tell me through which transaction or program this FM will be triggered.
    Any useful answer will be rewarded
    Thanks,
    Deepthi

    Hi Kumar,
    Sorry for the late reply. I have the solution for this question.
    For copying the custom fields code is to be written in the BADI "BBP_ECS_PO_OUT_BADI", method "BBP_B46B_PO_OUTBOUND". This BADI has both ECC PO fields and all the SRM fields(including the custom fields added in PO and SC) in separate structures.IS_HEADER, IT_ITEM etc has all the SRM PO values. CS_BAPI_POHEADER, CT_BAPI_POITEM etc has ECC PO values.
    There are two function modules, BBP_PD_PO_TRANSFER_EXEC and BBP_PD_PO_TRANSFER_EXEC_V2. Execute these function modules with the GUID for PO after PO change or create in SRM system. Once the FM is executed the BADI will be triggered and the additional functionality carried out and PO replication from SRM to ECC happens.
    Hope this helps you. Please let me know if you need any more information.
    Thanks,
    Deepthi

  • IExpenses-12.1.3 Facing Issue with 2 custom text fields on the standard OAF

    Dear All,
    We are facing problem where custom text fields on standard OAF page does not retain their values when we traverse back-forth on the OAF page.
    Here is the exact issue details
    1) We added 2 text fields(Attribute5 and Attribute6) through personalization on Mileage Line Details Screen(standard OAF page) of iExpenses 12.1.3.
    2) And business requirement is whenever user enters values into these fields, difference of these values is populated in third field which is standard field on that page.
    Issue
    When user enters values into above 2 fields, difference is calculated correctly however once he clicks on return page and comes back again on the detail page
    then all the standard fields retain their values but 2 custom fields have blank value.
    Is there any issue with personalization? or any other issue? Please suggest.
    Thanks,
    Mahesh

    Thanks Pratap for checking
    There is button named as "Calculate Amount" on the line details page so it is happening in below 2 scenario
    1) When User enters values in 2 fields and clicks on Calculate Amount Button then values get disappeared from custom fields
    2) When user clicks on return button, go to main page and clicks on detail button ( to come back on same line) then all the standard fields have valuece and custom one's disappeared.
    Thanks,
    Mahesh

  • Bapi bbp_create_be_rs_new mapping a customer field to standard field

    hey guys , I am trying to create a reservation in ECC and i am trying to map a custom field to a standard field in ecc.  In the structure of the reservation in the bapi there field does not exist but it exists in ecc.  How do i map one of the values from the item table to a field to ECC when the field does not even exists in the bapi?
    The field that i want to map is PRIO_URG in ecc and it does not exists in the bapi bbp_create_be_rs_new.  I saw that there is an IT_RS_EXtensionin strucutre but I dont know how to pass a custom field to a standard?
    I also want to pas a text id field to ECC too?  How should i do that?  thank you.

    help!  I don't understand how to pass my value that i got from a table in SRM to the bapi structure bapiparex?

  • Select MULTIPLE default values for a multiple selection list box based on another field in Infopath 2010

    Hello there - Before I explain my issue, I would like to point out that I have reviewed some other discussions on selecting default values for multiple selection listbox. But my issue is specific and different, and not answered by any of the discussions
    I visited.
    I have a multiple selection list box (say for example all countries in the world as values), and I would like to pre-select or setup multiple default values (say five countries) based on some criteria that I query from MS SQL database table.
    I know we can go to Data | Default Values option to setup one or many default values for multiple selection list box. When I enter the default values manually this works. I also right click the field under the Multiple-Selection List Box group, then select
    Add another Value Below and set the Default Value for this field to setup multiple default values.
    However, if I reference a field (either an infopath field or a field from SQL database) I am not able to setup multiple default values. Infopath automatically selects the last field I selected for all instances and in the end I am able to see only one
    default value selected instead of many. How to fix this problem? Why would infopath allow multiple default values when we enter it manually but not when we reference some fields?
    Please let me know if you need more info. Appreciate your help.
    Thanks!

    Hi redhotc,
    According to your description, my understanding is that you want to set multiple default values for a multiple checkbox list in InfoPath form.
    I did a test with SQL database table. I set three default values for the checkbox list by adding three values field under the group field(Data->Default values), each value field is for a default value. Then publish it to my SharePoint site, everything
    was fine.Please have a try as the below link:
    http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
    Note: if you are using SQL databse table, you may need to enable ‘Allow cross-domain data access for user form templates that use connection settings in a data connection file’ in CA. More information, please refer to:
    http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010customization.aspx?ID=418b9423-a96c-4e5e-91f9-6a1b010ebb69
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Formatting display value in LOV

    I have an LOV whose display value is a concatenation of 2 database fields. That works fine. But I want to put a tab in between the
    2 fields, otherwise the values are displayed one right after the other, and the columns are out of alignment from one row to the next.
    In sqlplus, I can do:
    select CHR(9)||to_char(objecttype_id)||CHR(9)||objecttype_name from hdb_objecttype;
    And I get:
    12 acoustic velocity meter
    1 basin
    11 canal
    2 climate site
    3 confluence
    4 diversion
    10 hydro plant unit
    5 hydro power plant
    6 reach
    7 reservoir
    14 riverware dataobject
    When I do the same thing in my LOV query, I get
    12 acoustic velocity meter
    1 basin
    11 canal
    2 climate site
    3 confluence
    4 diversion
    10 hydro plant unit
    5 hydro power plant
    6 reach
    7 reservoir
    14 riverware dataobject
    I've tried lpad and rpad, also. With blanks as padding they produce the above results. If I use a character such as '.' they behave
    correctly, but I still don't have standard field widths because of the variance in character sizes.
    Why won't any of this formatting work, and how can I get it to?
    Thanks,
    Carol

    Hi, Carol,
    In addition to what Max said, you may be displaying this in a region where whitespace is compressed; in which case you would need to use non-breaking spaces in place of regular spaces:
    SELECT     REPLACE ( RPAD ( TO_CHAR (objecttype_id)
                     , 10
                     ) || objecttype_name
               , CHR (38) || 'nbsp;'      -- CHR (38) is ampersand
    ...Speaking of compressing whitespace, this site does it.
    So when you say
    CarolM2 wrote:
    In sqlplus, I can do:
    select CHR(9)||to_char(objecttype_id)||CHR(9)||objecttype_name from hdb_objecttype;
    And I get:
    12 acoustic velocity meter
    1 basin
    11 canal
    2 climate site
    3 confluence
    4 diversion
    10 hydro plant unit
    5 hydro power plant
    6 reach
    7 reservoir
    14 riverware dataobject
    When I do the same thing in my LOV query, I get
    12 acoustic velocity meter
    1 basin
    11 canal
    2 climate site
    3 confluence
    4 diversion
    10 hydro plant unit
    5 hydro power plant
    6 reach
    7 reservoir
    14 riverware dataobjectThey come out looking identical.
    When you post formatted text (such as the results above) on this site, type these 6 characters:
    (small letters only, inside curly brackets) before and after sections of formatted text, to preserve spacing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • PO workflow sends multiple workitem

    Dear Experts,                    I have created a PO workflow, which triggered on change and releasestepcreated events. This workflow has four level apprval. It is working fine except, after each approval it sends the multiple workitems to 1st level

  • [SOLVED] hp-toolbox doesn't work, gives an error

    Hello, When trying to run hp-toolbox, I get this error: [manager@univers ~]$ hp-toolbox HP Linux Imaging and Printing System (ver. 3.11.1) HP Device Manager ver. 15.0 Copyright (c) 2001-9 Hewlett-Packard Development Company, LP This software comes wi

  • I can't get my art cards to center when importing from photoshop.  iMovie 6

    I've tried just about every size for the HD Widescreen.  I thought 1280x720 would get it.  It fits the window, but it is not centered and gets pushed right.  I need to use photoshop as I have a corporate logo and various sized type/colors on the same

  • Declaring a cursor....newbie

    Here ... I am unable to declare sampleCursor PROCEDURE MY_PROC_GET( dataCursor OUT RpTypes.RefCursor, /*This is fine */ operationType IN varchar AS sampleCursor RPTYPES.RefCursor%TYPE; /*error here same for RpTypes.RefCursor */ BEGIN Error: Error(9,1

  • Getting the JAXB exception like "Two classes have the same XML type name-"

    Getting the JAXB exception like "Two classes have the same XML type name...", Here is the exception details: Exception in thread "main" com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions Two clas