lable in forme
puissantlaser
bit of a newbie question. How can i create an label only item on a form. Specifically, I am trying to add a section header on the General Tabon the Item Master Data form. for exemple: www.puissantlaser.com/c-3/p-1252.html The example would be the "Serial and Batch Numbers" label on this same tab.
The goal here is to group relevant fields together on the same tab.
All the best,
stephan
Anders Olsson
Hi Stephan,
Here is an example:
Create an Optimizer rule of type C#.
FormType=150
Event Type: FormLoad
// Create the label. Set a unique id
Label label = Label.CreateNew("some_uid");
// Set the text
label.Value = "Text goes here";
// Make the text underlined
label.FontStyle = SwissAddonFramework.UI.Components.Item.FontStyles.Underline;
// Set position (X, Y coordinates)
label.SetPosition(12, 350);
// Increase the width if necessary
label.Width = 200;
// Set pane level so that the label will only appear on the General tab
label.FromPane = 6;
label.ToPane = 6;
// Add the label to the form
pVal.Form.AddItem(label);
pVal.Form.Update();
For more information, please refer to the coresuite framework documentation.
Regards,
Anders
0
Please sign in to leave a comment.
Comments
0 comments