• 关于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!


  • 相关阅读:
    matplotlib数据可视化之柱形图
    xpath排坑记
    Leetcode 100. 相同的树
    Leetcode 173. 二叉搜索树迭代器
    Leetcode 199. 二叉树的右视图
    Leetcode 102. 二叉树的层次遍历
    Leetcode 96. 不同的二叉搜索树
    Leetcode 700. 二叉搜索树中的搜索
    Leetcode 2. Add Two Numbers
    Leetcode 235. Lowest Common Ancestor of a Binary Search Tree
  • 原文地址:https://www.cnblogs.com/backuper/p/1337062.html
Copyright © 2020-2023  润新知