Hi! We need to show documents from IDM according to values from the businessContext InforItemMaster. The widgets will be used in the "sidepanel" side by side to M3. Can anyone guide me how to use such values in the IDM query? Thanks a lot!
I'm not sure i understand your request, but in order to use the values you edit the Business Context Model according to the values you have in the Business Context sidepanel in M3.
The Xquery starts with the document type and then the attribute(s) defined on the document that you want to connect to your Business context id.
Hi @d-wagner ,You can create a new document type in IDM, such as 'Item_Doc,' with an attribute for 'Item_No.' Then, write an XQuery in the BusinessContext model to fetch documents related to the selected item number from the MMS001 screen./Item_Doc[@Item_No = "{id1}"]{id1} refers to the item number, which is passed to the XQuery at runtime.
Thanks for reply! That way I received the document in "Related Information". But I wasn't able to use the same query (/Label[@ITNO = "{id1}"]) in the "IDM Document Monitor" widget. Can you help me closing the gap?
This is normal, as your Information related widget is used in the context of a contextual relationship, materialized by the use of the dynamic parameter {id1}.
In the IDM Document Monitor widget, you're no longer in the same context, so you need to express a non-contextual request. In other words, there must be no presence of 'id1}, for example.
Is there any way I can make widgets contextual?
There is also a way to force the specific doc type into the IDM widget. So if you had id1, id2 and you couldnt use what was in the widget and connected, once you do the work the guys said here in the business context model, you can use an API (MNS035MI) to add the field you search upon to the entity map....if i am understanding your request?