cancel
Showing results for 
Search instead for 
Did you mean: 

Editing Active Forms in Visual Studio

ens_
Active Participant
0 Kudos
711

Dear Community,

In an attempt to run an addon after modifying Business Partner Master Data, i receive the following error.

I edited the form using B1 Studio and when i run it locally from Visual Studio it works fine. (Additional Tabs appear, Code is working as intended and Form behaves as it should be)

Is there a special thing i need to do to get it working?

Accepted Solutions (1)

Accepted Solutions (1)

ens_
Active Participant
0 Kudos

So, After resolving all the above issues, i noticed that when i edit actively the form in B1 Studio, everything is unlinked and you have to manually fix all panes and their respective content.

here you can see that all tabs have the same alias. Do i need to link each data source to their respective item? if yes, where can i find that information?

pedro_magueija
Active Contributor
0 Kudos

Hi Varnavas,

Just as a side note, for new questions go ahead and create a new thread. This way you can give a title that better describes the issue for other users to find it as well.

Now regarding the question, SYS_72 is a system datasource (from SAP) and it's used to make sure the tabs are grouped together.

I don't use B1 Studio to change system forms. Can you describe what you are trying to do?


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

ens_
Active Participant
0 Kudos

What I am trying to do, is create new tabs on that form and add extra action objects (buttons, combo boxes etc) on the Business Partner Master Data form.

pedro_magueija
Active Contributor
0 Kudos

Hi Varnavas,

I'd usually recommend designing the form, then export the form to xml and copy your changes into an update xml. Then use that to load your changes during the FORM_LOAD event.

Here is a template to update the form items:

<Application>

  <forms>

    <action type="update">

      <form uid="">

        <items>

          <action type="update">

            <item uid="">

            </item>

          </action>

        </items>

      </form>

    </action>

  </forms>

</Application>




Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

Answers (2)

Answers (2)

ens_
Active Participant
0 Kudos

It appears that it was due to SAP B1 Version Difference. Form edited from 9.1 PL10 does not work on 9.0 PL08. I understand not being compatible. But what about editing something in 9.1 PL 10 and then installing 9.1 PL11 It would be scary to go over every addon on every customer and rebuild them due to a version upgrade.

pedro_magueija
Active Contributor
0 Kudos

Hi Varnavas,

The error message means that the item with id: 99146147 was not found on the form at the time it was requested. If this is a control from the original form, it could be that you are requesting access to it in an event where it is still not available (FORM_LOAD). There are some new events that are triggered later to contemplate this situation (FORM_DRAWN):


A form was drawn (ItemEvent).

The before event would raise after the FormLoadAfter event and before the form was drawn.
And after the form was drawn, which means all form items location/size is determined (for system form), the after form draw event would be raised.

You may be able to use it depending on which version of B1 you're using (I believe from 9.0 onward).

It would be helpful if you post the code you are using including the event that is caught at the time of the error.


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

ens_
Active Participant
0 Kudos

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using SAPbouiCOM.Framework;

namespace BoatCMS_1._0_Addon

{

    [FormAttribute("134", "Business Partner Master Data.b1f")]

    class Business_Partner_Master_Data : SystemFormBase

    {

        public Business_Partner_Master_Data()

        {

        }

        /// <summary>

        /// Initialize components. Called by framework after form created.

        /// </summary>

        public override void OnInitializeComponent()

        {

            this.Matrix0 = ((SAPbouiCOM.Matrix)(this.GetItem("107").Specific));

            this.Matrix1 = ((SAPbouiCOM.Matrix)(this.GetItem("112").Specific));

            this.Button0 = ((SAPbouiCOM.Button)(this.GetItem("115").Specific));

            this.CheckBox0 = ((SAPbouiCOM.CheckBox)(this.GetItem("350001033").Specific));

            this.CheckBox1 = ((SAPbouiCOM.CheckBox)(this.GetItem("350001524").Specific));

            this.CheckBox2 = ((SAPbouiCOM.CheckBox)(this.GetItem("242000013").Specific));

            this.Button1 = ((SAPbouiCOM.Button)(this.GetItem("242000014").Specific));

            this.Matrix2 = ((SAPbouiCOM.Matrix)(this.GetItem("69").Specific));

            this.Button2 = ((SAPbouiCOM.Button)(this.GetItem("70").Specific));

            this.StaticText0 = ((SAPbouiCOM.StaticText)(this.GetItem("100").Specific));

            this.StaticText1 = ((SAPbouiCOM.StaticText)(this.GetItem("105").Specific));

            this.StaticText2 = ((SAPbouiCOM.StaticText)(this.GetItem("177").Specific));

            this.Matrix3 = ((SAPbouiCOM.Matrix)(this.GetItem("178").Specific));

            this.StaticText3 = ((SAPbouiCOM.StaticText)(this.GetItem("342").Specific));

            this.StaticText4 = ((SAPbouiCOM.StaticText)(this.GetItem("10001018").Specific));

            this.StaticText5 = ((SAPbouiCOM.StaticText)(this.GetItem("10001019").Specific));

            this.StaticText6 = ((SAPbouiCOM.StaticText)(this.GetItem("2038").Specific));

            this.Button3 = ((SAPbouiCOM.Button)(this.GetItem("2039").Specific));

            this.StaticText7 = ((SAPbouiCOM.StaticText)(this.GetItem("1210002069").Specific));

            this.Button4 = ((SAPbouiCOM.Button)(this.GetItem("480002075").Specific));

            this.StaticText8 = ((SAPbouiCOM.StaticText)(this.GetItem("72").Specific));

            this.ComboBox0 = ((SAPbouiCOM.ComboBox)(this.GetItem("75").Specific));

            this.LinkedButton0 = ((SAPbouiCOM.LinkedButton)(this.GetItem("77").Specific));

            this.StaticText9 = ((SAPbouiCOM.StaticText)(this.GetItem("78").Specific));

            this.ComboBox1 = ((SAPbouiCOM.ComboBox)(this.GetItem("79").Specific));

            this.StaticText10 = ((SAPbouiCOM.StaticText)(this.GetItem("80").Specific));

            this.ComboBox2 = ((SAPbouiCOM.ComboBox)(this.GetItem("81").Specific));

            this.StaticText11 = ((SAPbouiCOM.StaticText)(this.GetItem("82").Specific));

            this.EditText0 = ((SAPbouiCOM.EditText)(this.GetItem("83").Specific));

            this.StaticText12 = ((SAPbouiCOM.StaticText)(this.GetItem("84").Specific));

            this.EditText1 = ((SAPbouiCOM.EditText)(this.GetItem("85").Specific));

            this.StaticText13 = ((SAPbouiCOM.StaticText)(this.GetItem("86").Specific));

            this.EditText2 = ((SAPbouiCOM.EditText)(this.GetItem("87").Specific));

            this.StaticText14 = ((SAPbouiCOM.StaticText)(this.GetItem("88").Specific));

            this.ComboBox3 = ((SAPbouiCOM.ComboBox)(this.GetItem("89").Specific));

            this.StaticText15 = ((SAPbouiCOM.StaticText)(this.GetItem("90").Specific));

            this.Button5 = ((SAPbouiCOM.Button)(this.GetItem("96").Specific));

            this.EditText3 = ((SAPbouiCOM.EditText)(this.GetItem("97").Specific));

            this.StaticText16 = ((SAPbouiCOM.StaticText)(this.GetItem("98").Specific));

            this.EditText4 = ((SAPbouiCOM.EditText)(this.GetItem("119").Specific));

            this.StaticText17 = ((SAPbouiCOM.StaticText)(this.GetItem("120").Specific));

            this.ComboBox4 = ((SAPbouiCOM.ComboBox)(this.GetItem("121").Specific));

            this.StaticText18 = ((SAPbouiCOM.StaticText)(this.GetItem("122").Specific));

            this.StaticText19 = ((SAPbouiCOM.StaticText)(this.GetItem("144").Specific));

            this.EditText5 = ((SAPbouiCOM.EditText)(this.GetItem("145").Specific));

            this.StaticText20 = ((SAPbouiCOM.StaticText)(this.GetItem("150").Specific));

            this.StaticText21 = ((SAPbouiCOM.StaticText)(this.GetItem("151").Specific));

            this.StaticText22 = ((SAPbouiCOM.StaticText)(this.GetItem("152").Specific));

            this.ComboBox5 = ((SAPbouiCOM.ComboBox)(this.GetItem("153").Specific));

            this.EditText6 = ((SAPbouiCOM.EditText)(this.GetItem("154").Specific));

            this.EditText7 = ((SAPbouiCOM.EditText)(this.GetItem("155").Specific));

            this.ComboBox6 = ((SAPbouiCOM.ComboBox)(this.GetItem("179").Specific));

            this.StaticText23 = ((SAPbouiCOM.StaticText)(this.GetItem("186").Specific));

            this.EditText8 = ((SAPbouiCOM.EditText)(this.GetItem("187").Specific));

            this.CheckBox3 = ((SAPbouiCOM.CheckBox)(this.GetItem("191").Specific));

            this.CheckBox4 = ((SAPbouiCOM.CheckBox)(this.GetItem("192").Specific));

            this.EditText9 = ((SAPbouiCOM.EditText)(this.GetItem("211").Specific));

            this.StaticText24 = ((SAPbouiCOM.StaticText)(this.GetItem("212").Specific));

            this.Button6 = ((SAPbouiCOM.Button)(this.GetItem("280").Specific));

            this.StaticText25 = ((SAPbouiCOM.StaticText)(this.GetItem("282").Specific));

            this.ComboBox7 = ((SAPbouiCOM.ComboBox)(this.GetItem("283").Specific));

            this.StaticText26 = ((SAPbouiCOM.StaticText)(this.GetItem("284").Specific));

            this.LinkedButton1 = ((SAPbouiCOM.LinkedButton)(this.GetItem("293").Specific));

            this.StaticText27 = ((SAPbouiCOM.StaticText)(this.GetItem("296").Specific));

            this.EditText10 = ((SAPbouiCOM.EditText)(this.GetItem("297").Specific));

            this.StaticText28 = ((SAPbouiCOM.StaticText)(this.GetItem("330").Specific));

            this.ComboBox8 = ((SAPbouiCOM.ComboBox)(this.GetItem("331").Specific));

            this.LinkedButton2 = ((SAPbouiCOM.LinkedButton)(this.GetItem("332").Specific));

            this.EditText11 = ((SAPbouiCOM.EditText)(this.GetItem("210000435").Specific));

            this.StaticText29 = ((SAPbouiCOM.StaticText)(this.GetItem("210000436").Specific));

            this.StaticText30 = ((SAPbouiCOM.StaticText)(this.GetItem("2034").Specific));

            this.ComboBox9 = ((SAPbouiCOM.ComboBox)(this.GetItem("2035").Specific));

            this.LinkedButton3 = ((SAPbouiCOM.LinkedButton)(this.GetItem("2036").Specific));

            this.EditText12 = ((SAPbouiCOM.EditText)(this.GetItem("540002066").Specific));

            this.StaticText31 = ((SAPbouiCOM.StaticText)(this.GetItem("540002065").Specific));

            this.StaticText32 = ((SAPbouiCOM.StaticText)(this.GetItem("2070").Specific));

            this.StaticText33 = ((SAPbouiCOM.StaticText)(this.GetItem("2072").Specific));

            this.StaticText34 = ((SAPbouiCOM.StaticText)(this.GetItem("433").Specific));

            this.EditText13 = ((SAPbouiCOM.EditText)(this.GetItem("434").Specific));

            this.EditText14 = ((SAPbouiCOM.EditText)(this.GetItem("436").Specific));

            this.EditText15 = ((SAPbouiCOM.EditText)(this.GetItem("437").Specific));

            this.LinkedButton4 = ((SAPbouiCOM.LinkedButton)(this.GetItem("438").Specific));

            this.StaticText35 = ((SAPbouiCOM.StaticText)(this.GetItem("2073").Specific));

            this.ComboBox10 = ((SAPbouiCOM.ComboBox)(this.GetItem("1250002074").Specific));

            this.StaticText36 = ((SAPbouiCOM.StaticText)(this.GetItem("1250002075").Specific));

            this.Button7 = ((SAPbouiCOM.Button)(this.GetItem("1250002076").Specific));

            this.StaticText37 = ((SAPbouiCOM.StaticText)(this.GetItem("540002076").Specific));

            this.EditText16 = ((SAPbouiCOM.EditText)(this.GetItem("540002077").Specific));

            this.ComboBox11 = ((SAPbouiCOM.ComboBox)(this.GetItem("1470002081").Specific));

            this.StaticText38 = ((SAPbouiCOM.StaticText)(this.GetItem("1470002082").Specific));

            this.CheckBox5 = ((SAPbouiCOM.CheckBox)(this.GetItem("1470002108").Specific));

            this.StaticText39 = ((SAPbouiCOM.StaticText)(this.GetItem("1320002088").Specific));

            this.LinkedButton5 = ((SAPbouiCOM.LinkedButton)(this.GetItem("1320002089").Specific));

            this.EditText17 = ((SAPbouiCOM.EditText)(this.GetItem("1320002090").Specific));

            this.EditText18 = ((SAPbouiCOM.EditText)(this.GetItem("1980002116").Specific));

            this.StaticText40 = ((SAPbouiCOM.StaticText)(this.GetItem("231000007").Specific));

            this.EditText19 = ((SAPbouiCOM.EditText)(this.GetItem("231000008").Specific));

            this.StaticText41 = ((SAPbouiCOM.StaticText)(this.GetItem("231000009").Specific));

            this.EditText20 = ((SAPbouiCOM.EditText)(this.GetItem("231000010").Specific));

            this.CheckBox6 = ((SAPbouiCOM.CheckBox)(this.GetItem("234000596").Specific));

            this.CheckBox7 = ((SAPbouiCOM.CheckBox)(this.GetItem("234000597").Specific));

            this.StaticText42 = ((SAPbouiCOM.StaticText)(this.GetItem("67").Specific));

            this.ComboBox12 = ((SAPbouiCOM.ComboBox)(this.GetItem("124").Specific));

            this.Button8 = ((SAPbouiCOM.Button)(this.GetItem("198").Specific));

            this.StaticText43 = ((SAPbouiCOM.StaticText)(this.GetItem("199").Specific));

            this.CheckBox8 = ((SAPbouiCOM.CheckBox)(this.GetItem("200").Specific));

            this.EditText21 = ((SAPbouiCOM.EditText)(this.GetItem("201").Specific));

            this.StaticText44 = ((SAPbouiCOM.StaticText)(this.GetItem("202").Specific));

            this.StaticText45 = ((SAPbouiCOM.StaticText)(this.GetItem("203").Specific));

            this.EditText22 = ((SAPbouiCOM.EditText)(this.GetItem("204").Specific));

            this.CheckBox9 = ((SAPbouiCOM.CheckBox)(this.GetItem("205").Specific));

            this.EditText23 = ((SAPbouiCOM.EditText)(this.GetItem("206").Specific));

            this.StaticText46 = ((SAPbouiCOM.StaticText)(this.GetItem("207").Specific));

            this.StaticText47 = ((SAPbouiCOM.StaticText)(this.GetItem("208").Specific));

            this.ComboBox13 = ((SAPbouiCOM.ComboBox)(this.GetItem("209").Specific));

            this.CheckBox10 = ((SAPbouiCOM.CheckBox)(this.GetItem("210").Specific));

            this.ComboBox14 = ((SAPbouiCOM.ComboBox)(this.GetItem("213").Specific));

            this.ComboBox15 = ((SAPbouiCOM.ComboBox)(this.GetItem("215").Specific));

            this.StaticText48 = ((SAPbouiCOM.StaticText)(this.GetItem("216").Specific));

            this.Matrix4 = ((SAPbouiCOM.Matrix)(this.GetItem("217").Specific));

            this.StaticText49 = ((SAPbouiCOM.StaticText)(this.GetItem("220").Specific));

            this.EditText24 = ((SAPbouiCOM.EditText)(this.GetItem("221").Specific));

            this.StaticText50 = ((SAPbouiCOM.StaticText)(this.GetItem("285").Specific));

            this.Button9 = ((SAPbouiCOM.Button)(this.GetItem("327").Specific));

            this.Button10 = ((SAPbouiCOM.Button)(this.GetItem("429").Specific));

            this.StaticText51 = ((SAPbouiCOM.StaticText)(this.GetItem("150000433").Specific));

            this.ComboBox16 = ((SAPbouiCOM.ComboBox)(this.GetItem("150000434").Specific));

            this.StaticText52 = ((SAPbouiCOM.StaticText)(this.GetItem("210000437").Specific));

            this.EditText25 = ((SAPbouiCOM.EditText)(this.GetItem("210000438").Specific));

            this.CheckBox11 = ((SAPbouiCOM.CheckBox)(this.GetItem("2021").Specific));

            this.StaticText53 = ((SAPbouiCOM.StaticText)(this.GetItem("540002067").Specific));

            this.ComboBox17 = ((SAPbouiCOM.ComboBox)(this.GetItem("540002068").Specific));

            this.StaticText54 = ((SAPbouiCOM.StaticText)(this.GetItem("540002069").Specific));

            this.EditText26 = ((SAPbouiCOM.EditText)(this.GetItem("540002070").Specific));

            this.LinkedButton6 = ((SAPbouiCOM.LinkedButton)(this.GetItem("428").Specific));

            this.LinkedButton7 = ((SAPbouiCOM.LinkedButton)(this.GetItem("2069").Specific));

            this.Matrix5 = ((SAPbouiCOM.Matrix)(this.GetItem("136").Specific));

            this.Button11 = ((SAPbouiCOM.Button)(this.GetItem("137").Specific));

            this.Button12 = ((SAPbouiCOM.Button)(this.GetItem("138").Specific));

            this.Button13 = ((SAPbouiCOM.Button)(this.GetItem("19").Specific));

            this.PictureBox0 = ((SAPbouiCOM.PictureBox)(this.GetItem("20").Specific));

            this.EditText27 = ((SAPbouiCOM.EditText)(this.GetItem("21").Specific));

            this.Button14 = ((SAPbouiCOM.Button)(this.GetItem("116").Specific));

            this.Folder0 = ((SAPbouiCOM.Folder)(this.GetItem("243").Specific));

            this.Folder1 = ((SAPbouiCOM.Folder)(this.GetItem("244").Specific));

            this.EditText28 = ((SAPbouiCOM.EditText)(this.GetItem("56").Specific));

            this.StaticText55 = ((SAPbouiCOM.StaticText)(this.GetItem("58").Specific));

            this.StaticText56 = ((SAPbouiCOM.StaticText)(this.GetItem("63").Specific));

            this.StaticText57 = ((SAPbouiCOM.StaticText)(this.GetItem("64").Specific));

            this.StaticText58 = ((SAPbouiCOM.StaticText)(this.GetItem("65").Specific));

            this.ComboBox18 = ((SAPbouiCOM.ComboBox)(this.GetItem("66").Specific));

            this.ComboBox19 = ((SAPbouiCOM.ComboBox)(this.GetItem("68").Specific));

            this.StaticText59 = ((SAPbouiCOM.StaticText)(this.GetItem("74").Specific));

            this.Button15 = ((SAPbouiCOM.Button)(this.GetItem("99").Specific));

            this.Button16 = ((SAPbouiCOM.Button)(this.GetItem("188").Specific));

            this.LinkedButton8 = ((SAPbouiCOM.LinkedButton)(this.GetItem("110").Specific));

            this.EditText29 = ((SAPbouiCOM.EditText)(this.GetItem("123").Specific));

            this.LinkedButton9 = ((SAPbouiCOM.LinkedButton)(this.GetItem("125").Specific));

            this.StaticText60 = ((SAPbouiCOM.StaticText)(this.GetItem("126").Specific));

            this.StaticText61 = ((SAPbouiCOM.StaticText)(this.GetItem("127").Specific));

            this.EditText30 = ((SAPbouiCOM.EditText)(this.GetItem("130").Specific));

            this.LinkedButton10 = ((SAPbouiCOM.LinkedButton)(this.GetItem("131").Specific));

            this.StaticText62 = ((SAPbouiCOM.StaticText)(this.GetItem("132").Specific));

            this.StaticText63 = ((SAPbouiCOM.StaticText)(this.GetItem("133").Specific));

            this.OptionBtn0 = ((SAPbouiCOM.OptionBtn)(this.GetItem("134").Specific));

            this.OptionBtn1 = ((SAPbouiCOM.OptionBtn)(this.GetItem("135").Specific));

            this.CheckBox12 = ((SAPbouiCOM.CheckBox)(this.GetItem("193").Specific));

            this.StaticText64 = ((SAPbouiCOM.StaticText)(this.GetItem("194").Specific));

            this.EditText31 = ((SAPbouiCOM.EditText)(this.GetItem("195").Specific));

            this.EditText32 = ((SAPbouiCOM.EditText)(this.GetItem("196").Specific));

            this.StaticText65 = ((SAPbouiCOM.StaticText)(this.GetItem("197").Specific));

            this.Button17 = ((SAPbouiCOM.Button)(this.GetItem("219").Specific));

            this.Button18 = ((SAPbouiCOM.Button)(this.GetItem("224").Specific));

            this.EditText33 = ((SAPbouiCOM.EditText)(this.GetItem("242").Specific));

            this.StaticText66 = ((SAPbouiCOM.StaticText)(this.GetItem("292").Specific));

            this.EditText34 = ((SAPbouiCOM.EditText)(this.GetItem("366").Specific));

            this.StaticText67 = ((SAPbouiCOM.StaticText)(this.GetItem("367").Specific));

            this.StaticText68 = ((SAPbouiCOM.StaticText)(this.GetItem("368").Specific));

            this.LinkedButton11 = ((SAPbouiCOM.LinkedButton)(this.GetItem("369").Specific));

            this.EditText35 = ((SAPbouiCOM.EditText)(this.GetItem("370").Specific));

            this.StaticText69 = ((SAPbouiCOM.StaticText)(this.GetItem("371").Specific));

            this.StaticText70 = ((SAPbouiCOM.StaticText)(this.GetItem("372").Specific));

            this.LinkedButton12 = ((SAPbouiCOM.LinkedButton)(this.GetItem("373").Specific));

            this.EditText36 = ((SAPbouiCOM.EditText)(this.GetItem("378").Specific));

            this.StaticText71 = ((SAPbouiCOM.StaticText)(this.GetItem("379").Specific));

            this.StaticText72 = ((SAPbouiCOM.StaticText)(this.GetItem("380").Specific));

            this.LinkedButton13 = ((SAPbouiCOM.LinkedButton)(this.GetItem("381").Specific));

            this.EditText37 = ((SAPbouiCOM.EditText)(this.GetItem("385").Specific));

            this.StaticText73 = ((SAPbouiCOM.StaticText)(this.GetItem("386").Specific));

            this.StaticText74 = ((SAPbouiCOM.StaticText)(this.GetItem("387").Specific));

            this.LinkedButton14 = ((SAPbouiCOM.LinkedButton)(this.GetItem("388").Specific));

            this.EditText38 = ((SAPbouiCOM.EditText)(this.GetItem("389").Specific));

            this.StaticText75 = ((SAPbouiCOM.StaticText)(this.GetItem("390").Specific));

            this.StaticText76 = ((SAPbouiCOM.StaticText)(this.GetItem("391").Specific));

            this.LinkedButton15 = ((SAPbouiCOM.LinkedButton)(this.GetItem("392").Specific));

            this.StaticText77 = ((SAPbouiCOM.StaticText)(this.GetItem("1002").Specific));

            this.LinkedButton16 = ((SAPbouiCOM.LinkedButton)(this.GetItem("1003").Specific));

            this.EditText39 = ((SAPbouiCOM.EditText)(this.GetItem("1004").Specific));

            this.Button19 = ((SAPbouiCOM.Button)(this.GetItem("1005").Specific));

            this.StaticText78 = ((SAPbouiCOM.StaticText)(this.GetItem("1006").Specific));

            this.EditText40 = ((SAPbouiCOM.EditText)(this.GetItem("2008").Specific));

            this.StaticText79 = ((SAPbouiCOM.StaticText)(this.GetItem("2009").Specific));

            this.StaticText80 = ((SAPbouiCOM.StaticText)(this.GetItem("2010").Specific));

            this.Button20 = ((SAPbouiCOM.Button)(this.GetItem("2011").Specific));

            this.LinkedButton17 = ((SAPbouiCOM.LinkedButton)(this.GetItem("2012").Specific));

            this.EditText41 = ((SAPbouiCOM.EditText)(this.GetItem("380002061").Specific));

            this.StaticText81 = ((SAPbouiCOM.StaticText)(this.GetItem("380002062").Specific));

            this.LinkedButton18 = ((SAPbouiCOM.LinkedButton)(this.GetItem("380002063").Specific));

            this.StaticText82 = ((SAPbouiCOM.StaticText)(this.GetItem("380002064").Specific));

            this.StaticText83 = ((SAPbouiCOM.StaticText)(this.GetItem("10002066").Specific));

            this.EditText42 = ((SAPbouiCOM.EditText)(this.GetItem("10002067").Specific));

            this.CheckBox13 = ((SAPbouiCOM.CheckBox)(this.GetItem("10002068").Specific));

            this.StaticText84 = ((SAPbouiCOM.StaticText)(this.GetItem("1470002084").Specific));

            this.StaticText85 = ((SAPbouiCOM.StaticText)(this.GetItem("1470002085").Specific));

            this.StaticText86 = ((SAPbouiCOM.StaticText)(this.GetItem("1470002086").Specific));

            this.StaticText87 = ((SAPbouiCOM.StaticText)(this.GetItem("1470002087").Specific));

            this.StaticText88 = ((SAPbouiCOM.StaticText)(this.GetItem("1470002088").Specific));

            this.StaticText89 = ((SAPbouiCOM.StaticText)(this.GetItem("1470002089").Specific));

            this.StaticText90 = ((SAPbouiCOM.StaticText)(this.GetItem("1470002090").Specific));

            this.EditText43 = ((SAPbouiCOM.EditText)(this.GetItem("1470002093").Specific));

            this.ComboBox20 = ((SAPbouiCOM.ComboBox)(this.GetItem("1470002100").Specific));

            this.ComboBox21 = ((SAPbouiCOM.ComboBox)(this.GetItem("1470002101").Specific));

            this.ComboBox22 = ((SAPbouiCOM.ComboBox)(this.GetItem("1470002102").Specific));

            this.ComboBox23 = ((SAPbouiCOM.ComboBox)(this.GetItem("1470002103").Specific));

            this.ComboBox24 = ((SAPbouiCOM.ComboBox)(this.GetItem("1470002104").Specific));

            this.ComboBox25 = ((SAPbouiCOM.ComboBox)(this.GetItem("1470002105").Specific));

            this.Folder6 = ((SAPbouiCOM.Folder)(this.GetItem("tabBoats").Specific));

            this.Folder6.ClickAfter += new SAPbouiCOM._IFolderEvents_ClickAfterEventHandler(this.Folder6_ClickAfter);

            this.CheckBox14 = ((SAPbouiCOM.CheckBox)(this.GetItem("chkBtOwn").Specific));

            this.CheckBox15 = ((SAPbouiCOM.CheckBox)(this.GetItem("chkPrOwn").Specific));

            this.CheckBox16 = ((SAPbouiCOM.CheckBox)(this.GetItem("chkRent").Specific));

            this.Grid1 = ((SAPbouiCOM.Grid)(this.GetItem("Item_5").Specific));

            this.Folder2 = ((SAPbouiCOM.Folder)(this.GetItem("tabBtMngt").Specific));

            this.Folder2.ClickAfter += new SAPbouiCOM._IFolderEvents_ClickAfterEventHandler(this.Folder2_ClickAfter);

            this.Grid2 = ((SAPbouiCOM.Grid)(this.GetItem("Item_7").Specific));

            this.Button21 = ((SAPbouiCOM.Button)(this.GetItem("Item_8").Specific));

            this.Folder3 = ((SAPbouiCOM.Folder)(this.GetItem("Item_9").Specific));

            this.Folder3.ClickAfter += new SAPbouiCOM._IFolderEvents_ClickAfterEventHandler(this.Folder3_ClickAfter);

            this.Grid3 = ((SAPbouiCOM.Grid)(this.GetItem("Item_10").Specific));

            this.Folder4 = ((SAPbouiCOM.Folder)(this.GetItem("Item_11").Specific));

            this.Folder4.ClickAfter += new SAPbouiCOM._IFolderEvents_ClickAfterEventHandler(this.Folder4_ClickAfter);

            this.Grid4 = ((SAPbouiCOM.Grid)(this.GetItem("Item_12").Specific));

            this.Folder5 = ((SAPbouiCOM.Folder)(this.GetItem("Item_13").Specific));

            this.Folder5.ClickAfter += new SAPbouiCOM._IFolderEvents_ClickAfterEventHandler(this.Folder5_ClickAfter);

         

            //SAPbouiCOM.Item oItem = Application.SBO_Application.Forms.ActiveForm.Items.Item("99146147");

            //oItem.AffectsFormMode = false;

          

            //oItem = Application.SBO_Application.Forms.ActiveForm.Items.Item("991461471");

            //oItem.AffectsFormMode = false;

            //oItem = Application.SBO_Application.Forms.ActiveForm.Items.Item("991461473");

            //oItem.AffectsFormMode = false;

            //oItem = Application.SBO_Application.Forms.ActiveForm.Items.Item("991461474");

            //oItem.AffectsFormMode = false;

            //oItem = Application.SBO_Application.Forms.ActiveForm.Items.Item("991461475");

            //oItem.AffectsFormMode = false;

            this.OnCustomInitialize();

        }

        /// <summary>

        /// Initialize form event. Called by framework before form creation.

        /// </summary>

        //public override void OnInitializeFormEvents()

        //{

        //    this.LoadAfter += new LoadAfterHandler(this.Form_LoadAfter);

        //}

        private SAPbouiCOM.Matrix Matrix0;

        private void OnCustomInitialize()

        {

            this.Folder6.GroupWith("3");

         

            this.Folder5.GroupWith("3");

        

            this.Folder4.GroupWith("3");

          

            this.Folder3.GroupWith("3");

        

            this.Folder2.GroupWith("3");

         

          

        }

        private SAPbouiCOM.Matrix Matrix1;

        private SAPbouiCOM.Button Button0;

        private SAPbouiCOM.CheckBox CheckBox0;

        private SAPbouiCOM.CheckBox CheckBox1;

        private SAPbouiCOM.CheckBox CheckBox2;

        private SAPbouiCOM.Button Button1;

        private SAPbouiCOM.Matrix Matrix2;

        private SAPbouiCOM.Button Button2;

        private SAPbouiCOM.StaticText StaticText0;

        private SAPbouiCOM.StaticText StaticText1;

        private SAPbouiCOM.StaticText StaticText2;

        private SAPbouiCOM.Matrix Matrix3;

        private SAPbouiCOM.StaticText StaticText3;

        private SAPbouiCOM.StaticText StaticText4;

        private SAPbouiCOM.StaticText StaticText5;

        private SAPbouiCOM.StaticText StaticText6;

        private SAPbouiCOM.Button Button3;

        private SAPbouiCOM.StaticText StaticText7;

        private SAPbouiCOM.Button Button4;

        private SAPbouiCOM.StaticText StaticText8;

        private SAPbouiCOM.ComboBox ComboBox0;

        private SAPbouiCOM.LinkedButton LinkedButton0;

        private SAPbouiCOM.StaticText StaticText9;

        private SAPbouiCOM.ComboBox ComboBox1;

        private SAPbouiCOM.StaticText StaticText10;

        private SAPbouiCOM.ComboBox ComboBox2;

        private SAPbouiCOM.StaticText StaticText11;

        private SAPbouiCOM.EditText EditText0;

        private SAPbouiCOM.StaticText StaticText12;

        private SAPbouiCOM.EditText EditText1;

        private SAPbouiCOM.StaticText StaticText13;

        private SAPbouiCOM.EditText EditText2;

        private SAPbouiCOM.StaticText StaticText14;

        private SAPbouiCOM.ComboBox ComboBox3;

        private SAPbouiCOM.StaticText StaticText15;

        private SAPbouiCOM.Button Button5;

        private SAPbouiCOM.EditText EditText3;

        private SAPbouiCOM.StaticText StaticText16;

        private SAPbouiCOM.EditText EditText4;

        private SAPbouiCOM.StaticText StaticText17;

        private SAPbouiCOM.ComboBox ComboBox4;

        private SAPbouiCOM.StaticText StaticText18;

        private SAPbouiCOM.StaticText StaticText19;

        private SAPbouiCOM.EditText EditText5;

        private SAPbouiCOM.StaticText StaticText20;

        private SAPbouiCOM.StaticText StaticText21;

        private SAPbouiCOM.StaticText StaticText22;

        private SAPbouiCOM.ComboBox ComboBox5;

        private SAPbouiCOM.EditText EditText6;

        private SAPbouiCOM.EditText EditText7;

        private SAPbouiCOM.ComboBox ComboBox6;

        private SAPbouiCOM.StaticText StaticText23;

        private SAPbouiCOM.EditText EditText8;

        private SAPbouiCOM.CheckBox CheckBox3;

        private SAPbouiCOM.CheckBox CheckBox4;

        private SAPbouiCOM.EditText EditText9;

        private SAPbouiCOM.StaticText StaticText24;

        private SAPbouiCOM.Button Button6;

        private SAPbouiCOM.StaticText StaticText25;

        private SAPbouiCOM.ComboBox ComboBox7;

        private SAPbouiCOM.StaticText StaticText26;

        private SAPbouiCOM.LinkedButton LinkedButton1;

        private SAPbouiCOM.StaticText StaticText27;

        private SAPbouiCOM.EditText EditText10;

        private SAPbouiCOM.StaticText StaticText28;

        private SAPbouiCOM.ComboBox ComboBox8;

        private SAPbouiCOM.LinkedButton LinkedButton2;

        private SAPbouiCOM.EditText EditText11;

        private SAPbouiCOM.StaticText StaticText29;

        private SAPbouiCOM.StaticText StaticText30;

        private SAPbouiCOM.ComboBox ComboBox9;

        private SAPbouiCOM.LinkedButton LinkedButton3;

        private SAPbouiCOM.EditText EditText12;

        private SAPbouiCOM.StaticText StaticText31;

        private SAPbouiCOM.StaticText StaticText32;

        private SAPbouiCOM.StaticText StaticText33;

        private SAPbouiCOM.StaticText StaticText34;

        private SAPbouiCOM.EditText EditText13;

        private SAPbouiCOM.EditText EditText14;

        private SAPbouiCOM.EditText EditText15;

        private SAPbouiCOM.LinkedButton LinkedButton4;

        private SAPbouiCOM.StaticText StaticText35;

        private SAPbouiCOM.ComboBox ComboBox10;

        private SAPbouiCOM.StaticText StaticText36;

        private SAPbouiCOM.Button Button7;

        private SAPbouiCOM.StaticText StaticText37;

        private SAPbouiCOM.EditText EditText16;

        private SAPbouiCOM.ComboBox ComboBox11;

        private SAPbouiCOM.StaticText StaticText38;

        private SAPbouiCOM.CheckBox CheckBox5;

        private SAPbouiCOM.StaticText StaticText39;

        private SAPbouiCOM.LinkedButton LinkedButton5;

        private SAPbouiCOM.EditText EditText17;

        private SAPbouiCOM.EditText EditText18;

        private SAPbouiCOM.StaticText StaticText40;

        private SAPbouiCOM.EditText EditText19;

        private SAPbouiCOM.StaticText StaticText41;

        private SAPbouiCOM.EditText EditText20;

        private SAPbouiCOM.CheckBox CheckBox6;

        private SAPbouiCOM.CheckBox CheckBox7;

        private SAPbouiCOM.StaticText StaticText42;

        private SAPbouiCOM.ComboBox ComboBox12;

        private SAPbouiCOM.Button Button8;

        private SAPbouiCOM.StaticText StaticText43;

        private SAPbouiCOM.CheckBox CheckBox8;

        private SAPbouiCOM.EditText EditText21;

        private SAPbouiCOM.StaticText StaticText44;

        private SAPbouiCOM.StaticText StaticText45;

        private SAPbouiCOM.EditText EditText22;

        private SAPbouiCOM.CheckBox CheckBox9;

        private SAPbouiCOM.EditText EditText23;

        private SAPbouiCOM.StaticText StaticText46;

        private SAPbouiCOM.StaticText StaticText47;

        private SAPbouiCOM.ComboBox ComboBox13;

        private SAPbouiCOM.CheckBox CheckBox10;

        private SAPbouiCOM.ComboBox ComboBox14;

        private SAPbouiCOM.ComboBox ComboBox15;

        private SAPbouiCOM.StaticText StaticText48;

        private SAPbouiCOM.Matrix Matrix4;

        private SAPbouiCOM.StaticText StaticText49;

        private SAPbouiCOM.EditText EditText24;

        private SAPbouiCOM.StaticText StaticText50;

        private SAPbouiCOM.Button Button9;

        private SAPbouiCOM.Button Button10;

        private SAPbouiCOM.StaticText StaticText51;

        private SAPbouiCOM.ComboBox ComboBox16;

        private SAPbouiCOM.StaticText StaticText52;

        private SAPbouiCOM.EditText EditText25;

        private SAPbouiCOM.CheckBox CheckBox11;

        private SAPbouiCOM.StaticText StaticText53;

        private SAPbouiCOM.ComboBox ComboBox17;

        private SAPbouiCOM.StaticText StaticText54;

        private SAPbouiCOM.EditText EditText26;

        private SAPbouiCOM.LinkedButton LinkedButton6;

        private SAPbouiCOM.LinkedButton LinkedButton7;

        private SAPbouiCOM.Matrix Matrix5;

        private SAPbouiCOM.Button Button11;

        private SAPbouiCOM.Button Button12;

        private SAPbouiCOM.Button Button13;

        private SAPbouiCOM.PictureBox PictureBox0;

        private SAPbouiCOM.EditText EditText27;

        private SAPbouiCOM.Button Button14;

        private SAPbouiCOM.Folder Folder0;

        private SAPbouiCOM.Folder Folder1;

        private SAPbouiCOM.EditText EditText28;

        private SAPbouiCOM.StaticText StaticText55;

        private SAPbouiCOM.StaticText StaticText56;

        private SAPbouiCOM.StaticText StaticText57;

        private SAPbouiCOM.StaticText StaticText58;

        private SAPbouiCOM.ComboBox ComboBox18;

        private SAPbouiCOM.ComboBox ComboBox19;

        private SAPbouiCOM.StaticText StaticText59;

        private SAPbouiCOM.Button Button15;

        private SAPbouiCOM.Button Button16;

        private SAPbouiCOM.LinkedButton LinkedButton8;

        private SAPbouiCOM.EditText EditText29;

        private SAPbouiCOM.LinkedButton LinkedButton9;

        private SAPbouiCOM.StaticText StaticText60;

        private SAPbouiCOM.StaticText StaticText61;

        private SAPbouiCOM.EditText EditText30;

        private SAPbouiCOM.LinkedButton LinkedButton10;

        private SAPbouiCOM.StaticText StaticText62;

        private SAPbouiCOM.StaticText StaticText63;

        private SAPbouiCOM.OptionBtn OptionBtn0;

        private SAPbouiCOM.OptionBtn OptionBtn1;

        private SAPbouiCOM.CheckBox CheckBox12;

        private SAPbouiCOM.StaticText StaticText64;

        private SAPbouiCOM.EditText EditText31;

        private SAPbouiCOM.EditText EditText32;

        private SAPbouiCOM.StaticText StaticText65;

        private SAPbouiCOM.Button Button17;

        private SAPbouiCOM.Button Button18;

        private SAPbouiCOM.EditText EditText33;

        private SAPbouiCOM.StaticText StaticText66;

        private SAPbouiCOM.EditText EditText34;

        private SAPbouiCOM.StaticText StaticText67;

        private SAPbouiCOM.StaticText StaticText68;

        private SAPbouiCOM.LinkedButton LinkedButton11;

        private SAPbouiCOM.EditText EditText35;

        private SAPbouiCOM.StaticText StaticText69;

        private SAPbouiCOM.StaticText StaticText70;

        private SAPbouiCOM.LinkedButton LinkedButton12;

        private SAPbouiCOM.EditText EditText36;

        private SAPbouiCOM.StaticText StaticText71;

        private SAPbouiCOM.StaticText StaticText72;

        private SAPbouiCOM.LinkedButton LinkedButton13;

        private SAPbouiCOM.EditText EditText37;

        private SAPbouiCOM.StaticText StaticText73;

        private SAPbouiCOM.StaticText StaticText74;

        private SAPbouiCOM.LinkedButton LinkedButton14;

        private SAPbouiCOM.EditText EditText38;

        private SAPbouiCOM.StaticText StaticText75;

        private SAPbouiCOM.StaticText StaticText76;

        private SAPbouiCOM.LinkedButton LinkedButton15;

        private SAPbouiCOM.StaticText StaticText77;

        private SAPbouiCOM.LinkedButton LinkedButton16;

        private SAPbouiCOM.EditText EditText39;

        private SAPbouiCOM.Button Button19;

        private SAPbouiCOM.StaticText StaticText78;

        private SAPbouiCOM.EditText EditText40;

        private SAPbouiCOM.StaticText StaticText79;

        private SAPbouiCOM.StaticText StaticText80;

        private SAPbouiCOM.Button Button20;

        private SAPbouiCOM.LinkedButton LinkedButton17;

        private SAPbouiCOM.EditText EditText41;

        private SAPbouiCOM.StaticText StaticText81;

        private SAPbouiCOM.LinkedButton LinkedButton18;

        private SAPbouiCOM.StaticText StaticText82;

        private SAPbouiCOM.StaticText StaticText83;

        private SAPbouiCOM.EditText EditText42;

        private SAPbouiCOM.CheckBox CheckBox13;

        private SAPbouiCOM.StaticText StaticText84;

        private SAPbouiCOM.StaticText StaticText85;

        private SAPbouiCOM.StaticText StaticText86;

        private SAPbouiCOM.StaticText StaticText87;

        private SAPbouiCOM.StaticText StaticText88;

        private SAPbouiCOM.StaticText StaticText89;

        private SAPbouiCOM.StaticText StaticText90;

        private SAPbouiCOM.EditText EditText43;

        private SAPbouiCOM.ComboBox ComboBox20;

        private SAPbouiCOM.ComboBox ComboBox21;

        private SAPbouiCOM.ComboBox ComboBox22;

        private SAPbouiCOM.ComboBox ComboBox23;

        private SAPbouiCOM.ComboBox ComboBox24;

        private SAPbouiCOM.ComboBox ComboBox25;

        private SAPbouiCOM.Folder Folder6;

        private void Folder6_ClickAfter(object sboObject, SAPbouiCOM.SBOItemEventArg pVal)

        {

            Application.SBO_Application.Forms.ActiveForm.PaneLevel = 99146147;

        }

        private SAPbouiCOM.CheckBox CheckBox14;

        private SAPbouiCOM.CheckBox CheckBox15;

        private SAPbouiCOM.CheckBox CheckBox16;

        private SAPbouiCOM.Grid Grid1;

        private SAPbouiCOM.Folder Folder2;

        private SAPbouiCOM.Grid Grid2;

        private SAPbouiCOM.Button Button21;

        private SAPbouiCOM.Folder Folder3;

        private SAPbouiCOM.Grid Grid3;

        private SAPbouiCOM.Folder Folder4;

        private SAPbouiCOM.Grid Grid4;

        private SAPbouiCOM.Folder Folder5;

        private void Folder2_ClickAfter(object sboObject, SAPbouiCOM.SBOItemEventArg pVal)

        {

            Application.SBO_Application.Forms.ActiveForm.PaneLevel = 991461471;

        }

        private void Folder3_ClickAfter(object sboObject, SAPbouiCOM.SBOItemEventArg pVal)

        {

            Application.SBO_Application.Forms.ActiveForm.PaneLevel = 991461473;

        }

        private void Folder4_ClickAfter(object sboObject, SAPbouiCOM.SBOItemEventArg pVal)

        {

            Application.SBO_Application.Forms.ActiveForm.PaneLevel = 991461474;

        }

        private void Folder5_ClickAfter(object sboObject, SAPbouiCOM.SBOItemEventArg pVal)

        {

            Application.SBO_Application.Forms.ActiveForm.PaneLevel = 991461475;

        }

    }

}

This is the code behind BPMD form

Additionally when i run the code from Visual Studio in SAP the BPMD form folders (tabs) behave in a weird way. sometimes they appear correctly sometimes they appear in different positions Check images below and let me know what i am doing wrong!

pedro_magueija
Active Contributor
0 Kudos

Hi Varnavas,

Seems you are using the ActiveForm during the OnInitializeComponent. It might be that the ActiveForm at the time that method is called is not the one you expected.

Use


this.GetItem("99146147")

instead of


Application.SBO_Application.Forms.ActiveForm.Items.Item("99146147");




Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

ens_
Active Participant
0 Kudos

I managed to get it working without changing anything but, when i install it on my own PC and on my colleagues PC it works fine! (using 9.1 PL10) when i install it on the customer's server, i get this error

trying to install it from a client PC on customer's premise, i get this issue:

Any thoughts? In my workplace it works fine! Customer has 9.0 PL07 is that the reason ?

It appears they are using .NET 3.5 i compiled using 4.5 checking it now if that was the issue

pedro_magueija
Active Contributor
0 Kudos

Hi Varnavas,


It appears they are using .NET 3.5 i compiled using 4.5 checking it now if that was the issue

That could be an issue, yes.

Let us know if you find that was it for the crash.

Thanks.


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

ens_
Active Participant
0 Kudos

Hi Pedro,



Pedro Magueija wrote:

Hi Varnavas,

It appears they are using .NET 3.5 i compiled using 4.5 checking it now if that was the issue

That could be an issue, yes.

Let us know if you find that was it for the crash.

Thanks.



Best regards,

Pedro Magueija

It did not resolve the issue. It still crashes on the server during installation. On clients it installs but never loads. Issue still applies.

pedro_magueija
Active Contributor
0 Kudos

Hi Varnavas,

Try adding some logging to the addon in order to figure out where the "crash" is taking place. You can also wrap your the content of the main method in a try/catch block and write to a file the exception that occurs.


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn