Լուծում: BDC picker Ցույց միայն մեկ շարասյունը արդյունքները

Իմ ին պատրաստվում փորձերի ապահովելով ավելի օգտակար Փնտրել շարասյունը, օգտագործելով BDC, I hit a wall with the BDC picker. If you haven’t see it, the BDC picker is similar to a people picker except that it works with columns of type "business data".

Դուք մուտք picker սեղմելով բացված գրքի պատկերիկի վրա բիզնես տվյալների սյունակի ինչպես ցուցադրված է:

պատկեր

The above image shows a business data column called "Master Document Id". That column is connected, միջոցով BDC, to a web service. The web service returns two columns of information: Document ID and Title. The business purpose here is to provide a "this document is based on" ֆունկցիա. Users select a "master" փաստաթուղթ, եւ երբ դրանք փրկելու համար, միջոցառում ընդունիչ պատճենները meta տվյալների դաշտերը պարտադիր են Ուղեկցող վարպետի.

Ըստ դեֆոլտի, the BDC picker looks like this when I search for a document whose ID = "38":

clip_image002

Դա օգտակար, but not good enough. People don’t think in terms of IDs, they think in terms of titles and/or other meta data. The picker allows you to search on other columns (e.g. Վերնագիր) բայց չի ցույց փաստացի ցուցակի այն գտել, ուղղակի նրանց DocId ինչ `ինչպես ցուցադրված է այստեղ,:

clip_image002[1]

(Էկրանի անկյունագիծը shot ոչ այնքան մեծ, քանի որ ես չեմ ընտրել այն որոնումը որը վերադառնում որեւէ վավեր արդյունքները, բայց դուք կարող եք տեսնել, որ եթե գտել որոշ արդյունքներ, որ դա ցույց են տվել, DocId ի, ոչ որոնում).

I searched high and low for the answer to this and failed. Իմ գործընկեր, այդ պատվարժան Jonathan Bradshaw, had faced and solved this issue. When I reached out to him for help, Նա նշեց, ինձ ճիշտ ուղղությամբ.

Configure the picker to show multiple columns via the "ShowInPicker" Գույքը է ADF:

<Սեփականություն Անուն="ShowInPicker" Տիպ="System.Boolean">ճիշտ</Սեփականություն>

Ավելի մանրամասն:

  <!-- Վերնագիր -->
  <TypeDescriptor TypeName="System.String" Անուն="Վերնագիր" >
    <LocalizedDisplayNames>
      <LocalizedDisplayName LCID="1033">Վերնագիր</LocalizedDisplayName>
    </LocalizedDisplayNames>
    <Հատկություններ>
      <Սեփականություն Անուն="DisplayByDefault" Տիպ="System.Boolean">ճիշտ</Սեփականություն>
      <Սեփականություն Անուն="ShowInPicker" Տիպ="System.Boolean">ճիշտ</Սեփականություն>
    </Հատկություններ>
  </TypeDescriptor>

Setting this property does introduce a minor problem. As soon as you set it once, you need to set it for every column you want to show. Իմ դեպքում,, BDC picker showed DocId by default. Սակայն, once I added "ShowInPicker" Ինչպես վերնագրի, DocId no longer displayed. I solved that by explicitly setting the ShowInPicker property for Doc ID.

Ահա արդյունքը:

պատկեր

(I’ll explain the odd-looking "168 – CamlSchema.xsd" construction in a future blog post. Մի խոսքով, դա concatenated տողը որը թույլ է տալիս մի փոքր ավելի լավ Օգտվողի փորձ).

Իհարկե, որոնք գրված այս բլոգ - գրառմանը, I just did a search for "ShowInPicker" եւ գտնվել է բազմաթիվ քանակին, այդ թվում `այս մեկը: http://msdn2.microsoft.com/en-us/library/ms583986.aspx. It explains the meaning of that property along with some other good BDC stuff.

</վերջ>

Անդամագրվել իմ բլոգում!

Արորդիների Tags:

4 thoughts on "Լուծում: BDC picker Ցույց միայն մեկ շարասյունը արդյունքները

  1. Jean-Marie

    Պախարակել… Սույն հոդվածը փրկեց ինձ շատ ժամանակ եւ իմ կենդանի :-))

    Մեծ Post եւ ձեր սեփական օրագիրը է իմ մեջ. Ի դեպ,, I found the article by googling "bdc could not find fields to insert all the identifier values" *lol* 😉

    Regards, JM

  2. juggler_10 1
    Դուք ընդգրկված շատ հարցերում ես բախվել է վերջին մեկ ամսում, դա մեծ է տեսնել նրանց, մեկ տեղում. My question is how you are searching by more than one column in the picker. Ես չեմ ունեցել որեւէ հաջողություն ստանալու BDC որոնել ավելի քան մեկ սյունակ. Ես ստեղծել բազմաթիվ ֆիլտրերի եւ որ ինձ երկրորդ տարբերակը, որ dropdown բայց ես չեմ կարողացել ստանալ այն իրականում աշխատում է հարցմանը. Իսկ ուղղությունը կլինի մեծ.
  3. Paul Galvin
    I found that once I searched for "showinpicker".
    I did all kinds of searching for a solution to this and couldn’t find anything until Jonathan Bradshaw told me how he solved it. Lots of hits on "ShowInPicker" but virtually nothing on "bdc data column shows only one column in web page dialog".
    I didn’t know what question to "ask" եւ չի կարող ստանալ լավ պատասխան.
    Everyone should certainly look at bdc meta man. Hand crafting ADF files is not a good use of a human’s time, որ շատ.

Ավելացնել կարծիք

Ձեր էլ. Փոստի հասցեն չի հրապարակվելու. Պահանջվող դաշտերը նշված են աստղանիշով *