Unable to launch form from app-open widget

Hello everyone,

I am in the progress of updating classic menus to Kinetic menus and am currently working on the Part Class Maintenance menu.

On both the classic and Kinetic versions, there is the button to open the Approved Suppliers page with inherited context, however when attempting to open that menu through the kinetic version of Part Class Maintenance I end up with this Application Error:

Message: Object reference not set to an instance of an object.
Program: Erp.UI.AprvSupplierEntry.dll
Method: OnFormLoaded

I have been working with a colleague trying to figure out why this is happening but keep coming up empty.

Does anyone have experience with this sort of problem? Please ask if you need more information.

App-Open Context:

View: Erp.UI.AprvSupplierEntry

Who Launched: Kinetic.Erp.UI.PartClassEntry

Launch Options: { “type”: “Ice.Lib.Framework.LaunchFormOptions”, “options”: { “valueIn”: “{PartClass.ClassID}”, “showAsModal”: true }}

Does the context menu work when you right-click on PartClassID?

It would appear to work yes, I am no longer receiving that application error, but the menu doesn’t seem to work. When I try to add a new approved supplier nothing happens and the menu remains with all fields set to read only.

Sorry I’m unclear what you mean by ‘menu’
Are we talking main menu, menu maintenance, context menu, or loosely referring to ApprovedSuppliers App as a ‘menu’

The right-click context menu from partclassid indeed opens the AprvSuppliers App and indeed populates the ClassId, or no?

My apologies for being unclear.

On the Part Class Maintenance menu in kinetic I first selected a part class. Then on the details page I pulled up the context menu by right-clicking on the “Part Class” field and selected “Approved Supplier”. This proceeds to open the Approved Supplier Maintenance menu in the classic format without the error I mentioned initially (which does appear when I use the three dot menu). The Approved Supplier Maintenance is blank and when I click on the add new section nothing happens.

(For context, the classic version of Part Class Maintenance that we have currently pulls up the Approved Supplier Maintenance menu blank, but then populates the part class field once a new approved supplier is selected)

Thanks so you’re referring to apps as menus. Gotcha.

What would you like to happen?
Open ApprovedSupplier App In classic client?
Open ApprovedSupplier App kinetic?

For now I would like to open the Approved Supplier App in classic with it functioning the way it has for my company normally. I do intend to make it a Kinetic app down the line, but that is not my main priority now.

Here is a video of how it works now:

Okay, sorry cannot help with that as I’ve never opened classic. I believe however launching classic involves edge agent (which is working for you at least in part) but maybe not passing the PartClassID correctly.

For the Kinetic form, you could create a new Menu Item in Menu Maintenance.

I’ll add, Approved Suppliers App is an odd duck. It behaves differently based on whether a Class, Part, Lot, Operation, or Supplier are passed in.

I don’t even see the app-open with epdebug in devtools :man_shrugging: