Integrating a GeneXus (X) application with gxportal 4.5

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 addition, and for now (hopefuly), you’ll have to add the additional DLL to the “bin” directory under ../web/bin, if you are developing for .NET

Importing Data Objects and Example

 

 

 

 

 

 

You have to set up the “GXportal” DataSource to access the database “gxportal” using the user “gxporta” (the default password is “gxportal” 🙂 )

DataSource to gxportal

 

 

 

 

 

 

Then, build it and execute.
Create Model

 

 

 

 

 

Menu Execution

 

 

 

 

 

On portal:

  1. Under “Configuration” Create a new Application
  2. Update the “Enviroments”, host where the application is located, port and the Virtual Directory is the “relative path” to the file (program) on the URL and filanlly the extension of the file
  3. Ad Activities (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 Environments)
  4. Under “Name” use the real name of the application, on the example is “TestWWEmployees” all together (same name as in Genexus)
  5. After that we’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,  the “Name” we’ll use are going to be: TestTrnEmployee_DLT, TestTrnEmployee_DSP, TestTrnEmployee_INS and TestTrnEmployee_UDP all of them with NO Program Name (we’ll check the status on the actual Genexus Application)
  6. We create a “Menu” for the Application with one option that is going to be the Main Activity, in this case “TestWWEmployees”.
  7. Now let’s add the “Application” in to the portal, go to the page where you want to display the application, and add a GxPortlet of “Aplication Integration” and add “Application Activity”, now configure the Portlet where the “activity” points to our Main Activity (TestWWEmployees) and give it a “Dynamik hight” (make sure that the Hight of the portlet is NUL). At this point you’ll see the application running on the portal (although there is nothing to see because you don’t have the right privileges to see it right now 🙂 )
  8. Now, let’s create the Privileges to access the application, in order to do that, go to

Leave a Reply

Your email address will not be published. Required fields are marked *