Kuv muab lo classified ad mus muag kuv lub tsheb hauv Bergen nroog, NJ rau hnub xya hmo. Ntau cov lus nug ntawm tug tau tsocai tom qab ntawd thiab kaw lub deal nrog lwm tus neeg rau hnub hmo.
Yuav luag zoo yuav muaj tseeb …
Kuv muab lo classified ad mus muag kuv lub tsheb hauv Bergen nroog, NJ rau hnub xya hmo. Ntau cov lus nug ntawm tug tau tsocai tom qab ntawd thiab kaw lub deal nrog lwm tus neeg rau hnub hmo.
Yuav luag zoo yuav muaj tseeb …
Kuv tsis hloov txawm nrhiav XSLT ntau heev, li no mas, li kuv tabtom toj toj me me txhua txhua lub sij hawm.
Kuv cov tshooj newest no puas yog: Rooj plaub no matters thaum referencing ib sab. Nyob hauv kuv siab heev tsis mus nrhiav, Kuv muaj txhua li no:
<hauv paus xmlns:xsi="http://www.w3.org/ 2001/XMLSchema-lom">
<Txhua>
<Kem Lub npe="GafTrainingInvoiceNumber" />
<Kem Lub npe="GafTrainingInvoiceLocation" />
<Kem Lub npe="WorkId"/>
<Kem Lub npe="Plaws"/>
<Kem Lub npe="Npe"/>
<Kem Lub npe="Sau"/>
<Kem Lub npe="Loj"/>
<Kem Lub npe="Kab"/>
<Kem Lub npe="Hauj lwm lawm"/>
<Kem Lub npe="Sau ntawv"/>
<Kem Lub npe="SiteName"/>
<Kem Lub npe="CollapsingStatus"/>
<Kem Lub npe="HitHighlightedSummary"/>
<Kem Lub npe="HitHighlightedProperties"/>
<Kem Lub npe="ContentClass"/>
<Kem Lub npe="IsDocument"/>
<Kem Lub npe="PictureThumbnailURL"/>
</Txhua>
</hauv paus>
Cov XLST uas qhia txog cov invoice invoice xov tooj thiab cov chaw lawm:
<p>
Kev kawm Invoice tooj: <xsl:tus nqi-ntawm xaiv="GafTrainingInvoiceNumber"/>
<br></br>
Kev kawm qhov chaw Invoice: <xsl:tus nqi-ntawm xaiv="GafTrainingInvoiceLocation"/>
</p>
Txawm li cas los, Cov xaiv tau reference muaj cov cuab yeej nyob rau hauv txhua rooj plaub no tsawg dua, raws li nyob rau hauv:
<p>
Kev kawm Invoice tooj: <xsl:tus nqi-ntawm xaiv="gaftraininginvoicenumber"/>
<br></br>
Kev kawm qhov chaw Invoice: <xsl:tus nqi-ntawm xaiv="gaftraininginvoicelocation"/>
</p>
Kom kuv ho uas, nrhiav tau tsom cov Hmong (i.e. "Txoj kev kawm Invoice tooj") tab sis tsis muaj ntaub ntawv.
Lag luam Scenario:
Thoob plaws Enterprise teg NTXHUAB rau cov tuam txhab raug nrog 30+ cov chaw thiab ob peb neeg huv dozen.
Cov hom phiaj ua lag ua luam:
Txawm ib tug tibneeg ntau ntau uas ua hauj lwm pab pawg (saib xyuas, qhov chaw, yam), tej ntaub ntawv yuav tsum raug tswj tseg rau ntiaj teb no npaum li. Piv txwv, npaj sau ntaub ntawv pov rau txhua qhov chaw ntawm lub tuam txhab (e.g. raug cov vaj tse, cov chaw zov me nyuam warehouse, chaw muag) yuav tsum tau tswj nyob rau hauv ib qho chaw central.
Kev teeb meem:
Tus enterprise taxonomy yog DVR siv ntau qhov chaw collections. Peb yuav tau nyiam tsim ntaub ntawv pov lub npe ntawm qhov chaw khiav hauj lwm rau lub cev nyob rau hauv kev cai WSS sau. Ces, Thaum peb yuav tsum tau muaj ib kem nyob rau hauv ib chav ntawv kawm yam (los yog ib sab ntxiv rau lub tsev qiv ntawv sau lossis doc) uas muaj nyob tej qhov chaw neeg, peb yuav tsim ib sab siv "lookup cov" datatype thiab taw tes rau daim ntawv npaj.
Hmoov tsis, lookup datatypes no yuav tsum tau nkag los sau "Senior" lub ntsiab lus tias peb kev sau ntaub ntawv pov tsis tau saib ntsoov txog qhov chaw collections.
Kev tov:
Siv hom kev cai ntaub ntawv tshiab DVR raws li SPField thiab cov uas muaj tuaj raws li tus DropDownList hauv lub zog ListItems populate los npaj WSS daim ntawv povhwm poob haujlwm no.
Peb tsim ib tshiab ntawm phau hu ua "http://localhost/EnterpriseData". Muaj, peb tsim tau ib daim ntawv teev kev cai hu ua "Neeg chaw". Daim ntawv cia li siv tus txheem "Title" teb kom muaj daim ntawv ntawm qhov chaw neeg sij.
Ib qho raws li discrete ntau qhov mus tsim ib lub hom kev cai ntaub ntawv nyob rau hauv WSS. Lawv yuav:
Ntawm no yog cov chaws rau cov uas:
pej xeem hoob XYZZYCorporateLocationField : SPFieldText
{
pej xeem XYZZYCorporateLocationField
(SPFieldCollection liaj teb, hlua typeName, hlua displayName)
: puag(liaj teb, typeName, displayName) { }
pej xeem XYZZYCorporateLocationField
(SPFieldCollection liaj teb, hlua displayName)
: puag(liaj teb, displayName) { }
pej xeem override BaseFieldControl FieldRenderingControl
{
txais
{
BaseFieldControl tswj = tshiab XYZZYCorporateLocationFieldControl();
hwj xwm. FieldName = qhov no.InternalName;
rov qab los tswj;
} //txais
} // fieldrenderingcontrol
pej xeem override hlua GetValidatedString(nruas tus nqi)
{
Yog hais tias (qhov no.Yuav tsum tau || tus nqi. ToString().Qhov sib npaug(Txoj hlua.Npliag))
{
pov tshiab SPFieldValidationException ("Department yuav tsis raug ua hauj lwm.");
}
rov qab los puag.GetValidatedString(tus nqi);
} // getvalidatedstring
} // XYZZYCorporateLocation
pej xeem hoob XYZZYCorporateLocationFieldControl : BaseFieldControl
{
kev tiv thaiv DropDownList XYZZYCorporateLocationSelector;
kev tiv thaiv override hlua DefaultTemplateName
{
txais
{
rov qab los "XYZZYCorporateLocationFieldControl";
}
} // DefaultTemplateName
pej xeem override nruas Tus nqi
{
txais
{
EnsureChildControls();
rov qab los qhov no.XYZZYCorporateLocationSelector.SelectedValue;
} // txais
teem caij
{
EnsureChildControls();
qhov no.XYZZYCorporateLocationSelector.SelectedValue = (hlua)qhov no.ItemFieldValue;
} // teem caij
} // override tus nqi kwv
kev tiv thaiv override khoob lug CreateChildControls()
{
Yog hais tias (qhov no.Teb == null || qhov no.ControlMode == SPControlMode.Zaub)
rov qab los;
puag.CreateChildControls();
qhov no.XYZZYCorporateLocationSelector =
(DropDownList)TemplateContainer.FindControl("XYZZYCorporateLocationSelector");
Yog hais tias (qhov no.XYZZYCorporateLocationSelector == null)
pov tshiab Kos("KEV UA YUAM KEV: Tsis tau thauj khoom. Cov ntaub ntawv ASCX!");
Yog hais tias (!qhov no.Phab IsPostBack.)
{
siv (SPSite kawm ntawv = tshiab SPSite("http://localhost/enterprisedata"))
{
siv (SPWeb Web = kawm ntawv. OpenWeb())
{
Splist.Update() currentList = web. Teev["Neeg qhov chaw"];
foreach (SPItem XYZZYCorporateLocation nyob rau hauv currentList.Items)
{
Yog hais tias (XYZZYCorporateLocation["Title"] == null) ntxiv mus;
hlua theTitle;
theTitle = XYZZYCorporateLocation["Title"].ToString();
qhov no.XYZZYCorporateLocationSelector.Items.Add
(tshiab ListItem(theTitle, theTitle));
} // foreach
} // siv lub web spweb = site.openweb()
} // siv qhov chaw spsite = spsite tshiab("http://localhost/enterprisedata")
} // nws tsis yog ib tug postback
} // CreateChildControls
} // XYZZYCorporateLocationFieldControl
Cov cai saum toj no yeej implements lub logic rau populating tus DropDownList uas qhov tseem ceeb ntawm cov WSS kev cai sau nyob hauv http://localhost/enterprisedata thiab raug teev hais "neeg huv".
Kuv txhais ob hoob nyob hauv ib tus neeg ua ntaub ntawv thov tib .cs, compiled nws thiab muab tso rau hauv lub GAC (strong yuav tsum, tau mas).
<%@ Tswj Hais lus= "C#" Inherits="Microsoft.SharePoint.portal.ServerAdmin.CreateSiteCollectionPanel1,Microsoft.SharePoint.portal,Version = 12.0.0.0, Culture = nruab nrab,PublicKeyToken = 71e9bce111e9429c" compilationMode= "Ib txwm" %>
<%@ Rau npe Tagprefix= "wssawc" Namespace="Microsoft.SharePoint.WebControls" Sib dhos="Microsoft.SharePoint, Version = 12.0.0.0, Culture = nruab nrab, PublicKeyToken = 71e9bce111e9429c" %> <%@ Rau npe Tagprefix= "SharePoint" Namespace="Microsoft.SharePoint.WebControls" Sib dhos="Microsoft.SharePoint, Version = 12.0.0.0, Culture = nruab nrab, PublicKeyToken = 71e9bce111e9429c" %>
<SharePoint:RenderingTemplate ID= "XYZZYCorporateLocationFieldControl" runat= "neeg rau zaub mov">
<Template>
<asp:DropDownList ID= "XYZZYCorporateLocationSelector" runat= "neeg rau zaub mov" />
</Template>
</SharePoint:RenderingTemplate>
Cov hais los saum toj no rua hauv c:\qhov kev pab cuam filescommon filesmicrosoft sharedweb neeg rau zaub mov extensions12controltemplates.
<?xml Version="1.0" encoding="utf-8" ?>
<FieldTypes>
<FieldType>
<Teb Lub npe="TypeName">CorporateLocations</Teb>
<Teb Lub npe="ParentType">Ntawv nyeem</Teb>
<Teb Lub npe="TypeDisplayName">Qhov chaw neeg</Teb>
<Teb Lub npe="TypeShortDescription">Txhua XYZZY neeg qhov chaw xws li manufacturing los yog lwm lub chaw.</Teb>
<Teb Lub npe="UserCreatable">MUAJ TSEEB</Teb>
<Teb Lub npe="ShowInListCreate">MUAJ TSEEB</Teb>
<Teb Lub npe="ShowInDocumentLibraryCreate">MUAJ TSEEB</Teb>
<Teb Lub npe="ShowInSurveyCreate">MUAJ TSEEB</Teb>
<Teb Lub npe="ShowInColumnTemplateCreate">MUAJ TSEEB</Teb>
<Teb Lub npe="FieldTypeClass">Conchango.XYZZYCorporateLocationField, XYZZYCorporateLocationField, Version = 1.0.0.0, Culture = nruab nrab, PublicKeyToken = b0b19e85410990c4</Teb>
<RenderPattern Lub npe="DisplayPattern">
<Mus>
<Expr>
<Kem />
</Expr>
<Rooj plaub no Tus nqi=""/>
<Neej ntawd>
<HTML>
<![CDATA[<ntsua kev style = "xim:Liab"><b>]]>
</HTML>
<Kem SubColumnNumber="0" HTMLEncode="MUAJ TSEEB"/>
<HTML><![CDATA[</b></ntsua kev>]]></HTML>
</Neej ntawd>
</Mus>
</RenderPattern>
</FieldType>
</FieldTypes>
Tej ntaub ntawv no XML ntxiv seb yam ntaub ntawv rau kev cai WSS "qiv" thiab ntais ntawv up against lub GAC tau los ua ke.
Tom qab koj tsiv rau tag nrho cov khoom rau hauv qhov chaw, iisreset rau tus neeg rau zaub mov thiab nws yuav tsum tau tag nrho cov pib ua hauj lwm nicely.
Qeb ntxiv: CAML
No yog ib tug zoo kawg thiab ntaus tej ncauj lus los ntawm ib tug khub uas hu ua "craig" rau ntawm tus txheej txheem rau kev nrhiav CAML txhais cov ntsiab lus rau cov teb cov hom raws tua txhais cov ntsiab lus real nyob ntawm lub chaw.
Nws posting hais tas. Hauv kev hais:
Pawg ntxiv: Nrig txog kev pom Studio 2005
Yuav pab kom pab tau intellisense rau nta, ntsiab, tejyam li hauv studio nrig txog kev pom 2005:
Tam sim no Intellisense enabled rau ntawd cov ntawv XML.
Saib ntawm no ntxiv rau qhov ntawv thiab rau cov lus qhia yuav ua li cas los tau nyob qib qub WSS intellisense nrog lwm cov ntaub ntawv XML.
Coj thiab kis above mentioned kuaj no thaum sawv ntxov. Kuv nrhiav tau tus tub ntxhais mus tau yooj yim thiab ncaj ncees.
Yog ib tus txheeb ze uas dearth hais txog daim ntawv no ntxiv rau cov qhov Web site. Kuv tsis paub hais tias vim li cas.
Kuv obviously tsis tau rau hauv cov lus qhia txog tus tub ntxhais uas kuv muab, tab sis kuv xav tias kuv yuav siv hais lub qab:
Nws teev dab tsi koj yuav tsum paub kom dhau cov tub ntxhais thiab nws tus, IMO, yog heev.
</kawg>Subscribe rau kuv blog!
Qeb ntxiv: InfoPath
Txoj kev: Ib InfoPath 2007 daim ntawv mus rau ib tug neeg rau zaub mov hauv NTXHUAB deployed muab ib daim ntawv teev nco-down cov neeg muag khoom rau NTXHUAB sau kev cai tied. Thaum koj xaiv ib vendor, kev cai cob teb qhov tseem ceeb rau lub handful ntawm phau ntawv teb xws li muag rep npe, chaw nyob, lub nroog, lub xeev, zauv teb thiab xov tooj. Kev kawm yog phev heev. Peb daim ntawv ceeb toom tias kev kawm ntawv twg thiaj li raug heev tshaj qub (rau ib tus uas tsis yog-linear zam) rau txhua yam kev teb peb hloov li no. Xws li, Yog peb cia li hloov qhov muag rep npe, nws yuav siv sij hawm [x] tus nqi ntawm lub sij hawm. Yog peb hloov rep muag, address1, address2, lub nroog, lub xeev, zauv teb, nws yuav siv sij hawm 10 lub sij hawm ntev dua.
Kua: Sau cov qhov Web site (coj cai nrhiav tau ntawm no) uas yog tau lub cheeb ib vendor thiab nws rov qab tau kom paub meej vendor. Ces, cob teb li no. Txawm tias qhov no ib yam nkaus thiab nkawd qeeb, muaj tug tsis txawv discernable nyob rau hauv cov kev kawm thaum peb raug 1 daim teb no tiv tiag 8 liaj teb. Raws li qhov nws lawm, cov neeg tau txais lub laj "hu cov neeg rau zaub mov" Cylon nyhuv thaum lawv tos rau daim ntawv no ua tau rau tus thiab tsis txhob haus cov xav tau kev pab.
HLOOV TSHIAB: Peb tsis txhob txiav hauv paus ua kom muaj qhov teeb meem no thiab nws yeej tsis deg rov.
Peb paub lub sij hawm yuav ua raws li ib txoj kev loj hlob qhov ntawd mam li nco dheev, 2 cov neeg tsis muaj peev xwm nkag tau rau ib qhov chaw sau ntawv. Cov nyiaj yuav authenticate mus rau lub chaw tseem ceeb, tab sis thaum koj sim mus saib tau ib qho chaw sau ntawv, lawv nyuam qhuav tau ib tug dawb paug npo. Tsis muaj cov uas tsis displayed, cia ib tug dawb dawb paug phab.
Peb tau teev rau hauv uas ua ib qhov chaw sau admin thiab sim ntxiv yog ib cov neeg siv cov no yog ib qhov chaw admin thiab lub sij hawm no, Thaum nias "Lawv xav tshuaj", peb tau cov xov no:
Nyiaj tshwm sim. (Nyiaj ntawm HRESULT: 0x 80020009 (DISP_E_EXCEPTION))
Peb siv tej lub sij hawm no researching thiab hmoov tsis, tsis tuaj nrog dab tsi pab tau. Muaj ib co lus nyob rau hauv lub cav diagnostic, tiam sis yog nyuab rau koj raws nraim correlate lawv cov no qhov teeb meem.
Thaum kawg, peb Hmong cov qhov sau los ua qhov chaw thiab re-created nws thiab uas solved.
Yog hais tias kuv paub tseeb seb ho zoo li no yav, Kuv mam li hloov no ncej.