Creating Of Tab
roll on
Hi Experts,I am creating form for B1 in C#,
Can you please let me know how to create 2-3 tab's in a form.
What are is the fnction and keyword.
It would be really helpfull if you can sugesst me with an example.
Thanks in advance.
:)
Marco Schweighauser
Hello,please uf the following sample together with the framework:
// NEW REGISTER
SwissAddonFramework.UI.Components.Folder f1 = SwissAddonFramework.UI.Components.Folder.CreateNew("COR_F1");
// PARAMETER Of THE NEW REGISTER
f1.Top=10;f1.Width=100;f1.Left=700;f1.Height=14;f1.Pane=76;f1.AffectsFormMode=false;f1.Value="My Register";f1.Description = "My Register";
// Add the register to a form
pVal.Form.AddItem(f1);
// Update the form to tell the system that there is a new register
pVal.Form.Load();
// Group the register together with the other register (only do this if there are others. 9 Is the Unique Id of the last register
f1.GroupWith("9");
// Register an event handler to set the pane level if someone clicked on the reigster
f1.AddHandler_Click(SwissAddonFramework.UI.Components.ModeComponent.FormModes.ALL, MyRegisterPressed);
MyRegisterPressed(SwissAddonFramework.UI.EventHandling.ItemEvents.Click ev)
{
ev.Form.PaneLevel = 76;
}
For information about the SDK of B1 please check: https://www.sdn.sap.com/irj/sdn/businessone
Kind regards,
Marco
0
Please sign in to leave a comment.
Comments
0 comments