{"id":2147,"date":"2017-01-26T11:08:13","date_gmt":"2017-01-26T10:08:13","guid":{"rendered":"http:\/\/www.capri-soft.de\/blog\/?p=2147"},"modified":"2017-04-03T08:36:17","modified_gmt":"2017-04-03T06:36:17","slug":"ibm-doors-dxl-be-resistent-against-hard-coded-module-paths-and-names-with-uniqueid-and-itemfromid-vorbeugung-von-dxl-fehlern-durch-verschiebung-von-modulen-anhand-der-uniqueid","status":"publish","type":"post","link":"https:\/\/www.capri-soft.de\/blog\/?p=2147","title":{"rendered":"IBM Doors DXL: Be resistent against hard coded module paths and names with uniqueID and itemFromID \/  Vorbeugung von DXL Fehlern durch Verschiebung von Modulen anhand der uniqueID"},"content":{"rendered":"<h1>Problem<\/h1>\n<p>In the source code, you can find modulenames with full qualified path+name, what leads to DXL errors in case of a module movement.<br \/>\nIm DXL Code werden Module oft mit ihrem vollem Pfad und Namen hart codiert. Wird das Modul sp\u00e4ter verschoben, kommt es zu DXL Fehlern.<\/p>\n<h1>Ansatz &#8211; Approach<\/h1>\n<p>&#8211; Find out the uniqueID of the Module (here a fictive ALM and UIT Module) \/ Ermitteln Sie die uniqueID des Moduls<br \/>\n&#8211; get the full qualified name of the module \/ Vollst\u00e4ndigen Modulnamen mit Pfad mit itemFromID ( uniqueID ) ermitteln<br \/>\n&#8211; open module \/ Modul laden<\/p>\n<h1>Solution &#8211; L\u00f6sung<\/h1>\n<p>Ermittlung der unique ID eines Moduls:<\/p>\n<ul>\n<li>\u00d6ffnen des Moduls \/ Open module<\/li>\n<li>\u00d6ffnen des DXL Fensters \/ Open DXL window (Menu &#8212; Tools &#8212; Edit DXL)<\/li>\n<\/ul>\n<h2>Von Modul zu Item ID:<\/h2>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nModule m = current;\r\nprint uniqueID(m) &quot;&quot;;\r\n<\/pre>\n<h2>Von Item ID zu Modul<\/h2>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nItem i= itemFromID(&quot;4a8aa49d0b7c007e-000424e6&quot;);\r\nprint fullName i;\r\n<\/pre>\n<p>Loading of the module \/ Laden des Modules<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n\/\/ UIT Module ID: 00005771\r\n\/\/ ALM Module ID: 0000576e\r\nstring moduleID=&quot;00005771&quot;; \/\/ Es soll das UIT Module geladen werden\r\nstring modulePath = fullName itemFromID(moduleID) &quot;&quot;;\r\nModule selectedModule=read(modulePath, true, true);\r\n<\/pre>\n<iframe src=\"http:\/\/www.facebook.com\/plugins\/like.php?href=https%3A%2F%2Fwww.capri-soft.de%2Fblog%2F%3Fp%3D2147&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light\" scrolling=\"no\" frameborder=\"0\" allowTransparency=\"true\" style=\"border:none; overflow:hidden; width:450px;margin-top:5px;\"><\/iframe>","protected":false},"excerpt":{"rendered":"<p>Problem In the source code, you can find modulenames with full qualified path+name, what leads to DXL errors in case of a module movement. Im DXL Code werden Module oft mit ihrem vollem Pfad und Namen hart codiert. Wird das Modul sp\u00e4ter verschoben, kommt es zu DXL Fehlern. Ansatz &#8211; Approach &#8211; Find out the &hellip; <a href=\"https:\/\/www.capri-soft.de\/blog\/?p=2147\" class=\"more-link\"><span class=\"screen-reader-text\">IBM Doors DXL: Be resistent against hard coded module paths and names with uniqueID and itemFromID \/  Vorbeugung von DXL Fehlern durch Verschiebung von Modulen anhand der uniqueID<\/span> weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[22,19],"tags":[],"class_list":["post-2147","post","type-post","status-publish","format-standard","hentry","category-dxl","category-ibm-doors"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4yGeN-yD","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2147"}],"version-history":[{"count":4,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2147\/revisions"}],"predecessor-version":[{"id":2265,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2147\/revisions\/2265"}],"wp:attachment":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}