Focal Point
[SOLVED] SMS Text Message via Report Caster

This topic can be found at:
http://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/87510091

February 24, 2009, 01:37 PM
LDW
[SOLVED] SMS Text Message via Report Caster
Has anyone tried to use ReportCaster to send text messages? I can initiate the message using the carrier's email format such as 3335551212@att.mail.net in which the carrier converts the email to SMS format and forwards to the recipient's mobile phone, however, the recieved message is html code, rather than the actual message.

Any suggestions?

This message has been edited. Last edited by: <Kathryn Henning>,


7.6.8
Windows xp
html
February 24, 2009, 01:42 PM
Darin Lee
What would be the content of the message? A report? Try changing the output type to alpha and make sure it is inline rather than an attachment.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
February 24, 2009, 01:45 PM
LDW
The inline feature does work. I tried alpha format and still received html code in the message.

The content of the message is a notification that a reimbursement has been paid and a deposit has been completed to the recipient's bank account.


7.6.8
Windows xp
html
February 24, 2009, 03:11 PM
Frans
You could try output format WP


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
February 24, 2009, 03:19 PM
FrankDutch
No Frans

format WP gives you in the end HTML code and not flat text.
Inline was the solution.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

February 25, 2009, 09:06 AM
LDW
Thanks everyone. I will keep trying and if I get one format to work, I will be sure to post it here.


7.6.8
Windows xp
html
November 20, 2014, 10:35 AM
gregv
Has anyone done this or experimented with this?
I'd like to hear more about putting out text messages using RC.
Thanks.



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
November 20, 2014, 04:43 PM
prodrigu
LDW,

I never tried to use Report Caster but I know I can send a text message from a .fex file.

Please look at the below code. Also, when you execute the procedure with the code below it takes about 20 seconds before you get the text message.

  
-SET &HOUR = EDIT(&TOD,'99');
-SET &M = IF &TOD GT '12.00.00' THEN 'pm' ELSE 'am';
-SET &FLAG = IF &TOD GT '13.00.00' THEN 1 ELSE 0 ;
-SET &HOUR = IF &FLAG IS 1 THEN &HOUR - 12 ELSE &HOUR ;
-SET &MINUTES = EDIT(&TOD,'$$$99');
-SET &SECONDS = EDIT(&TOD,'$$$$$$99');
-SET &TIME = &HOUR | ':' | &MINUTES | &M;
-TYPE TIME = (&TIME)

-SET &DATE_TIME = &DATEMDYY |' '| &TIME;
-TYPE DATE/TIME = (&DATE_TIME)

TABLE FILE CAR
PRINT COUNTRY CAR MODEL BODYTYPE SEATS DEALER_COST RETAIL_COST SALES LENGTH WIDTH HEIGHT WEIGHT WHEELBASE FUEL_CAP BHP RPM MPG ACCEL
WHERE RECORDLIMIT EQ 5;
END
-RUN


-SET &TOVAR      = '2095555555@vtext.com';

SET ASNAMES=ON

EX EDAMAIL &TOVAR.EVAL; ,  ,  ,  ,  ,&FOCFEXNAME Finished running at &TIME


-*Your target's e-mail address depends on his mobile provider:
-*
-*Provider 		Format
-*Sprint 		phonenumber@messaging.sprintpcs.com
-*Verizon 		phonenumber@vtext.com
-*T-Mobile 		phonenumber@tmomail.net
-*AT&T 			phonenumber@txt.att.net
-*AIM +1		phonenumber



Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats
November 20, 2014, 06:54 PM
gregv
This works great!
Thanks prodrigu.
The only change I had to make to get it to work, for me, was add a FROM address.
Thanks again.



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
November 20, 2014, 07:07 PM
prodrigu
gregv,

If I may ask what does the code look like now with the From Address?

Thanks,
prodrigu


Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats
November 21, 2014, 09:29 AM
gregv
Sure. Here it is.
APP PREPENDPATH IBISAMP
-SET &HOUR = EDIT(&TOD,'99');
-SET &M = IF &TOD GT '12.00.00' THEN 'pm' ELSE 'am';
-SET &FLAG = IF &TOD GT '13.00.00' THEN 1 ELSE 0 ;
-SET &HOUR = IF &FLAG IS 1 THEN &HOUR - 12 ELSE &HOUR ;
-SET &MINUTES = EDIT(&TOD,'$$$99');
-SET &SECONDS = EDIT(&TOD,'$$$$$$99');
-SET &TIME = &HOUR | ':' | &MINUTES | &M;
-TYPE TIME = (&TIME)

-SET &DATE_TIME = &DATEMDYY |' '| &TIME;
-TYPE DATE/TIME = (&DATE_TIME)

TABLE FILE CAR
PRINT COUNTRY CAR MODEL BODYTYPE SEATS DEALER_COST RETAIL_COST SALES LENGTH WIDTH HEIGHT WEIGHT WHEELBASE FUEL_CAP BHP RPM MPG ACCEL
WHERE RECORDLIMIT EQ 5;
END
-RUN


-SET &TOVAR      = '9999999999@vtext.com';

SET ASNAMES=ON
EX EDAMAIL &TOVAR.EVAL ,&TOVAR.EVAL  ,'TEST4'  ,  ,  ,&FOCFEXNAME Finished running at &TIME


-*Your target's e-mail address depends on his mobile provider:
-*
-*Provider 		Format
-*Sprint 		phonenumber@messaging.sprintpcs.com
-*Verizon 		phonenumber@vtext.com
-*T-Mobile 		phonenumber@tmomail.net
-*AT&T 			phonenumber@txt.att.net
-*AIM +1		phonenumber
  




Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
November 21, 2014, 10:56 AM
David Briars
Thank you very much for your posts prodrigu and gregv.

I had just received a new requirement, within the last couple of days, to send out alerts/reports, and didn't know about the EDAMAIL application tool.

I see it now, in the 'Developing Reporting Applications' manual bigger than life.

From my research, it looks like EDAMAIL was a new feature in one of the 7.x releases.

This example, is working fine for me:
APP PREPENDPATH IBISAMP
TABLE FILE EMPLOYEE
"HR Report"
PRINT LAST_NAME
      FIRST_NAME
      DEPARTMENT
      CURR_SAL
ON TABLE SET PAGE NOPAGE
ON TABLE HOLD AS MYFILE FORMAT HTML
END
-RUN
-*
-MRNOEDIT EX EDAMAIL x@x.org, x@x.org , Test Report ,  , HTML , MYFILE  

Thank you, again.




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
November 24, 2014, 09:05 AM
njsden
Very nice indeed. Time to read some documentation. Smiler



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
November 25, 2014, 09:02 AM
George Patton
Very cool.

Here are some number formats for Canadian providers:

Rogers Wireless: [10-digit phone number]@pcs.rogers.com
Fido: [10-digit phone number]@fido.ca
Telus: [10-digit phone number]@msg.telus.com
Bell Mobility: [10-digit phone number]@txt.bell.ca
Kudo Mobile: [10-digit phone number]@msg.koodomobile.com
MTS: [10-digit phone number]@text.mtsmobility.com
President’s Choice: [10-digit phone number]@txt.bell.ca
Sasktel: [10-digit phone number]@sms.sasktel.com
Solo: [10-digit phone number]@txt.bell.ca
Virgin: [10-digit phone number]@vmobile.ca


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
November 25, 2014, 01:15 PM
njsden
Thanks George. That list is very helpful.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
November 26, 2014, 09:02 AM
stur0063
Where does one read about EDAMAIL? I see no reference in my App Studio help. I wasn't even aware it existed.


webFOCUS 8207.15
WindowsServer 2019
November 26, 2014, 09:09 AM
gregv
As mentioned by David Briars:
quote:
in the 'Developing Reporting Applications' manual




Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8