SlideShare uma empresa Scribd logo
1 de 17
Baixar para ler offline
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

Mais conteúdo relacionado

Semelhante a 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 DevicesGeneXus
 
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 guideWilliam McIntosh
 
Work spaceconnect 2.0 user guide
Work spaceconnect 2.0 user guideWork spaceconnect 2.0 user guide
Work spaceconnect 2.0 user guideWilliam 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 emulationAnshul 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 appekipaco
 
IOS Swift language 1st Tutorial
IOS Swift language 1st TutorialIOS Swift language 1st Tutorial
IOS Swift language 1st TutorialHassan 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 outletsveeracynixit
 
UILayout plug-in for APEX
UILayout plug-in for APEXUILayout plug-in for APEX
UILayout plug-in for APEXTobias Arnhold
 
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 servicesDavid Voyles
 
Promethean ActivInspire IWB Introduction
Promethean ActivInspire IWB IntroductionPromethean ActivInspire IWB Introduction
Promethean ActivInspire IWB IntroductionChristyBusch
 

Semelhante a 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
 

Mais de GeneXus

After Chatbots Yo (Ro) Bots
After Chatbots Yo (Ro) BotsAfter Chatbots Yo (Ro) Bots
After Chatbots Yo (Ro) BotsGeneXus
 
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 ActionGeneXus
 
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 futuroGeneXus
 
Sd y Plataformas
Sd y PlataformasSd y Plataformas
Sd y PlataformasGeneXus
 
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 responsivosGeneXus
 
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 industriaGeneXus
 
GeneXus 4 Students
GeneXus 4 StudentsGeneXus 4 Students
GeneXus 4 StudentsGeneXus
 
La importancia de ser responsive
La importancia de ser responsiveLa importancia de ser responsive
La importancia de ser responsiveGeneXus
 
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 GeneXusGeneXus
 
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 usuariosGeneXus
 
Innovando con GeneXus y SAP
Innovando con GeneXus y SAPInnovando con GeneXus y SAP
Innovando con GeneXus y SAPGeneXus
 
Going mobile
Going mobileGoing mobile
Going mobileGeneXus
 
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 GeneXusGeneXus
 
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 PlusGeneXus
 
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
 

Mais de 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...
 

Último

Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceanilsa9823
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 

Último (20)

Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 

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