Microsoft hesabıyla oturum açın
Oturum açın veya hesap oluşturun.
Merhaba,
Farklı bir hesap seçin.
Birden çok hesabınız var
Oturum açmak istediğiniz hesabı seçin.

Not:  En güncel yardım içeriklerini, mümkün olduğunca hızlı biçimde kendi dilinizde size sunmak için çalışıyoruz. Bu sayfanın çevirisi otomasyon aracılığıyla yapılmıştır ve bu nedenle hatalı veya yanlış dil bilgisi kullanımları içerebilir. Amacımız, bu içeriğin sizin için faydalı olabilmesini sağlamaktır. Buradaki bilgilerin faydalı olup olmadığını bu sayfanın sonunda bize bildirebilir misiniz? Kolayca başvurabilmek için İngilizce makaleye buradan ulaşabilirsiniz .

Bu makalede

Understanding offline forms

You might need to design a Microsoft Office InfoPath form template that users can fill out while their computers are disconnected from the network. For example, you can design a form template that an insurance adjuster can use in the field while investigating a claim. The form template contains secondary data connections that provide data to the form from an external database. The adjuster needs this data in order to fill out the form. While still in the office and connected to the network, the insurance adjuster can create a form based on this form template, and then save the form on his or her computer. In the field, the adjuster can then open and fill out the form without being connected to a network. After returning to the office and reconnecting to the network, the adjuster can then submit the form.

By default, a form saved on a computer can work without a network connection. When a user creates a form based on a form template, InfoPath downloads and stores a copy of that form template on the user’s computer. Whenever the user opens a form based on that form template, InfoPath first checks if there is a network connection to the computer. If a network connection exists, InfoPath checks the location where the form template was downloaded from, to determine if there is an updated version of the form template. If an updated version exists, InfoPath updates the form template on the user's computer. If a network connection does not exist, InfoPath uses the version of the form template that is stored on the user's computer.

In order to design a form template for offline use, the form template must be stored on the user's computer, and any data that is required by the user to complete the form, such as items in a list box, must be available to the user even if the computer is not connected to the network. The data in these controls are supplied from a secondary data connection to an external data source. This data can be stored in the user's computer in either the form template or in a special storage location called the cache.

When you add a secondary data connection to a form template that queries data from an external data source, InfoPath sends a query to that external data source. The results of the query are then stored in the form template. When the user creates a new form based on this form template, the data saved to the form template is available to the user.

When the form uses this secondary data connection to update the contents of a list box or combo box control with the latest data from the external data source, InfoPath stores the results of this query in a special storage location called the cache, if the computer is connected to a network. InfoPath uses the data in this cache to supply data to those controls.

To make the data from a secondary data connection available to your users, even if their computers are not connected to a network, you can do one or both of the following:

  • Store the data from the external data source in the form template.

  • Use the secondary data connection when the form opens.

After configuring the secondary data connection to work while the user's computer is offline, you can also configure the form template to retrieve the latest data from the external data source. You can configure the form template to retrieve the latest data (by limiting the availability of the existing data in the form to a specified number of days) and then adding a button to get the latest data.

Store the data in the form template

You can store the data from a secondary data connection in a form template by selecting the Store a copy of the data in the form template check box in the Data Connection Wizard when you create the secondary data connection.

Form şablonunda dış veri kaynağından gelen verileri depolamak için, Veri Bağlantı Sihirbazı’nda bu onay kutusuna tıklayarak form şablonunu yapılandırın.

When you select this check box, InfoPath uses the data connection to retrieve data from the external data source. It then stores this data in the form template. When a user creates a form or opens an existing form based on your form template, a copy of the form template, along with the stored data, is downloaded to the user's computer. If the user's computer is connected to a network when the form is created, InfoPath retrieves data from the external data connection whenever the form uses this data connection. If the user is not connected to a network when the form is created, InfoPath uses the data that is stored in the form template on the user's computer.

Because the data was retrieved at the time that the data connection was created, the external data source may have been updated by the time a user creates a form based on this form template. If you want your users to receive the latest data from an external data source when they create a new form or open an existing form based on your form template, you should design your form to use a secondary data connection when the form first opens.

Use the secondary data connection when the form opens

If you want your users to receive the latest data from an external data source, rather than using the data stored in a form template, select the Automatically retrieve data when form is opened check box in the Data Connection Wizard when you create the secondary data connection.Veri Bağlantı Sihirbazı’nın son sayfasındaki bu onay kutusu, bu form şablonunu, kullanıcı her yeni form oluşturduğunda veya var olan bir form açtığında bu veri bağlantısını kullanacak şekilde yapılandırır.

When a user creates a new form while connected to the network, InfoPath uses this secondary data connection to retrieve the latest data from the external data source. This data is stored in the cache. If the user opens an existing form that is saved on their computer, InfoPath checks if the computer is connected to a network. If the computer is connected to a network, InfoPath retrieves the latest data from the external data source by using this data connection. If the user is working offline, InfoPath uses the data stored in the cache or in the form template.

Güvenlik Notu: The data retrieved from a secondary data source is stored in the computer as plain text. If you are using a secondary data connection to retrieve sensitive data from an external data source, you may want to disable this feature to help protect the data from unauthorized use in case the computer is lost or stolen. If you disable this feature, the data will be available only if the user is connected to the network.

Get the latest data

If an external data source is regularly updated, you can configure a form template to allow users to retrieve the latest data through the secondary data connection. To do this, you can limit the availability of the data that is currently stored in the cache to a specified number of days, and then you can add a button to retrieve data from any external data sources by using all of the secondary data connections in the form. Doing this helps ensure that users are working with the most recent data.

Alternatively, you can limit the availability of data from a secondary data connection by setting an expiration date on how long that you want data to be stored on a user's computer.Form Seçenekleri iletişim kutusunun Çevrimdışı Kategorisi aracılığıyla formda depolanan verilerin kullanım ömrünü yapılandırabilirsiniz.

Bu seçeneği kullandığınızda, InfoPath tüm ikincil veri bağlantılarını verilerinden formu yalnızca belirtilen sayıda gün boyunca kullanılabilir. Bu gün sayısını geçtikten sonra veri formunda görünmez. Sonra kullanıcıların formda belirli ikincil veri bağlantısı veya tüm ikincil veri bağlantıları kullanarak verileri almasını tıklatabileceğiniz formunuza bir düğme ekleyebilirsiniz.

Güvenlik Notu: Veri formuna kullanılamaz bile, ayarlanan gün sayısı geçtikten sonra veri kullanıcının bilgisayarında kalır. İşletim sistemi başka bir şey depolamak için bu alanı kullandığında verileri yalnızca üzerine yazılır.

Top of Page

Create a data connection to a SQL database for offline use

Before you add a secondary data connection to a Microsoft SQL Server database to your form template, you need the following information from your database administrator.

  • Bu form şablonunu kullanacağınız veritabanının depolandığı sunucunun adı.

  • Bu form şablonunu kullanacağınız veritabanının adı.

  • Kimlik doğrulaması veritabanı tarafından gerekiyor. Veritabanı kullanıcıları veritabanına nasıl erişebilir belirlemek için Microsoft Windows kimlik doğrulamasını veya SQL Server kimlik doğrulaması kullanabilirsiniz.

  • Forma göndermek istediğiniz verileri içeren tablonun adı. Birincil tablo budur. Birden fazla tablo veritabanında kullanmayı planlıyorsanız, ihtiyacınız olanlar diğer adlarını, alt tablolar. Ayrıca ilişkiler birincil tablodaki alanlara sahip olduğu alt tablolardaki alanları adlarını gerekir.

  • Olup çevrimdışı kullanım için formunda güvenle sorgu sonuçlarını depolayabilirsiniz.

Bu bilgileri aldıktan sonra bir SQL veritabanı çevrimdışı kullanım için veri kaynağı bağlantısı oluşturmak için aşağıdaki yordamı kullanabilirsiniz.

  1. Araçlar menüsünde, Veri bağlantıları' nı tıklatın.

  2. Veri bağlantıları iletişim kutusunda, Ekle'yitıklatın.

  3. Veri Bağlantı Sihirbazı ' nda Yeni bir bağlantı oluştur' u tıklatın, Veri Al'ıve sonra İleri' yi tıklatın.

  4. Sihirbazın sonraki sayfasında, veritabanı (Microsoft SQL Server veya yalnızca Microsoft Office Access)tıklatın ve sonra İleri' yi tıklatın.

  5. Sihirbazın sonraki sayfasında, Veritabanını seçin'itıklatın.

  6. Veri kaynağını seç iletişim kutusunda, Yeni kaynak' ı tıklatın.

  7. Bağlanmak istediğiniz veri kaynağını ne tür listesinde, Microsoft SQL Server' ı tıklatın ve sonra İleri' yi tıklatın.

  8. Sunucu adı kutusuna, veritabanının depolandığı sunucunun adını yazın.

  9. Oturum açma kimlik bilgilerialtında aşağıdakilerden birini yapın:

    • Veritabanı kimin erişimi olduğunu belirlerse kullanılan içinde Microsoft Windows ağ kimlik bilgileri temel sunucuya, Windows kimlik doğrulamasını kullan'ıtıklatın.

    • Veritabanı kimin erişimi olduğunu belirlerse sunucusuna belirtilen kullanıcı adı ve veritabanı yöneticisinden alma parola göre Aşağıdaki kullanıcı adını ve parolayı kullan' ı tıklatın ve sonra kullanıcı adı içinde o kullanıcı adınızı ve parolanızı yazın ve parola kutuları.

  10. İleri'yi tıklatın.

  11. İstediğiniz verileri içeren veritabanını seçin listesinde, sihirbazın sonraki sayfasında kullanmak, belirli bir tabloya bağlan onay kutusunu seçin, birincil tablo adını tıklatın ve sonra İleri ' yi tıklatın, istediğiniz veritabanını tıklatın. .

  12. Dosya adı kutusunda, sihirbazın sonraki sayfasında veri bağlantısı bilgilerini saklayan dosya için bir ad yazın.

  13. Bu ayarları kaydetmek için Son'utıklatın.

  14. Sorgu Veri bağlantısında kullanmak istediğiniz herhangi bir tablo ekleyin.

    Nasıl mı?

    1. Click Add Table.

    2. Tablo veya Sorgu Ekle iletişim kutusunda, alt tablo adını tıklatın ve sonra İleri' yi tıklatın. İlişkileri her iki tablodaki alan adları eşleşen göre ayarlamak InfoPath çalışır. Önerilen ilişki kullanmak istemiyorsanız, ilişkiyi seçin ve İlişki Kaldır'ıtıklatın. İlişki eklemek için İlişki Ekle'ıtıklatın. İlişki Ekle iletişim kutusunda, ilgili her alana karşılık gelen sütun adını tıklatın ve sonra da Tamam' ı tıklatın.

    3. Son'a tıklayın.

    4. Ek alt tablolar eklemek için bu adımları yineleyin.

  15. İleri'yi tıklatın.

  16. Kullanıcının bilgisayarına bir ağa bağlı değilken bile kullanılabilir olması için bu ikincil veri bağlantısını verilerinden isterseniz, form şablonunda verilerin bir kopyasını depola onay kutusunu seçin. Bu onay kutusunu seçtiğinizde, InfoPath dış veri kaynağı sorgular ve sonuçları form şablonunda depolar.

    Güvenlik Notu: Bu onay kutusunu seçme sorgusu sonuçları form şablonunda depolar. Form şablonunda verilerin depolandığı için kendi bilgisayarlarına bir ağa bağlı değilken bile, kullanıcıların dolduracağı, formlarda kullanılabilir. Bu veri bağlantısından hassas veri alıyorsanız, bilgisayarınızda kaybolabilir veya çalınması durumunda verileri korunmasına yardımcı olmak için bu özelliği devre dışı isteyebilirsiniz.

  17. İleri'yi tıklatın.

  18. Sihirbazın sonraki sayfasında, bu ikincil veri bağlantısı için açıklayıcı bir ad yazın. Özet bölümündeki bilgilerin doğru olduğunu doğrulayın. Kullanıcılarınız yeni bir form oluşturma veya bu form şablonunu temel alan varolan bir formu açık olduğunda bu ikincil veri bağlantısını kullanmak izin vermek için form açıldığında verileri otomatik olarak Al onay kutusunu seçin.

Top of Page

Create a data connection to an Access database for offline use

Bir ikincil veri bağlantısı form şablonunuz için bir Access veritabanına eklemeden önce veritabanı yöneticinize aşağıdaki bilgiler gerekir.

  • Veritabanının konumunu ve adını.

    Not: Veritabanını kullanıcılarınıza erişilebilen bir ağ konumundaki olup olmadığını bilmeniz gerekir. Ağdaki diğer kullanıcıların bu form şablonunu temel alan formları oluşturur, veritabanınızı kullanıcılarınız için erişilebilen bir ağ konumu yer almalıdır.

  • Form şablonunuzu yalnızca veritabanını sorgular, veritabanına gönderilen sorgu sonuçlarını sağlayan tablonun adını gerekir. Bu tablo, sorgu veri bağlantısı yapılandırırken birincil tablo olacaktır.

  • Birincil tablo verilerinden gerektirebilir herhangi bir tablo adlarını. Çoğu durumda, tablo ilişkileri zaten veritabanında kurulur. Birincil tablo ve başka bir tablo arasında ilişki kurmak gerekir, her iki tablodan ilişkili alan adları gerekir.

Bu bilgileri aldıktan sonra veri bağlantısını çevrimdışı kullanım için bir Access veritabanı oluşturmak için aşağıdaki yordamı kullanabilirsiniz.

  1. Araçlar menüsünde, Veri bağlantıları' nı tıklatın.

  2. Veri bağlantıları iletişim kutusunda, Ekle'yitıklatın.

  3. Veri Bağlantı Sihirbazı ' nda Yeni bir bağlantı oluştur' u tıklatın, Veri Al'ıve sonra İleri' yi tıklatın.

  4. Sihirbazın sonraki sayfasında, veritabanı (Microsoft SQL Server veya yalnızca Microsoft Office Access)tıklatın ve sonra İleri' yi tıklatın.

  5. Sihirbazın sonraki sayfasında, Veritabanını seçin'itıklatın.

  6. Veri kaynağını seç iletişim kutusunda, veritabanınızı konumunu bulun.

    Not: Veritabanınızı bir ağ konumu depolanıyorsa, konum UNC yoluna göz atın. Eşlenmiş bir ağ sürücüsüne aracılığıyla ağ konumuna göz atın değil. Eşlenmiş bir ağ sürücüsüne kullanırsanız, bu form şablonunu temel alarak oluşturulan formları eşlenmiş bir ağ sürücüsüne veritabanından arar. Kullanıcı bir eşlenmiş bir ağ sürücüsüne sahip değil, form veritabanı bulmaz.

  7. Veritabanınızın adını tıklatın ve sonra ' ı tıklatın.

  8. Tablo Seç iletişim kutusunda, kullanmak istediğiniz birincil tabloyu tıklatın ve sonra da Tamam' ı tıklatın.

  9. Sihirbazın sonraki sayfasında Tablo Sütunları Göster onay kutusunu seçin.

    By default, all of the fields in the table will be added to the main data source of the form template.

  10. Under Data source structure, clear the check boxes for the fields that you do not want to include in the main data source.

    Herhangi bir tabloları veya sorguları içinde bu veri bağlantısını kullanmak istediğiniz ekleyin.

    Nasıl mı?

    1. Tablo Ekle'yitıklatın.

    2. In the Add Table or Query dialog box, click the name of the child table, and then click Next. InfoPath attempts to set the relationships by matching field names in both tables. If you do not want to use the suggested relationship, select the relationship, and then click Remove Relationship. To add a relationship, click Add Relationship. In the Add Relationship dialog box, click the name of each related field in the respective column, and then click OK.

    3. Son'a tıklayın.

    4. To add additional child tables, repeat these steps.

  11. İleri'yi tıklatın.

  12. Kullanıcının bilgisayarına bir ağa bağlı değilken bile, bu ikincil veri bağlantısını verilerinden kullanılabilmesi için form şablonunda verilerin bir kopyasını depola onay kutusunu seçin. Bu onay kutusunu seçtiğinizde, InfoPath dış veri kaynağı sorgular ve sorgu sonuçlarının şablonda depolar.

    Güvenlik Notu: Selecting this check box stores the query results in the form template. Because the data is stored in the form template, it is available in the forms that users fill out, even if their computers are not connected to a network. If you are getting sensitive data from this data connection, you may want to disable this feature to help protect the data in case the computer is lost or stolen.

  13. İleri'yi tıklatın.

  14. On the next page of the wizard, type a descriptive name for this secondary data connection. Verify that the information in the Summary section is correct. To allow your users to use this secondary data connection when they create a new form or open an existing form based on this form template, select the Automatically retrieve data when form is opened check box.

Top of Page

Create a data connection to a SharePoint document library for offline use

Form şablonunuz için bir ikincil veri bağlantısını eklemeden önce site yöneticinizden aşağıdaki bilgiler gerekir.

  • The location of the Microsoft Windows SharePoint Services site, and the necessary permissions to access it.

  • Doğrulama kullanıcılarınız verileri belge kitaplığı veya listeyi erişebilmeleri site yapılandırılır.

  • Doğrulama kullanıcılarınızın bilgisayarlarda çevrimdışı kullanım için belge kitaplığı veya liste verilerinin depolayabilirsiniz.

Once you get this information, you can use the following procedure to create the data connection to an Access database for offline use.

  1. On the Tools menu, click Data Connections.

  2. In the Data Connections dialog box, click Add.

  3. In the Data Connection Wizard, click Create a new connection to, click Receive data, and then click Next.

  4. On the next page of the wizard, click SharePoint library or list, and then click Next.

  5. On the next page of the wizard, type the URL of the SharePoint site with the document library or list, and then click Next.

  6. On the next page of the wizard, in the Select a list or library list, click the list or library that you want to use, and then click Next.

  7. On the next page of the wizard, select the check boxes next to the fields that will supply data to the form template. If the form template will be published to the document library, and you want forms that are based on this form template to retrieve metadata about the form, select the Include data for the active form only check box.

  8. İleri'yi tıklatın.

  9. To make the data from this secondary data connection available even if a user's computer is not connected to a network, select the Store a copy of the data in the form template check box. When you select this check box, InfoPath queries the external data source and stores the query results in the form template.

    Güvenlik Notu: Selecting this check box stores the query results in the form template. Because the data is stored in the form template, it is available in the forms that users fill out, even if their computers are not connected to a network. If you are getting sensitive data from this data connection, you may want to disable this feature to help protect the data in case the computer is lost or stolen.

  10. İleri'yi tıklatın.

  11. On the next page of the wizard, type a descriptive name for this secondary data connection, and then verify that the information in the Summary section is correct.

  12. To allow your users to use this secondary data connection when they create a new form or open an existing form based on this form template, select the Automatically retrieve data when form is opened check box.

Top of Page

Configure data availability

If your external data source is regularly updated with new data, you can configure the form template to make any cached data available. This data is available to forms based on this form template for a limited number of days that corresponds to the update schedule of the external data source. By limiting the number of days that the data is available to forms based on this form template, you can require that your users update the data from the external data source on a regular basis.

To update the data, you can add a button to your form template that users can click to update the data from all of the secondary data connections used in the form template.

Not: If you use a button to refresh the data connection, tell your users to click this button only if they are connected to a network.

Specify the number of days cached data is available

This setting applies to all of the secondary data connections in the form template.

  1. On the Tools menu, click Form Options.

  2. In the Category list, in the Form Options dialog box, click Offline.

  3. Under Offline, select the Store data returned from queries so it can be used in Offline Mode check box.

  4. Click Stored queries expire after this number of days.

  5. In the list, select the number of days that you want the cached data to be available to the form.

Add a button to refresh the data connection

  1. If the form template has multiple views, click View name on the View menu to go to the view with the control where you want to display the data from the secondary data source.

  2. Denetimler görev bölmesi görünür durumda değilse, Ekle menüsünde Diğer Denetimler’e tıklayın veya ALT+I, C tuşlarına basın.

  3. Drag a button control onto your form template.

  4. Double-click the button control that you just added to the form template.

  5. Genel sekmesine tıklayın.

  6. In the Action list, click Refresh.

  7. In the Label box, type the name that you want to appear on the button.

  8. Ayarlar'a tıklayın.

  9. In the Refresh dialog box, do one of the following:

    • To configure the button to retrieve the latest data through this data connection, click One secondary data source.

    • To configure the button to retrieve the latest data through all of the secondary data connections, click All secondary data sources.

  10. In the Choose the secondary data source list, click the secondary data source that is associated with the query data connection.

  11. Click OK to close all of the open dialog boxes.

  12. Yaptığınız değişiklikleri test etmek için, Standart araç çubuğunda Önizleme’ye tıklayın veya CTRL+SHIFT+B tuşlarına basın.

Top of Page

Disable offline use

In some cases, you will want to design a form template to only allow users to fill out a form when they are connected to a network. For example, if your form template has a data connection to an external data source that contains sensitive or confidential data, you may want to configure the form template to allow forms to be filled out in a connected state only. By configuring the form template in this manner, you can help protect the data in case the computer is lost or stolen, because the data is not being stored on the user's computer.

To configure the form template to allow users to fill out the form, only if their computer is connected to a network, complete the following steps.

  1. On the Tools menu, click Form Options.

  2. In the Category list, in the Form Options dialog box, click Offline.

  3. Under Offline, clear the Allow users to fill out this form if data is unavailable check box.

Top of Page

Daha fazla yardıma mı ihtiyacınız var?

Daha fazla seçenek mi istiyorsunuz?

Abonelik avantajlarını keşfedin, eğitim kurslarına göz atın, cihazınızın güvenliğini nasıl sağlayacağınızı öğrenin ve daha fazlasını yapın.

Topluluklar, soru sormanıza ve soruları yanıtlamanıza, geri bildirimde bulunmanıza ve zengin bilgiye sahip uzmanlardan bilgi almanıza yardımcı olur.

Bu bilgi yararlı oldu mu?

Dil kalitesinden ne kadar memnunsunuz?
Deneyiminizi ne etkiledi?
Gönder’e bastığınızda, geri bildiriminiz Microsoft ürün ve hizmetlerini geliştirmek için kullanılır. BT yöneticiniz bu verileri toplayabilecek. Gizlilik Bildirimi.

Geri bildiriminiz için teşekkürler!

×