ĐÀO TẠO DOANH NGHIỆP : SỞ KHOA HỌC CÔNG NGHỆ TỈNH ĐỒNG NAI

ENTERPRISE TRAINING: DONG NAI DEPARTMENT OF SCIENCE AND TECHNOLOGY.

HÌNH ẢNH TẬP HUẤN LỚP SHAREPOINT WORKFLOW VÀ KIẾN TRÚC SHAREPOINT

PHOTOS OF SHAREPOINT WORKFLOW AND ARCHITECTURE CLASS.

HÌNH ẢNH TẬP HUẤN LỚP SHAREPOINT WORKFLOW VÀ KIẾN TRÚC SHAREPOINT

PHOTOS OF SHAREPOINT WORKFLOW AND ARCHITECTURE CLASS.

Showing posts with label Infopath Form. Show all posts
Showing posts with label Infopath Form. Show all posts

Monday, July 7, 2014

InfoPath for Document Library

Open InfoPath Design >> New >> SharePoint Form Library >> Design form

Here is default user interface

Design complete form follows as

Drag and drop Textbox >> set  properties for it

Drag and drop Dropdown List >> set properties for it

Drag and drop Date Picker >> set properties for it

Drag and drop Repeating Table

Set 3 columns

Drag and drop Textbox >> set properties for it

Drag and drop Textbox >> set properties for it (note: data type: decimal)

How to create auto number repeating table:
Drag and drop Textbox >> right click >> choose Change Control and then Calculated Value from the context menu that appears …

Reference more below
In InfoPath Designer 2010, create a new Blank Form template.
On the Home tab under the Controls group, click Repeating Table and add a repeating table with 3 columns to the form template.
Right-click the first field (field1) in the repeating table and choose Change Control and then Calculated Value from the context menu that appears.
With the first field (field1) still selected, click the Properties tab or double-click field1 to bring forward the Properties tab.
On the Properties tab under the Properties group, click Default Value.
On the Field or Group Properties dialog box on the Data tab under the Default Value section, click the formula button behind the Value text box.
On the Insert Formula dialog box, select the Edit XPath (advanced) check box.
On the Insert Formula dialog box, type the follow formula into the Formula text box:
count(../preceding-sibling::*) + 1

On the Insert Formula dialog box, click Verify Formula to ensure that the formula does not contain any errors. Click OK to close the message box that says whether the formula contains or does not contain errors. Correct any errors if necessary.
On the Insert Formula dialog box, click OK.
On the Field or Group Properties dialog box, ensure that the Refresh value when formula is recalculated check box is selected, and then click OK.
Finish !!!
Save the InfoPath form template and publish it for example to a SharePoint form library.

Click ok

Save file

Input your site collection

Login to SharePoint site

Choose Form Library
Choose create a new form library

Input library name

Add 3 columns follow as

Add more column to display sum of time >> Add >> HourCount, in Function choose sum

Click Next

Publish

Preview

Input data

Open SharePoint site

Input data in SharePoint form library, you can see No.1 auto increase

Save form

Form is saved with sum HourCount.


Thanks.

Infopath Form in Sharepoint 2010 and Infopath Designer

Open Microsoft Infopath Designer 2010 >> Choose Sharepoint List >> Designer Form

Input sharepoint site address

Login with Administrator permission

Create a new sharepoint list if you have not it before

Or choose your existing list

Check to manage multiple … then click Finish

Here is infopath’s interface (Controls, Fields, …)

How to use Field

How to add new field >> Click to Add Field at right panel then input column name, display name, … (similar to column in SQL)

After create new field, the new field appear at fields panel >> then drag and drop it to layout

Configuring properties of Field >> Right click to Title column >> Text Box Propeties…

You can change the properties

Create new Field: Đơn Giá (Price)

Drag and drop to layout

Create new Field: Thành Tiền

How to use Function

Drag and drop Thành Tiền to layout the right lick to Thành Tiền >>  click to fx…>> Insert Field or Group … >> double click to Số Lượng  >> ok the type * >>  double click to Đơn Giá >> ok >> ok >> ok

Click F5 >> Work Offline

Input Product (Title), Số Lượng, Đơn Giá, then Thành Tiền will be updated automatically.

How to use Rule

Click Title >> Add Rule >> Is Blank >> Show Validation Error

Input rule’s name:

F5 to run >> tooltip display when value is null

How to Publish Infopath Form >> File >> Quick Publish

Published successfully

Open site collection >> you will see your InfoPath form was published.

More Data type and Format

Add more fields, name is Description, Data type: Multiple lines of text

Click to Dropdownlist control


Choose “Enter choices manually” then click Edit Choices

Choose value then click Modify …

Click to Field choice >> Field Properties

Update field name …

Create Lookup Field >> Create list to lookup “Company” and input data

Click to Dropdownlist >> choose Lookup choice from sharepoint list >> choose list company with column title

Edit Field properties and change column name is Company

Click to Fx… >> Insert Function… >> Date >> today >> OK>> OK>> OK.

Add rule for Ngày Bán Hàng >> click Ngày Bán Hàng >> New >>Validation

Click create new condition

Choose Use a formula

Ngày Bán Hàng is less than today() >>OK >> OK

Click And , choose Ngày Bán Hàng is greater than

Choose addDays >> OK

Here is Formula

Delete content in ()

Insert function is today() and type , 10 >> OK >> OK



Choose Show More Options follow as