基於米哈伊爾和查克的建議,我認爲這個特定項目的最佳方法是在全局字段中創建.csv的內容,然後導出字段內容。我在做什麼的基本輪廓:
Go to the first record
Loop
WriteTheRows (see below), comma delimited, to a global field
Set $thisGroup to the count of records summarized by this summary field
Exit Loop If Get (CurrentRecord) + $thisGroup >= Get (FoundCount)
Go to record [Get (CurrentRecord) + $thisGroup]
End Loop
Export Field Contents [global field]
WriteTheRows是一個自定義函數,執行以下操作: 我想寫的輸出可以由7個不同的標準,同時進行排序時間(例如:我可以概括季度銷售供應商或我總結了供應商季度銷售額)
Compare the highest level sort field's value to the last value we found for the highest level sort field.
If they're different WriteALine to the global field for this sort field, the next sort field, all sort fields down to the lowest level.
If they're the same, compare the (highest level sort field - 1) to the stored value for the (highest level sort field - 1)
If they're the same, WriteALine to the global field for the (highest level sort field - 1) on down to the lowest level sort field
... repeat until we're down to the lowest sort field
WriteALine是另一個自定義功能,增加了相應的標籤,逗號和使用GetSummary值(revenueSumma ry;評估(「summaryField」& summaryFieldNumber),正如Chuck在他的回答中所暗示的那樣。
我對FileMaker的XML/XSLT導出不是很熟悉,但我的關注點是限制最終用戶可以訪問的數據。比如說,我們希望與供應商分享我們銷售的產品的單位數量,但不是我們在他們的產品上獲得多少收入。如果我有一個通用的XML導出,那麼這兩個數據點都將在XML文件中。似乎可以通過XSLT隱藏它們,但一個聰明的供應商可以查看XML值。是否有辦法進一步過濾輸出,以便數據不僅僅隱藏,而且實際上不存在? – pft221 2011-04-22 13:10:19
對不起,遲到的答案。這不是問題:在導出到XML時,FileMaker不會保留原始XML,而只是轉換的結果。沒有任何地方可以從中恢復信息。 – 2011-04-28 08:51:46