Contacts browsing

Printer-friendly versionSend to friendPDF version
Intermediate

This sample code has been developed by Streamezzo.
Its purpose is to illustrate how to browse the device contacts.

<%@page import="com.streamezzo.odp.utils.ShapeUtils" %> <% int screenWidth = userAgent.getScreenWidth(); int screenHeight = userAgent.getScreenHeight(); %>
" colorBits="8" lengthBits="16" resolution="1" idBits="16" scaleBits="15" encodingType="0"/> <% final int nbVisibleItems = 5; final String indexVarName = "indexvar"; %> <% String idT = "NULLID,"; String idS = "HasPrev,"; String idH = "NoPrev,"; for (int i = 0; i < nbVisibleItems; i++) { String def = "IdText_" + i; idT += def + ","; idS += "NULLID" + ","; idH += "NULLID" + ","; %> " string="*"/> <% } idT += "NULLID"; idS += "HasNext"; idH += "NoNext"; %> <% StzUrl setFilter = stzRequest.getURLMaker().createUrlForBrowserCommand("pk_setFilter"); setFilter.addParameter("name", "ContactsWithPhoneNumber"); setFilter.addParameter("expr", "LASTNAME != '' BY_ASC FIRSTNAME"); %> <% for (int i=0 ; i " field="Text.string" stringvalue=""/> <% } %> <% StzUrl loadContacts = stzRequest.getURLMaker().createUrlForBrowserCommand("pk_loadID"); loadContacts.addParameter("filter", "ContactsWithPhoneNumber"); loadContacts.addParameter("idT", idT); loadContacts.addParameter("idS", idS); loadContacts.addParameter("idH", idH); loadContacts.addParameter("index", indexVarName); %> "> <% for (int i=0 ; i <% } %> <% for (int i=0 ; i " url="<%= "cmd://pk_getAttr?name=LASTNAME&target="+("DisplayText_" + i) %>"> " name="id"/> <% } %> <% for (int i=0 ; i " field="Text.string" stringvalue=""/> " field="Action.startTime" timevalue="NOW"/> <% } %> "> " active="false"> " active="false">
AttachmentSize
Contacts_browsing.swz577.65 KB
Share this