வகை பதிவுகள்: InfoPath 2007 // வடிவங்கள் சர்வர்

InfoPath வழக்கு-உணர்வற்ற ஒப்பீடு

நான் ஒரு கட்டுரை எழுதினார் SharePointBriefing.com and they put it up live today.

இங்கே ஒரு டீஸர் தான்:

image

அதை பாருங்கள்.

</இறுதியில்>

என்னுடைய குழுசேர்.

மணிக்கு ட்விட்டரில் என்னை பின் http://www.twitter.com/pagalvin

Technorati குறிச்சொற்கள்:

விரைவான வெற்றி: ஷேர்பாயிண்ட் ஒரு SPListItem நேரடியாக InfoPath பிற படித்தல்

I’m been working on a project where I need to extract attachments from an InfoPath form. There are some good resources for parsing InfoPath forms (இது வெறும் XML கோப்புகளாகும், அது உண்மையில் மிகவும் எளிதானது).

நான் திட்ட கட்டி போது, I started by downloading an InfoPath form and saving it to my local hard drive. My c# code was reading directly from that instance. எனினும், the InfoPath forms are really living inside a SharePoint forms library. I did a little half hearted searching to find out how to read it directly from the library and almost gave up, in which case I would have saved the form to a local temp directory and read it from there. எனினும், there’s no need to go through those hoops as you can read it directly from the library. This little snippet shows how:

/// இங்கு வர்க்கம் வரையறை பொருட்களை, உள்ளிட்ட:
தனிப்பட்ட SPFile mySharePointFile; /* ஒரு SPList பகுதியாக */
// மேலும் குறியீடு இங்கே நாம் வர்க்கத்தின் ஒரு முறை உள்ளே செல்கிறது:
XmlTextReader textReader;
textReader = புதிய XmlTextReader(mySharePointFile.OpenBinaryStream());

= textReader.WhitespaceHandling WhitespaceHandling.None;

textReader.Read();

// கணு மதிப்பு இருந்தால்

நேரம் (textReader.Read())
{

… and so on and so forth …

மேலே அவர்கள் முக்கிய பிட் நாம் OpenBinaryStream வழியாக நேரடியாக InfoPath படிக்க முடியும் என்று() method call on the SPFile as a parameter to the constructor on XmlTextReader. It works great.

</இறுதியில்>

என்னுடைய குழுசேர்.

மணிக்கு ட்விட்டரில் என்னை பின் http://www.twitter.com/pagalvin

Technorati குறிச்சொற்கள்:

நிரலாக்கத்தின்படி InfoPath படிவங்கள் இருந்து இணைப்புகள் பிரித்தெடுக்கிறது (அவர்களது பெயர்கள் உட்பட!)

I have an expense entry solution for a client that leverages InfoPath and workflow. At one point during the approval process, நான் அந்த நல்ல InfoPath தரவு அனைத்து அத்துடன் இணைப்புகள் தங்களை என்று ஒரு மின்னஞ்சல் உருவாக்க வேண்டும் (பெருமூச்சு) யாரோ ஒரு ஆரக்கிள் தரவுத்தளம் பயன்பாட்டு அந்த தரவு மற்றும் கைமுறையாக மறு விசை அதை எடுக்க முடியாது.

It’s not very difficult to get at or parse the InfoPath form. I didn’t know how to handle the attachments, இருப்பினும். After an hour or two of poking around the Internets (ஒரு நித்திய!) நான் இந்த கட்டுரையில் காணலாம்: http://support.microsoft.com/kb/892730

It provide some handy code to extract the attachment from a node in the form. (நீங்கள் இன்னும் முனை மற்றும் அனைத்து என்று கண்டுபிடிக்க வேண்டும், ஆனால் அது வெறும் XML அலசல் தான்).

நான் இணைப்பு Base64-குறியேற்றப்பட்ட என்று நான் முதலில் சில Base64 தரவு பிரித்தெடுக்கும் பாதையில் சென்றது, decoding it and saving it. எனினும், நான் விரைவில் நான் மேற்கூறிய கட்டுரை கிடைக்கும் வரை கோப்பு பெயர் தன்னை எப்படி தெரியாது உணர்ந்தேன்.

நான் உண்மையில் அந்த மிக ஆரம்ப கண்டுபிடிக்கப்பட்டது, ஆனால் நான் அதன் பிளவு ஆளுமை மூலம் வைக்கப்பட்டது. ஒரு புறம், the article *says* it’s good for InfoPath 2007. இன்னும், குறியீடு மற்றும் வழிமுறைகளை விஷுவல் ஸ்டுடியோ பற்றி அனைத்து உள்ளது 2003 மற்றும் InfoPath குறிப்புகள் 2003.

கீழே வரி, வழங்கப்படும் கட்டுரை எனக்கு நன்றாக வேலை என்று குறியீடு (இதுவரை). I can get my InfoPath form, நான் அதை இட முடியும், I can find and decode the attachment and I know its name. What more can one ask of one’s life?

</இறுதியில்>

என்னுடைய குழுசேர்.

மணிக்கு ட்விட்டரில் என்னை பின் http://www.twitter.com/pagalvin

Technorati குறிச்சொற்கள்: ,,

நீங்கள் உங்கள் ஷேர்பாயிண்ட் சூழலில் ஆரோக்கியமற்ற ஒரு சிறுவன் இருக்கலாம் என்று கவலை என்றால், எனக்கு நீங்கள் சரி உதவி செய்கிறேன் என்று ஒரு சுகாதார காசோலையும்.

ஒரு FBA சுற்றுச்சூழல் ல் InfoPath கொண்டு ஒப்புதல் குழுக்கள் மேலாண்மை

நான் அங்கீகார அடிப்படையில் ஒரு வடிவங்களில் InfoPath பயன்படுத்தி செயல்படுத்த வேண்டும் என்று ஒரு இழப்பில் ஒப்புதல் செயல்முறை வேண்டும் (FBA) வடிவங்கள் சேவைகளை பயன்படுத்தி சூழல் (வலை அடிப்படையிலான InfoPath).

அங்கு இரண்டு ஒப்புதல் குழுக்கள் மற்றும் செயல்முறை இந்த வேலை:

  • பயனர் செலவின அறிக்கை நிரப்பும் மற்றும் ஒப்புதலுக்கு சமர்ப்பித்து.
  • முதல் நிலை சர்க்கார் தரப்பில் சாட்சி குழு ஒரு மின்னஞ்சல் தூண்டுகிறது.
  • முதல் நிலை சர்க்கார் தரப்பில் சாட்சி அறிக்கை மதிப்பிடுகிறது மற்றும் ஒப்புதல் அல்லது மறுப்பு.
  • முதல் நிலை நபர் அதை ஏற்றுக்கொண்டால், கணினி இரண்டாம் நிலை சர்க்கார் தரப்பில் சாட்சி தெரிவிக்கிறது.

விஷயங்கள் InfoPath பக்கத்தில், நான் பயனர் அந்த ஒப்புதல் குழுக்களின் ஒரு உறுப்பினராக என்பதை அடிப்படையாக தோன்றும் மறைக்க / என்று பல்வேறு பிரிவுகள் உள்ளன.

ஒரு FBA சூழலில் பயனர்பெயர்() விழாவில் எப்போதும் வெற்று கொடுக்கிறது, துரதிர்ஷ்டவசமாக. What I’ve done is set up a a custom list called “Approval Groups”.

நான் பட்டியலில் எந்த கூடுதல் பத்திகள் சேர்க்க வேண்டாம்.

வடிவம் திறக்கிறது போது, இது போன்ற ஒரு விதி உள்ளது:

image

"ஒரு துறையில் மதிப்பு அமைக்க" இங்கே இருக்கிறது:

image

இந்த அடிப்படையில் கூறுகிறார்: ஒப்புதல் குழு விருப்ப பட்டியல் வினா மற்றும் தலைப்பு மதிப்பு = "நார்டிக்" எந்த வரிசையில் தேடும் அந்த கேள்வி வடிகட்ட.

எந்த மதிப்பு கொடுக்கிறது என்றால், then the current user is a member of that group. I know it contains that value because the string length is greater than zero.

Close the loop by securing the individual items in the Approval Group list. At run-time, தற்போதைய பயனர் அந்த பொருளை அதற்கான பாதுகாப்பு அணுகல் இல்லை என்றால் கேள்வியை திரும்ப மாட்டேன், string-length will be zero and now you know the current user is not part of that group. You can use that fact as needed in the form.

This is a super brief write-up. I’m pressed for time or I’d provide more detail.

I don’t know how relevant it is that I’m in an FBA environment. This would probably work well in a non-FBA environment but I can imagine cases where this would be useful.

</இறுதியில்>

என்னுடைய குழுசேர்.

மணிக்கு ட்விட்டரில் என்னை பின் http://www.twitter.com/pagalvin

Technorati குறிச்சொற்கள்: ,

InfoPath // வடிவம் System.Xml.XmlException இடையீடு போது "கையாளப்படாத விதிவிலக்கு ஒரு விளக்கம்: கோப்பு எதிர்பாராத இறுதியில் பாகுபடுத்தி பெயர் ஏற்பட்டுள்ளது போது. "

நான் ஒரு InfPath வடிவம் இன்று வேலை மற்றும் ஒரு பழைய நண்பர் எதிராக இயங்கிய, வடிவம் System.Xml.XmlException இடையீடு போது "கையாளப்படாத விதிவிலக்கு: கோப்பு எதிர்பாராத இறுதியில் பாகுபடுத்தி பெயர் ஏற்பட்டுள்ளது போது. "

This happened to me a long time ago and I don’t know what exactly I did to resolve it. Honestly, நான் ஒரு புதிய திட்டத்தை மாற்றுவதில் என்று நினைக்கிறேன் இந்த ஒரு தீர்வு கண்டது இல்லை (என் மாற்றுக்களை என்று தலைவலி சமாளிக்க வேண்டியிருந்தது). I do remember it was a devil of a problem. I spent several unsuccessful days dealing with it. Since then, நான் இந்த கடந்த ஆண்டு ஒருமுறையாவது எம்எஸ்டிஎன் மன்றங்கள் வரை வந்து பார்த்து உண்மையில் இது ஒரு பதில் பார்த்ததில்லை.

நான் அதிர்ஷ்டவசமாக இன்று இந்த முறை வெற்றி , I had just made a change to the form. I backed out that change and the problem went away. It turns out that it’s possible to create a from template using InfoPath Designer in such a way that it generates a parse error on the forms server side of the fence.

என் வழக்கு, பிரச்சனை இந்த வழிமுறைகளை ஏற்படும்:

  1. உரை துறையில் ஒரு தரவு மூல ஒரு புதிய உறுப்பு சேர்க்க.
  2. வடிவம் மீது அதை கைவிட.
  3. பட்டியல் கீழே ஒரு துளி அதை காட்சி மாற்ற.
  4. இது ஷேர்பாயிண்ட் விருப்ப பட்டியலில் இருந்து தனது மதிப்புகள் இழுக்க பட்டியல் கீழே சொட்டு சொல்ல.

அந்த நடவடிக்கைகளை ஒரு பிரச்சினை அல்லது ஒருவேளை ஏற்படுத்தும் என்று எனக்கு தெரியாது, எப்படியோ பட்டியல் தன்னை தரவு ஒரு பிரச்சனை. I’m going to experiment a bit and see if I can nail downt he parameters of this with any more detail.

</இறுதியில்>

என்னுடைய குழுசேர்.

மணிக்கு ட்விட்டரில் என்னை பின் http://www.twitter.com/pagalvin

Technorati குறிச்சொற்கள்:

உங்கள் InfoPath படிவங்கள் உள்ளே டெவலப்பர் குறிப்புகள் பதித்துள்ளது

நான் இன்னும் InfoPath படிவங்கள் உலகில் வாழும் நான் ஒரு வடிவத்தில் அந்த "சிறிய" மாற்றங்கள் ஒன்று செய்ய தேவை, துரதிருஷ்டவசமாக, breaks a naming convention I adopted with it two weeks ago. நான் நினைத்தேன், "யாரோ ஒருவர் இப்போது ஒரு ஆண்டு இந்த விஷயத்தை பார்த்து சொல்ல போகிறார், 'என்ன பால் நினைத்துக்கொண்டிருந்தேன்? By Jove, தனது பெயரிடும் மாநாட்டு இல்லை அர்த்தமுள்ளதாக!"

நான் நான் இந்த வடிவத்தில் ஒரு பார்வை உருவாக்க முடியும் என்று உணர்ந்தேன் மற்றும், மீண்டும், realized that I could have been doing something like this all along. I added a “Developer Notes” view to the InfoPath form as such:

image

பயனர் என்று கிடைக்கும் எனவே முடியாது என்று நான் வடிவத்தில் கட்டமைக்கப்பட்ட, it’s only visible with the InfoPath client in design view. Now I feel a little inoculated against some future unknown developer looking at my form and thinking bad thoughts about me. Phew!

</இறுதியில்>

என்னுடைய குழுசேர்.

மணிக்கு ட்விட்டரில் என்னை பின் http://www.twitter.com/pagalvin

Technorati குறிச்சொற்கள்:

InfoPath காட்சிகள் மேலாண்மை

நான் InfoPath கட்டங்களாக அங்கு செல்ல தெரிகிறது, நீல வெளியே, I’m crafting a bunch of forms. My fingers learn how to use the tool well and then I go through nine month drought and have to learn it all over again.

நான் ஒரு InfoPath கட்ட மத்தியில் இருக்கிறேன் மற்றும் நான் காட்சிகள் நிறைய InfoPath வடிவங்களை உருவாக்கி இருக்கிறேன். ஒருவேளை நீங்கள் கவனிக்க ஒன்று என்று InfoPath 2007 client shows views in alphabetical order. This is a real nuisance some times. My best technique these days is to prepend a number to the view name so that they always show in the order I want, இங்கே விளக்கப்பட்டுள்ளது போல்:

image

I wish I had been doing this all along.

</இறுதியில்>

என்னுடைய குழுசேர்.

மணிக்கு ட்விட்டரில் என்னை பின் http://www.twitter.com/pagalvin

Technorati குறிச்சொற்கள்:

InfoPath படிவம் Sevices, வீட்டு அங்கீகாரம் படிவங்கள் (FBA) மற்றும் தனித்த கோப்பு பெயர்கள்

நான் இந்த வாரம் FBA சூழலில் பாசி உள்ள உருவாக்குகிறது சில InfoPath வேலை மற்றும் கற்று, நான் ஒரு FBA மண்டலம் ஒரு உற்பத்தி சூழலில் படிவங்கள் வரிசைப்படுத்த சென்ற போது, அந்த பயனர்() function function does not work. I was using it to generate unique file names.

நன்றாக, அந்த செயல்பாடு ஒரு FBA சூழலில் வேலை இல்லை (குறைந்தது, இல்லை பெட்டியில் வெளியே). மற்றும், பிரதிபலிப்பு மீது, நான் திட்டமிட்டது வழி பயனர்பெயர் பயன்படுத்தி ஏதேனும் ஒரு நிகழ்வு ஒரு தனிப்பட்ட கோப்பு பெயர் உத்தரவாதம் இல்லை.

என் தீர்வு இப்போது பயன்படுத்த இருந்தது() function and a rule that fires on loading of the form. I assign the file name to data element when it’s blank:

image

image

The advantage of this approach is that the file name is set only once. (நான் திரையில் ஷாட் அது காட்டாதே, ஆனால் "myFilename" காலியாக போது மட்டுமே சுட ஆட்சி ஒரு நிபந்தனையை போட்டாள்). I used to set the file name at the data source level. Typically, நான் ஏதாவது செய்ய வேண்டும் (கெட்ட) இந்த:

image

அந்த பிரச்சனை இருந்தால், பயனர் ஒரு திங்களன்று வடிவம் திறந்து பயனர் பி செவ்வாய்க்கிழமை மாறும் என்று, இரண்டு வெவ்வேறு பயனர்கள் வேறு பயனர் பெயர்கள் அதை சேமித்த பின்னர், நீங்கள் இரண்டு வேறுபட்ட வடிவங்களில் முடிவடையும் வேண்டும்.

அப்படி, FBA போன்ற எரிச்சலூட்டும் குறிப்பாக பொது மற்றும் InfoPath இருக்க முடியும், அதை நான் இல்லையெனில் செய்யவில்லை என்று மீண்டும் என்று ஒரு சிறிய ஆனால் மிகவும் முக்கியமான தொழில்நுட்ப விவரம் மற்றும் அணுகுமுறை செய்யப்பட்டது!

</இறுதியில்>

என்னுடைய குழுசேர்.

மணிக்கு ட்விட்டரில் என்னை பின் http://www.twitter.com/pagalvin

Technorati குறிச்சொற்கள்:

விரைவான மற்றும் எளிமையான: ஒரு InfoPath படிவம் படிக்க மட்டும் செய்ய (பாசி உள்ள InfoPath படிவங்கள் சேவைகள்)

இது போன்ற ஒரு பொது வணிக சூழ்நிலையில் இருக்கிறது:

  • பயனர் ஒரு InfoPath படிவத்தை பூர்த்தி.
  • சமர்ப்பிக்கிறார்.
  • நீண்ட காலமாக முறையை செயல்முறை அறிவிப்பு.
  • பணிப்பாய்வு இயங்கும் போது, நாங்கள் யாரையும் வடிவம் உள்ளடக்கத்தை மாற்ற விரும்பவில்லை.

இந்த office.microsoft.com எடுத்துக்காட்டாக describes how to create a separate "view" and mark the whole view as read-only. This is a workable approach but has the drawback that you’ve effectively created two entire versions of the same form and must now keep them in sync manually. If you add a field to the editable view, you must then add it to the non-editable view as well. காலப்போக்கில், வெவ்வேறு டெவலப்பர்கள் கொண்டு, there can be some divergence.

இந்த மாற்று சில நேரங்களில் நல்ல வேலை வேண்டும்:

  • Add a new field to the form called "IsEditable".
  • உண்மையான அதன் இயல்பான மதிப்பை அமைக்கவும்.
  • பாசி வேண்டும் வெளியிடும் போது அதை ஊக்குவிக்க.
  • பணிப்பாய்வு உள்ள, தவறான செய்ய IsEditble மதிப்பு அமைக்க.
  • வடிவத்தில் திரும்பி போ.
  • Add a rule that "upon open of the form", IsEditable தவறான போது உங்கள் சேமிப்பு பொத்தானை செயலிழக்க.

The drawback to this approach is that all the fields will still be editable on the screen. The user can get a false impression that they can actually change content. You can mitigate that by putting in some text that the form is disabled, சாத்தியமான பக்கம் மேல் முழுவதும் பெரிய சிவப்பு எழுத்துக்களில்.

ஒரு திட்டம், I created a "workflow status" பார்க்க. As the workflow progressed, it would update specific status fields that had been promoted from the form. When the user opened the form, the "open form" அந்த பார்வை மாறியது மற்றும் பயனர் ஒரு நல்ல சிறிய சுருக்கம் நிலையை இருந்தது தானாக ஆட்சி.

</இறுதியில்>

Technorati குறிச்சொற்கள்: ,

என்னுடைய குழுசேர்.

ஒரு InfoPath வடிவத்தில் பயனர் ஐடி அடிப்படையில் காண்க மாற

நாம் ஒரு புதிய வாடகை ஆதரவு பல காட்சிகள் ஒரு InfoPath வடிவம் உருவாக்கப்பட்டது / on-boarding process. When the company hires a new person, டி துறை மற்றும் பிற குழுக்களின் நடவடிக்கை எடுக்க வேண்டும் (ஊதிய அமைக்க, அதற்கான விண்ணப்பங்கள் அணுக, ஒரு மேசை கண்டறிவது, முதலியன). We use on form but a different view of the form for each of those functions.

இந்த நிறுவனம், வணிக செயலாக்கத்தில் சம்பந்தப்பட்ட மக்கள் மிகவும்-நுட்ப உள்ளன, அவர்கள் வடிவம் அணுக மிகவும் போது, their default view is a "menu" view with buttons that direct them to their specific function. எனினும், we needed to simplify things for the new hire’s direct manager. This person should not see any of the IT related stuff. உண்மையில், அவர் வடிவம் ஒரு பார்வை பார்க்க மற்றும் பிற கருத்துக்களை காண ஒரு வழி இல்லை கூட வேண்டும்.

எங்கள் வழக்கு, நேரடி மேலாளர் கணக்கில் நேரடியாக ஒரு வடிவத்தில் மரியாதை கட்டி என்று தேர்வுக்குழு தொடர்பு (which I am always wanting to call a "people picker" சில காரணங்களால்).

படிகள் பின்வருமாறு:

1. வடிவமைப்பு முறையில், கருவிகள் போக -> படிவம் விருப்பங்கள் -> திறந்து சேமி.

2. Select "rules".

3. Create a new rule whose action is "switch to view" அதன் நிலை userName செல்வாக்கு() செயல்பாடு.

userName() returns the "simple" user name without the domain. If I log into SharePoint with credentials "domain\pagalvin", userName() returns "pagalvin".

The contact selector provides three bits of information for a contact. The "AccountID" portion is most useful for this scenario. The only thing that makes this even a little bit of challenge is that the contact selector (எப்படியும் என் சூழலில்) டொமைன் மற்றும் பயனர் அடையாள கொடுக்கிறது, as in "domain\pagalvin". This prevents us from doing a straight-forward equality condition since AccountID ("domain\pagalvin") userName சமமாக() ("pagalvin").

We can get around this using the "contains" ஆபரேட்டர்: AccountID userName கொண்டிருக்கிறது().

நாம் பயனர் பெயர் முன் மேலும் முந்தைய தேங்கு ஒரு கடின குறியீட்டு டொமைன் எடுக்க முடியும்() எங்கள் சமத்துவம் ஆபரேட்டர் கொண்டிருக்கும் ஒரு தவறான ஆபத்து சரிபார்த்து அகற்ற பெற செயல்பட.

We would have REALLY like to automatically switch view for other users based on their AD security group membership. எடுத்துக்காட்டாக, when a member of the "IT Analytics" குழு வடிவம் அணுகுகிறது, automatically switch to the IT Analytics view. We didn’t have time to implement it, but my first thought is to create a web service that would have a method like "IsMemberOfActiveDirectorySecurityGroup", இது userName அனுப்ப() and return back true or false. Does anyone have any other, மேலும் வீழ்வது யோசனை? Is there any SharePoint function we can leverage from InfoPath to make that determination?

</இறுதியில்>

Technorati குறிச்சொற்கள்: