डेटा

The Data tab page allows you to assign a data source to the selected control.

यो आदेश पहुँच गर्न...

Open context menu of a selected form element - choose Control Properties - Data tab.

Open Form Design toolbar, click Control icon - Data tab.


note

For forms with database links, the associated database is defined in the Form Properties. You will find the functions for this on the Data tab page.


The possible settings of the Data tab page of a control depend on the respective control. You will only see the options that are available for the current control and context.
The following fields are available:

खाली स्ट्रिङ NULL हो

Defines how an empty string input should be handled. If set to "Yes", an input string of length zero will be treated as a value NULL. If set to "No", any input will be treated as-is without any conversion.

An empty string is a string of length zero (""). Normally, a value NULL is not the same as an empty string. In general, a term NULL is used to denote an undefined value, an unknown value, or "no value has been entered yet."

Database systems vary and they might handle a value NULL differently. Refer to documentations of the database that you are using.

डेटा फाँट

With database forms, you can link controls with the data fields.

तपाईँं सँग थुप्रै सम्भाव्यताहरू छन:

  1. पहिलो केस: त्यहाँ फारममा मात्र एउटा फाइल छ।

    Data field अन्तर्गत, तपाईँंले सामग्रीहरू प्रदर्शन गर्न चाहनुभएको डेटा स्रोत तालिकाको फाँट वर्णन गर्नुहोस।

  2. दोस्रो केस:SQL क्वेरीद्वारा सिर्जना गरिएको एउटा सहायक फारममा नियन्त्रण सम्बन्धित हुन्छ।

    डेटा फाँटअन्तर्गत, तपाईँंले सामग्री प्रदर्शन गर्न चाहनुभएको SQL कथनको फाँट वर्णन गर्नुहोस

  1. तेस्रो केस: कम्बो बाकसहरू

    कम्बो बाकसहरूका लागि, प्रयोगकर्ताद्वारा मानहरू प्रविष्टि गरिएको वा चयन गरिएको डेटा स्रोतको फाँट डेटा फाँट अन्तर्गत सङ्ग्रह गर्नु पर्दछ। कम्बो बाकसमा सूची गरिएका मानहरू SQL कथनमा आधारित छन,जुन सूची सामग्री अन्तर्गत प्रविष्टि गरिएका हुन्।

  2. चौथो केस:सूची बाकसहरू

    डेटा स्रोत तालिकामा प्रदर्शनका लागि डेटा समाविष्ट छैन, तर एउटा साझा डेटा फाँटबाट एउटा तालिका डेटा स्रोतमा लिङ्क भयो।

    यदि तपाईँंले हालको डेटा स्रोत तालिका सँग लिङ्क भएको एउटा तालिकाबाट डेटा प्रदर्शन गर्नका लागि एउटा सूची चाहनुहुन्छ भने,डेटा फाँट अन्तर्गत डेटा स्रोत तालिकाको फाँट वर्णन गर्नुहोस जसमा सूची बाकसको सामग्री सन्दर्भ गर्दछ। वा तपाईँंले फारममा डेटाको प्रदर्शन नियन्त्रण गर्ने डाटाबेस फाँट वर्णन गर्न सक्नुहुन्छ। यो डेटा फाँटले अरू तालिकामा लिङ्क प्रदान गर्दछ यदि दुवै तालिकाहरू साझा डेटा फाँट सँग लिङ्क गर्न सकिने भएमा। यो सामान्यतया एउटा त्यस्तो डेटाफाँट हो जसमा अद्वितिय परिचय अंकहरू सङ्ग्रहित हुन्छन।SQL कथनद्वारा सूची सामग्री अन्तर्गत फारममा सामग्रीहरू प्रदर्शित डेटा फाँट।

सूची बाकसले सन्दर्भ सँग कार्य गर्दछ। तिनीहरू यात SQL कथनहरू (चौथो केस) सँग लिङ्क भएको तालिका सँग कार्यान्वयन गर्दछन वा मान सूचीहरूबाट:

लिङ्क गरिएको तालिकाहरू (SQL कथनहरू) बाट सन्दर्भीत

यदि तपाईँंले एउटा डाटाबेस तालिका जुन साझा डेटा फाँट देखी फारम आधारित तालिका सम्म लिङ्क भएको डेटा प्रदर्शन गर्नलाई सूची बाकस चाहनुहुन्छ भने, फारम तालिकाको लिङ्क गरिएको तालिका Data field अन्तर्गत वर्णन गरिएको छ।

एउटा SQL सँग लिङ्क सिर्जना गरियप,जुन, यदि तपाईँंले "SQL" or "Native SQL" चयन गर्नुभयो भने,त्यो सूची सामग्रीमा सूची सामग्रीको प्रकार अन्तर्गत वर्णन हुन्छ। एउटा उदाहरणको रूपमा,एउटा तालिका "Orders" हालको फारम नियन्त्रण "Orders" तालिका सँग लिङ्क गरिएको छ। तपाईँंले SQL कथनलाई निम्न किसिमले प्रयोग गर्न सक्नुहुन्छ:

SELECT CustomerName, CustomerNo FROM Customers,

जहाँ "CustomerName" लिङ्क भएको तालिका "Customers" बाट "CustomerName" डेटा फाँट हो,र "CustomerNo" तालिका "Customers"को "CustomerNo" फाँट हो जुन Data fieldअन्तर्गत वर्णन गरिएको "Orders" फारम तालिका सँग लिङ्क भएको छ।

सन्दर्भहरू मान सूचीहरू प्रयोग गर्दा

सूची बाकसका लागि,तपाईँंले मान सूचीहरू प्रयोग गर्न सक्नुहुन्छ। मान सूचीहरू सूची हुन जसले सन्दर्भ मानहरू परिभाषित गर्दछन। यस प्रकार, यो फारममा भएको नियन्त्रणले एउटा डाटाबेस फाँटको सामग्री सीधै प्रदर्शन गर्दैन, तर अधिक मानहरू मान सूचीहरूमा मानांकित छन।

If you work with reference values of a value list, the contents of the data field that you specified under Data Field in the form are not visible, but rather the assigned values. If you chose "Valuelist" on the Data tab under Type of list contents and assigned a reference value to the visible list entries in the form under List entries (entered in the General tab), then the reference values are compared with the data content of the given data field. If a reference value corresponds to the content of a data field, the associated list entries are displayed in the form.

फिल्टर प्रस्ताव

While designing your form, you can set the "Filter proposal" property for each text box in the Data tab of the corresponding Properties dialog. In subsequent searches in the filter mode, you can select from all information contained in these fields. The field content can then be selected using the AutoComplete function. Note, however, that this function requires a greater amount of memory space and time, especially when used in large databases and should therefore be used sparingly.

लिङ्क गरिएको कक्ष

Specifies the reference to a linked cell on a spreadsheet. The live state or contents of the control are linked to the cell contents. The following tables list the controls and their corresponding link type:

लिङ्क गरिएको कक्ष सँग जाँच बाकस

कार्य

परिणाम

Select the check box:

TRUE is entered into the linked cell.

Deselect the check box:

FALSE is entered into the linked cell.

Tri-state check box is set to "undetermined" state:

#NV is entered into the linked cell.

Enter a number or a formula that returns a number in the linked cell:

If entered value is TRUE or not 0: Check box is selected.
If entered value is FALSE or 0: Check box is deselected.

Clear the linked cell, or enter text, or enter a formula that returns text or an error:

जाँच बाकस "undetermined" अवस्थामा सेट गरिन्छ यदि यो एउटा त्रि-अवस्था जाँच बाकस हो भने, अन्यथा जाँच बाकस चयनबाट हटाईन्छ।

Select the box. The Reference value box contains text:

The text from the Reference value box is copied to the cell.

Deselect the box. The Reference value box contains text:

एउटा खाली स्ट्रिङ्लाई कक्षमा प्रतिलिपि बनाइन्छ ।

The Reference value box contains text. Enter the same text into the cell:

जाँच बाकस चयन गरियो।

The Reference value box contains text. Enter another text into the cell:

जाँच बाकस चयनबाट हटाईयो।


लिङ्क गरिएको कक्ष सँग विकल्प बटन(रेडियो बटन)

कार्य

परिणाम

Select the option button:

TRUE is entered into the linked cell.

Option button is deselected by selecting another option button:

FALSE is entered into the linked cell.

Enter a number or a formula that returns a number in the linked cell:

If entered value is TRUE or not 0: Option button is selected.
If entered value is FALSE or 0: Option button is deselected.

Clear the linked cell, or enter text, or enter a formula that returns text or an error:

Option button is deselected.

Click the option button. The Reference value box contains text:

The text from the Reference value box is copied to the cell.

Click another option button of the same group. The Reference value box contains text:

एउटा खाली स्ट्रिङ्लाई कक्षमा प्रतिलिपि बनाइन्छ ।

The Reference value box contains text. Enter the same text into the cell:

विकल्प बटन चयन गरियो।

The Reference value box contains text. Enter another text into the cell:

विकल्प बटन खाली गरियो।


लिङ्क गरिएको कक्ष सँग पाठ बाकस

कार्य

परिणाम

Enter text into the text box:

Text is copied into the linked cell.

Clear the text box:

Linked cell is cleared.

Enter text or a number in the linked cell:

Text or number is copied into the text box.

Enter a formula into the linked cell:

Formula result is copied into the text box.

Clear the linked cell:

Text box is cleared.


लिङ्क गरिएको कक्ष सँग सङ्ख्यासूचक वा ढाँचाबद्ध गरिएको फाँट

कार्य

परिणाम

Enter a number into the field:

Number is copied into the linked cell.

Clear the field:

Value 0 is set in the linked cell.

Enter a number or a formula that returns a number in the linked cell:

Number is copied into the field.

Clear the linked cell, or enter text, or enter a formula that returns text or an error:

Value 0 is set in the field.


लिङ्क गरिएको कक्ष सँग सूची बाकस

सूची बाकसले दुई फरक लिङ्क गर्ने मोडहरू समर्थन गर्दछ,"Contents of the linked cell"को गुण हेर्नुहोस।

  1. Linked contents: Synchronize the text contents of the selected list box entry with the cell contents.

  2. Linked selection position: The position of the single selected item in the list box is synchronized with the numerical value in the cell.

कार्य

परिणाम

Select a single list item:

सामग्रीहरू लिङ्क गरिएका छन: वस्तुको पाठ लिङ्क गरिएको कक्षमा प्रतिलिपि गरियो।

Selection is linked: Position of the selected item is copied into the linked cell.
For example, if the third item is selected, the number 3 will be copied.

Select several list items:

#NV is entered into the linked cell.

Deselect all list items:

Contents are linked: Linked cell is cleared.

Selection is linked: Value 0 is entered in the linked cell.

Enter text or a number into the linked cell:

Contents are linked: Find and select an equal list item.

Selection is linked: The list item at the specified position (starting with 1 for the first item) is selected. If not found, all items are deselected.

Enter a formula into the linked cell:

Find and select a list item that matches the formula result and link mode.

Clear the linked cell:

Deselect all items in the list box.

Change the contents of the list source range:

सूची बाकस वस्तुरहरू परिवर्तन अनुसार अद्यावधिक गरिए। चयन संरक्षण गरिएको छ। यसले लिङ्क गरिएको कक्षमा अद्यावधिक गर्ने कारण बन्न सक्दछ।


लिङ्क गरिएको कक्ष सँग कम्बो बाकस

कार्य

परिणाम

Enter text into the edit field of the combo box, or select an entry from the drop-down list:

Text is copied into the linked cell.

Clear the edit field of the combo box:

Linked cell is cleared.

Enter text or a number into the linked cell:

Text or number is copied into the edit field of the combo box.

Enter a formula into the linked cell:

Formula result is copied into the edit field of the combo box.

Clear the linked cell:

Edit field of the combo box is cleared.

Change the contents of the list source range:

परिवर्तन अनुसार ड्रप-डाउन सूची वस्तुहरू अद्यावधिक गरिए। कम्बो बाकसको सम्पादन फाँट र लिङ्क गरिएका कक्षहरू परिवर्तन गरिएका छैनन।


लिङ्क गरिएको कक्षको सामग्रीहरू

Select the mode of linking a list box with a linked cell on a spreadsheet.

  1. Linked contents: Synchronize the text contents of the selected list box entry with the cell contents. Select "The selected entry".

  2. Linked selection position: The position of the single selected item in the list box is synchronized with the numerical value in the cell. Select "Position of the selected entry".

सन्दर्भ मान (बन्द)

Check boxes and radio buttons in spreadsheets can be bound to cells in the current document. If the control is enabled, the value you enter in Reference value (on) is copied to the cell. If the control is disabled, the value from Reference value (off) is copied to the cell.

सन्दर्भ मान (सुरु)

You can assign a reference value to option buttons and check boxes. The reference value will be remitted to a server when sending the web form. With database forms the value entered here will be written in the database assigned to the control field.

वेभ फारमका लागि सन्दर्भ मानहरू

यदि तपाईँंले वेब फारम डिजाइन गर्नुभयो भने सन्दर्भ मानहरू उपयोगी हुन्छन र नियन्त्रणको स्थितिमा भएको सूचना सर्भरमा स्थानान्तरण हुनु पर्दछ। यदि नियन्त्रण प्रयोगकर्ताद्वारा क्लिक गरिएमा, सम्बन्धित सन्दर्भ मान सर्भरमा पठाईन्छ।

उदाहरणका लागि,यदि तपाईँं सँग विकल्प"feminine" र "masculine" का लागि दुई नियन्त्रण फाँटहरू भएमा,र "feminine" फाँटका लागि १ र "masculine" फाँटका लागि २ सन्दर्भ मान मानाङ्कन गरेमा, यदि प्रयोगकर्ताले "feminine" फाँटमा क्लिक गरेमा मान १ सर्भरमा प्रसारण हुन्छ र यदि प्रयोगकर्ताले "masculine" फाँटमा क्लिक गरेमा मान २ पठाईन्छ।

डाटाबेस फारमहरूका लागि सन्दर्भमानहरू

डाटाबेस फारमहरूका लागि,तपाईँंले एउटा विकल्प वा एउटा जाँच बाकसकोो स्थितिलाई सन्दर्भ मानद्वारा डाटाबेसमा सङ्ग्रह गरे क्यारेक्टराईज गर्न सक्नुहुन्छ। यदि तपाईँं सँग तिन विकल्पको सेट छ भने,उदाहरणका लागि "in progress", "completed", र"resubmission",सम्बन्धित सन्दर्भ मानहरू संग, यदि सम्बन्धित विकल्प क्लिक गरिएमा यि सन्दर्भ मानहरू "ToDo", "OK", र "RS" देखापर्दछन।।

सीमा फाँट

note

यदि तपाईँंले गुण ब्राउजरमाBound field कक्षको सामग्री मेट्नुभयो भने, परिणाम सेटको पहिलो फाँट प्रदर्शन गर्न डेटा साटासाट गर्न प्रयोग हुन्छ।


सूची बाकसका लागि यो गुणले फारममा कुन लिङ्क गरिएको डेटा फाँट प्रयोग गर्ने भन्ने परिभाषित गर्दछ।

यदि एउटा सूची बाकस फारम तालिकामा लिङ्क गरिएको तालिका प्रदर्शन गर्नु पर्छ भने,त्यसपछि सूची सामग्रीको प्रकार फाँटमा परिभाषित गर्नुहोस यदि प्रदर्शन SQL आदेशबाट निर्धारण भएमा वा (लिङ्क भएको) तालिका पहुँच हुन्छ। बाध्नुहोस फाँट गुण संग,क्वेरीको कुन डेटा फाँट वा तालिकाको डेटा फाँट लिङ्क गर्ने वर्णन गर्नका लागि तपाईँंले एउटा अनुक्रमणिका प्रयोग गर्नुहोस।

note

गुण बाध्नुहोस फाँट ति फारमहरूका लागि मात्र हो जुन एक भन्दा बढी तालिकाहरू पहुँच गर्नका लागि प्रयोग भएका छन। यदि फारम मात्र एउटा तालिकामा आधारित भएमा,फारममा देखाउनुपर्ने फाँटहरू Data field अन्तर्गत सीधै प्रदर्शन गरियो। यधपी,यदि तपाईँंले डेटालाई हालको लिङ्क गरिएको तालिकाबाट एउटा साझा डेटा फाँटमा प्रदर्शन गर्नका लागि चाहनुहुन्छ भने,लिङ्क गरिएको डेटा Bound fieldद्वारा परिभाषित गरिएको छ।


यदि तपाईँंले Type of list contents अन्तर्गत "SQL" चयन गर्नुभएको छ भने,SQL आदेशले अनुक्रमणिका वर्णन गर्नका लागि निर्धारण गर्दछ।उदाहरण:यदि तपाईँंले SQL आदेश वर्णन गर्नुभयो भने जस्तै सूची सामग्री अन्तर्गत "SELECT Field1, Field2 FROM tablename" ,निम्न तालिक सन्दर्भ गर्नुहोस:

सीमा फाँट

लिङ्क

-१

The index of the selected entry in the list is linked to the field specified under Data field.

{empty} or 0

डाटाबेस फाँट "Field1", डेटा फाँट अन्तर्गत वर्णन गरिएको फाँट सँग लिङ्क भएको छ.

1

डेटाफाँट "Field2" डेटा फाँट अन्तर्गत वर्णन गरिएको फाँटमा लिङ्क गरिएको छ।


यदि तपाईँंले Type of list contents अन्तर्गत "Table" चयन गर्नुभयो भने,तालिका संरचनाले वर्णन गर्नका लागि अनुक्रमणिका परिभाषित गर्दछ।उदाहरण: यदि List content अन्तर्गत एउटा डाटाबेस तालिका चयन गरिएमा,निम्न तालिकाका लागि: सन्दर्भ गर्नुहोस:

सीमा फाँट

लिङ्क

-१

The index of the selected entry in the list is linked to the field specified under Data field.

{empty} or 0

तालिकाको पहिलो स्तम्भ डेटा फाँट अन्तर्गत वर्णन गरिएको फाँट सँग लिङ्क हुन्छ तालिकाको पहिलो स्तम्भ

1

तालिकाको दोस्रो स्तम्भ डेटा फाँट अन्तर्गत वर्णन गरिएको फाँटमा लिङ्क गरियो।

2

तालिकाको तेस्रो स्तम्भ डेटा फाँट अन्तर्गत वर्णन गरिएको फाँटमा लिङ्क गरियो।


सूची सामग्री

With database forms, specifies the data source for the list content of the form-element. This field can be used to define a value list for documents without a database connection.

डाटाबेस फारमहरूको केसमा,डेटा स्रोतले सूचीको वा कम्बो बाकसको प्रविष्टिहरू निर्धारण गर्दछ।चयन गरिएको प्रकारमा निर्भर रहेर, List content अन्तर्गत तपाईँंलाई बिभिन्न स्रोत विचमा एउटा चयन छ,तपाईँंको डाटाबेसमा यि वस्तुहरू अवस्थिति प्रदान गरिएका छन। Type of list contents अन्तर्गत चयन गरिएका प्रकारको सबै उपलब्ध डाटाबेस वस्तुहरू यहाँ प्रस्ताव गरिन्छन। यदि तपाईँंले "Value List" विकल्प प्रकारको रूपमा चयन गर्नुभएको भए, तपाईँंले डाटाबेस फारमहरूका लागि सन्दर्भहरू प्रयोग गर्न सक्नुहुन्छ। यदि नियन्त्रणको प्रदर्शन SQL आदेशद्वारा नियन्त्रण गरिएको भए, यहाँ SQL कथन प्रविष्टि गरिन्छ।

SQL कथनहरूको उदाहरणहरू :

सूची बाकसका लागि, एउटा SQL कथनमा निम्न फारमहरू हुन सक्दछन

SELECT field1, field2 FROM table,

यहाँ "table" तालिका हो जस्को डेटा नियन्त्रणको सूची (सूची तालिका)मा प्रदर्शित भएको छ। "field1" डेटा फाँट हो जसले फारममा दृश्यात्मक प्रविष्टिहरू परिभाषित गर्दछ।"field2" सूची तालिकाको फाँट हो जुन फारम तालिका (value table) मा यदिफाँट बाध्नुहोस = 1 डेटा फाँट अन्तर्गत फाँटबाट वर्णन गरिएको,चयन गरियो।

कम्बो बाकसहरूका लागि,एउटा SQL कथनमा निम्न फारमहरू लिन सक्दछ

SELECT DISTINCT field FROM table,

यहाँ "field" सूची तालिका"table" बाट एउटा डेटा फाँट हो जस्को सामग्री कम्बो बाकसको सूचीमा प्रदर्शित छन।

HTML कागजातहरूका लागि मान सूचीहरू

HTML बनावटका लागि, तपाईँले सूची सामग्री अन्तर्गतको मान सूची प्रविष्ट गर्न सक्नुहुन्छ । "Valuelist" विकल्पलाई सूची सामग्रीको प्रकार अन्तर्गत चयन गर्नुहोस् । यहाँ प्रविष्ट गरिएको मानहरू सो बनावटमा दृश्यातम्क हुने छैन, र दृश्यात्मक प्रविष्टिहरूमा मानहरू मानाङ्कन गर्न प्रयोग गरिन्छ । सूची सामग्री अन्तर्गत बनेका प्रविष्टिहरू HTML ट्याग <OPTION VALUE=...> मा अनुकूल हुन्छ ।

सूची बाकस वा कम्बो बाकसबाट चयन गरिएको प्रविष्टिको डेटा रुपान्तरणमा, फारममा मानहरूको दुबै सूची प्रर्दशित हुन्छ, जसलाई सामान्य ट्याबमा सूची प्रविष्टि अन्तर्गत प्रविष्ट गरियो, डेटा ट्याबमा सूची सामग्री अन्तर्गत प्रविष्ट गरिएको मान सूची, लाई विचार गरिन्छ: यदि (खाली-विहिन) पाठलाई मान सूची (<OPTION VALUE=...>) मा चयन गरिएको स्थितिमा छ भने, यसलाई प्रसारित गरिनेछ । अन्यथा, (<OPTION>) नियन्त्रणमा प्रर्दशित पाठ पठाइनेछ ।

यदि मान सूचीमा खाली स्ट्रिङ समाविष्ट गर्नुपर्ने भए, सूची सामग्री अन्तर्गत अनुरूप अवस्था (याद गर्नुहोस ठुलो वर्णको/सानो वर्णको) मा "$$$empty$$$" प्रविष्टि गर्नुहोस। LibreOffice ले यो आगतलाई खाली स्ट्रिङको रूपमा व्याख्या गर्दछ र अनुरूपको सूची प्रविष्टिमा यसलाई मानाङ्कन गर्दछ।

निम्न तालिकाले HTML, JavaScript, रLibreOfficeफाँट सूची सामग्री बीचको जडान "ListBox1"नामको उदाहरण सूची बाकस प्रयोग गरेर देखाउँदछ। यो केसमा, फारममा "Item" ले एउटा सूची प्रविष्टि दृश्यात्मक रूपमा डिजाइन गर्दछ:

HTML ट्याग

जाभा स्क्रिप्ट

नियन्त्रणको (सूची सामग्री) मान सूचीमा प्रविष्टि

प्रसारित डेटा

<OPTION>वस्तु

सम्भव छैन

""

दृश्यात्मक सूची प्रविष्टि("ListBox1=Item")

<OPTION VALUE="Value">वस्तु

ListBox1.options[0].value="Value"

"Value"

मान सूची प्रविष्टि("ListBox1=Value")मा मानाङ्कन गरियो

<OPTION VALUE="">वस्तु

ListBox1.options[0].value=""

"$$$empty$$$"

एउटा खाली स्ट्रिङ("ListBox1=")


सूची सामग्रीहरूको प्रकार

Determines the data to fill the lists in list and combo boxes.

With the "Valuelist" option, all entries entered in the List entries field of the General tab appear in the control. For database forms, you can use reference values (see the References Using Value Lists section).

यदि नियन्त्रणको सामग्री डाटाबेसबाट पढिन्छ भने,तपाईँंले अरू विकल्प सँग डेटाको प्रकार निर्धारण गर्न सक्नुहुन्छ।उदाहरणका लागि, तपाईँंले तालिकाहरू र क्वेरीहरूबाट रोज्न सक्नुहुन्छ।

स्रोत कक्ष दायरा

Enter a cell range that contains the entries for a list box or combo box on a spreadsheet. If you enter a multi-column range, only the contents of the leftmost column are used to fill the control.

कृपया हामीलाई समर्थन गर्नुहोस्!