Double-Click on text field: Open Coresuite Editor
Andreas Schlingmann
Hi,
as mentioned in the topic title: Anyone has a little code-snipped for me? The customer has to enter lots of texts in the item (udf), and wants to start the "coresuiet editor" via double-click (not right klick and choose).
Thanks in advance
Andreas
Philipp Knecht
Hi Andreas
Yes thats possible using coresuite customize. don't try it with b1up ;)
/* open coresuite editor with doubleclick */
try
{
SAPbouiCOM.Form oSAPForm = SwissAddonFramework.B1Connector.GetB1Connector().Application.Forms.ActiveForm;
object edit = (SAPbouiCOM.EditText) TextEdit.GetFromUID(pVal.Form, "14").GetSapObject<SAPbouiCOM.Item>().Specific;
SWA_CoresuiteEditor.EditorForm ef = new SWA_CoresuiteEditor.EditorForm(250, edit, oSAPForm, true, "",TextEdit.GetFromUID(pVal.Form, "14").Value);
ef.LoadToSap();
}
catch (Exception ex)
{
MessageBox.Show("Error in " + pVal.RuleInfo.RuleName + " " + ex.ToString(), "Ok");
}
return true;
Or just use the attached Rule which is configured to open up the Editor on Sales Orders when doubleclicking on the Ref Field.
hth
Andreas Schlingmann
Hi Philipp,
great, that's what I was looking for. Thank you very much! Btw: What is b1up??? B)
Greets
Andreas
roberto.grezet@mtfbs.com
the rule work fine , but how keep the content of the field?
if i have something in to a textbox and i try to use that rule , double click open the coresuite editor , but it's empty .but i want se what i put in to those textbox.
can you helpme
thx
regards
Please sign in to leave a comment.
Comments
0 comments