{"id":80,"date":"2011-07-14T22:08:09","date_gmt":"2011-07-15T02:08:09","guid":{"rendered":"http:\/\/www.1oc.com\/blog\/?p=80"},"modified":"2011-07-14T22:08:09","modified_gmt":"2011-07-15T02:08:09","slug":"integrating-a-genexus-x-application-with-gxportal-4-5","status":"publish","type":"post","link":"http:\/\/blog.1oc.com\/?p=80","title":{"rendered":"Integrating a GeneXus (X) application with gxportal 4.5"},"content":{"rendered":"<p>First, you can download and import de following <a href=\"http:\/\/blog.1oc.com\/?attachment_id=92\" rel=\"attachment wp-att-92\">XPZ Data and Example<\/a>. Which contains all the data views required to access the portal. (Make sure to have GeneXus X Update 3 or grater), in\u00a0addition, and for now (hopefuly), you&#8217;ll have to add the <a href=\"http:\/\/blog.1oc.com\/?attachment_id=109\" rel=\"attachment wp-att-109\">additional DLL<\/a>\u00a0to the &#8220;bin&#8221; directory under ..\/web\/bin, if you are developing for .NET<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-96\" title=\"Importing Data Objects and Example\" src=\"http:\/\/blog.1oc.com\/wp-content\/uploads\/2009\/01\/picture-5-150x150.png\" alt=\"Importing Data Objects and Example\" width=\"150\" height=\"150\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>You have to set up the &#8220;GXportal&#8221; DataSource to access the database &#8220;gxportal&#8221; using the user &#8220;gxporta&#8221; (the default password is &#8220;gxportal&#8221; \ud83d\ude42 )<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-100\" title=\"DataSource to gxportal\" src=\"http:\/\/blog.1oc.com\/wp-content\/uploads\/2009\/01\/picture-3-150x150.png\" alt=\"DataSource to gxportal\" width=\"150\" height=\"150\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Then, build it and execute.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-thumbnail wp-image-101 alignleft\" title=\"Create Model\" src=\"http:\/\/blog.1oc.com\/wp-content\/uploads\/2009\/01\/picture-4-150x150.png\" alt=\"Create Model\" width=\"150\" height=\"150\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/blog.1oc.com\/?attachment_id=106\" rel=\"attachment wp-att-106\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-106\" title=\"Menu Execution\" src=\"http:\/\/blog.1oc.com\/wp-content\/uploads\/2009\/01\/picture-6-150x150.png\" alt=\"Menu Execution\" width=\"150\" height=\"150\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>On portal:<\/p>\n<ol>\n<li>Under &#8220;Configuration&#8221; Create a new Application<\/li>\n<li>Update the &#8220;Enviroments&#8221;, host where the application is located, port and the Virtual Directory is the &#8220;relative path&#8221; to the file (program) on the URL and filanlly the extension of the file<\/li>\n<li>Ad\u00a0Activities\u00a0(the actual program), under the Program Name just the actual name of the program ,without extension or path (we created on the step above under\u00a0Environments)<\/li>\n<li>Under &#8220;Name&#8221; use the real name of the application, on the example is &#8220;TestWWEmployees&#8221; all\u00a0together\u00a0(same name as in Genexus)<\/li>\n<li>After that we&#8217;ll create 3 additional applications related to the main one, which reflect the status of the transaction, so later we can configure privileges, those are Delete, Display, Insert and Delete, \u00a0the &#8220;Name&#8221; we&#8217;ll use are going to be: TestTrnEmployee_DLT,\u00a0TestTrnEmployee_DSP,\u00a0TestTrnEmployee_INS and\u00a0TestTrnEmployee_UDP\u00a0all of them with NO Program Name (we&#8217;ll check the status on the actual Genexus Application)<\/li>\n<li>We create a &#8220;Menu&#8221; for the Application with one option that is going to be the Main Activity, in this case &#8220;TestWWEmployees&#8221;.<\/li>\n<li>Now let&#8217;s add the &#8220;Application&#8221; in to the portal, go to the page where you want to display the application, and add a GxPortlet of &#8220;Aplication Integration&#8221; and add &#8220;Application Activity&#8221;, now configure the Portlet where the &#8220;activity&#8221; points to our Main Activity (TestWWEmployees) and give it a &#8220;Dynamik hight&#8221; (make sure that the Hight of the portlet is NUL). At this point you&#8217;ll see the application running on the portal (although\u00a0there is nothing to see because you don&#8217;t have the right privileges to see it right now \ud83d\ude42 )<\/li>\n<li>Now, let&#8217;s create the Privileges to access the\u00a0application, in\u00a0order\u00a0to do that, go to<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>First, you can download and import de following XPZ Data and Example. Which contains all the data views required to access the portal. (Make sure to have GeneXus X Update 3 or grater), in\u00a0addition, and for now (hopefuly), you&#8217;ll have &hellip; <a href=\"http:\/\/blog.1oc.com\/?p=80\">Continue reading <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":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-80","post","type-post","status-publish","format-standard","hentry","category-genexus"],"_links":{"self":[{"href":"http:\/\/blog.1oc.com\/index.php?rest_route=\/wp\/v2\/posts\/80","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.1oc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.1oc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.1oc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.1oc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=80"}],"version-history":[{"count":2,"href":"http:\/\/blog.1oc.com\/index.php?rest_route=\/wp\/v2\/posts\/80\/revisions"}],"predecessor-version":[{"id":394,"href":"http:\/\/blog.1oc.com\/index.php?rest_route=\/wp\/v2\/posts\/80\/revisions\/394"}],"wp:attachment":[{"href":"http:\/\/blog.1oc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=80"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.1oc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=80"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.1oc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=80"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}