Forum: สอบถามปัญหา Notes ทางด้านพัฒนาโปรแกรม (Web Browser) |
Tags1: | Created on Jan 22, 2008, 6:20 PM by 9notes/9Notes|Topic Responses: 2 |
&action=openDocument&documentId=11A2 |
ทำตามนี้เลยครับ
Create a $$ViewTemplateDefault Form.
Create a Table (1:1) on this form.
Hide the Table border
Put in the table cell (should be one cell) the following.
[div id="msg"][/div]
Create here a $$ViewBody field
[div id="view"][/div]
the div statements should be passthrough ofcourse.
Then include this JavaScript in form in the JS Header:
var msg ='ไม่พบเอกสารในวิวนี้'
function CheckNoDocuments()
{ // function to replace the 'No documents found' message
if (document.getElementById("view").innerHTML.indexOf("No documents found") > 0)
{
document.getElementById("view").innerHTML = ""
document.getElementById("msg").innerHTML = msg
} // end if
} // end function
เพิ่มคำสั่งนี้ใน onload event:
CheckNoDocuments()
[quote]ต้องการแสดง View บน web ขณะที่ไม่มี document โดย กำหนดคำแทนคำว่า "No documents
found" เป็นคำอื่นเองได้ครับ ไมทราบว่าทำไงได้บ้างครับ [/quote] |
|