خدمات فرم InfoPath, تشکیل می دهد تایید بر اساس (FBA) و نام فایل منحصر به فرد

من مشغول به کار در برخی از InfoPath به شکل این هفته در MOSS در FBA محیط زیست و آموخته, وقتی که من رفتم برای استقرار فرمها را به عنوان یک محیط تولید با منطقه FBA که نام کاربری() function function does not work. I was using it to generate unique file names.

خوب, that function doesn’t work in an FBA environment (حداقل, not out of the box). و, upon reflection, using username in the way I had planned wouldn’t have guaranteed a unique file name in any event.

My solution was to use the now() 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. (I don’t show it in the screen shot, but put a condition on the rule to only fire when “myFilename” is blank). I used to set the file name at the data source level. Typically, I would do something (بد) مثل این:

image

The problem with that is that if user A opens the form on Monday and the user B changes it on Tuesday, you’ll end up with two different forms since two different users saved it with different user names.

پس, as annoying as FBA can be in general and with InfoPath in particular, it made me re-think a small but really important technical detail and approach that I wouldn’t have done otherwise!

</پایان>

مشترک شدن در وبلاگ من.

من در توییتر در http://www.twitter.com/pagalvin

برچسب ها:

پاسخ

آدرس ایمیل شما منتشر نخواهد شد. بخشهای موردنیاز علامتگذاری شدهاند *