Neues Register im Serviceabruf -> Grafikprobleme
Julia Eichler
Hallo zusammen,ich möchte ein neues Register im Serviceabruf einfügen und habe dies auch getan.
Leider verursacht das neu hinzugefügte Register Grafikprobleme.
Woran kann das liegen und wie kann ich das beheben?
Viele Grüße
Julia
Attachment
[url=http://www.coresystems.ch/wp-content/../wp-content/forum-image-uploads/-julia-/Serviceabruf.PNG]Serviceabruf.PNG[/url]
Anders Olsson
Hi Julia,Can you please post the code?
Kind regards,
Anders Olsson
Julia Eichler
try{
// Parameter
string folderID = "COR_000030";
string folderName = "Belege";
string refItemID = "158";
int paneLevel = 130;
Folder f1 = Folder.CreateNew(folderID);
pVal.Form.AddItem(f1);
pVal.Form.Update();
// Reference register
Folder refFolder = Folder.GetFromUID(pVal.Form, refItemID);
// Settings
f1.Top = refFolder.Top;
f1.Width = refFolder.Width;
f1.Left = refFolder.Left + f1.Width;
f1.Height = refFolder.Height;
f1.AffectsFormMode = false;
f1.Value = folderName;
f1.GroupWith(refFolder.UniqueID);
// Click handler
customize.UI.EventHandling.ItemEvents.ClickEventHandler delFolder = null;
delFolder = delegate (customize.UI.EventHandling.ItemEvents.Click ev)
{
ev.Form.PaneLevel = paneLevel;
};
((Folder) pVal.Form.Items[folderID]).AddHandler_Click(customize.UI.Components.ModeComponent.FormModes.ALL, null, delFolder);
}
catch(System.Exception exe)
{
MessageBox.Show("Error happend while adding a new tab. Please check your code or deactivate the coresuite customize optimizer rule: " + exe.Message, "OK");
}
return true;
The attached file is an actual screen shot of the service call.
Attachment
[url=http://www.coresystems.ch/wp-content/../wp-content/forum-image-uploads/-julia-/Service.png]Service.png[/url]
Anders Olsson
Hello Julia,I think what causes the problem is that you set the Top property of the folder. This creates the strange effect when the form is resized.
So comment out
f1.Top = refFolder.Top;
You don't need this anyway as you are grouping with an existing folder.
Regards,
Anders
0
Please sign in to leave a comment.
Comments
0 comments