Documentos de Académico
Documentos de Profesional
Documentos de Cultura
60
60
Agenda
Aplicaciones SOA
Contundencia
Ejecutando
Desarrollando
Contundencia: Paging
Contundencia: Paging
if not &PageNumber.IsEmpty() &CountRec = 0 &CountPage = 1 for each &CountRec += 1 if &CountPage < &PageNumber if &CountRec = &PageSize &CountRec = 0 &CountPage += 1 endif else &SdtOutItem.CampoId = ClientId &SdtOutItem.CampoDsc = ClientName &SdtOut.Add(&SdtOutItem) &SdtOutItem = new() if &CountRec = &PageSize exit endif endif endfor endif
Procedure
Contundencia: RSS
Ejecutando
Desarrollando
Generacin X
Generacion X
Componentes bsicos:
Grupos Elementos Variables
Passengers { Passenger { Id = PassengerId Name = PassengerName Phone = PassengerPhone &quantity += 1 } Amount = &quantity }
Generacion X
Opciones avanzadas
Clusula Default Clusulas de Paginado Clusula NoOutput Clusula Input
Generacion X
Opciones avanzadas
Clusula Default
(~ When none)
CurrentTaxes Where TaxInitialDate >= today() Where TaxFinalDate <= today() { VAT = TaxVAT Income = TaxIncome } CurrentTaxes [Default] { VAT = 0.7 Income = 0.3 }
Generacion X
Opciones avanzadas
Clusulas de Paginado: Count y Skip
Customers { Customer [Count = 20] [Skip = 100] { Code = CustomerId Name = CustomerName } }
Generacion X
Opciones avanzadas
Clusula NoOutput
Employees { Employee { Id = EmployeeId Name = EmployeeName EarningInfo [NoOutput] Where IsAutorized(&UserId) { Salary = EmployeeSalary Bonus = EmployeeBonus } } }
<Employees> <Employee> <Id>123</Id> <Name>John Doe</Name> <EarningInfo> <Salary>30000</Salary> <Bonus>5000</Bonus> </EarningInfo> </Employee> ... </Employees>
<Employees> <Employee> <Id>123</Id> <Name>John Doe</Name> <Salary>30000</Salary> <Bonus>5000</Bonus> </Employee> ... </Employees>
Generacion X
Opciones avanzadas
Clusula Input
VerySimple { Month Input &i = 1 to 12 { MonthNumber = &i } }
CustomersFromAnotherDataProvider { &CustomersSDT = GetCustomers() // a DataProvider that Outputs Customers collection Customer Input &Customer in &CustomersSDT { Id = &Customer.Code Name = &Customer.Name } }
Generacion X
Outpu
&rss = RSS() // RSS es un DP que carga los datos &response.addstring(&rss.toxml(true)) For &Var in DataProvider(par1, , parN) &Var.SomeElement Endfor
I have a dream
lmurillo@artech.com.uy