Fóram úsáideoirí go minic mar ceisteanna mar seo:
> Dia duit,
>
> Do thoil, inis dom má tá aon féidearthachtaí a thógáil liosta saincheaptha le
> máistir agus sonraí cineáil (cosúil le sonraisc) gan úsáid a bhaint as InfoPath.
>
Soláthraíonn SharePoint roinnt amach as na gnéithe bosca a thacaíonn le cineálacha riachtanas gnó mar sin.
Go ginearálta, one links two lists together using a lookup column. List A contains the invoice header information and list B contains invoice details.
Bain úsáid as liostaí breise a choimeád ar bun líon na gcustaiméirí, uimhreacha a táirge, etc.
Bain úsáid as ábhar mar chuid gréasáin cheist (i CAONAIGH amháin) and/or a data view web part to create merged views of the lists. SQL Server Reporting Services (SRS) Tá fáil freisin ar an taobh tuairisciú air.
Mar sin féin, there are some important limitations that will make it difficult to use pure out-of-the-box features for anything that is even moderately complex. These include:
- Méid na liostaí chuardaigh bhaineann vs. "smartness" of the lookup column type. A lookup column type presents itself on the UI differently depending on whether you’ve enabled multi-select or not. In either case, the out-of-the-box control shows all available items from the source list. If the source list has 1,000 míreanna, that’s going to be a problem. The lookup control does not page through those items. Ina áit sin, it pulls all of them into the control. That makes for a very awkward user interface both in terms of data entry and performance.
- Lookups "pull back" one column of information. You can never pull back more than one column of information from the source list. Mar shampla, you cannot select a customer "12345" and display the number as well as the customer’s name and address at the same time. The lookup only shows the customer number and nothing else. This makes for an awkward and difficult user interface.
- No intra-form communication. Tá mé scríofa faoi seo anseo. You can’t implement cascading drop-downs, coinníollach ar chumas / dhíchumasú réimsí, etc.
- No cascading deletes or built-in referential integrity. SharePoint treats custom lists as independent entities and does not allow you to link them to each other in a traditional ERD sense. Mar shampla, SharePoint féidir leat a chruthú dhá liosta saincheaptha, "customer" and "invoice header". You can create an invoice header that links back to a customer in the customer list. Ansin,, you can delete the customer from the list. As an bosca, there is no way to prevent this. To solve this kind of problem, Ba mhaith leat é a úsáid de ghnáth láimhseálaithe imeacht.
Féadfaidh sé cosúil gruama, but I would still use SharePoint as a starting point for building this kind of functionality. Though there are gaps between what you need in a solution, SharePoint chuireann ar ár gcumas na bearnaí sin a uirlisí úsáid a bhaint as mar sin do líona:
- Event handlers. Use them to enforce referential integrity.
- Colúin saincheaptha: Create custom column types and use them in lieu of the default lookup column. Add paging, buffering agus gnéithe AJAX a dhéanamh sofhreagrach dóibh.
- BDC. This MOSS-only feature enables us to query other SharePoint lists with a superior user interface to the usual lookup column. BDC can also reach out to a back end server application. Use BDC to avoid replication. Rather than replicating customer information from a back end ERP system, use BDC instead. BDC features provide a nice user interface to pull that information directly from the ERP system where it belongs and avoids the hassle of maintaining a replication solution.
Is BDC gné CAONAIGH (nach bhfuil ar fáil i SSU) and is challenging to configure.
- Bhfoirm gréasáin ASP.NET: Cruthaigh foirm AJAX-chumasaithe lán-feiceáil go n-úsáideann an tsamhail réad SharePoint agus / nó seirbhísí gréasáin do liostaí SharePoint ghiaráil am céanna ag soláthar comhéadan úsáideora an-sofhreagrach.
Féadfaidh an rogha dheireanach gur mhaith leat go bhfuil tú ag tosú ó scratch, ach smaoineamh ar an bhfíric go dtosaíonn an ardán SharePoint tú amach leis na gnéithe lárnacha seo a leanas:
- Samhail Slándála, le cothabháil.
- Córas Menu le cothabháil.
- "Master table" (i.e. liostaí saincheaptha) le slándáil, tógtha-i cothabháil agus iniúchadh.
- Cuardaigh.
- Ar ais deireadh uirlisí comhtháthú (BDC).
Má tá tú tús le tionscadal nua folamh i stiúideo amhairc, bhfuil tú a lán de bhonneagar agus pluiméireachta a thógáil sula bhfaigheann tú gar do cad a thairgeann SharePoint.
I do believe that Microsoft intends to extend SharePoint in this direction of application development. It seems like a natural extension to the existing SharePoint base. Microsoft’s CRM application provides a great deal of extensibility of the types needed to support header/detail application development. Although those features are in CRM, the technology is obviously available to the SharePoint development team and I expect that it will make its way into the SharePoint product by end of 2008. If anyone has an knowledge or insight into this, fág tagairt le do thoil.
</deireadh>
mór
Raghu, Ní dóigh liom go níl aon bhealach éasca a dhéanamh go. Ba mhaith liom díriú ar oiliúint do úsáideoirí nuair a úsáid atá ar cheann acu agus b'fhéidir a thabhairt dóibh le leid leis an ainm den chineál ábhar féin. Ní dóigh liom gur féidir leat ingne i ndáiríre an ceann seo síos, go teicniúil.
It’s a bit of a kludge but I use an ASP.Net dropdown which shadows the lookup "dropdown" ginte ag SharePoint. I pointe an ASP.Net anuas go dtí datasource bunaithe ar an liosta ina bhfuil an mhír lookup, ag ligean dom a bhaint as an réimse haitheantas ar mar an luach agus an colún de mo rogha mar an téacs a thaispeáint. Ní féidir liom a cheangal ar an ASP.Net anuas go dtí an réimse liosta lookup a ghineann sé earráidí freastalaí-taobh.
Ar ualach leathanach a úsáid mé javascript a bhfuil luach ceart a shannadh don dropdown ASP.Net, agus ansin imeachtaí onchange chur ag gabháil leis an dropdown chun luachanna nua a shannadh don SharePoint comhfhreagrach lookup dropdown. Mé i bhfolach i ndáiríre an tsraith ina bhfuil an SharePoint dropdown.
Rud amháin is déanaí — mar gheall ar an mbealach Rindreáil SharePoint dropdowns lookup goofy nuair a fhaigheann an líon na n-ítimí atá caite 20 Úsáid mé réad fillteán saincheaptha a fháil / a leagtar ar an luach dropdown. Tá mé a blog post a shonraíonn an phróisis sin anseo:
http://www.idiotsyncrasies.com/2007/12/lookup-list-dropdowns-in-sharepoint.aspx
Cheers,
Michael
Is féidir leat a chruthú Cineál Ábhar do header Sonrasc atá bunaithe ar an Ábhar Cineál Fillteán agus ansin a chruthú eile Cineál Ábhar Sonraisc agus an dá chur le liosta SharePoint. Cruthaíonn sé seo i bhfeidhm le caidreamh Tuismitheora / Linbh a ligfidh tú a chruthú Sonraisc il bunaithe ar an Cineál Ábhar Sonraisc a mhaireann faoi na Sonrasc Cineál Ábhar Header a thugann tú agus caidreamh an toirt idir an dá míreanna agus má tá an mhír liosta Sonraisc Ceanntásc scriosadh . Is féidir leat a shonrú freisin go Cineál Ábhar ar fáil ach ó laistigh Fillteán áirithe. Is é an cur chuige seo cosúil leis conas a oibríonn an leabharlann plé agus tá an-cabhrach don chineál seo caidreamh idir míreanna. Beidh láimhseálaithe ócáid agus ZIP cabhrú le roinnt teorainneacha eile ach ar an iomlán le réiteach éasca tapa.