{"id":2249,"date":"2017-03-27T11:30:23","date_gmt":"2017-03-27T09:30:23","guid":{"rendered":"http:\/\/www.capri-soft.de\/blog\/?p=2249"},"modified":"2017-03-27T14:15:09","modified_gmt":"2017-03-27T12:15:09","slug":"ibm-doors-dxl-how-to-get-the-next-major-and-minor-baseline-number-in-a-copied-module-that-is-not-containing-baselines","status":"publish","type":"post","link":"https:\/\/www.capri-soft.de\/blog\/?p=2249","title":{"rendered":"IBM Doors DXL: How to get the next major and minor baseline number in a copied module, that is not containing baselines"},"content":{"rendered":"<h1>Problem<\/h1>\n<p>Copied modules do not have any baselines that can be read with the standard method getMostRecentBaseline(module m), although the last baseline number is copied. The method returns NULL when the module is copied because the baseline list in the module is empty, although the next major wouldn&#8217;t be 1.0 and the next minor wouldn&#8217;t be 0.1. <\/p>\n<p>Example:<br \/>\n<a href=\"https:\/\/www.capri-soft.de\/blog\/?attachment_id=2250\" rel=\"attachment wp-att-2250\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"2250\" data-permalink=\"https:\/\/www.capri-soft.de\/blog\/?attachment_id=2250\" data-orig-file=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2017\/03\/no_baslines_find_next_major.png?fit=886%2C561&amp;ssl=1\" data-orig-size=\"886,561\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"no_baslines_find_next_major\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2017\/03\/no_baslines_find_next_major.png?fit=474%2C300&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2017\/03\/no_baslines_find_next_major.png?resize=474%2C300&#038;ssl=1\" alt=\"\" width=\"474\" height=\"300\" class=\"alignnone size-full wp-image-2250\" srcset=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2017\/03\/no_baslines_find_next_major.png?w=886&amp;ssl=1 886w, https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2017\/03\/no_baslines_find_next_major.png?resize=300%2C190&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2017\/03\/no_baslines_find_next_major.png?resize=768%2C486&amp;ssl=1 768w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><\/a><\/p>\n<h1>Ansatz &#8211; Approach<\/h1>\n<p>In this example a radioBox is populated with the next Major and next Minor Baseline number using the suffix(&#8222;&#8220;) method that returns a usable baseline instance for the use with the major- and minor function.<\/p>\n<h1>Solution &#8211; L\u00f6sung<\/h1>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\npragma runLim, 0;\r\n\r\nModule m=current;\r\n\r\nDB mainDialog;\r\nDBE radioBoxDBE;\r\n\r\nstring comboBoxAuswahl&#x5B;2];\r\nBaseline b = getMostRecentBaseline(m);\r\n\r\n\/\/ Trick: Wenn b null ist probiere es nochmal \r\n\/\/ mit suffix(&quot;&quot;)\r\nif(null b) b = suffix(&quot;&quot;);\r\n\t\t\r\n\/\/ war keine Baseline vorhanden liefert major b und \r\n\/\/ minor b jew. 0 zur\u00fcck\r\ncomboBoxAuswahl&#x5B;0]= (major b) &quot;.&quot; ((minor b)+1) &quot;&quot;;\r\ncomboBoxAuswahl&#x5B;1]= ((major b)+1) &quot;.0&quot;;\t\r\n\r\nmainDialog = create(&quot;Baseline Change History&quot;);\t\r\nradioBoxDBE=radioBox (mainDialog, &quot;Version&quot;, comboBoxAuswahl, -1);\r\n\r\nrealize(mainDialog);\t\t\r\nshow(mainDialog);\r\n<\/pre>\n<iframe src=\"http:\/\/www.facebook.com\/plugins\/like.php?href=https%3A%2F%2Fwww.capri-soft.de%2Fblog%2F%3Fp%3D2249&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 Copied modules do not have any baselines that can be read with the standard method getMostRecentBaseline(module m), although the last baseline number is copied. The method returns NULL when the module is copied because the baseline list in the module is empty, although the next major wouldn&#8217;t be 1.0 and the next minor wouldn&#8217;t &hellip; <a href=\"https:\/\/www.capri-soft.de\/blog\/?p=2249\" class=\"more-link\"><span class=\"screen-reader-text\">IBM Doors DXL: How to get the next major and minor baseline number in a copied module, that is not containing baselines<\/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-2249","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-Ah","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2249","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=2249"}],"version-history":[{"count":5,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2249\/revisions"}],"predecessor-version":[{"id":2256,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2249\/revisions\/2256"}],"wp:attachment":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}