I'm using Dom Editor and while trying to link a field in one section definition to another section I receive this error.
Script Failure (Dom Editor): EXIT: "System.InvalidCastException: Unable to cast object of type 'Skyline.DataMiner.Utils.InteractiveAutomationScript.StackPanel' to type 'DOM_Editor_1.FieldDescriptor.Panels.DomInstanceValueFieldDescriptorPanel'.
at DOM_Editor_1.FieldDescriptor.PresenterHelpers.DomInstanceValueFieldHelper.OnFieldDescriptorChanged(Object sender, ChangedEventArgs changedEventArgs)
at Skyline.DataMiner.Utils.InteractiveAutomationScript.DropDown`1.RaiseResultEvents()
at Skyline.DataMiner.Utils.InteractiveAutomationScript.Dialog`1.RaiseResultEvents(UIResults uir)
at Skyline.DataMiner.Utils.InteractiveAutomationScript.Dialog`1.ShowInteractive()
at Skyline.DataMiner.Utils.InteractiveAutomationScript.InteractiveController.Run(IDialog startDialog) at Script.Run(Engine engine)" (see comment for more details)
Any suggestion?
Hi Thomas, I’m using version 10.3.4.0 and still have problem with installation. Deployment fails and noting is added to information event to know why
Hi,
I noticed that this question has been open for some time now. Can you confirm if you have found a solution, so we can mark this question as solved?
The latest version, which should include all the necessary fixes, is available in the catalog here: Catalog (dataminer.services).
Hi Marieke
As mentioned in my previous comment, I couldn’t deploy version 10.3.4 and I wasn’t aware that new version is created. Thank you for the update. Today I could deploy 10.3.5 version. I’ll spend sometime this week to see if the problem is resolved or not. Best
Hi Ladan,
Thanks for the stacktrace.
I was able to reproduce and fix the issue you are encountering.
We will be releasing a new version with the fix in the upcoming days.
I will notify you when it is available.
Thank you Thomas. Looking forward to receive the update.
Hi Ladan,
If I correctly understand your use case I would implement it like this with indeed the DOM instance field descriptor: where you have a workorder module with an order definition which contains one field that references to the client definition from another module. That way you will be able to have separate apps to manage clients & workorders & you will be able to reuse or references your clients in multiple workorders
No, I can’t attached picture to the comment but everything is inside work order module. I’m trying to link definitions inside same module .
Hi Ladan, linking between definitions is also possible within a module. For your use case I would still use that Dom instance field descriptor iso DOM instance value field descriptor as in your queries you will probably want to have other fields from clients such as contact person etc combined with workorder information
Kind regards
Hi Ladan, thanks for the clarification. What you need is a DOM instance field descriptor for your use case & not a DOM instance value field descriptor:
This is an example of something similar: Where we have workorders on the right & clients or organizations on the left. These are two different DOM modules/definitions which are linked together so on my workorder I have a field called customer/client which links towards my customer DOM module.
Hope this helps
Hi Martijn
Mine is not 2 DOMs. It’s one DOM called event-management which contains multiple section definitions which one is called work order and another on is call client and I need to see client names in one field of work order.
Do I still need to use the instance which you’re suggesting?
Hi Ladan,
Haven't seen that error before but can you explain your use case a bit more in detail (maybe show the two objects that you try to reference)? Not sure if I fully understand what you try to do:
In DOM you have two ways of creating references between different DOM instances:
You have a DOM instance field descriptor which makes it possible to link a field in one DOM instance with an instance of a different definition or module (this is the most used)
You have a DOM instance value field descriptor which makes it possible to link a field in one DOM instance with a field value from another instance from a different definition or module
Hi Martijn
Thank you for your reply.
Imagine that I have section definition called Client which hold Client data and I have another section definition which is work orders and one field on work order is called client. The client field in the work order section must display list of clients’ names which is set in client sections definition.
Sorry if it sound a bit complicated
Hi Ladan,
I’m not sure if you still need the DomInstanceValueFieldDescriptor, but the new version with the fix is now available on the catalog.
https://catalog.dataminer.services/catalog/3195
The fix is available in version 10.3.3.4 & 10.2.8.5 depending on your DataMiner version.
Note, we discovered an issue with the installation process.
If the installation fails, try to upgrade DataMiner to version 10.2.10 or higher.