我的APEX 5.0页面上有一些文本字段页面项目,我想将文本框设置为只读/不可编辑。在页面加载期间,我想使用这些文本框仅用于页面上的数据显示,并且应该是不可编辑的。 有人可以建议如何做到这一点?需要为此设置哪些属性?
答案 0 :(得分:0)
找到
只读组
并将只读条件类型设置为始终
或适合您的选项
答案 1 :(得分:0)
答案 2 :(得分:0)
这个答案对党来说有点晚了,但是我发现自己遇到了这个问题,我想分享我想出的解决方案。
实际上,您只需要将您的项目创建为文本区域,假设 'Imports Word = Microsoft.Office.Interop.Word
Dim missing As Object = System.Reflection.Missing.Value
Dim sourceWordApp As Word.Application = New Word.Application()
sourceWordApp.Visible = False
'Open source Document
Dim sourceWordDoc As Word.Document = sourceWordApp.Documents.Open(sourceWordFile, missing, False,
missing, missing, missing,
missing, missing, missing,
missing, missing, missing,
missing, missing, missing, missing)
'Open destination Document
Dim destWordApp As Word.Application = New Word.Application()
destWordApp.Visible = False
Dim destWordDoc As Word.Document = destWordApp.Documents.Open(destWordFile, missing, False,
missing, missing, missing,
missing, missing, missing,
missing, missing, missing,
missing, missing, missing, missing)
destWordDoc.Activate()
'Get all text from source Document
Dim wordRange As Word.Range = sourceWordDoc.Range(missing, missing)
'Find and Replace in destination Document
Dim wordRangeFind As Word.Range = destWordDoc.Content
wordRangeFind.Find.Execute(findText)
wordRangeFind = wordRange
'Save and close dest Document
destWordDoc.Save()
destWordDoc.Close(missing, missing, missing)
sourceWordDoc.Close(missing, missing, missing)
,并使用JavaScript为它赋予了P1_Text_Area
属性。在页面的“函数和全局变量声明”中写那些第2行:
readonly
希望这可以帮助需要帮助的人。