Friday, February 22, 2013

TNA Sharepoint 002 (გაგრძელება)

 გარდა ზემოთ ჩამოთვლილი პრობლემებისა და მათი გადაჭრის გზებისა, შემექმნა კიდევ ერთი წინაღობა რეპორტის დაპაბლიშებისას.

გადავწყვიტე ამას ცალკე პოსტი მუძღვნა, TNA ისედაც გადაიჭედა პრობლემა-სოლუშენების ნაკადით!

მოკლედ მინდა ავხსნ, როდესაც აპპ -ზე აყენია რამოდენიმე ვებ აპლიკაცია, და ფერმას უერთებთ რეპორტინგ სერვისს, პაბლიშის დროს უნდა მიუთითოთ მთავარი სერვერის მისამართი. ანუ მაგარლითად:

თუ გვაქვს ასეთი არქიტექტურა, და საიტების სტრუქტურა:
 ერთ მხარეს აპპ სერვერზე:
Web APP
სახელი – test
http://test   Default http://test

http://test.domeni.ge Intranet http://test.domeni.ge

....
http://tna Default http://tna
http://tna.domeni.ge Internet http://tna.domeni.ge
SQL ზე ცალკე ამათი ყველასი ბაზები და + რეპორტინგ სერვისი აწეული,
 მაშინ, რეპორტების პაბლიშის დროს უნდა გამოვიყენოთ მისამართი  მთავარი აპლიკაციის ტარგეტ ფოლდერად, და ჩვენს შემთხვევაში http://test 
ხოლო რეპორტების ფოლდერება მიუთითოთ კონკრეტული საიტის სადაც გვინდა რეპორტინგის გამოყენება, რეპორტების, და დატა კონექშენების მისამართები. 
გარდა ამისა, რეპორტების დათავლიერება  ხდება  Default მისამართზე რაც აღნიშნულია
Alternate Access Mappings - ში.





SQL is R2 ვერსიაში ეს გამოსწორებულიაო ბილივ :) .


Tuesday, January 15, 2013

VIMS - Sharepoint 001

VIMS
მანქანების ინვენტარიზაციის აღრიცხვის სისტემა
Vehicle Inventory Management System

ხოდა რა არ გადამხდა, ამ პატარა აპლიკაციის გაშვებისას,
დაავაპგრეიდე სერვერები და რატომღაც სურეთებს ვეღარ ხედავდა, ანუ Icon ფაილების ტიპების აღმნიშვნელი სურათები აღარ ჩანდა..
გავედი სურათების ფოლდერზე სერვერზე, ყველა სურათი ადგილზე იყო, უფლებები ფოლდერსაც სწორი ჰქონდა, ესეიგი მაპინგი /_layouts/images/ ამისი - > C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES ამაზე არასწორი იყო, ამ იკონკებზე პასუხისმგებელი ფაილი C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML\ ფოლდერშია სახელად : DOCICON.xml -  და ჰოი საოცრებავ საერთოდ არ იყო მსგავსი ფაილი.. ავიღე და გადავაკოპირე სხვა SP2010 აპლიკაციის სერვერიდან და ვოალა.. ამუშავდა! (like a charm!)

 სხვა პრობლემები წამოიჭრა officeserver2010-kb2687344-fullfile-x64-glb ამ აფდეითის მერე, და ვებრძვი. მაგრამ მთავარი რისთვისაც დავაყენე ეს განახლებული ვერსია არის ვორკფლოუს (შემდეგში მორგფლოუ :) ) ამუშავება, მაიკროსოფტის ბაგი იყო, ასეთი რომ  აითემის ცვლილებაზე არ ანახლებდა სხვა ლისტში შესაბამის ჩანაწერს... ეხლა ეს ფუნქცია ამუშავდა.

Getting a specific list view as a data source in Infopath

1.       Create the view you intend to pull in SharePoint. Make sure to sort it and filter it the way you want it to appear in the drop down.
2.       Click on Settings->List Settings to get to the settings of the list you want to use.

3.       Scroll to the bottom where it shows views and click on the view that you want. This should be where you would edit the view.

4.       Go up to the URL and copy everything after List= (this is the GUID of the view).

5.       Place what you have in notepad.

6.        Replace %7B with { (this should be first part.
7.        Replace %7D with } (this should be the last part.
8.       Replace %2D with a –
9.       You should have something that looks like
{FCE658C5-54A5-4460-B9F4-6EE4CBF017D7}
Note:the numbers and letters are unique to your view but the formatting should be the same.
10.   Take the url of the site where the list resides and put it in front of the GUID
11.   Now you have the pieces to build your string. The format of the string is
<URL>/_vti_bin/owssvr.dll?Cmd=Display&List=<ListGUID>&View=<ViewGUID>&XMLDATA=TRUE
for example:
http://site/_vti_bin/owssvr.dll?Cmd=Display&List={FCE658C5-54A5-4460-B9F4-6EE4CBF017D7}&View={B9BC3880-739B-4DA0-89A7-716775E755B7}&XMLDATA=TRUE
12.   You now have the string you need to create the data connection in Infopath.
13.   In Infopath you need to add a data connection.
14.   Create a new connection to receive data. Click OK.
15.   Choose XML document. Click OK.
16.   Paste the string you created in notepad into the Enter the location of the XML data file that you want to use as your data connection.
17.   Click next and okay until you are out of the wizard and you are ready to use your data source. If you are given a security prompt you can just click cancel.
18.   Note: everyone that uses the form must have read access (at least) to the list you are pulling from.

 თარიღის შესადარებლად, Conditional Format -სათვის
number(ddwrt:FormatDateTime(ddwrt:FormatDate(string($thisNode/@StartDate),1033,1),1033,'yyyyMMdd')+3) <= number(ddwrt:FormatDateTime(ddwrt:FormatDate(string($Today),1033,1),1033,'yyyyMMdd'))



How to create a SharePoint 2010 web part page that inherits the site's left navigation

Monday, December 3, 2012

TNA - Sharepoint 001


მიმართულება - SharePoint; InfoPath,
ამოცანა - TNA (Trainings Needs Analysis)
შესრულების ვადა - 7.12.12 (კვირის ბოლომდე)

მოკლე აღწერა: დაწესებულება ატარებს ტრენინგის საჭიროებათა ანალიზს ორგანიზაციაში, რომლის სტრუქტურა დაახლოებით 4000 თანამშრომელია.
გამოკითხვა მიმდინარეობს ეტაპობრივად, განსაზღვრულია ჯგუფები (სტრუქტურული ერთეულების მიხედვით), შემუშავებულია 2 ფორმა - თანამშრომლის ფორმა და მენეჯერის ფორმა, თანამშრომელი ადგენს რა ტრენინგი ჭირდება, მენეჯერი წყვეტს, რა ტრენინგი ჩაუტარდება თანამშრომლებს.

შედეგი: დაწესებულება იღებს მომავლი წლის კალენდარს ჩასატარებელი ტრენინგების მიხედვით.

საჭიროებები: ორგანიზაციული სტრუქტურა, პირის იდენტიფიკაციისათვის სერვისი (სამოქალაქო რეესტრის), ტრენინგების დაჯგუფებული ჩამონათვალი.

შესრულების მიმდინარეობა: შესამუშავებელია ფორმა InfoPath, განსასაზღვრია დაშვების უფლებები, ტრენინგის ჯგუფებზე მიბმული, ასაწყობია რეპორტინგის სისტემა.

მიმდინარეობა:
1. ვქმნი ახალ აპლიკაციას, არსებულ სერვერზე.
ვინაიდან წვდომა განსაზღვრულია შიდა სისტემიდან ვირცევ ჩვეულებრივ დომეინ აუტენტიფიკაციას, პორტი მიუთითე8080 (პრობლემა1), წავშალე და თავიდან შევქმენი პორტი 80; ჰოსთში გაწერეს მისამართი. იმდეია იმუშავებს.
მუშაობს,
სტრუქტურა შემომაქვს წრფივად, ვინაიდან სისტემაში არსებობს სხვადასხვა კადრების სიტემა და ნორმალიზზებულად სერვისის სახით ვერ მივიღებდი ორგანიზაციულ ხეს.
ფოკუსები ვატარე ექსელში და დავიყვანე სასურველ  ფორმატამდე.

InfoPath Autonumber field in Repeating table:

count(../preceding-sibling::*) + 1
 2. პირველი დანართი,ანუ რიგითი თანამშრომლის ფორმა აწყობილია..05/12/12
 
3. აწყობილია მეორე დანართი, მენეჯერებისათვის, შევსებული ფორმების შედეგები ინახება ცალცალკე ბიბლიოთეკებში,
ორგ. სტრუქტურა შეტანილია, აუტენტიფიკაცია დამყარებულიაპირად ნომერზე.

ფორმები ავაწყე, მუშაობს, სტრუქტურას უკავშირდება, მაგრამ ნელია ფილტრი უზარმაზარი სტრუქტურიდან, სანამ იპოვის პირადი ნომრის მიხედვით, დაახლოებით 20 წამი ჭირდება..
რეალურად არ ჩაგვიშვია, რეპორტინგი მიება, ანუ ამოდის ორგ. სტრუქტურული ერთეულის მიხედვით შევსებული ტრენინგების საჭიროებები. ასევე პიროვნების მიხედვით, ფორმებში რომ არ იქექონ..

 აწ უკვე ველოდები კითხვარების შევსების პროცესის დაწყებას.


პრობლემები:
1.რატომღაც ახალი აპპ ილინკება იმავე სერვერზე არსებულ სხვა აპლიკაციაზე.
2. InfoPath - სერვისებია ჩასართავი სავარაუდოდ, რომ ბროუზერ ენეიბლე გამოვიდეს ფორმა.
ვოალა... ვერაფრით გამოიცნობდით:

ესეიგი, ახალი აპპ როცა იქმნება არსებულ ფერმაში, უნდა შეხვიდე და ხელით მისცე Upgrade and Migration -> Enable Enterprise Features, ყველა ჯერზე.. მაზოხიზმ!
ბროუზერში ირთვება ფორმა რაღას ვჩივი :)

3. თვითონ ფორმაში გადასაწყვეტია ვალიდაცია, ანუ, თუ პირად ნომერს შეიყვანს პირი არასწორედ(ანუ არ მოიძებნა პირადი ნომერი ორგ. სტრუქტურაში), უნდა ამოუგდოს შეტყობინება, მაგრამ რატომღაც სხვა ლისტიდან როდესაც მოაქვს დატა ფილტრი ჭირდება და გამოდის "უ პაპა ბილა საბაკა"... ანუ ვადარებ და ვფილტრავ ერთიდაიგივე ველით..
4. ხოო.. ეხლა კიდევ ერთი პრობლემა, ტრენინგების ჩამონათვალი, არის უზარმაზარი სია, ვინაიდან საბოლოოდ  ჭირდებათ დეპარტამენტზე მიბმული სია ვის რამდენი ტრენინგი ჭირდება, ანუ ფიგურირებს რაღაც დონის სტრუქტურული ერთეული, პირადი ნომერი და ტრენინგების ჩამონათვალი, მჭირდება ისეთი მექანიზმი, რომ არჩეული ტრენინგები ინახებოდეს ცალკე აითემებად თავის პირად ნომრებიანად და ორგ. სტრუქტურიანად..
5. პრობლემა თავისი გადაწყვეტით:
InfoPath 2010 – Error “The amount of data that was returned by a data connection has exceeded the maximum limit that was configured by the server administrator.”
DataConnErr
So lets talk thru the issue.
Problem
So they are using SharePoint 2010 Enterprise, and InfoPath Form Services.  The form in question is a monster custom InfoPath form.  It uses every custom option you can think of, with popup tool tips, custom controls, workflows tied it, and has Java and .NET running some logic.  Generally a “WHY, WHY WOULD YOU DO IT” form.
The size of the form can also be huge when saved with about 5 different Rich Text fields that customers and Support folks put links, images, etc. in.  I have seen forms go in 12 mb in size. 
When they attempt to load these files, or open a view with all these files in it (7500 list items) the are getting that lovely warning.
“The amount of data that was returned by a data connection has exceeded the maximum limit that was configured by the server administrator. Form elements, such as drop-down lists may be blank.”
Solution
So this is an easy fix.
Go to Central Administration > General Application Settings > Configure InfoPath Form Services
Down on the page you are going to see a Data Connection Response Size.  It is defaulted to 1500 kilobytes.
033111_1610_DataConnect2

Change that setting to support your needs, in this case 4500 kilobytes solved the problem.
Once adjusted…..TADA it was reacting just fine, all was well and the Support team was back in action.
Conclusion
So you might ask was this the best solution.  NO, but this was a quick fix.  What additional information should you take from this use case…….FORM REWORK.
The form is out of control,  a new requirements gathering and analysis should be performed to determine a solution that will limit the risk of data size, large list sizes, and responses.  I do expect this content to be moved to a SQL Table, and the use of External Content Types, and Dataviews to support interaction in SharePoint.
Remember that there is a lot of size limitations and thresholds available in SharePoint Central Administration.  Any service you are using can run into this. It is important to have your service limitations documented, and have a running log of these error your SharePoint Admin can reference.  Also this change needs to be documented in the Governance Control documentation, and should be brought up in the next SharePoint Steering Committee.  Use it as an opportunity, not a scar.