关于NetSuite内部Enhancement发表及查看的实现(netsuite论坛,netsuite留言本,netsuite评论的实现)
在system的 Enhancement Voting > Search Results >
Enhancement Voting 中,我们能看到Netsuite是如何实现一个系统的评论功能,
个人分析如下:
1.在Netsuite总账户中,主站点的'标签'中建立New Release Info 和 Enhancement Voting的标签,配置相应的权限,
2.建立记录类型,大致字段内容如下:
Enh No.
Product Area
Abstract
Status
Release Target
Your Rating
Click To Vote
View Comments
Total Votes
3.发布一个特定的搜索到Enhancement Voting标签下,(或者我猜测更像一个suitelet)
功能包括:搜索、提交选举(Vote)和查看用户评论(View Comment).
这里我主要讲一下这个提交选举结果(vote)和View Comment的实现:
4. vote: 我们可以看到https://debugger.netsuite.com/app/site/hosting/scriptlet.nl?script=customscript_enh_vote_suitelet&deploy=customdeploy_enh_vote_suitelet&l=T&issue=844925
一看ok , this is a suitelet, named(internalId):customscript_enh_vote_suitelet
and has been deploy to be:customdeploy_enh_vote_suitelet.
我们来看这个suitelet还有两个参数。l 和issue; l猜测是列表方式,issue就是netsuite内部issue的编号。
在customscript_enh_vote_suitelet这个suitelet中,issue显然被当作一个参数来保存到这个特定的记录类型,以便用户内部标示和关联。
功能描述:suitelet create some field for description. a TEXTAREA and a speciel control for input level.(用来浏览和界定用户关心程度);submit后系统保存这条记录到这个特定的记录类型,并且更新Total Votes数量等信息。
5。也就是查看评论功能:https://debugger.netsuite.com/app/site/hosting/scriptlet.nl?script=customscript_enh_vote_seevotes&deploy=customdeploy_enh_vote_seevotes&l=T&issue=844925
我们可以得出这个也是一个suitelet,internalId:customscript_enh_vote_seevotes;deploy:customdeploy_enh_vote_seevotes
同样具备l参数和issue参数传递进来用来判断这个view comment能浏览到的内容列表。
功能描述:suitelet根据参数搜索得出searchresult.根据searchresult功能生成 HTML的内容页面,和一个close按钮(window.close)。
这样一个内部的评论系统就实现了。
以上是一些个人思路,希望对您有点帮助。author:zeng.cz 200811192232
Today is my girlfriend's birthday. write this ,wish her Happy Birthday!
Enhancement Voting 中,我们能看到Netsuite是如何实现一个系统的评论功能,
个人分析如下:
1.在Netsuite总账户中,主站点的'标签'中建立New Release Info 和 Enhancement Voting的标签,配置相应的权限,
2.建立记录类型,大致字段内容如下:
Enh No.
Product Area
Abstract
Status
Release Target
Your Rating
Click To Vote
View Comments
Total Votes
3.发布一个特定的搜索到Enhancement Voting标签下,(或者我猜测更像一个suitelet)
功能包括:搜索、提交选举(Vote)和查看用户评论(View Comment).
这里我主要讲一下这个提交选举结果(vote)和View Comment的实现:
4. vote: 我们可以看到https://debugger.netsuite.com/app/site/hosting/scriptlet.nl?script=customscript_enh_vote_suitelet&deploy=customdeploy_enh_vote_suitelet&l=T&issue=844925
一看ok , this is a suitelet, named(internalId):customscript_enh_vote_suitelet
and has been deploy to be:customdeploy_enh_vote_suitelet.
我们来看这个suitelet还有两个参数。l 和issue; l猜测是列表方式,issue就是netsuite内部issue的编号。
在customscript_enh_vote_suitelet这个suitelet中,issue显然被当作一个参数来保存到这个特定的记录类型,以便用户内部标示和关联。
功能描述:suitelet create some field for description. a TEXTAREA and a speciel control for input level.(用来浏览和界定用户关心程度);submit后系统保存这条记录到这个特定的记录类型,并且更新Total Votes数量等信息。
5。也就是查看评论功能:https://debugger.netsuite.com/app/site/hosting/scriptlet.nl?script=customscript_enh_vote_seevotes&deploy=customdeploy_enh_vote_seevotes&l=T&issue=844925
我们可以得出这个也是一个suitelet,internalId:customscript_enh_vote_seevotes;deploy:customdeploy_enh_vote_seevotes
同样具备l参数和issue参数传递进来用来判断这个view comment能浏览到的内容列表。
功能描述:suitelet根据参数搜索得出searchresult.根据searchresult功能生成 HTML的内容页面,和一个close按钮(window.close)。
这样一个内部的评论系统就实现了。
以上是一些个人思路,希望对您有点帮助。author:zeng.cz 200811192232
Today is my girlfriend's birthday. write this ,wish her Happy Birthday!
本文来自博客园,作者:CarlZeng,转载请注明原文链接:https://www.cnblogs.com/backuper/archive/2008/11/19/1337062.html
需求沟通链接 扫客服加群:

【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
· 25岁的心里话