记得前几天有人要在视图中显示richtext的内容,找到一种方法了

chenzb 2005-03-31 10:30:24
First thing to do is to create a Computed field, of type Text, and call it something like "Abstract". The formula for this will be somthing like :

@If(@IsAvailable(name_of_the_rt_field); @Abstract( [Abbrev]; 200; ""; "name_of_the_rt_field");"" ) *

This example will take the first two hundred characters of the named rich text field and abbreviate its content. This can then be displayed in views as a kind of intro to the document. Cool hey !?
-------------
转贴来的
http://www.codestore.net/store.nsf/unid/DFOU-4PRG73?OpenDocument
...全文
109 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
chenzb 2005-04-01
  • 打赏
  • 举报
回复
First thing to do is to create a Computed field, of type Text, and call it something like "Abstract".
-----------
就是让你先在文档里转换
zengxianfeng 2005-04-01
  • 打赏
  • 举报
回复
不错,换个思路想问题
denggou 2005-04-01
  • 打赏
  • 举报
回复
mark
xjunhua 2005-03-31
  • 打赏
  • 举报
回复
@Abstract( [Abbrev]; 200; ""; "name_of_the_rt_field");"" ) 在试图里面不支持@Abstract,只能在文档里面先转换再显示

535

社区成员

发帖
与我相关
我的任务
社区描述
企业开发 Exchange Server
社区管理员
  • 消息协作社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧