શ્રેણી આર્કાઇવ્ઝ: ઈન્ફોપાથ 2007 // ફોર્મસ સર્વર

ઈન્ફોપાથ કેસ પ્રત્યે સંવેદનશીલ તુલના

હું માટે એક લેખ લખ્યો SharePointBriefing.com and they put it up live today.

અહીં એક સતામણી છે:

image

તે ચકાસો આઉટ.

</અંત>

મારા બ્લોગ પર સબ્સ્ક્રાઇબ કરો.

Twitter પર મને ખાતે અનુસરો http://www.twitter.com/pagalvin

Technorati ટૅગ્સ:

ઝડપી હીટ: શેરપોઈન્ટ એક SPListItem સીધા ઈન્ફોપાથ XML વાંચન

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.કોઈ નહીં;

textReader.Read();

// આ નોડ કિંમત હોય તો

સમય (textReader.Read())
{

… and so on and so forth …

ઉપર તેઓ કી બીટ અમે OpenBinaryStream મારફતે સીધા ઈન્ફોપાથ વાંચી શકે છે() method call on the SPFile as a parameter to the constructor on XmlTextReader. It works great.

</અંત>

મારા બ્લોગ પર સબ્સ્ક્રાઇબ કરો.

Twitter પર મને ખાતે અનુસરો http://www.twitter.com/pagalvin

Technorati ટૅગ્સ:

પ્રોગ્રામ ઈન્ફોપાથ ફોર્મ પ્રતિ જોડાણો એક્સ્ટ્રેક્ટ (તેમની નામો!)

I have an expense entry solution for a client that leverages InfoPath and workflow. At one point during the approval process, હું તેથી કે જે સારા ઈન્ફોપાથ માહિતી તમામ તેમજ જોડાણો પોતાને છે કે એક ઇમેઇલ પેદા કરવાની જરૂર (થાક) કોઈને Oracle ડેટાબેઝ એપ્લિકેશન માં કે માહિતી અને જાતે પુનઃ કી તે લઇ શકે છે.

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-encoded છે ખબર છે કે અને હું મૂળ ફક્ત આ Base64 માહિતી બહાર કાઢીને માર્ગ નીચે પડી ગયા, decoding it and saving it. તેમ છતાં, હું ઝડપથી હું ઉપરોક્ત લેખ મળી ત્યાં સુધી ફાઈલ નામ પોતે કેવી રીતે ખબર ન હતી સમજાયું.

હું ખરેખર ખૂબ કે શરૂઆતમાં મળી હતી, પરંતુ હું તેના ભાગલા વ્યક્તિત્વ દ્વારા બોલ મૂકવામાં આવ્યું હતું. પ્રશ્નની એક બાજુએ, the article *says* it’s good for InfoPath 2007. હજુ સુધી, આ કોડ અને સૂચનો વિઝ્યુઅલ સ્ટુડિયો વિશે બધા છે 2003 અને ઈન્ફોપાથ સંદર્ભો 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?

</અંત>

મારા બ્લોગ પર સબ્સ્ક્રાઇબ કરો.

Twitter પર મને ખાતે અનુસરો http://www.twitter.com/pagalvin

Technorati ટૅગ્સ: ,,

તમે તમારા શેરપોઈન્ટ પર્યાવરણ અનિચ્છનીય એક tad હોઈ શકે છે કે જે તમને ચિંતા કરી રહ્યાં છો,, મને તમે સુધારવા મદદ કરવા દો કે આરોગ્ય ચકાસણી સાથે.

એક FBA પર્યાવરણ માં ઈન્ફોપાથ સાથે મંજૂરી જૂથો મેનેજિંગ

હું પ્રમાણીકરણ આધારિત સ્વરૂપો ઈન્ફોપાથ મદદથી અમલીકરણની જરૂર છે કે જે ખર્ચ મંજૂરી પ્રક્રિયા છે (FBA) સ્વરૂપો સેવાઓનો ઉપયોગ પર્યાવરણ (વેબ આધારિત ઈન્ફોપાથ).

ત્યાં બે મંજૂરી જૂથો છે અને પ્રક્રિયા આ જેમ કામ કરે છે:

  • વપરાશકર્તા ખર્ચ રિપોર્ટ બહાર ભરે અને મંજૂરી માટે તેને જમા.
  • તે પ્રથમ સ્તર સાક્ષી જૂથ માટે એક ઇમેઇલ ચાલુ.
  • પ્રથમ સ્તર સાક્ષી અહેવાલ સમીક્ષા કરે છે અને મંજૂરી અથવા ઈન્કાર.
  • પ્રથમ સ્તર વ્યક્તિ તેને મંજૂર તો, સિસ્ટમ બીજા સ્તર સાક્ષી સૂચવે છે.

વસ્તુઓ ઈન્ફોપાથ બાજુ પર, હું વપરાશકર્તા તે મંજૂરી જૂથો એક સભ્ય છે કે કેમ તે પર આધારિત છે દેખાઇ / છુપાવો અલગ અલગ વિભાગો છે.

એક FBA પર્યાવરણમાં વપરાશકર્તાનામ() કાર્ય હંમેશા ખાલી આપે છે, દુર્ભાગ્યે. What I’ve done is set up a a custom list called “Approval Groups”.

I don’t add any additional columns to the list.

When the form opens up, it has a rule like this:

image

The “set a field’s value” is here:

image

This is basically saying: Query the approval group custom list and filter that query by looking for any row where Title’s value = “NORDIC”.

If that returns any value, 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, if the current user doesn’t have appropriate security access to that item then the query won’t return it, 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.

</અંત>

મારા બ્લોગ પર સબ્સ્ક્રાઇબ કરો.

Twitter પર મને ખાતે અનુસરો http://www.twitter.com/pagalvin

Technorati ટૅગ્સ: ,

ઈન્ફોપાથ // ફોર્મ 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.

</અંત>

મારા બ્લોગ પર સબ્સ્ક્રાઇબ કરો.

Twitter પર મને ખાતે અનુસરો http://www.twitter.com/pagalvin

Technorati ટૅગ્સ:

તમારી ઈન્ફોપાથ ફોર્મ આધારિત વિકાસકર્તા નોંધો એમ્બેડ કરો

હું હજુ પણ ઈન્ફોપાથ ફોર્મ દેશોમાં રહેતા છું અને હું માનું છું કે એક સ્વરૂપ માટે તે "નાનું" ફેરફારો એક બનાવવા માટે જરૂરી, કમનસીબે, 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!

</અંત>

મારા બ્લોગ પર સબ્સ્ક્રાઇબ કરો.

Twitter પર મને ખાતે અનુસરો http://www.twitter.com/pagalvin

Technorati ટૅગ્સ:

ઈન્ફોપાથ જોવાઈ મેનેજિંગ

હું ઈન્ફોપાથ તબક્કાઓ જ્યાં મારફતે જાઓ લાગે, વાદળી બહાર, 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.

હું એક ઈન્ફોપાથ તબક્કા મધ્યમાં છું અને હું જોવાઈ ઘણો સાથે ઈન્ફોપાથ સ્વરૂપોની રચના છું. તમે કદાચ નોટિસ એક વસ્તુ છે કે ઈન્ફોપાથ 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.

</અંત>

મારા બ્લોગ પર સબ્સ્ક્રાઇબ કરો.

Twitter પર મને ખાતે અનુસરો http://www.twitter.com/pagalvin

Technorati ટૅગ્સ:

ઈન્ફોપાથ ફોર્મ Sevices, આધારિત સત્તાધિકરણ ફોર્મ્સ (FBA) અને અનન્ય ફાઈલ નામો

હું આ અઠવાડિયે એક FBA પર્યાવરણમાં MOSS માં સ્વરૂપો કેટલાક ઈન્ફોપાથ પર કામ કરે છે અને શીખી રહ્યો છું, હું એક 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 તરીકે હેરાન ખાસ કરીને સામાન્ય અને ઈન્ફોપાથ સાથે કરી શકાય છે, તે મને અન્યથા કરવામાં ન હોત કે ફરી લાગે છે એક નાના પરંતુ ખરેખર મહત્વપૂર્ણ ટેકનિકલ વિગતવાર અને અભિગમ બનાવવામાં!

</અંત>

મારા બ્લોગ પર સબ્સ્ક્રાઇબ કરો.

Twitter પર મને ખાતે અનુસરો http://www.twitter.com/pagalvin

Technorati ટૅગ્સ:

ઝડપી અને સરળ: એક ઈન્ફોપાથ ફોર્મ ફક્ત વાંચવા માટે કરો (શેવાળમાં ઈન્ફોપાથ ફોર્મ સર્વિસ)

આ જેમ એક સામાન્ય બિઝનેસ પરિસ્થિતિ નથી:

  • વપરાશકર્તા ઈન્ફોપાથ ફોર્મ ભરે.
  • ફોર્મ જમા.
  • લાંબા સમયના વર્કફ્લો પ્રક્રિયા બોલ કિક.
  • વર્કફ્લો ચાલી રહ્યું છે ત્યારે, અમે કોઈને પણ આ સ્વરૂપ સમાવિષ્ટ બદલવા માંગો છો નથી.

આ 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".
  • સાચું તેની મૂળભૂત કિંમત સેટ કરો.
  • શેવાળ માટે પ્રકાશિત જ્યારે તે પ્રમોટ.
  • આ કાર્યમાં, false પર 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" કે દૃશ્ય ફેરવાઈ અને વપરાશકર્તા એક સરસ ઓછી સારાંશ સ્થિતિ હતી આપમેળે શાસન.

</અંત>

મારા બ્લોગ પર સબ્સ્ક્રાઇબ કરો.

એક ઈન્ફોપાથ ફોર્મ માં વપરાશકર્તા ID પર આધારિત જુઓ સ્વિચ કરો

અમે એક નવી ભાડે આધાર આપવા માટે બહુવિધ જોવાઈ સાથે ઈન્ફોપાથ સ્વરૂપ તૈયાર કર્યું હતું / 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.

આ કંપનીમાં, વ્યાપાર પ્રક્રિયા સામેલ લોકો IT-સમજશકિત છે, તેઓ ફોર્મ ઍક્સેસ તેથી, જ્યારે, 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() 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 (કોઈપણ મારા પર્યાવરણમાં) ડોમેન અને વપરાશકર્તા ID ને આપે છે, 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 પડે().

અમે તે વપરાશકર્તાનામ સામે વધુ અને પૂર્વ pend હાર્ડ કોડેડ ડોમેન લઇ શકે છે() અમારા સમાનતા ઓપરેટર પડે પર ખોટા હકારાત્મક જોખમ તપાસો અને દૂર વિચાર કાર્ય.

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", તે વપરાશકર્તાનામ પસાર() 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 ટૅગ્સ: