如何添加备忘录/格式化的文本字段 [英] How to add a memo / formatted text field ala Cases

查看:104
本文介绍了如何添加备忘录/格式化的文本字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在屏幕上添加一个选项卡,其中包含与案例屏幕相同的备注/格式化文本区域,例如:

I'd like to add a tab to a screen which contains a memo / formatted text area the way the Cases screen does, e.g.:

添加标签很简单,在那里没有必要的帮助,但是我不记得看到任何有关如何添加此类文本的信息培训课程中的区域。如果有一个示例,我希望您指出正确的方向。

Adding a tab is straightforward, no help necessary there, but I don't remember seeing anything about how to add this type of text area in the training courses. If there's an example I'd appreciate a point in the right direction.

推荐答案

您可以手动添加RichTextEditor 到您的aspx文件。

You can add the RichTextEditor manually to your aspx file.

 <px:PXTabItem Text="Test">
    <Template>
      <px:PXRichTextEdit runat="server" AllowLoadTemplate="false" 
         AllowAttached="true" AllowSearch="true" AllowMacros="true" 
         AllowSourceMode="true" DataField="YOURFIELD" ID="edDescription" 
         Style='width:100%;'>
        <AutoSize Enabled="True" />
      </px:PXRichTextEdit>
    </Template>
</px:PXTabItem>

确保您的Tab具有正确的 Datamember ,您的字段在

Make sure you Tab has the correct Datamember where your field used on the RichTextEditor is located.

 <px:PXTab DataMember="Document" ID="tab" runat="server" Height="540px" Style="z-index: 100;" Width="100%">

也可以将RichTextEditor上使用的字段标记为 PXDBText 。 / p>

Also you could mark your Field used on the RichTextEditor as PXDBText.

    #region YourField
    public abstract class yourField : IBqlField { }

    protected String _yourField;
    [PXDBText(IsUnicode = true)]
    [PXUIField(DisplayName = "YOURFIELD")]
    public virtual String YourField
    {
        get
        {
            return this._yourField;
        }
        set
        {
            this._yourField = value;
        }
    }
    #endregion

这篇关于如何添加备忘录/格式化的文本字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆