How to create new tab that has style as Description tab for Stock Items?

末鹿安然 提交于 2019-12-11 08:17:00

问题


I want to create new tab (Software Solution) and add new field (Solution) that is the same as Description tab to allow users put some description.

This is what I have done.


回答1:


You need to use the PXRichTextEdit control to achieve that. The customization design will not allow you to pick this control type, so you will likely need to manually edit the ASPX file directly to add a PXRichTextEdit. From the layout editor, select Actions->Edit Aspx, and manually modify the ASPX to add your new control. You can then click the Generate Customization Script button to update the customization project.

This is how the Description tab looks like in the ASPX:

            <px:PXTabItem Text="Description" LoadOnDemand="true" >
                <Template>
                    <px:PXRichTextEdit ID="edBody" runat="server" DataField="Body" Style="border-width: 0px; border-top-width: 1px; width: 100%;"
                        AllowAttached="true" AllowSearch="true" AllowLoadTemplate="false" AllowSourceMode="true">
                        <AutoSize Enabled="True" MinHeight="216" />
                        <LoadTemplate TypeName="PX.SM.SMNotificationMaint" DataMember="Notifications" ViewName="NotificationTemplate" ValueField="notificationID" TextField="Name" DataSourceID="ds" Size="M"/>
                    </px:PXRichTextEdit>
                </Template>
            </px:PXTabItem>


来源:https://stackoverflow.com/questions/38628357/how-to-create-new-tab-that-has-style-as-description-tab-for-stock-items

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!