原创

NetSuite 禁止用户在数据录入时增加列表值,例如客户区域列表,在新建客户时只能选择,不能新增

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://crazygolf.blog.csdn.net/article/details/88962557

NetSuite 禁止用户在数据录入时增加列表值,例如客户区域列表,在新建客户时只能选择,不能新增

在项目实施过程中,一般会遇到新增字段,然后字段类型为列表的情形。这种情况一般又要求用户填写时只能选择,不能手动输入。但是在NetSuite中,另一个问题是用户在选择列表值界面,是可以新增可选值的。这虽然增加了系统的灵活性,但是一般管理员还是要求只能让用户选择,新增的权限保留的管理员处,避免最后列表可用的值乱七八糟。
在google中搜索了一下,也没有找到对应的解决方案。在SuiteAnswers中,倒是找到了相应的解决方案。参照SuiteAnswers Id: 68899
需要在对应的自定义角色中,权限-设置-自定义列表的权限层次设置为查看。
自定义列表权限层次
默认情况下,自定义列表是允许在界面上直接新增。管理员可以通过下面的步骤限制用户创建新的可选值:

  1. 导航到设置-用户/角色-管理角色,点击编辑需要设置权限的角色。
  2. 在权限-设置子列表下。
  3. 添加自定义列表-层次为查看。
  4. 点击保存。

需要注意点:

  • 所有管理员将可以增加新的可选值。
  • 创建这个自定义字段的用户可以增加可选值,无论他使用什么角色。
  • 这个解决方案只适用于自定义角色。

自定义列表权限的设置
我们一起查看一下效果:
受限制的可选值列表

展开阅读全文

想输入客户名称,模糊查询出客户列表

11-24

想输入客户名称,模糊查询出客户列表,但我点击 查找客户详细信息 按钮,没反应,不知道哪里出问题,请高手看看。谢谢!rnrnadd_new_complaint.aspxrnrn<%@ Page Language="C#" AutoEventWireup="true" CodeFile="add_new_complaint.aspx.cs" Inherits="zy0769_admin_add_new_complaint" %>rn<%@ Register TagPrefix="WebSession" TagName="CheckSession" Src="UserControls/session.ascx" %>rnrnrnrnrnrnrn 无标题页rn rn rn rnrnrn rn rn rn rn 正在查询客户资料列表,请耐心等候 .....rn rn rnrn rn rn rn rn rn rn rn 新建投诉单rn rn rn rn rn 客户名称:rn rn rn rn rn rn rn rn rn rn rnrnrnrnrnadd_new_complaint.aspx.csrnrnusing System;rnusing System.Data;rnusing System.Configuration;rnusing System.Collections;rnusing System.Web;rnusing System.Web.Security;rnusing System.Web.UI;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.WebControls.WebParts;rnusing System.Web.UI.HtmlControls;rnrnusing AfterSales.BusinessLogicLayer;rnusing AfterSales.DataAccessHelper;rnusing AfterSales.CommonComponent;rnrnpublic partial class zy0769_admin_add_new_complaint : System.Web.UI.Pagernrn protected void Page_Load(object sender, EventArgs e)rn rnrn Button2.Attributes.Add("onclick", "return showCustomer('customer',BtypeId.Text.ToString(),'shp')");rn //Button2.Attributes.Add("onclientclick", "return showCustomer('customer',theValue,'shp')");rn //Button2.Attributes.Add("onclientclick", "showCustomer(customer," + BtypeId.Text.ToString() + ",shp)");rn rnrnrnrnrnrnshow_customer.aspxrnrn<%@ Page Language="C#" AutoEventWireup="true" CodeFile="show_customer.aspx.cs" Inherits="zy0769_admin_show_customer" %>rnrnrnrnrnrn 无标题页rnrnrn rn rn rnrn rnrnrnrnrnshow_customer.aspx.csrnrnusing System;rnusing System.Data;rnusing System.Configuration;rnusing System.Collections;rnusing System.Web;rnusing System.Web.Security;rnusing System.Web.UI;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.WebControls.WebParts;rnusing System.Web.UI.HtmlControls;rnrnusing AfterSales.BusinessLogicLayer;rnusing AfterSales.DataAccessHelper;rnusing AfterSales.CommonComponent;rnrnpublic partial class zy0769_admin_show_customer : System.Web.UI.Pagernrn public string find_customer;rn rnrn protected void Page_Load(object sender, EventArgs e)rn rn Query();rn rnrn /// rn /// 根据页面上用户输入的查询条件,查询用户资料rn /// rn private void Query()rn rn find_customer = Convert.ToString(Request.QueryString["find_customer"]);rn //find_customer = "83273353";rnrn Hashtable queryItems = new Hashtable();rn queryItems.Add("FullName", find_customer);rn DataView dv = Btype.QueryFullName(queryItems);rnrnrn BtypeId.DataValueField = dv.Table.Columns[0].Caption.ToString();rn BtypeId.DataTextField = dv.Table.Columns[1].Caption.ToString();rn BtypeId.DataSource = dv;rn BtypeId.DataBind();rnrn rnrn 论坛

flash聊天系统客户端的用户列表为什么无法显示?

01-10

如题……rn[code=JScript]rnvar xsTransferrer:XMLSocket = new XMLSocket();rnvar sCurrentScreen = "login";rninitSocketConnection(xsTransferrer);rnshowLoginScreen();rninitializeScreens();rnrnfunction showLoginScreen():Voidrn ctiMessage.visible = true;rn ctiUsername.visible = true;rn cbtLogin.visible = true;rn ctaChatDisplay.visible = false;rn ctaInput.visible = false;rn clUserList.visible = false;rn cbtSend.visible = false;rn cbtUsers.visible = false;rn sCurrentScreen = "login";rnrnfunction showChatScreen():Voidrn ctiMessage.visible = false;rn ctiUsername.visible = false;rn cbtLogin.visible = false;rn ctaChatDisplay.visible = true;rn ctaInput.visible = true;rn clUserList.visible = true;rn cbtSend.visible = true;rn cbtUsers.visible = true;rn sCurrentScreen = "chat";rnrnrnfunction showConnectedMessage(bDidConnect:Boolean):Voidrn if(bDidConnect)rn ctiMessage.text = "connected...please enter a username";rn rn elsern ctiMessage.text = "connect error!";rn rnrnrnfunction showDisconnectedMessage():Voidrn showLoginScreen();rn ctiMessage.text = "trying to reconnect...";rn ctiUsername.text = "";rn xsTransferrer.connect("localhost",2001);rnrnrnfunction initSocketConnection(xsSocket:XMLSocket):Voidrn xsSocket.onData = function(sData:String):Voidrn var xmlData:XML = new XML();rn xmlData.ignoreWhite = true;rn xmlData.parseXML(sData);rn var imData:IncomingMessage = new IncomingMessage(xmlData);rn rn switch(imData.messageType)rn case "signonsuccess":rn showChatScreen();rn break;rn case "userlistupdate":rn clUserList.dataProvider = imData.users;rn break;rn case "chat":rn ctaChatDisplay.text += imData.fromUser + ":" + imData.chatText + newline;rn ctaChatDisplay.vPosition = ctaChatDisplay.maxVPosition;rn default:rn rn ;rn rn xsSocket.onConnect = function(bDidConnect:Boolean):Voidrn showConnectedMessage(bDidConnect);rn ;rnrn xsSocket.onClose = function():Voidrn showDisconnectedMessage();rn ;rn rn xsSocket.connect("localhost", 2001);rnrnrnfunction initializeScreens():Voidrn ctaChatDisplay.html = true;rn cbtLogin.label = "Log In";rn cbtSend.label = "Send";rn rn var oLoginListener:Object = new Object();rn oLoginListener.form = this;rn oLoginListener.socket = xsTransferrer;rn oLoginListener.click = function(oEvent:Object):Voidrn if(this.form.ctiUsername.text != "")rn var omLogin:OutgoingMessage = new OutgoingMessage("login", this.form.ctiUsername.text);rn this.socket.send(omLogin.message);rn rn ;rn rn oLoginListener.onKeyDown = function():Voidrn if(Key.getCode() == Key.ENTER && this.form.sCurrentScreen == "login")rn this.click();rn rn ;rn cbtLogin.addEventListener("click", oLoginListener);rn Key.addListener(oLoginListener);rn rn var oChatListener:Object = new Object();rn oChatListener.form = this;rn oChatListener.socket = xsTransferrer;rn oChatListener.click = function(oEvent:Object):Voidrn if(this.form.ctaInput.text != "")rn var omhat:OutgoingMessage = new OutgoingMessage("chat", this.form.ctiUsername.text, this.form.ctaInput.text);rn this.socket.send(omhat.message);rn this.form.ctaInput.text = "";rn rn ;rn rn oChatListener.onKeyDown = function():Voidrn if(Key.getCode() == Key.ENTER &&rn this.form.sCurrentScreen == "chat")rn this.click();rn rn ;rn cbtSend.addEventListener("click", oChatListener);rn Key.addListener(oChatListener);rn/* rn cbtUsers.label = "Refresh";rn var oUserListener:Object = new Object();rn oUserListener.form = this;rn oUserListener.socket = xsTransferrer;rn oUserListener.click = function(oEvent:Object):Voidrn var imuser:IncomingMessage = new IncomingMessage();rn ;rn rn oUserListener.onKeyDown = function():Voidrn if(Key.getCode() == Key.ENTER &&rn this.form.sCurrentScreen == "chat")rn this.click();rn rn ;rn cbtUsers.addEventListener("click", oUserListener);rn Key.addListener(oUserListener);*/rn[/code] 论坛

没有更多推荐了,返回首页