Drilldowns im Select-Grid
Julian H.
Hallo zusammen,ich habe eine Frage zu den Ergebnissen einer Abfrage die im Select-Grid angezeigt werden. Ich würde gerne den GP-Code oder die DocNum mit Drilldowns oder Hyperlinks versehen, damit daraus gleich weitergearbeitet werden kann (Ähnlich wie in einer Business One Abfrage). Hat einer von euch vielleicht einen Lösungsvorschlag oder zumindest eine Idee?
Vielen Dank im Voraus
LG Julian
Jacqueline Wutke
Hallo Julian,
ich stehe aktuell vor der gleichen Fragestellung. Hast du eine Möglichkeit gefunden?
Oder weiß jemand ob es überhaupt machbar ist?
VG
Jacqueline
Anders Olsson
Hello Julian,
Set the LinkedObjectType property on the column like so:
((SwissAddonFramework.UI.Components.TextEditGridColumn)gridCol.SpecificGridColumn).LinkObjectType = "2";
You will find all object types here:
http://forum.coresystems.ch/index.php?/topic/801-linkedobjecttypes/
HTH,
Anders Olsson
-
Probably it is a little bit late, but I was searching a long time for a way to do it. I found it now and want to share it. Depending on Data it could be a little bit inperformant because the Event that I use is FormActivate and it will be triggered every time when the Form is activated. I did not found a better solution. I tried FormLoadComplete but then the Grid is not available.

The Script is
// Verbindung mit SAP SAPbouiCOM.Application oB1App = (SAPbouiCOM.Application) SwissAddonFramework.B1Connector.GetB1Connector().Application; SAPbouiCOM.Form oForm = (SAPbouiCOM.Form) oB1App.Forms.Item(pVal.Form.UniqueID); // Deklarieren des Grids SAPbouiCOM.Grid oGrid = (SAPbouiCOM.Grid) oForm.Items.Item("grdSelect").Specific; // DrillDown hinzufügen // Anfrage zur Bestandsumlagerung SAPbouiCOM.EditTextColumn oEditTextDocEntry = (SAPbouiCOM.EditTextColumn) oGrid.Columns.Item("DocEntry"); oEditTextDocEntry.LinkedObjectType = "1250000001"; // GP SAPbouiCOM.EditTextColumn oEditTextCardCode = (SAPbouiCOM.EditTextColumn) oGrid.Columns.Item("KdNr"); oEditTextCardCode.LinkedObjectType = "2"; // Gehe in das Menü und drücke den Button für Spaltenbreite anpassen MenuItem.GetFromUID("1300").Activate();When someone finds a better Event or solution let it me know
regards Lothar
0
Please sign in to leave a comment.
Comments
1 comment