`
无为1055
  • 浏览: 2268 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

Add a Simple Action (eXpress 求助)

 
阅读更多

学习eXpress,现在遇到这样两个问题。

问题一: 如何在“确定”按钮中,获取勾选了记录信息。

如下图所示,我勾选了这两条记录,点击“确定”后,我要在“确定”按钮中,分别获取这两条记录的每个字段的信息,请问这个过程怎么实现?

(按照它自带的“删除”功能?我想知道勾选后,点击删除时,删除按钮的操作过程)

详细描述:a.如何确定勾选了那些记录?b.如何获取每个记录的各个字段信息?

 

问题二:点击一条记录后进入如下界面,现在也要添加“确定”,点击“确定”按钮,获取当前记录的每个字段的信息,并弹出一个新窗口,显示当前记录每个字段的信息。

现在遇到的困难是:a.不知道如何获取当前记录?b.如何弹出窗口?(response.write在此处不能弹出窗口来)

 

最后一个问题,在xaf中是否支持用户自己来添加这样的功能(“确定”)

 

补充:我用的是“eXpressApp Framework”==》“Demos”==“FeatureCenter”这个实例    然后按照它带的帮助文档  在这个基础上将它改成改成自己的项目,现在我要做的是   通过帮助文档Add an Action that Displays a Popup Window 这个例子  在ShowNotesAction_Execute方法里面   把对应的当前记录的各个字段信息取出来

请问 是“ DetailViewItem item = ((DetailView)View).FindItem("Description");   ((PropertyEditor)item).ReadValue();”  这段代码吗?

 

Code
<!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->private void ShowNotesAction_Execute(object sender, PopupWindowShowActionExecuteEventArgs e) {
   DemoTask task 
= (DemoTask)View.CurrentObject;
   ObjectSpace.SetModified(task);
   
foreach(Note note in e.PopupWindow.View.SelectedObjects) {
      
if(!string.IsNullOrEmpty(task.Description)) {
         task.Description 
+= Environment.NewLine;
      }
      task.Description 
+= note.Text;
   }
   DetailViewItem item 
= ((DetailView)View).FindItem("Description");
   ((PropertyEditor)item).ReadValue();
   
//Save changes to the database if the current Detail View is displayed in the View mode
   if(View is DetailView && ((DetailView)View).ViewEditMode == ViewEditMode.View) {
      View.ObjectSpace.CommitChanges();
   }
}

 

 

分享到:
评论

相关推荐

    Add-in_Express_v8.1.1432_for_Tokyo_10.2.2.rar

    作为微软Office一体化产业的工具和解决方案的先驱,Add-in Express 10年来一直致力于为成千上万的从Microsoft Office套包中将应用代码集成和嵌入到应用程序中的开发者提供创新的工具和卓越的支持服务。我们在三个...

    Add-in Express Version 8.1 Release (build 1432) - 10.2 Tokyo

    基于Microsoft Office的开发,Add-in Express提供了一组用于创建Microsoft Office插件的组件。与所有Microsoft Office程序交互的所有必需技术包:Microsoft Outlook,Excel,Word,Visio,Microsoft Project,...

    Add-in Express Version 8.1 Release (build 1432)

    **Add-in Express Version 8.1 Release (build 1432) 概述** Add-in Express 是一款专为开发人员设计的工具,用于构建基于 Delphi 的 Office 插件。这个版本(8.1 build 1432)提供了一个强大的框架,使开发者能够...

    Add-in_Express_v8.1.1432_for_Tokyo_10.2.2_Downloadly.ir.rar

    【标题】:“Add-in_Express_v8.1.1432_for_Tokyo_10.2.2_Downloadly.ir.rar”是一款基于Delphi开发的插件库,适用于Tokyo 10.2.2版本。这个压缩包包含了用于创建和扩展Delphi应用程序的Add-in Express框架的详细...

    Add-in Express.7.7.源代码.rar

    标题 "Add-in Express.7.7.源代码.rar" 暗示了这是一个关于Add-in Express 7.7版本的源代码包,主要用于开发Office插件。Add-in Express是一款强大的工具,它允许开发者使用.NET Framework、VCL或MFC来构建高效、可...

    Add_in_Express_for_VCL_7.5.1217.0.rar

    【标题】:“Add_in_Express_for_VCL_7.5.1217.0.rar”是一个关于Delphi开发环境的扩展工具包,版本号为7.5.1217.0。这个压缩包中包含了Add_in_Express_for_VCL的组件库,用于增强Delphi开发者的功能和效率。 ...

    In this step we add a simple COM object to our server using

    In this step we add a simple COM object to our server using the New ATL Object Wizard.(25KB)

    Add-In Express 7.5.1217

    Add-in Express for Office and Delphi VCL is the first visual tool for writing a COM add-in, smart tag and RTD server in Delphi. It completely supports these technologies and makes them very ...

    Add_in_ExpressforVCL_v901.rar

    《Add_in_Express for VCL_v901:Delphi中的插件开发框架解析》 在软件开发领域,Delphi是一种流行的面向对象的编程环境,以其高效、强大的编译器和直观的集成开发环境(IDE)著称。而Add_in_Express for VCL_v901...

    A SIMPLE MESH GENERATOR IN MATLAB

    We want to offer a short and simple MATLAB code, described in more detail than usual, so the reader can experiment (and add to the code) knowing the underlying principles. We find the node locations ...

    simple_express_framework

    安装: npm install -g simple_express_framework 然后在你的代码中:就像三行代码一样简单,一个 RESTFUL Web 服务器是好的。 var myExpress = require('simple_express_framework'); myExpress.addResources('...

    K Base is a simple knowledge base that allows users to add a

    K Base is a simple knowledge base that allows users to add and query database entries. Each user can be given their own username and password. There is also an admin status that lets them delete ...

    Add-in Express Version 8.1 Release (build 1432) - 10.1 Berlin.rar

    "Add-in Express Version 8.1 Release (build 1432) - 10.1 Berlin.rar" 是一个针对 Delphi 开发者的扩展库,主要用于构建插件和应用程序。这个压缩包包含了多个组件和资源,帮助开发者在 Delphi 环境下更高效地开发...

    SimpleAdd.exe

    SimpleAdd.exe

    Simple_add_windows_matlab_script_addition_simpleadd_

    标题 "Simple_add_windows_matlab_script_addition_simpleadd_" 指示的是一个基于Windows平台的MATLAB脚本,主要用于执行简单的加法运算。这个脚本可能是一个基础教学或实验示例,帮助用户理解MATLAB编程的基本语法...

    Android代码-A simple library to add carousel view in android app.

    A simple yet flexible library to add carousel view in your android application. Download Gradle: compile 'com.synnapps:carouselview:0.1.5' Maven: com.synnapps carouselview 0.1.5 pom Usage ...

    simple-express-server:测试heroku

    【压缩包子文件的文件名称列表】"simple-express-server-master"暗示了这是一个Express服务器的源代码仓库,可能包含以下文件和目录: 1. `index.js`或`app.js`:主入口文件,通常包含了Express服务器的设置和路由...

    add.action

    struts2技术的一个action事例,用于增加用户。

    iexpress使用教程

    ### iExpress 使用教程 #### 一、iExpress 简介 iExpress 是一款由微软提供的免费工具,用于创建自解压安装包。通过 iExpress,用户可以将多个文件打包成一个自解压的 CAB 文件,这个 CAB 文件可以在 Windows 系统...

    Express中间件express-jsonrpc2.zip

    Express.js 的 JSON-RPC version 2 实现express-jsonrpc2 是node.js上的express库的完整JSON-RPC version 2服务端实现,是express的中间件。安装npm install express-jsonrpc2使用var path = require('path'), ...

Global site tag (gtag.js) - Google Analytics