首页 \ 问答 \ 在Oracle PLSQL上打印等效文件(Print equivalent on Oracle PLSQL)

在Oracle PLSQL上打印等效文件(Print equivalent on Oracle PLSQL)

在Oracle SQL Developer中执行以下块时

set serveroutput on format wraped;
begin
  DBMS_OUTPUT.put_line('the quick brown fox jumps over the lazy dog');
end;

您收到以下回复

anonymous block completed
the quick brown fox jumps over the lazy dog

我基本上尝试使用PRINT,因此我可以跟踪PLSQL代码的进度。

如何摆脱完成的超级烦人的anonymous block completed


When you execute the following block in Oracle SQL Developer

set serveroutput on format wraped;
begin
  DBMS_OUTPUT.put_line('the quick brown fox jumps over the lazy dog');
end;

You get the following response

anonymous block completed
the quick brown fox jumps over the lazy dog

I am basically trying to use PRINT so I can track progress in my PLSQL code.

How do I get rid of the uber-annoying anonymous block completed?


原文:https://stackoverflow.com/questions/3449359
更新时间:2022-03-16 16:03

最满意答案

您需要处理ASPxGridView.CellEditorInitilaize事件:

protected void MyGridOnCellEditorInitialize(object sender, ASPxGridViewEditorEventArgs e) {
    ASPxGridView gridView = (ASPxGridView).sender;
    e.Editor.ReadOnly = !gridView.IsNewRowEditing && "BrandCode".Equals(e.Column.FieldName);
}

You need to handle ASPxGridView.CellEditorInitilaize event:

protected void MyGridOnCellEditorInitialize(object sender, ASPxGridViewEditorEventArgs e) {
    ASPxGridView gridView = (ASPxGridView).sender;
    e.Editor.ReadOnly = !gridView.IsNewRowEditing && "BrandCode".Equals(e.Column.FieldName);
}

相关问答

更多
  • 您可以阻止使用CellBeginEdit事件进行编辑。 如果您不希望单元格被编辑,您可以取消编辑。 例如,如果您只希望第一列是可编辑的,您可以这样做: private void dataGridView1_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e) { if (e.ColumnIndex != 0) { e.Cancel = true; } } You could prevent ...
  • 您需要处理ASPxGridView.CellEditorInitilaize事件: protected void MyGridOnCellEditorInitialize(object sender, ASPxGridViewEditorEventArgs e) { ASPxGridView gridView = (ASPxGridView).sender; e.Editor.ReadOnly = !gridView.IsNewRowEditing && "BrandCode".Equals ...
  • 首先,我不确定你可以像这样设置单元格的alpha。 请记住,单元格是循环使用的,并不“属于”一个特定的索引路径。 也许你应该首先在编辑模式之外运行一些实验。 其次,在调用deleteRowsAtIndexPaths:之前更改commitEditingStyle方法中的单元格几乎肯定不会做任何事情。 只有在确认编辑模式下对表视图的更改时才会调用此方法,而不仅仅是在选择单元格时。 另请注意,设置视图的alpha不会对此更改进行动画处理。 您可以尝试在调用deleteRowsAtIndexPaths之前添加动画。 ...
  • 我们可以通过事件(编辑前)来实现。 请参考以下链接以供参考 Extjs 3 http://techneerajnandwana.blogspot.in/2011/10/javascript-extjs3-editorgridpanel-read.html EXtjs 3.2:如何将特定单元格设置为不可编辑或只读? Extjs 4 ExtJS 4 RowEditing根据记录禁用对一列的编辑 we can able to achieve through event(before edit) . please ...
  • 你不能。 当Excel处于编辑模式时,代码引擎将不会运行。 您必须让用户在单元格以外的其他内容中输入文本 - 例如工作表上的控件或用户窗体上的控件。 You can't. The code engine won't run while Excel is in Edit mode. You have to have the user enter the text in something other than a cell - like a control on the worksheet or a cont ...
  • 编辑解决方案: 您应该知道当光标在单元格中时(在编辑模式下),并且您按下一个按钮,它不是发送KeyDown事件的TreeList ,而是RepositoryItemButtonEdit 。 因此,您还应该为RepositoryItemButtonEdit处理该事件。 为了不重复代码,我写了一个处理程序' onKeyDown ',我确认谁是发件人。 treeList1.KeyDown += onKeyDown; riButtonEdit.KeyDown += onKeyDown; 这里有一个代码treeLi ...
  • 在列stateCode的 colModel中调用textReadyOnly函数,使列readOnly=true 。 根据条件,它使textarea readOnly = true/false 。 码: $(document).ready(function(){ //jqGrid $("#statesList").jqGrid({ url:'<%=request.getContextPath()%>/Admin/getAllStatesList', dataty ...
  • Bruce.Zhou在MSDN论坛上有一个答案。 我在这里发布了一个片段。 这里也是原帖的链接。 private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e) { ...................................................; if (toUpdate) { foreach(DataRow row in dt.Rows) ...
  • 你走在正确的轨道上,但有一些事情你需要解决。 首先,看起来您已将编辑事件处理程序分配错误。 取消注释并将其更改为: .Events(e => e.Edit("onEdit")) 移动事件处理程序,使其位于网格窗口小部件声明之前 ,也位于文档ready事件之外。 把它改成这个: