New folder not visible on client
Emanuele Croci
Dear support,via Customize I added a new folder in the SAP B1 Item Master Data.
I installed the procedure in the Customize Optmizer, working directly on the server using the manager user.
On the server it works correctly.
If I open SAP B1 from a client pc, logging as manager in the same company, the new folder is not visualized.
Customize starts correctly (I can see Customize menu item in the SAP Administration Addon menu).
The procedure is enabled.
Can someone help me, please?
Best regards
Emanuele
Paolo Manfrin
Hi Emanuele,please could you post the debugLog after procedure described above?
thanks
paolo
Emanuele Croci
Dear Paolo,tomorrow I will be in the office of the customer to test the procedure.
In my code, to add the new folder I use the following command:
FOLDER1.GroupWith("9");
What number do I have to use in the GroupWith function?
Here, my complete souce code:
try
{
SwissAddonFramework.UI.Components.Folder FOLDER1 = SwissAddonFramework.UI.Components.Folder.CreateNew("CostFold");
FOLDER1.Top = 10;FOLDER1.Width = 300;FOLDER1.Left = 200;FOLDER1.Height = 14;
FOLDER1.Pane = 78;
FOLDER1.AffectsFormMode = false;
FOLDER1.Value = "Costi";
FOLDER1.Description = "Costi";
//Aggiunta etichetta
SwissAddonFramework.UI.Components.Label myLabel = SwissAddonFramework.UI.Components.Label.CreateNew("lblCode");
myLabel.SetSizeAndPosition(Label.GetFromUID(pVal.Form, "56"));
myLabel.Left = myLabel.Left + 10;
myLabel.FromPane = 78;
myLabel.ToPane = 78;
myLabel.Value = "Chiave in tabella";
pVal.Form.AddItem(myLabel);
//Aggiunta caselle di testo
SwissAddonFramework.UI.Components.TextEdit myText = SwissAddonFramework.UI.Components.TextEdit.CreateNew("txtCode");
myText.SetSizeAndPosition(TextEdit.GetFromUID(pVal.Form, "55"));
myText.Left = myText.Left - 50;
myText.FromPane = 78;
myText.ToPane = 78;
myText.Enabled = false;
pVal.Form.AddItem(myText);
//Grid dei costi
SwissAddonFramework.UI.Components.Grid myGrid = SwissAddonFramework.UI.Components.Grid.CreateNew("CostGrid");
myGrid.SetSizeAndPosition(Matrix.GetFromUID(pVal.Form, "28"));
myGrid.Top = myGrid.Top - 30;
myGrid.FromPane = 78;
myGrid.ToPane = 78;
myGrid.Height = 160;
myGrid.SelectionMode = SwissAddonFramework.UI.Components.Grid.SelectionModes.None;
pVal.Form.AddItem(FOLDER1);
pVal.Form.AddItem(myGrid);
//pVal.Form.AddItem(UpdateButton);
//Aggiornamento finale della Form
pVal.Form.Update();
FOLDER1.GroupWith("9");
SwissAddonFramework.UI.EventHandling.ItemEvents.ClickEventHandler delFolder = null;
delFolder = delegate (SwissAddonFramework.UI.EventHandling.ItemEvents.Click ev)
{
ev.Form.PaneLevel = 78;
};
((SwissAddonFramework.UI.Components.Folder) pVal.Form.Items["CostFold"]).AddHandler_Click(SwissAddonFramework.UI.Components.ModeComponent.FormModes.ALL, delFolder);
return true;
}
catch(System.Exception e)
{
//MessageBox.Show("Unexpected Error: " + e.Message, "ERROR");
return false;
}
return false;
Paolo Manfrin
In the GroupWith you should write the UID of the previous folder[FOL1] [FOL2] [FOL3]
if you are creating FOL3 you have to do a GroupWith("FOL2").
hth
paolo
------
In future please open a new thread for different topics otherwise it might be missleading for the other users.
Thank You!
paolo
0
Please sign in to leave a comment.
Comments
0 comments