แหล่งข้อมูล

เมื่อคุณ:doc:แทรกรายการ <insert/insert_list>`หรือ:doc:`แผนภูมิ <insert/insert_chart>`จากมุมมองรายการหรือแผนภูมิของ Odoo ลงในสเปรดชีต Odoo หรือแทรกตารางสรุปข้อมูลที่อ้างอิงข้อมูล Odoo :ref:`จากมุมมองตารางสรุปข้อมูลของ Odoo <spreadsheet/insert_pivot_table/from_view> หรือ:ref:โดยตรงจากสเปรดชีต <spreadsheet/insert_pivot_table/from_spreadsheet> สเปรดชีตจะเชื่อมต่อกับข้อมูลต้นทางโดยอัตโนมัติด้วย 'แหล่งข้อมูล' ที่ไม่ซ้ำกัน

การเชื่อมต่อนี้ช่วยให้มั่นใจได้ว่าข้อมูลในสเปรดชีตจะได้รับการอัปเดตเมื่อข้อมูลที่เกี่ยวข้องในฐานข้อมูลของคุณเปลี่ยนแปลง และช่วยให้คุณสามารถ:ref:`เข้าถึงข้อมูลต้นทาง <spreadsheet/insert/accessing-data>`ได้

Note

  • ข้อมูลในรายการ ตารางสรุปข้อมูล หรือแผนภูมิที่เชื่อมโยงกับโมเดล Odoo จะรีเฟรชทุกครั้งที่เปิดสเปรดชีตหรือโหลดหน้าเบราว์เซอร์ใหม่ นอกจากนี้ยังสามารถรีเฟรชข้อมูลด้วยตนเองได้โดยคลิก ข้อมูล ‣ รีเฟรชข้อมูลทั้งหมด จากแถบเมนู

  • การแทรกตารางสรุปข้อมูล:ref:`จากช่วงข้อมูล <spreadsheet/pivot-tables/create>`ยังสร้างแหล่งข้อมูลที่เชื่อมต่อตารางสรุปข้อมูลกับช่วงสเปรดชีตต้นทาง

แหล่งข้อมูลแต่ละแหล่งระบุด้วย ID ที่ไม่ซ้ำกัน โดยแต่ละประเภทแหล่งข้อมูล (คือ รายการ ตารางสรุปข้อมูล หรือแผนภูมิ) จะมีหมายเลขแยกกัน และรายการ ตารางสรุปข้อมูล หรือแผนภูมิใหม่แต่ละรายการจะมีหมายเลขตามลำดับ เช่น รายการ #1, รายการ #2, ตารางสรุปข้อมูล #1 เป็นต้น

The properties of a data source can be accessed via the Data menu, where they are grouped by source type, and then listed in ascending order by source ID. The name of the data source is displayed, e.g., (#1) Sales Analysis by Product.

การคลิกที่แหล่งข้อมูลจะเปิดคุณสมบัติที่เกี่ยวข้องในแผงทางด้านขวาของสเปรดชีต

Note

Deleting an inserted list or pivot table, or deleting the sheet into which it was inserted, does not delete the underlying data source; this can be done via the data source's properties. Unused data sources from inserted lists or pivot tables can also be deleted via the Data cleanup feature. Deleting an inserted chart deletes its underlying data source.

Tip

  • แผงคุณสมบัติยังสามารถเปิดได้โดยการคลิกขวาที่เซลล์ใดๆ ของรายการหรือตารางสรุปที่แทรกไว้ จากนั้นคลิก See list properties หรือ See pivot properties หรือโดยการคลิกไอคอน (menu) ที่มุมบนขวาของแผนภูมิที่แทรกไว้ จากนั้นคลิก Edit

  • เมื่อคุณสมบัติของแหล่งข้อมูลเฉพาะเปิดอยู่ คุณสมบัติเหล่านั้นจะยังคงเปิดอยู่แม้ในขณะที่เปลี่ยนระหว่างแท็บสเปรดชีต หากต้องการปิดแผงคุณสมบัติ ให้คลิกไอคอน (close) ที่มุมบนขวาของแผง

  • หากต้องการยุบแผงคุณสมบัติ ให้คลิกไอคอน (เชฟรอนคู่) ที่ด้านบนของแผง

  • To pin the properties panel and allow another panel, such as the global filters panel, to open beside it, click View ‣ Pin the side panel from the menu bar. To unpin a panel, click the (pin) icon at the top right of the panel.

Identify and delete unused data sources

To identify and delete unused data sources, i.e., data sources that are still connected to the spreadsheet but where the data has been deleted, follow these steps:

  1. Click Data ‣ Data cleanup ‣ Remove unused data sources from the menu bar. The Unused data sources panel opens to the right of the spreadsheet. Unused pivot tables and unused lists are displayed in their respective sections.

  2. Optionally, unselect any data sources that should not be deleted, then click Delete selected items.

Access underlying data

ข้อมูลพื้นฐานของรายการ ตารางสรุป หรือแผนภูมิที่แทรกไว้สามารถเข้าถึงได้ตลอดเวลา เพื่อดู:

  • ระเบียนแต่ละรายการของ รายการที่แทรก ให้คลิกขวาที่เซลล์ใดๆ ของแถวที่เกี่ยวข้อง จากนั้นเลือก See record

  • รายการระเบียนที่อ้างอิงโดยเซลล์แต่ละเซลล์ของ ตารางสรุปที่แทรก ให้คลิกขวาที่เซลล์ จากนั้นเลือก See records

  • รายการระเบียนที่แสดงโดยจุดข้อมูลของ แผนภูมิที่แทรก ให้คลิกที่จุดข้อมูล

Tip

ใช้ปุ่มกลางของเมาส์หรือ Ctrl + คลิกซ้าย (Microsoft/Linux) หรือ Command + คลิกซ้าย (Mac OS) เพื่อเปิดผลลัพธ์ในแท็บเบราว์เซอร์ใหม่

หากต้องการกลับไปที่สเปรดชีตหลังจากดูข้อมูลพื้นฐาน ให้คลิกชื่อของสเปรดชีตในเส้นทางนำทางที่ด้านบนของหน้า