SlideShare a Scribd company logo
GeneXus Salto Lab
“Live Editing with Smart Devices applications”
Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 2
Copyright 1988 - 2015| Artech Consultores S. R. L.
All rights reserved. This document may not be reproduced in any form without the express permission of
Artech Consultores S.R.L. The information contained herein is only for personal use.
Registered Trademarks
Artech and GeneXus are registered trademarks of Artech Consultores S.R.L. All other trademarks mentioned in
this document are property of their respective owners.
Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 3
Table of Contents
Aim........................................................................................................................................4
Preparation............................................................................................................................4
Creating the Knowledge Base ........................................................................................4
Paso 1 – Initial Data Upload ..................................................................................................6
Step 2 – Executing the application ........................................................................................8
Activate Live Editing ..........................................................................................................8
Paso 3 – Adding Design with Live Editing............................................................................11
Step 4 – Adding functionality with Live Editing.....................................................................16
Thank you for participating! .................................................................................................17
Glossary..............................................................................................................................17
Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 4
Aim
In this Lab, you will be provided with a guide with the basic use of the new GeneXus Salto feature,
Live Editing. The aim of this laboratory is to allow you to test one of the most important components
of GeneXus next version, which will have a great impact on the development of applications through
GeneXus.
Preparation
For this laboratory we will use GeneXus Salto version. You will find the icon to run it in the desktop
with the name GeneXus Salto SD.
We will also use SQL Server to handle the database of the application, and Android SDK, which has
also been previously installed. We will make use of Genymotion application to emulate an Android
device, which should be already running.
Creating the Knowledge Base
We will start creating the Knowledge Base with the following configuration:
 Name = “LabLiveEditing<UserNumber>” UserNumber is written on the computer.
 Directory = C:Models
 Prototyping Environment = C# Environment
 Under Advanced, set Server = “Lab<UserNumber>”, then check “Use Windows NT
integrated Security”
Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 5
We will now import objects from the web application which we will use as basis for our Smart
Devices application. Now open Knowledge Manager>Import, click on the Navigation button […] and
select GX25LabLiveEditing.xpz (Located under LabLiveEditing folder on the Desktop). We then click
on Import>>.
You will see an exemplary KB, reduced for the specific purposes of this laboratory. This KB will
contain a basic sample of the Event Day Smart Device application.
Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 6
Step 1 – Initial Data Upload
In this lab, we will run our application on the cloud. In order to do so, we will set the following .Net
Generator Properties in Preferences (in the Knowledge Base Navigator):
 Deploy to cloud = yes
 Deploy Virtual Directory = LABLiveEditing<GXtechnicalUser>
 Deploy Server URL = http://apps5.genexus.com
Also, set the Data Store properties:
 Database name = LABLiveEditing<GXtechnicalUser>
 Server Name = apps5.genexus.com
After doing this, we select Run (Build > Run Developer Menu) for the application.
Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 7
A home page like the one below will be displayed in the browser:
We click on the Home link, which will take us to the home page for Web:
We will then create a simple Smart Devices version of this Web model. Feel free to take a look at the
Web application for a moment, if you wish to do so.
Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 8
Step 2 – Executing the application
We have 3 Transactions: Country, Speaker, and Session, which currently have the Work With Web
and Work With Smart Devices patterns applied to them.
Since the sample was already developed, we are now ready to run our application on Android. For
this, we only need to specify Dashboard GeneXusMeeting will be the starting point of the
application. This can be done through the Startup Object property in the .Net Environment.
Activate Live Editing
Before we run the application on the Emulator, we should first activate Live Editing mode in
GeneXus so the application keeps connected to the IDE.
For this we need to change the value of the Combo box located on the second row of the Toolbar, as
shown on the following image. Set the value “Live Editing” instead of the selected value, “Release”.
After doing this, we can run our application by clicking Run (F5). An instance of the application will
run on the Android Emulator. Loading of the emulator may take a few minutes, it is recommended
not to close it during the laboratory.
Verify that Live Editing is activated by clicking “Live Editing” option on the Knowledge Base
Navigator and checking that the green dot is On.
Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 9
In the emulator, we load the Startup Object we had configured previously: the GeneXusMeeting
Dashboard.
Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 10
Get to know the Emulator:
- See the list of Speakers and tap on any given person.
- You will see his or her information (for example, name, photo, ID, etc.).
- Select the "back" button to go back to the home page.
Note: Do not closet the Emulator. This way you’ll avoid the emulator reopening every
time you execute the application
We can observe in the application is the style is set to “Light” (White background) and the
Application Bar and Status Bar have a custom color. We can also see that the text on the Application
Bar is Black which does not go properly with the application style.
Let’s try and change that.
Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 11
Step 3 – Adding Design with Live Editing
We want to change the Text Color on the Application Bar to improve it stylishly. Open
SimpleAndroid Theme located on the Folder View, under Customization > Themes. You can also do
this by pressing Ctrl+O and searching through the search bar.
We open ApplicationBars properties and change Forecolor property. Without saving or running the
application again, check the emulator and you will see the Text Color on the Application Bar
changed.
Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 12
We will set the Forecolor property with the color White. Our application should look like this:
We will now enter Work With Devices Speaker in the emulator. We will see a list of all the Speakers
registered.
If we Tap (click) on one of the speakers, an alternative Layout will show which includes the speaker’s
Curriculum Vitae. Although, we can see that the text is not displaying properly and some parts are
being cut off. To fix this we can enable Auto Grow property.
In GeneXus, open Speaker transaction and go to Work With Smart Devices Pattern in the Patterns
section. Select the List node and change the Grid’s Layout, through the arrow icon on the top-right
corner of the Grid, and select Layout “Select”. Open SpeakerCVMini properties and change Auto
Grow value to True.
Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 13
If we go back to the emulator and Tap on one of the speakers, we will see the text is now displaying
as expected. We now tap on the grey arrow shown when the speaker details are displayed to enter
the Speaker’s profile. The attributes are all stacked up without any kind of design.
Let’s modify this Layout to make it more attractive.
Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 14
Go to GeneXus and open Section (General) in the Work With for Smart Devices for the Speaker
Transaction. Feel free to check the emulator after any change.
Let’s start by adding a Canvas control to the top of the table. Drag SpeakerImage attribute and drop
it inside the Canvas (and move it near the center).
Now let’s configure the following properties for SpeakerImage attribute:
 Label Position = None (to remove the label)
 Horizontal Alignment = Center
 Vertical Alignment = Middle
 Left = 50%
 Width = 100dip
 Top = 5dip
 Height = 100dip
We will also set Class = SpeakerImage. And we’ll do the same for the Canvas, setting Class =
SpeakerCanvas.
Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 15
Now, drag SpeakerFullName attribute inside the Canvas and set the following properties:
 Label Position = None (to remove the label)
 Class = CanvasName
 Horizontal Alignment = Center
 Vertical Alignment = Middle
 Left = 0%
 Width = 100%
 Top = 100dip
 Height = 35dip
 ZOrder = 1 (to show it on top of the Image)
Now, let’s clean the Layout a bit by removing redundant or useless information for the context. We’ll
remove from the Layout SpeakerId, SpeakerName, SpeakerSurname and CountryId attributes.
Reorder the rest of the attributes to which order you find the best and remove the rows left empty
which are still taking some space on the Layout. Also set Label Position = none for CountryName,
and do the same for SpeakerCVMini and Auto Grow = True.
Before we finish with this Layout, we open SimpleAndroid Theme and modify the Class
SpeakerImage (under Image node), setting BorderRadius = 100dip. As we see the image wasn’t
correctly scaled, so we also change the property Scale Type = Fill Keeping Aspect Ratio.
The Layout should now look similar to this:
Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 16
Step 4 – Adding functionality with Live Editing
Before we end this Lab we will use Live Editing to add a new functionality we want to include in the
Event Day application.
We go to the emulator, and get back to the Dashboard to go into Work With Devices Session and
select a session. We want to add a button to the Application Bar which allow us to “Like” the
session.
Let’s get back to GeneXus, open WorkWithDevicesSession and select Section (General). There we
add a button to the Application Bar and associate the Event ‘Like’. Then we define the Event with
the following code:
Event 'Like'
composite
SessionLikesQty+=1
&Session.Load(SessionId)
&Session.SessionLikesQty = SessionLikesQty
&Session.Save()
SDActions.Refresh()
endcomposite
Endevent
Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 17
Thank you for participating!
Glossary
My First Android Application
http://wiki.genexus.com/commwiki/servlet/hwikibypageid?14555
Applying Work With Pattern for Smart Devices
http://wiki.genexus.com/commwiki/servlet/hwikibypageid?15975
Multiple Layouts per Row
http://wiki.genexus.com/commwiki/servlet/hwikibypageid?22545
Using SD Image Gallery Control
http://wiki.genexus.com/commwiki/servlet/hwikibypageid?15308
Live Editing
http://wiki.genexus.com/commwiki/servlet/hwikibypageid?27805

More Related Content

Similar to Laboratorio: Desarrollo para Smart Devices (continuación)

Laboratorio: Desarrollo para Smart Devices
Laboratorio: Desarrollo para Smart DevicesLaboratorio: Desarrollo para Smart Devices
Laboratorio: Desarrollo para Smart Devices
GeneXus
 
Laboratorio: Desarrollo de aplicaciones Web con GeneXus Evolution 3 y Salto (...
Laboratorio: Desarrollo de aplicaciones Web con GeneXus Evolution 3 y Salto (...Laboratorio: Desarrollo de aplicaciones Web con GeneXus Evolution 3 y Salto (...
Laboratorio: Desarrollo de aplicaciones Web con GeneXus Evolution 3 y Salto (...
GeneXus
 
Work spaceconnect 2.0 user guide
Work spaceconnect 2.0 user guideWork spaceconnect 2.0 user guide
Work spaceconnect 2.0 user guide
William McIntosh
 
Work spaceconnect 2.0 user guide
Work spaceconnect 2.0 user guideWork spaceconnect 2.0 user guide
Work spaceconnect 2.0 user guide
William McIntosh
 
Google chrome dev tools for mobile screencast and emulation
Google chrome dev tools for mobile screencast and emulationGoogle chrome dev tools for mobile screencast and emulation
Google chrome dev tools for mobile screencast and emulation
Anshul Mehta
 
Google Chrome DevTools for Mobile Screencast and Emulation
Google Chrome DevTools for Mobile Screencast and EmulationGoogle Chrome DevTools for Mobile Screencast and Emulation
Google Chrome DevTools for Mobile Screencast and EmulationAnshul Mehta
 
Build your first android mobile app
Build your first android mobile appBuild your first android mobile app
Build your first android mobile app
ekipaco
 
IOS Swift language 1st Tutorial
IOS Swift language 1st TutorialIOS Swift language 1st Tutorial
IOS Swift language 1st Tutorial
Hassan A-j
 
How to create ui using droid draw
How to create ui using droid drawHow to create ui using droid draw
How to create ui using droid drawinfo_zybotech
 
Ios actions and outlets
Ios actions and outletsIos actions and outlets
Ios actions and outlets
veeracynixit
 
UILayout plug-in for APEX
UILayout plug-in for APEXUILayout plug-in for APEX
UILayout plug-in for APEXTobias Arnhold
 
Amazon Lumberyard Interface
Amazon Lumberyard InterfaceAmazon Lumberyard Interface
Amazon Lumberyard Interface
Practical Code, LLC
 
Create New Android Layout
Create New Android LayoutCreate New Android Layout
Create New Android Layout
Transpose Solutions Inc
 
Sencha Touch MVC
Sencha Touch MVCSencha Touch MVC
Sencha Touch MVC
Neha Upadhyay
 
Using prime[31] to connect your unity game to azure mobile services
Using prime[31] to connect your unity game to azure mobile servicesUsing prime[31] to connect your unity game to azure mobile services
Using prime[31] to connect your unity game to azure mobile services
David Voyles
 
Promethean ActivInspire IWB Introduction
Promethean ActivInspire IWB IntroductionPromethean ActivInspire IWB Introduction
Promethean ActivInspire IWB Introduction
ChristyBusch
 
ArduinoWorkshop2.pdf
ArduinoWorkshop2.pdfArduinoWorkshop2.pdf
ArduinoWorkshop2.pdf
PedramKashiani
 
Sencha touch
Sencha touchSencha touch
Sencha touch
Akshay Prabhu
 

Similar to Laboratorio: Desarrollo para Smart Devices (continuación) (20)

Laboratorio: Desarrollo para Smart Devices
Laboratorio: Desarrollo para Smart DevicesLaboratorio: Desarrollo para Smart Devices
Laboratorio: Desarrollo para Smart Devices
 
Laboratorio: Desarrollo de aplicaciones Web con GeneXus Evolution 3 y Salto (...
Laboratorio: Desarrollo de aplicaciones Web con GeneXus Evolution 3 y Salto (...Laboratorio: Desarrollo de aplicaciones Web con GeneXus Evolution 3 y Salto (...
Laboratorio: Desarrollo de aplicaciones Web con GeneXus Evolution 3 y Salto (...
 
Work spaceconnect 2.0 user guide
Work spaceconnect 2.0 user guideWork spaceconnect 2.0 user guide
Work spaceconnect 2.0 user guide
 
Work spaceconnect 2.0 user guide
Work spaceconnect 2.0 user guideWork spaceconnect 2.0 user guide
Work spaceconnect 2.0 user guide
 
Google chrome dev tools for mobile screencast and emulation
Google chrome dev tools for mobile screencast and emulationGoogle chrome dev tools for mobile screencast and emulation
Google chrome dev tools for mobile screencast and emulation
 
Google Chrome DevTools for Mobile Screencast and Emulation
Google Chrome DevTools for Mobile Screencast and EmulationGoogle Chrome DevTools for Mobile Screencast and Emulation
Google Chrome DevTools for Mobile Screencast and Emulation
 
Build your first android mobile app
Build your first android mobile appBuild your first android mobile app
Build your first android mobile app
 
IOS Swift language 1st Tutorial
IOS Swift language 1st TutorialIOS Swift language 1st Tutorial
IOS Swift language 1st Tutorial
 
How to create ui using droid draw
How to create ui using droid drawHow to create ui using droid draw
How to create ui using droid draw
 
Ios actions and outlets
Ios actions and outletsIos actions and outlets
Ios actions and outlets
 
Vb%20 tutorial
Vb%20 tutorialVb%20 tutorial
Vb%20 tutorial
 
UILayout plug-in for APEX
UILayout plug-in for APEXUILayout plug-in for APEX
UILayout plug-in for APEX
 
Amazon Lumberyard Interface
Amazon Lumberyard InterfaceAmazon Lumberyard Interface
Amazon Lumberyard Interface
 
Create New Android Layout
Create New Android LayoutCreate New Android Layout
Create New Android Layout
 
Sencha Touch MVC
Sencha Touch MVCSencha Touch MVC
Sencha Touch MVC
 
Using prime[31] to connect your unity game to azure mobile services
Using prime[31] to connect your unity game to azure mobile servicesUsing prime[31] to connect your unity game to azure mobile services
Using prime[31] to connect your unity game to azure mobile services
 
Promethean ActivInspire IWB Introduction
Promethean ActivInspire IWB IntroductionPromethean ActivInspire IWB Introduction
Promethean ActivInspire IWB Introduction
 
Guide To Magic Infoforuser
Guide To Magic InfoforuserGuide To Magic Infoforuser
Guide To Magic Infoforuser
 
ArduinoWorkshop2.pdf
ArduinoWorkshop2.pdfArduinoWorkshop2.pdf
ArduinoWorkshop2.pdf
 
Sencha touch
Sencha touchSencha touch
Sencha touch
 

More from GeneXus

After Chatbots Yo (Ro) Bots
After Chatbots Yo (Ro) BotsAfter Chatbots Yo (Ro) Bots
After Chatbots Yo (Ro) Bots
GeneXus
 
Construya las aplicaciones del futuro ¡hoy!
Construya las aplicaciones del futuro ¡hoy!Construya las aplicaciones del futuro ¡hoy!
Construya las aplicaciones del futuro ¡hoy!
GeneXus
 
Live Editing in Action
Live Editing in ActionLive Editing in Action
Live Editing in Action
GeneXus
 
Experiencias en el desarrollo de aplicaciones móviles en el sector salud de M...
Experiencias en el desarrollo de aplicaciones móviles en el sector salud de M...Experiencias en el desarrollo de aplicaciones móviles en el sector salud de M...
Experiencias en el desarrollo de aplicaciones móviles en el sector salud de M...
GeneXus
 
¿Pensando en implementar un sistema de gestión integral en su organización?
¿Pensando en implementar un sistema de gestión integral en su organización?¿Pensando en implementar un sistema de gestión integral en su organización?
¿Pensando en implementar un sistema de gestión integral en su organización?
GeneXus
 
K2B Tools el compañero de viaje ideal hacia el futuro
K2B Tools el compañero de viaje ideal hacia el futuroK2B Tools el compañero de viaje ideal hacia el futuro
K2B Tools el compañero de viaje ideal hacia el futuro
GeneXus
 
Sd y Plataformas
Sd y PlataformasSd y Plataformas
Sd y Plataformas
GeneXus
 
PXTools: Nuevo generador y nuevos controles responsivos
PXTools: Nuevo generador y nuevos controles responsivosPXTools: Nuevo generador y nuevos controles responsivos
PXTools: Nuevo generador y nuevos controles responsivos
GeneXus
 
APPlícate: Aplicaciones móviles para el desarrollo de la industria
APPlícate: Aplicaciones móviles para el desarrollo de la industriaAPPlícate: Aplicaciones móviles para el desarrollo de la industria
APPlícate: Aplicaciones móviles para el desarrollo de la industria
GeneXus
 
GeneXus 4 Students
GeneXus 4 StudentsGeneXus 4 Students
GeneXus 4 Students
GeneXus
 
La importancia de ser responsive
La importancia de ser responsiveLa importancia de ser responsive
La importancia de ser responsive
GeneXus
 
K2B: El ERP nativo para el mundo GeneXus
K2B: El ERP nativo para el mundo GeneXusK2B: El ERP nativo para el mundo GeneXus
K2B: El ERP nativo para el mundo GeneXus
GeneXus
 
GeneXus 15 (Salto)
GeneXus 15 (Salto)GeneXus 15 (Salto)
GeneXus 15 (Salto)
GeneXus
 
GeneXus Cloud Deployment Services. El camino a la nube.
GeneXus Cloud Deployment Services. El camino a la nube.GeneXus Cloud Deployment Services. El camino a la nube.
GeneXus Cloud Deployment Services. El camino a la nube.
GeneXus
 
LigaMX con GeneXus: De 0 a 1.700.000 de usuarios
LigaMX con GeneXus: De 0 a 1.700.000 de usuariosLigaMX con GeneXus: De 0 a 1.700.000 de usuarios
LigaMX con GeneXus: De 0 a 1.700.000 de usuarios
GeneXus
 
Innovando con GeneXus y SAP
Innovando con GeneXus y SAPInnovando con GeneXus y SAP
Innovando con GeneXus y SAP
GeneXus
 
Going mobile
Going mobileGoing mobile
Going mobile
GeneXus
 
Audit+: La mejor forma de auditar KB’s GeneXus
Audit+: La mejor forma de auditar KB’s GeneXusAudit+: La mejor forma de auditar KB’s GeneXus
Audit+: La mejor forma de auditar KB’s GeneXus
GeneXus
 
WW+, SD+ y Audit+: Potencie GeneXus la Suite Plus
WW+, SD+ y Audit+: Potencie GeneXus la Suite PlusWW+, SD+ y Audit+: Potencie GeneXus la Suite Plus
WW+, SD+ y Audit+: Potencie GeneXus la Suite Plus
GeneXus
 
Aproveche las ventajas de la colaboración entre GeneXus y Cloud Shared Office...
Aproveche las ventajas de la colaboración entre GeneXus y Cloud Shared Office...Aproveche las ventajas de la colaboración entre GeneXus y Cloud Shared Office...
Aproveche las ventajas de la colaboración entre GeneXus y Cloud Shared Office...
GeneXus
 

More from GeneXus (20)

After Chatbots Yo (Ro) Bots
After Chatbots Yo (Ro) BotsAfter Chatbots Yo (Ro) Bots
After Chatbots Yo (Ro) Bots
 
Construya las aplicaciones del futuro ¡hoy!
Construya las aplicaciones del futuro ¡hoy!Construya las aplicaciones del futuro ¡hoy!
Construya las aplicaciones del futuro ¡hoy!
 
Live Editing in Action
Live Editing in ActionLive Editing in Action
Live Editing in Action
 
Experiencias en el desarrollo de aplicaciones móviles en el sector salud de M...
Experiencias en el desarrollo de aplicaciones móviles en el sector salud de M...Experiencias en el desarrollo de aplicaciones móviles en el sector salud de M...
Experiencias en el desarrollo de aplicaciones móviles en el sector salud de M...
 
¿Pensando en implementar un sistema de gestión integral en su organización?
¿Pensando en implementar un sistema de gestión integral en su organización?¿Pensando en implementar un sistema de gestión integral en su organización?
¿Pensando en implementar un sistema de gestión integral en su organización?
 
K2B Tools el compañero de viaje ideal hacia el futuro
K2B Tools el compañero de viaje ideal hacia el futuroK2B Tools el compañero de viaje ideal hacia el futuro
K2B Tools el compañero de viaje ideal hacia el futuro
 
Sd y Plataformas
Sd y PlataformasSd y Plataformas
Sd y Plataformas
 
PXTools: Nuevo generador y nuevos controles responsivos
PXTools: Nuevo generador y nuevos controles responsivosPXTools: Nuevo generador y nuevos controles responsivos
PXTools: Nuevo generador y nuevos controles responsivos
 
APPlícate: Aplicaciones móviles para el desarrollo de la industria
APPlícate: Aplicaciones móviles para el desarrollo de la industriaAPPlícate: Aplicaciones móviles para el desarrollo de la industria
APPlícate: Aplicaciones móviles para el desarrollo de la industria
 
GeneXus 4 Students
GeneXus 4 StudentsGeneXus 4 Students
GeneXus 4 Students
 
La importancia de ser responsive
La importancia de ser responsiveLa importancia de ser responsive
La importancia de ser responsive
 
K2B: El ERP nativo para el mundo GeneXus
K2B: El ERP nativo para el mundo GeneXusK2B: El ERP nativo para el mundo GeneXus
K2B: El ERP nativo para el mundo GeneXus
 
GeneXus 15 (Salto)
GeneXus 15 (Salto)GeneXus 15 (Salto)
GeneXus 15 (Salto)
 
GeneXus Cloud Deployment Services. El camino a la nube.
GeneXus Cloud Deployment Services. El camino a la nube.GeneXus Cloud Deployment Services. El camino a la nube.
GeneXus Cloud Deployment Services. El camino a la nube.
 
LigaMX con GeneXus: De 0 a 1.700.000 de usuarios
LigaMX con GeneXus: De 0 a 1.700.000 de usuariosLigaMX con GeneXus: De 0 a 1.700.000 de usuarios
LigaMX con GeneXus: De 0 a 1.700.000 de usuarios
 
Innovando con GeneXus y SAP
Innovando con GeneXus y SAPInnovando con GeneXus y SAP
Innovando con GeneXus y SAP
 
Going mobile
Going mobileGoing mobile
Going mobile
 
Audit+: La mejor forma de auditar KB’s GeneXus
Audit+: La mejor forma de auditar KB’s GeneXusAudit+: La mejor forma de auditar KB’s GeneXus
Audit+: La mejor forma de auditar KB’s GeneXus
 
WW+, SD+ y Audit+: Potencie GeneXus la Suite Plus
WW+, SD+ y Audit+: Potencie GeneXus la Suite PlusWW+, SD+ y Audit+: Potencie GeneXus la Suite Plus
WW+, SD+ y Audit+: Potencie GeneXus la Suite Plus
 
Aproveche las ventajas de la colaboración entre GeneXus y Cloud Shared Office...
Aproveche las ventajas de la colaboración entre GeneXus y Cloud Shared Office...Aproveche las ventajas de la colaboración entre GeneXus y Cloud Shared Office...
Aproveche las ventajas de la colaboración entre GeneXus y Cloud Shared Office...
 

Recently uploaded

Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
Georgi Kodinov
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
rickgrimesss22
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
takuyayamamoto1800
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
Juraj Vysvader
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Globus
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
Donna Lenk
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
Shane Coughlan
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Neo4j
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
Globus
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
Globus
 
Pro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp BookPro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp Book
abdulrafaychaudhry
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
Aftab Hussain
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
Ortus Solutions, Corp
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Shahin Sheidaei
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Crescat
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Globus
 
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptxText-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
ShamsuddeenMuhammadA
 

Recently uploaded (20)

Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
 
Pro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp BookPro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp Book
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
 
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptxText-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
 

Laboratorio: Desarrollo para Smart Devices (continuación)

  • 1. GeneXus Salto Lab “Live Editing with Smart Devices applications”
  • 2. Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 2 Copyright 1988 - 2015| Artech Consultores S. R. L. All rights reserved. This document may not be reproduced in any form without the express permission of Artech Consultores S.R.L. The information contained herein is only for personal use. Registered Trademarks Artech and GeneXus are registered trademarks of Artech Consultores S.R.L. All other trademarks mentioned in this document are property of their respective owners.
  • 3. Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 3 Table of Contents Aim........................................................................................................................................4 Preparation............................................................................................................................4 Creating the Knowledge Base ........................................................................................4 Paso 1 – Initial Data Upload ..................................................................................................6 Step 2 – Executing the application ........................................................................................8 Activate Live Editing ..........................................................................................................8 Paso 3 – Adding Design with Live Editing............................................................................11 Step 4 – Adding functionality with Live Editing.....................................................................16 Thank you for participating! .................................................................................................17 Glossary..............................................................................................................................17
  • 4. Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 4 Aim In this Lab, you will be provided with a guide with the basic use of the new GeneXus Salto feature, Live Editing. The aim of this laboratory is to allow you to test one of the most important components of GeneXus next version, which will have a great impact on the development of applications through GeneXus. Preparation For this laboratory we will use GeneXus Salto version. You will find the icon to run it in the desktop with the name GeneXus Salto SD. We will also use SQL Server to handle the database of the application, and Android SDK, which has also been previously installed. We will make use of Genymotion application to emulate an Android device, which should be already running. Creating the Knowledge Base We will start creating the Knowledge Base with the following configuration:  Name = “LabLiveEditing<UserNumber>” UserNumber is written on the computer.  Directory = C:Models  Prototyping Environment = C# Environment  Under Advanced, set Server = “Lab<UserNumber>”, then check “Use Windows NT integrated Security”
  • 5. Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 5 We will now import objects from the web application which we will use as basis for our Smart Devices application. Now open Knowledge Manager>Import, click on the Navigation button […] and select GX25LabLiveEditing.xpz (Located under LabLiveEditing folder on the Desktop). We then click on Import>>. You will see an exemplary KB, reduced for the specific purposes of this laboratory. This KB will contain a basic sample of the Event Day Smart Device application.
  • 6. Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 6 Step 1 – Initial Data Upload In this lab, we will run our application on the cloud. In order to do so, we will set the following .Net Generator Properties in Preferences (in the Knowledge Base Navigator):  Deploy to cloud = yes  Deploy Virtual Directory = LABLiveEditing<GXtechnicalUser>  Deploy Server URL = http://apps5.genexus.com Also, set the Data Store properties:  Database name = LABLiveEditing<GXtechnicalUser>  Server Name = apps5.genexus.com After doing this, we select Run (Build > Run Developer Menu) for the application.
  • 7. Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 7 A home page like the one below will be displayed in the browser: We click on the Home link, which will take us to the home page for Web: We will then create a simple Smart Devices version of this Web model. Feel free to take a look at the Web application for a moment, if you wish to do so.
  • 8. Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 8 Step 2 – Executing the application We have 3 Transactions: Country, Speaker, and Session, which currently have the Work With Web and Work With Smart Devices patterns applied to them. Since the sample was already developed, we are now ready to run our application on Android. For this, we only need to specify Dashboard GeneXusMeeting will be the starting point of the application. This can be done through the Startup Object property in the .Net Environment. Activate Live Editing Before we run the application on the Emulator, we should first activate Live Editing mode in GeneXus so the application keeps connected to the IDE. For this we need to change the value of the Combo box located on the second row of the Toolbar, as shown on the following image. Set the value “Live Editing” instead of the selected value, “Release”. After doing this, we can run our application by clicking Run (F5). An instance of the application will run on the Android Emulator. Loading of the emulator may take a few minutes, it is recommended not to close it during the laboratory. Verify that Live Editing is activated by clicking “Live Editing” option on the Knowledge Base Navigator and checking that the green dot is On.
  • 9. Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 9 In the emulator, we load the Startup Object we had configured previously: the GeneXusMeeting Dashboard.
  • 10. Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 10 Get to know the Emulator: - See the list of Speakers and tap on any given person. - You will see his or her information (for example, name, photo, ID, etc.). - Select the "back" button to go back to the home page. Note: Do not closet the Emulator. This way you’ll avoid the emulator reopening every time you execute the application We can observe in the application is the style is set to “Light” (White background) and the Application Bar and Status Bar have a custom color. We can also see that the text on the Application Bar is Black which does not go properly with the application style. Let’s try and change that.
  • 11. Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 11 Step 3 – Adding Design with Live Editing We want to change the Text Color on the Application Bar to improve it stylishly. Open SimpleAndroid Theme located on the Folder View, under Customization > Themes. You can also do this by pressing Ctrl+O and searching through the search bar. We open ApplicationBars properties and change Forecolor property. Without saving or running the application again, check the emulator and you will see the Text Color on the Application Bar changed.
  • 12. Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 12 We will set the Forecolor property with the color White. Our application should look like this: We will now enter Work With Devices Speaker in the emulator. We will see a list of all the Speakers registered. If we Tap (click) on one of the speakers, an alternative Layout will show which includes the speaker’s Curriculum Vitae. Although, we can see that the text is not displaying properly and some parts are being cut off. To fix this we can enable Auto Grow property. In GeneXus, open Speaker transaction and go to Work With Smart Devices Pattern in the Patterns section. Select the List node and change the Grid’s Layout, through the arrow icon on the top-right corner of the Grid, and select Layout “Select”. Open SpeakerCVMini properties and change Auto Grow value to True.
  • 13. Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 13 If we go back to the emulator and Tap on one of the speakers, we will see the text is now displaying as expected. We now tap on the grey arrow shown when the speaker details are displayed to enter the Speaker’s profile. The attributes are all stacked up without any kind of design. Let’s modify this Layout to make it more attractive.
  • 14. Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 14 Go to GeneXus and open Section (General) in the Work With for Smart Devices for the Speaker Transaction. Feel free to check the emulator after any change. Let’s start by adding a Canvas control to the top of the table. Drag SpeakerImage attribute and drop it inside the Canvas (and move it near the center). Now let’s configure the following properties for SpeakerImage attribute:  Label Position = None (to remove the label)  Horizontal Alignment = Center  Vertical Alignment = Middle  Left = 50%  Width = 100dip  Top = 5dip  Height = 100dip We will also set Class = SpeakerImage. And we’ll do the same for the Canvas, setting Class = SpeakerCanvas.
  • 15. Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 15 Now, drag SpeakerFullName attribute inside the Canvas and set the following properties:  Label Position = None (to remove the label)  Class = CanvasName  Horizontal Alignment = Center  Vertical Alignment = Middle  Left = 0%  Width = 100%  Top = 100dip  Height = 35dip  ZOrder = 1 (to show it on top of the Image) Now, let’s clean the Layout a bit by removing redundant or useless information for the context. We’ll remove from the Layout SpeakerId, SpeakerName, SpeakerSurname and CountryId attributes. Reorder the rest of the attributes to which order you find the best and remove the rows left empty which are still taking some space on the Layout. Also set Label Position = none for CountryName, and do the same for SpeakerCVMini and Auto Grow = True. Before we finish with this Layout, we open SimpleAndroid Theme and modify the Class SpeakerImage (under Image node), setting BorderRadius = 100dip. As we see the image wasn’t correctly scaled, so we also change the property Scale Type = Fill Keeping Aspect Ratio. The Layout should now look similar to this:
  • 16. Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 16 Step 4 – Adding functionality with Live Editing Before we end this Lab we will use Live Editing to add a new functionality we want to include in the Event Day application. We go to the emulator, and get back to the Dashboard to go into Work With Devices Session and select a session. We want to add a button to the Application Bar which allow us to “Like” the session. Let’s get back to GeneXus, open WorkWithDevicesSession and select Section (General). There we add a button to the Application Bar and associate the Event ‘Like’. Then we define the Event with the following code: Event 'Like' composite SessionLikesQty+=1 &Session.Load(SessionId) &Session.SessionLikesQty = SessionLikesQty &Session.Save() SDActions.Refresh() endcomposite Endevent
  • 17. Laboratorio GeneXus Salto. “Aplicaciones Smart Device” | 17 Thank you for participating! Glossary My First Android Application http://wiki.genexus.com/commwiki/servlet/hwikibypageid?14555 Applying Work With Pattern for Smart Devices http://wiki.genexus.com/commwiki/servlet/hwikibypageid?15975 Multiple Layouts per Row http://wiki.genexus.com/commwiki/servlet/hwikibypageid?22545 Using SD Image Gallery Control http://wiki.genexus.com/commwiki/servlet/hwikibypageid?15308 Live Editing http://wiki.genexus.com/commwiki/servlet/hwikibypageid?27805