Search PalmPower Enterprise Edition's 188 Palm-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Using coolets in an enterprise environment (continued)

CURSOR au_cur (hpcode varchar2) IS
SELECT 'PARTNERID=XXXXX||RECORDID='|| TO_CHAR(USER_ID) || '||LAST_NAME=' || rtrim(last_name) || '||FIRST_NAME=' || rtrim(first_name) || '||TITLE=' || decode(title_code,1,'Mr.',2,'Mrs.',3,'Miss',4,'Dr.',5,'Ms.',' ') ||
'||COMPANY=' || rtrim(u.institute_id) || '||ADDRESS=' || building || building_sufx || floor || wing || room || room_sufx || '||CITY=BETHESDA||STATE=MD||COUNTRY=USA' || '||EMAIL=' || substr(rtrim(E_MAIL_ADDRESS),1,50) || '||WORK_PHONE=' || to_char(phone_num) || '||FAX=' || to_char(fax_no) || '||NOTE= USERID(' || TO_CHAR(USER_ID) || ') MAIL ADDRESS IS ' || MAIL_ADDRESS || ' HP AREA IS ' || HP_CODE || '||' AUCOOLA
from oracle8.users u, oracle8.institutes i where u.institute_id = i.institute_id and u.status = 'A' and u.authorized = 'Y' and (u.hp_code=hpcode);

aurec au_cur%ROWTYPE;

Cursor MEMO_CUR is used to generate the hidden fields for an HTML form that will contain a coolet for synchronizing the Memo Pad.

CURSOR memo_cur is
select 'PARTNERID=12345||RECORDID='|| SUBSTR(S.section_name,1,66) || '||TITLE='||S.SECTION_NAME || '||NOTE=' || S.section_topic || '||' MEMOCOOLA from oracle8.sections s where s.disable='Y';

memorec memo_cur%rowtype;
i integer;

Build the HTML page to display the coolet using the Oracle PL/SQL Web Toolkit packages.

BEGIN
htp.htmlOpen;
htp.headOpen;
htp.title( 'Coola Web Site');
htp.print('<META HTTP?EQUIV="expires" CONTENT="0">');
htp.print( '<SCRIPT LANGUAGE="javascript" SRC="http://www.coola.com/coolascripts.js";>' );
htp.print('</SCRIPT>' );
htp.print('<link rel="stylesheet" href="/webhtml/nihstyles1.css">');
htp.headClose;
htp.bodyOpen(cattributes =>'class ="bodycopy1"');

Generate the form containing hidden fields for the Address Book coolet using the AU_CUR cursor.

htp.formOpen( curl => 'http://www.coola.com/cgi?bin/addinfo.cgi', cmethod => 'POST',cattributes =>'onsubmit="coolapopup()" TARGET="coolawindow"');
i:=0;
for aurec in au_cur(hpcode) loop
i := 1;
htp.formHidden(cname => 'ADDRESS', cvalue => AUREC.AUCOOLA);
end loop;
htp.tableOpen( calign => 'CENTER', cattributes => ' border="1" cellspacing="0" cellpadding="0" width="100%"' );
htp.tableRowOpen;
htp.tableData( htf.centerOpen ||
'<B>This Snap shot syncs the data for Authorized Users in HP Area ' || hpcode || '</B>' ||
htf.centerClose,cattributes =>'width = "100%"');
htp.tableRowClose;
htp.tableRowOpen;
if i != 0 then
htp.tableData( '<input type=image name = "Coola ?Sync Authorized Users to palm" ALT="Coola ?Sync Authorized Users to palm" src="http://www.coola.com/images/synctopalm.gif"; align="bottom" border="0">', cattributes => ' width="100%"', calign => 'CENTER');
else
htp.tableData( '<B>No Authorized Users for this HP Area</B>', cattributes => ' width="100%"', calign => 'CENTER');
end if;
htp.tabLERowClose;
htp.tableClose;
htp.formClose;


« Previous  ·  1  ·  2  ·  3  ·  4  ·  5  ·  Next »
Other articles you might like
Home > Phones and PDAs > Palm and Treo > Programming (24 articles)
   How PDA software is born
   Program with Simplicity
   Kinectivity 2.0 brings enterprise application developers new tools
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
More from the ZATZ journals
Computing Unplugged: Make Mafia Wars an offer it can't refuse
David Gewirtz Online: CNN commentary and analysis
DominoPower: Application development, William Shatner, and the origin of the universe
OutlookPower: Removing an Office installation that doesn't want to go away
-- Advertisement --

BLOGGING AND PODCASTING WITH ONE EASY-TO-USE TOOL
Now you can publish your thoughts, opinions, and comments in your own blog or podcast.<p />

  • Supports multiple authors and multiple blogs or podcasts.
  • Generate and publish RSS feeds for iTunes and other directories.
  • Post photos, images or animations.
  • Get feedback and have conversations with visitors to your site. <p />

Personalize your blog or podcast with your own unique domain name -- or integrate it with your existing site by setting it up as a subdomain.

Tap here and get blogging or podcasting within minutes.

-- Advertisement --

SECURE YOUR SITE WITH AN IRONCLAD SSL CERTIFICATE
An IronClad SSL Certificate helps you build an impenetrable fortress around your customer's credit card information. IronClad SSL Certificates are:

  • Fully validated
  • Up to 256-bit encryption
  • Up to 10 years validity
  • Stringent authentication
  • Around-the-clock customer support

Build trust. Protect your customers. Grow your online business.

Tap here now and be IronClad with SSL tonight.

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 2000-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login