首页 \ 问答 \ Sencha touch,选择主对象项目时显示详细信息(Sencha touch, Show details when selecting master objects' item)

Sencha touch,选择主对象项目时显示详细信息(Sencha touch, Show details when selecting master objects' item)

嗨,我是Sencha touch的新手。 即时通讯使用我想在移动应用程序,作者列表和行情列表中显示的Sencha架构师IDE。 我想在另一个列表中显示所选作者的引号列表。 要显示作者列表没有问题。 但是在选择时显示引用面板/列表对我来说是个问题。 我试图创建新的视图/细节面板,然后在控制器中添加了一个动作,但没有。
请参考我的任何教程..

数据存储是JSON


Hi I am new to Sencha touch. i m using the Sencha architect IDE I want to show in mobile app, List of Authors and Quotes. I want to show quotes list of selected author in another list. To show the Authors list its no problem. But show quotes panel/list when selecting is problem for me. I have tried to create new view/detail panel, then added an action in controller but nothing.
Please refer me any tutorial for sencha..

Data stores are JSON


原文:https://stackoverflow.com/questions/20120966
更新时间:2021-09-30 20:09

最满意答案

基本上,您可以使用DBMail,如果这是您在SQL Server中发送电子邮件的首选方法。 这是另一个线程 ,它向您展示了一个示例,并讨论了通过该方法发送查询结果的限制。

因此,将此添加到您的预定作业中,您应该得到所需的结果。

如果您想使用CSV或类似文件,以下是如何直接从MSDN控制电子邮件中的查询输出和放置:

[ @ attach_query_result_as_file = ] attach_query_result_as_file指定查询的结果集是否作为附加文件返回。 attach_query_result_as_file的类型为bit,默认值为0。

当值为0时,查询结果将包含在@body参数的内容之后的电子邮件正文中。 值为1时,结果将作为附件返回。 仅当指定了@query时,此参数才适用。

[ @query_attachment_filename =] query_attachment_filename指定用于查询附件的结果集的文件名。 query_attachment_filename的类型为nvarchar(255),默认值为NULL。 当attach_query_result为0时,将忽略此参数。当attach_query_result为1且此参数为NULL时,Database Mail会创建任意文件名。

[ @query_result_header =] query_result_header指定查询结果是否包含列标题。 query_result_header值的类型为bit。 值为1时,查询结果包含列标题。 当值为0时,查询结果不包括列标题。 此参数默认为1.此参数仅在指定了@query时适用。

[ @query_result_width =] query_result_width是用于格式化查询结果的行宽(以字符为单位)。 query_result_width的类型为int,默认值为256.提供的值必须介于10和32767之间。此参数仅在指定了@query时适用。

[ @query_result_separator =]'query_result_separator'是用于分隔查询输出中的列的字符。 分隔符的类型为char(1)。 默认为''(空格)。

如果要使用XML,则只需确保查询返回XML。 否则,您必须编写一个过程来将表格式查询格式化为XML。

这是使用SSIS 的另一条路线 ,但它更复杂,但可以让您更好地控制输出和格式。


Basically, you can use DBMail, if that's your preferred method of sending e-mail from within SQL server. Here's another thread that shows you an example and talking about limitation of sending query results via that method.

So, add this to your scheduled job and you should get desired results.

Here's how to control the query output and placement in the e-mail straight from MSDN if you want to use CSV or similar:

[ @attach_query_result_as_file= ] attach_query_result_as_file Specifies whether the result set of the query is returned as an attached file. attach_query_result_as_file is of type bit, with a default of 0.

When the value is 0, the query results are included in the body of the e-mail message, after the contents of the @body parameter. When the value is 1, the results are returned as an attachment. This parameter is only applicable if @query is specified.

[ @query_attachment_filename= ] query_attachment_filename Specifies the file name to use for the result set of the query attachment. query_attachment_filename is of type nvarchar(255), with a default of NULL. This parameter is ignored when attach_query_result is 0. When attach_query_result is 1 and this parameter is NULL, Database Mail creates an arbitrary filename.

[ @query_result_header= ] query_result_header Specifies whether the query results include column headers. The query_result_header value is of type bit. When the value is 1, query results contain column headers. When the value is 0, query results do not include column headers. This parameter defaults to 1. This parameter is only applicable if @query is specified.

[ @query_result_width = ] query_result_width Is the line width, in characters, to use for formatting the results of the query. The query_result_width is of type int, with a default of 256. The value provided must be between 10 and 32767. This parameter is only applicable if @query is specified.

[ @query_result_separator= ] 'query_result_separator' Is the character used to separate columns in the query output. The separator is of type char(1). Defaults to ' ' (space).

If you want to use XML, you just have to make sure your query returns XML. Otherwise, you'd have to write a procedure to format tabular query as XML.

Here's another route using SSIS, but it's more involved, but gives you more control over the output and formatting.

相关问答

更多
  • 据推测,您希望“7”匹配为数字,但可能不是包含数字“7”的其他数字(例如,75)。 你用它做的任何事情都会非常难看,所以如果可能的话,你只需更换桌子就会好得多。 我想如果你别无选择,你可以这样做: select whatever from your_table where your_column like '7,%' or your_column like '%,7,% or your_column like '%,7' 当'7'是组中的第一个数字时,第一个覆盖。 当第 ...
  • 你可以使用DDL触发器来构建它: http://msdn.microsoft.com/en-us/library/ms190989.aspx You can build this using DDL triggers: http://msdn.microsoft.com/en-us/library/ms190989.aspx
  • 如果你只想每个名字一个日期,那么你必须指定哪个日期: 例如: SELECT Name, Max(aDate) FROM table_name GROUP BY Name 由于此语句使用GROUP BY Name因此每个Name仅返回一行。 由于它使用aDate的集合(在我的例子中是MAX()函数),它会返回你想要的相应日期。 一般来说,您应该尽量避免使用DISTINCT关键字。 很少有正确的方法。 如果你只是想要你的表中使用不同名称的列表,你可以使用 SELECT DISTINCT Name F ...
  • 在where子句之后,您可以将总和检查移至having子句: select location, d.id from closing_balance..cb_deposits as d left outer join closing_balance..cb_checkbatchhf as b on d.id = b.deposit_id and d.location = b.loc left outer join closing_balance..cb_checkdf as c on b.id ...
  • 基本上,您可以使用DBMail,如果这是您在SQL Server中发送电子邮件的首选方法。 这是另一个线程 ,它向您展示了一个示例,并讨论了通过该方法发送查询结果的限制。 因此,将此添加到您的预定作业中,您应该得到所需的结果。 如果您想使用CSV或类似文件,以下是如何直接从MSDN控制电子邮件中的查询输出和放置: [ @ attach_query_result_as_file = ] attach_query_result_as_file指定查询的结果集是否作为附加文件返回。 attach_query_re ...
  • 让电影里有bradpitt和rusellcrowe(russellcrowe?)为那部电影而存在...然后给你演员 SELECT actors FROM dbo.MyTable M1 WHERE EXISTS (SELECT * FROM dbo.MyTable M2 WHERE M2.actors = 'bradpitt' AND M1.filmname. = M2.filmname) AND EX ...
  • 有趣的问题。 对于您正在创建的临时表的类型,我认为这是执行存储过程的时间。 使用#前缀创建的表可供其创建的SQL Server会话访问。会话结束后,它们将被删除。 此URL: http : //www.sql-server-performance.com/tips/query_execution_plan_analysis_p1.aspx似乎表明在创建查询执行计划时未创建临时表。 Interesting question. For the type of temporary table you're cre ...
  • 你需要逃避那些单引号: exec msdb..sp_send_dbmail @profile_name='sql_mail_lu', @recipients=@email, @subject='Your backorders', @body= 'Please find in attachment the list of your items in backorder.', ...
  • 如果你放弃了x BETWEEN a AND b模式而赞成可以大致表示为的模式 x BEGINS WITH a ENDS BEFORE b (当然,这不是有效的SQL语法,但是x >= a AND x < b将是一个不错的替代品),你最终会得到a和b具有相同的粒度(具体来说,几个月,因为这两个点中的每一个将是一个月的开始)。 在这种情况下,这是非常合适的,因为它可以让你很好地计算a和b计算。 但在我到达那里之前,让我告诉(或提醒)你在SQL Server中的这个日期/时间截断技术 : DATEADD(u ...
  • 图表就像这样( 公司是主/父表,所有其他表依赖于它): 公司专长< - 公司< - 关系< - 公司 - >公司专业 将它转换为SQL将是这样的: SELECT --whatever fields you want, as long as you prefix with the table alias (p., ps., dr., c., cs.) FROM Company Parent P --parent Left Join CompanySpecialty PS ON ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。