Dialogue can not be used in this context อันนี้จะหมายถึงว่าจะต้องมีรายการที่จะต้องส่งค่าผ่านมาใน dialogue นี่ครับ จริง ๆ เราสามารถส่งค่าผ่านมาได้สองวิธีครับ
1. ผ่านทางตัวแปร environtment ที่อยู่ใน notes.ini
2. ผ่านทาง document ลอย ๆ วิธีนี้ผมไม่ได้อธิบายทีแรกเพราะว่าทำแล้วคุณ fibkids อาจจะงง ๆ เลยขอข้ามไปให้รู้จักการส่งผ่านค่าแบบธรรมดา ไปก่อนครับ
ปัญหาคือถ้าปกติ dialogue จะมีการส่งค่าไปมาระหว่าง document ที่เลือกกับที่เรากำลังเปิดอยู่ ปกติแล้วมันจะสามารถ update ค่ากลับไปกลับมาโดย parameter ใน dialoguebox ครับ ซึ่งโปรแกรมจะทำให้เองอัตโนมัติครับ เพราะฉะนั้นลองศึกษาจาก parameter ดูครับว่าแต่ละอันทำอะไรบ้าง พอดีว่าเราไม่ได้มีเอกสารที่อยู่ในวิวมาให้เลือก เข้าใจว่าจะเป็นตัวนี้ครับตามด้านล่าง ที่จะต้องมีค่าเป็น false [noNewFields] , [noFieldUpdate]
flag = notesUIWorkspace.DialogBox( form$ , [autoHorzFit] , [autoVertFit] , [noCancel] , [noNewFields] , [noFieldUpdate] , [readOnly] , [title$] , [notesDocument] , [sizeToTable] , [noOkCancel] , [okCancelAtBottom] )
Parameters
form$
String. The name of the form.
autoHorzFit
Boolean. Optional. Specify True to scale the dialog box horizontally to fit the first layout region or table on the form. Otherwise, the dialog box is not scaled horizontally.
autoVertFit
Boolean. Optional. Specify True to scale the dialog box vertically to fit the first layout layout region or table on the form. Otherwise, the dialog box is not scaled vertically.
noCancel
Boolean. Optional. Specify True to not display the Cancel button. Otherwise, the dialog box contains the Cancel button.
noNewFields
Boolean. Optional. Specify True to not add fields that are on the dialog box form but not on the underlying form to the underlying document. Otherwise, all dialog box fields are passed to the underlying document.
noFieldUpdate
Boolean. Optional. Specify True if to not pass any edits from the dialog box to the underlying document (for example, if you're passing the edits somewhere else in a Queryclose script for the dialog box form). Otherwise, the edits are passed to the underlying form.
readOnly
Boolean. Optional. Specify True to prohibit writing to the dialog box (for example, if you are using the dialog box to display a help screen). Otherwise, the dialog box is read-write. This option makes noCancel true.
title$
String. Optional. A title for the dialog box. Defaults to "Lotus Notes."
notesDocument
NotesDocument. Optional. A document to be opened instead of the current document.
:yellow_cool.gif:
sizeToTable |