Actionscript used in cfsavecontent vs cfformitem (type="script")
I'm still trying to grasp why cfsavecontent is oft used in
conjunction with cf flash rich forms. What would be the main
impetus for using actionscript contained in cfsavecontent vs. using
actionscript contained in the form (<cfformitem
type="script">). Just trying to grasp this essential issue and
can't seem to find it explained anywhere.
Thanks!!!
Tony Patch
Tony,
My guess is that they had their apps written before the 7.01
updater which added the type="script" attribute for cfformitem.
Everything I have seen points to using the new functionality. Not a
very "geek" answer.
Steve
Similar Messages
-
Cannot create a date in cfformitem type="script"
I tried to create date variables using "new Date" in
cfformitem type="script" and got an error about the "new" reserver
word. Therefore, I removed the "new" and tested the script. It
worked with the wrong result because the todayDate and selectedDate
in the CheckDate2 were the same. By some reason, it ignored all the
input parameters. However, everything worked fine in the
cfsavecontent.
Anyone has idea? Thanks in advance.
Here is the script:
<cfsavecontent variable="CheckDate1">
var todayDate = new Date(myForm.todayYear,
myForm.todayMonth, myForm.todayDate, 0, 0, 0, 0);
var selectedDate = new Date(
myForm.select_date1.substr(6, 4),
myForm.select_date1.substr(0, 2) - 1,
myForm.select_date1.substr(3, 2),
0, 0, 0, 0
alert("Today's Date in the cfsavecontent:\n" + todayDate +
"\n\n" +
"Seleced Date in the cfsavecontent:\n" + selectedDate);
if (selectedDate > todayDate)
alert("You cannot select a date greater than today's date");
else
alert("You are ok.");
</cfsavecontent>
<cfform name="myForm" format="Flash">
<cfformitem type="script">
function CheckDate2():Void
var todayDate = Date(myForm.todayYear, myForm.todayMonth,
myForm.todayDate, 0, 0, 0, 0);
var selectedDate = Date(
myForm.select_date2.substr(6, 4),
myForm.select_date2.substr(0, 2) - 1,
myForm.select_date2.substr(3, 2),
0, 0, 0, 0
alert("Today's Date in the cfformitem:\n" + todayDate +
"\n\n" +
"Seleced Date in the cfformitem:\n" + selectedDate);
if (selectedDate > todayDate)
alert("You cannot select a date greater than today's date");
else
alert("You are ok.");
</cfformitem>
<CFCALENDAR name="select_date1" height="150" width="310"
onchange="#CheckDate1#">
<CFCALENDAR name="select_date2" height="150" width="310"
onchange="CheckDate2()">
<cfinput type="text" name="todayYear"
value="#DateFormat(Now(), 'yyyy')#" label="todayYear">
<cfinput type="text" name="todayMonth"
value="#DateFormat(Now(), 'm') - 1#" label="todayMonth">
<cfinput type="text" name="todayDate"
value="#DateFormat(Now(), 'd')#" label="todayDate">
</cfform>> I am using CF 7.0.2.
Good. That's that sorted.
> The problem is the cfformitem does not allow
“new” or other reserved words
As I'm sure you're already aware, it is so by design. For
security reasons, the Coldfusion Flash form compiler does not allow
the creation of objects in an event handler. It therefore prohibits
the use of the "new" keyword in an event handler script. In fact,
It may not even allow its occurrence in a comment!
> When I put the function in a .as file and include it in the
CFM file or use
> cfsavecontent to store the as function, the CF compiler
accepts the reserved
> word “new” and the script works fine.
It's a hack, one design gremlin that got away. In programming
as in nature there are (un)lucky accidents.
> the Date constructor ignores the input parameters and
creates the
> current system date in the date objects.
We should be glad it even gets that far. Without the "new"
keyword, it should not be possible to create a new Date object. The
flash compiler encounters a familiar constructor pattern, and
simply makes do by creating the default date of today, right down
to hours, minutes and seconds. Your arguments are ignored.
Thus, the following will all return the same result, namely,
the date of today.
var todayDate = Date(myForm.todayYear, myForm.todayMonth,
myForm.todayDate, 0, 0, 0, 0);
var todayDate = Date(myForm.todayYear, myForm.todayMonth,
myForm.todayDate);
var todayDate = Date(0);
var todayDate = Date(100000000000);
var todayDate = Date();
Even then, the todayDate variable doesn't behave properly
like a Date object. For example, function calls like
todayDate.getDate() fail. Comparing dates also fails. That is
possibly because the machine cannot cast the todayDate variable.
However, here is an approach that does what you want.
<cfformitem type="script">
function CheckDate2() {
var todayDate:Date = Date();
var todayDateInMillis =
Date.UTC(myForm.todayYear,myForm.todayMonth,myForm.todayDate);
var selected_date:Date = select_date2.selectedDate;
var selected_dateInMillis = selected_date.getTime();
alert("Today's Date from cfformitem tag :\n" + todayDate +
"\n\n" + "Selected Date from cfformitem tag:\n" + selected_date);
if (selected_dateInMillis > todayDateInMillis) alert("You
cannot select a date greater than today's date");
else
alert("You are ok.");
</cfformitem> -
How to use default cftree icons in action script?
How do you reference the default cftree node icons from an
action script? I found this information in the flex documentation
but I can't figure out how to reference the icons from my
<cfformitem type="script">. Is this possible?
http://www.flex2doc.com/projects/framework/asdoc/mx/controls/Tree.html
defaultLeafIcon="TreeNodeIcon in assets.swf"
disclosureOpenIcon="TreeDisclosureOpen in assets.swf"
folderClosedIcon="TreeFolderClosed in assets.swf"
folderOpenIcon="TreeFolderOpen in assets.swf"CROSS-POSTED to: ColdFusion and Flash Integration
-
How to SIMPLY use the %DIMENSION_TO_SET% variables into logic scripts
hello,
I'm using a prompt of type "COPYMOVE" or "COPYMOVEINPUT". In this type of prompt, there are 2 columns of dimension members list, one for defining the "source zone" and one for defining the "target zone" of logics.
The left colum of the prompt (for source zone) feeds the variables %DIMENSION_SET% : %ACCOUNT_SET%, %ENTITY_SET%, %CATEGORY_SET%, etc...and these variables can be used in the logic scripts in *XDIM_MEMBERSET instructions for example.
The right colum of the prompt feeds the variables %DIMENSION_TO_SET% : %ACCOUNT_TO_SET%, %ENTITY_TO_SET%, %CATEGORY_TO_SET%, etc...and I don't know how to SIMPLY use these variables in the logic scripts.
I've found a tricky way to do that but I meet 2 problems :
- it is complicated
- the multi-info instruction (BEGININFO/ENDINFO) seems to be bugged as blank lines are added all the time in the code and sometimes I have to wait for minutes when I try to modifiy the package code through BPC for excel eData/modify package menu.
So the question is how to SIMPLY get the %DIMENSION_TO_SET% variables into logic scripts and use them ? Thanks, R.
Here is the tricky package code I use at this time (I build one function for each %DIMENSION_TO_SET% variable and I pass these functions to the logic) :
PROMPT(COPYMOVE,,,,"ACCDETAIL,ACCOUNT,CATEGORY,DATASRC,ENTITY,TIME,YEARS")
TASK(Execute formulas,USER,WS-WW\PlauchuR)
TASK(Execute formulas,APPSET,US)
TASK(Execute formulas,APP,SV)
TASK(Execute formulas,SELECTION,D:\BPC\Data\WebFolders\US\SV\PrivatePublications\PlauchuR\TempFiles\FROM_1561_.TMP)
TASK(Execute formulas,TOSELECTION,D:\BPC\Data\WebFolders\US\SV\PrivatePublications\PlauchuR\TempFiles\TO_1561_.TMP)
BEGININFO(%FSS%)
*FUNCTION TARGETACCDETAIL=%ACCDETAIL_TO_SET%
*FUNCTION TARGETACCOUNT=%ACCOUNT_TO_SET%
*FUNCTION TARGETCATEGORY=%CATEGORY_TO_SET%
*FUNCTION TARGETDATASRC=%DATASRC_TO_SET%
*FUNCTION TARGETENTITY=%ENTITY_TO_SET%
*FUNCTION TARGETTIME=%TIME_TO_SET%
*FUNCTION TARGETYEARS=%YEARS_TO_SET%
ENDINFO
TASK(Execute formulas,FORMULASCRIPT,%FSS%)
TASK(Execute formulas,LOGICFILE,D:\BPC\Data\WebFolders\US\SV
..\AdminApp\SV\_TEST.Lgf)
TASK(Execute formulas,RUNMODE,1)
TASK(Execute formulas,LOGICMODE,1)
Edited by: ALEXANDRE BEDIER on Jun 16, 2010 3:15 PMhello,
finally I've discovered that there is no need of BEGININFO instruction.
One can pass several functions to a logic with one FORMULASCRIPT task. The functions definitions have to be separated by instructions. See below :
PROMPT(COPYMOVEINPUT,%FTARGETS%,,"select source and target zone for category and datasource.","ACCDETAIL,ACCOUNT,CATEGORY,DATASRC,ENTITY,TIME,YEARS")
TASK(Execute formulas,FORMULASCRIPT,*FUNCTION TACCDETAIL=%ACCDETAIL_TO_SET% *FUNCTION TACCOUNT=%ACCOUNT_TO_SET% *FUNCTION TCATEGORY=%CATEGORY_TO_SET% *FUNCTION TDATASRC=%DATASRC_TO_SET% *FUNCTION TENTITY=%ENTITY_TO_SET% *FUNCTION TTIME=%TIME_TO_SET% *FUNCTION TYEARS=%YEARS_TO_SET%)
TASK(Execute formulas,USER,%USER%)
TASK(Execute formulas,APPSET,%APPSET%)
TASK(Execute formulas,APP,%APP%)
TASK(Execute formulas,SELECTION,%SELECTIONFILE%)
TASK(Execute formulas,LOGICFILE,%APPPATH%\..\AdminApp\%APP%\_TEST.LGF)
TASK(Execute formulas,RUNMODE,1)
TASK(Execute formulas,LOGICMODE,1)
Then one will be able to use the functions TACCDETAIL, TCATEGORY, TACCOUNT,... in the logic script.
Edited by: ALEXANDRE BEDIER on Jun 24, 2010 10:31 AM
Edited by: ALEXANDRE BEDIER on Jun 24, 2010 10:33 AM -
How to use Symbols or icons in SAP script
Hai ,
I am facing one problem in sap script , I want to display one of my field as icon (or )symbol ( tick mark ) in sap script . how to do . Particular transfer order ( check LTAP table ) having 10 line items . In 8 line items are confirmed ( pquit = 'X') others not confirmed . if LTAP-pquit = 'X' then instead of 'X' i need tick mark symbol .Icons and symbols in SAPscript texts
To print these, use output devices whose device type uses one of the following printer drivers:
· HPL2 (PCL-5 printers, such as HPLJ4, HPLJ5, HPLJ5SI, or HPLJ4000)
· POST (PostScript printers, such as POSTSCPT, or POST2)
· PRES (PRESCRIBE printers, such as KYOFS150, or KYOFS170)
· SWIN (device types SAPWIN/SWIN and country-specific versions)
Icons and symbols in ABAP lists
If you also want to print these characters in lists, you must define an output device with one of the following device types:
· HPLJ4000/HPLJ5000/HPLJ1100: Device types for PCL-5-printers
· KYOFS170: Device type for Prescribe II printers
· POST2: Device type for PostScript Level 2 printers
· SAPWIN/SWIN and the country-specific versions: generic, that is, device-independent device type for printing using Microsoft Windows -
Regarding how to use the function module *control_form* in scripts
HI friends,
Can any one tell why and where do we use the function module control_form in scripts. Can you give me a small scenario how to use in scripts.hi satish,
by using this function module we can pass the control
commands to FORM THROUGH ABAP/4 PROGRAM.
see the following example:
TABLES: kna1.
DATA: BEGIN OF it_kna1 OCCURS 0,
kunnr LIKE kna1-kunnr,
name1 LIKE kna1-name1,
ort01 LIKE kna1-ort01,
land1 LIKE kna1-land1,
END OF it_kna1.
DATA:records TYPE i,
window TYPE i value 1.
select-options:s_kunnr for kna1-kunnr.
SELECT kunnr name1 ort01 land1 FROM kna1 INTO TABLE it_kna1
where kunnr in s_kunnr.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
form = 'ZSCRIPT4'
language = sy-langu.
LOOP AT it_kna1.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'ELE1'
function = 'SET'
type = 'BODY'
window = 'MAIN'.
DESCRIBE TABLE it_kna1 LINES records.
IF window lt records.
window = window + 1.
CALL FUNCTION 'CONTROL_FORM'
EXPORTING
command = 'NEW-WINDOW'
EXCEPTIONS
UNOPENED = 1
UNSTARTED = 2
OTHERS = 3
ENDIF.
ENDLOOP.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT =
RDI_RESULT =
TABLES
OTFDATA =
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SEND_ERROR = 3
SPOOL_ERROR = 4
CODEPAGE = 5
OTHERS = 6
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
thanks,
raji -
Standard driver programs,output type ,scripts,smartforms for SD reports
hi experts,
Can any one list all the standard driver programs,output types ,scripts,smartforms for SD reports.
maniHi,
Check this out
NACE
You can track the form and the print program used for that form
The Tcode NACE is used to link the Standard SAP forms (SCRIPTFORM or SMARTFORM) or the customized form or the new form to its respective print programs. Also the output types, Form entry are linked with their forms and print programs. In short term, i can tell u that configuration or customization of forms to print programs, assigning output types, form entry to the forms are done using this Tcode.
NACE is used to create output type while creating the output type you will mention forms, and driver program.
that will be maintained in the table TNAPR.if you create the output type using NACE then it will be automatically visible in table NAST and TNAPR.
so check in NAST, TNAPR table
http://help.sap.com/saphelp_erp2005/helpdata/en/c8/1989fe43b111d1896f0000e8322d00/frameset.htm
Condition records in NACE?
and
NACE is used for message control customizing.
Take a look at the following link
http://help.sap.com/saphelp_nw04/helpdata/en/c8/198a1843b111d1896f0000e8322d00/frameset.htm
and also
NACE is used for message control customizing.
Take a look at the following link
http://help.sap.com/saphelp_nw04/helpdata/en/c8/198a1843b111d1896f0000e8322d00/frameset.htm
If it helps reward with points.. -
How to use DBMS_JOB to run the OWB scripts?
Can anyone pls explain how I can use the DBMS_JOB to run the scripts which are generated by OWB.
SuroopCREATE OR REPLACE PACKAGE "LOAD_DATAMART"
AS
TYPE t_global IS RECORD
( plsql_map VARCHAR2(50) := 'transactions_map_exp', -- Default mapping plsql program
plsql_map_main VARCHAR2(50) := 'transactions_map_exp.main', -- Default mapping plsql main program
servers NUMBER(2) := 19, -- Default concurrent loading servers
max_reloads NUMBER(3) := 3 , -- Default maximum load retrys
mail_sender VARCHAR2(99) := '"Certegy Data Warehouse"', -- Default Mail Sender
mail_notice VARCHAR2(99) := '[email protected]', -- Default Recepient Notification
mail_error VARCHAR2(99) := '[email protected]' -- Default Recepient for Errors.
GLOBAL t_global ;
PROCEDURE start_monitor_load(p_date IN DATE);
PROCEDURE monitor_load( p_date IN DATE , p_dwh_load# IN NUMBER DEFAULT NULL, p_servers IN NUMBER DEFAULT GLOBAL.servers );
PROCEDURE start_load(p_dwh_load# IN NUMBER, p_load_seq IN NUMBER, p_rbs IN VARCHAR2);
PROCEDURE create_job_load(p_dwh_load# IN NUMBER, p_load_seq IN NUMBER, p_rbs VARCHAR2 DEFAULT 'batch01_rbs' );
FUNCTION dependency_on(p_type IN VARCHAR2, p_date IN DATE) RETURN BOOLEAN;
PROCEDURE send_mail (p_sender IN VARCHAR2, p_recipient IN VARCHAR2, p_subject IN VARCHAR2, p_message IN VARCHAR2);
PROCEDURE start_load_guard;
PROCEDURE load_guard(p_job IN INTEGER);
END load_datamart;
CREATE OR REPLACE PACKAGE BODY "LOAD_DATAMART"
AS
PROCEDURE start_monitor_load(p_date IN DATE) IS
v_plsql VARCHAR2(32000);
BEGIN
v_plsql := 'load_datamart.monitor_load(to_date('''||TO_CHAR(p_date,'DD-MON-YYYY HH24:MI:SS')||''',''DD-MON-YYYY HH24:MI:SS''));';
EXECUTE IMMEDIATE 'declare v_job integer; begin dbms_job.submit(v_job,:v_plsql); end;'
USING v_plsql;
END start_monitor_load;
PROCEDURE monitor_load( p_date IN DATE, p_dwh_load# IN NUMBER DEFAULT NULL , p_servers IN NUMBER DEFAULT GLOBAL.servers ) IS
TYPE t_server IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
v_server t_server;
v_dwh_load# NUMBER;
v_reload_limit NUMBER := 0;
v_plsql_error VARCHAR2(32000);
pending_jobs BOOLEAN;
p_batch VARCHAR2(20) := 'batch01_rbs';
FUNCTION job_server_running(p_dwh_load_seq NUMBER) RETURN BOOLEAN IS
CURSOR c1 IS SELECT * FROM DWH_LOAD_DETAIL
WHERE dwh_load# = v_dwh_load#
AND load_seq = p_dwh_load_seq;
r1 c1%ROWTYPE;
PROCEDURE try_resubmit_job(p_dwh_load_seq OUT NUMBER) IS
v_load_seq NUMBER;
BEGIN
SELECT COUNT(*) INTO v_load_seq
FROM DWH_LOAD_DETAIL
WHERE dwh_load# = v_dwh_Load#;
IF v_load_seq < v_reload_limit THEN
INSERT INTO DWH_LOAD_DETAIL(dwh_load#,load_seq,load_server,plsql_map,map_parameters)
VALUES(v_dwh_load#,v_load_seq+1,0,r1.plsql_map,r1.map_parameters||'| SEQ '||v_load_seq);
COMMIT;
ELSE
RAISE_APPLICATION_ERROR(-20000,'Maximum '||v_reload_limit||' retrys reached, load aborted.');
END IF;
END;
BEGIN
OPEN c1;
FETCH c1 INTO r1;
IF c1%NOTFOUND THEN
RETURN FALSE;
ELSIF c1%FOUND AND r1.job_end_time IS NULL THEN
RETURN TRUE;
ELSIF c1%FOUND AND r1.job_end_time IS NOT NULL THEN
IF r1.job_end_time = 'BROKEN' THEN
try_resubmit_job(r1.load_seq); -- Oracle Errors
END IF;
RETURN FALSE;
END IF;
CLOSE c1;
END job_server_running;
FUNCTION get_next_load_seq(p_dwh_load_server IN NUMBER) RETURN NUMBER IS
CURSOR c1 IS SELECT * FROM DWH_LOAD_DETAIL
WHERE dwh_load# = v_dwh_load#
AND load_server = 0
ORDER BY dwh_load#,load_seq
FOR UPDATE OF load_server;
r1 c1%ROWTYPE;
BEGIN
OPEN c1;
FETCH c1 INTO r1;
IF c1%FOUND THEN
UPDATE DWH_LOAD_DETAIL
SET load_server = p_dwh_load_server
WHERE CURRENT OF c1;
END IF;
CLOSE c1;
COMMIT;
RETURN r1.load_seq;
END get_next_load_seq;
BEGIN
v_dwh_load# := p_dwh_load#;
-- Defining the Max Retry to load
SELECT COUNT(*) + GLOBAL.max_reloads INTO v_reload_limit
FROM DWH_LOAD_DETAIL
WHERE dwh_load# = v_dwh_load#;
FOR i IN 1..99 LOOP
v_server(i) := NULL;
END LOOP;
LOOP
pending_jobs := FALSE;
FOR i IN 1..p_servers LOOP
IF NOT job_server_running(v_server(i)) THEN
v_server(i) := get_next_load_seq(i);
IF v_server(i) IS NOT NULL THEN
load_datamart.create_job_load(v_dwh_load#,v_server(i),p_batch);
IF p_batch = 'batch01_rbs' THEN
p_batch :='batch02_rbs';
ELSIF p_batch = 'batch02_rbs' THEN
p_batch :='batch03_rbs';
ELSIF p_batch = 'batch03_rbs' THEN
p_batch :='batch01_rbs';
END IF;
END IF;
END IF;
IF v_server(i) IS NOT NULL THEN
pending_jobs := TRUE;
END IF;
END LOOP;
EXIT WHEN NOT pending_jobs;
dbms_lock.sleep(05);
END LOOP;
COMMIT;
UPDATE DWH_LOAD_HEADER
SET plsql_error = 'Completed'
WHERE dwh_load# = v_dwh_load#;
COMMIT;
EXCEPTION WHEN OTHERS THEN
v_plsql_error := SUBSTR(SQLERRM,1,4000);
load_datamart.send_mail(load_datamart.GLOBAL.mail_sender,load_datamart.GLOBAL.mail_error,
'Load Datamart - Load '||TO_CHAR(p_date,'MM/DD/YYYY HH24:MI:SS')||' not completed',
v_plsql_error||CHR(10)||
':::::::::::::::::::::::::::::::::::::::::'||CHR(13)||
'- Parameter Date '||TO_CHAR(p_date,'MM/DD/YYYY')||CHR(13)||
':::::::::::::::::::::::::::::::::::::::::'||CHR(13)||
'- Transmission time '||TO_CHAR(p_date,'hh24:mi:ss')||CHR(13)||
'- Load Seq# '||TO_CHAR(v_dwh_load#)||CHR(13)||
':::::::::::::::::::::::::::::::::::::::::'||CHR(13));
v_plsql_error := SUBSTR(SQLERRM,1,4000);
UPDATE DWH_LOAD_HEADER
SET plsql_error = v_plsql_error
WHERE dwh_load# = v_dwh_load#;
COMMIT;
RAISE_APPLICATION_ERROR(-20000,v_plsql_error);
END monitor_load;
PROCEDURE start_load(p_dwh_load# IN NUMBER, p_load_seq IN NUMBER, p_rbs IN VARCHAR2) IS
v_plsql_map VARCHAR2(200);
v_sqlerrm VARCHAR2(4000);
BEGIN
UPDATE DWH_LOAD_DETAIL
SET job_start_date = TRUNC(SYSDATE) ,
job_start_time = TO_CHAR(SYSDATE,'HH24:MI:SS')
WHERE dwh_load# = p_dwh_load#
AND load_seq = p_load_seq
RETURN plsql_map INTO v_plsql_map;
COMMIT;
EXECUTE IMMEDIATE 'set transaction use rollback segment '||p_rbs;
v_plsql_map := 'begin '||v_plsql_map||' end;';
EXECUTE IMMEDIATE v_plsql_map;
EXECUTE IMMEDIATE 'begin
UPDATE DWH_LOAD_DETAIL
SET job_end_date = SYSDATE,
job_end_time = TO_CHAR(SYSDATE,''HH24:MI:SS''),
rta_iid = '||global.plsql_map||'.get_runtime_audit_id,
rta_select = '||global.plsql_map||'.get_selected,
rta_update = '||global.plsql_map||'.get_updated,
rta_insert = '||global.plsql_map||'.get_inserted,
rta_errors = '||global.plsql_map||'.get_errors,
rta_delete = '||global.plsql_map||'.get_deleted
WHERE dwh_load# = :p_dwh_load#
AND load_seq = :p_load_seq;
UPDATE DWH_LOAD_HEADER
SET rows_inserted = NVL(rows_inserted,0) + NVL('||global.plsql_map||'.get_inserted,0)
WHERE dwh_load# = :p_dwh_load#;
END;' using p_dwh_Load#,p_load_seq;
COMMIT;
EXCEPTION WHEN OTHERS THEN
v_sqlerrm := SUBSTR(SQLERRM,1,3999);
EXECUTE IMMEDIATE ' begin
UPDATE DWH_LOAD_DETAIL
SET job_end_date = SYSDATE,
job_end_time = ''BROKEN'',
rta_iid = '||global.plsql_map||'.get_runtime_audit_id,
rta_select = '||global.plsql_map||'.get_selected,
rta_update = '||global.plsql_map||'.get_updated,
rta_insert = '||global.plsql_map||'.get_inserted,
rta_errors = '||global.plsql_map||'.get_errors,
rta_delete = '||global.plsql_map||'.get_deleted,
plsql_error = :v_sqlerrm
WHERE dwh_load# = :p_dwh_load#
AND load_seq = :p_load_seq;
UPDATE DWH_LOAD_HEADER
SET rows_inserted = NVL(rows_inserted,0) + NVL('||global.plsql_map||'.get_inserted,0)
WHERE dwh_load# = :p_dwh_load#;
END; ' using v_sqlerrm, p_dwh_load#,p_load_seq;
COMMIT;
END start_load;
PROCEDURE create_job_load(p_dwh_load# IN NUMBER, p_load_seq IN NUMBER, p_rbs VARCHAR2 DEFAULT 'batch01_rbs' ) IS
p_job INTEGER;
v_date DATE;
BEGIN
-- Submitting Job Load
DBMS_JOB.SUBMIT(p_job,'load_datamart.start_load('||p_dwh_load#||','||p_load_seq||','||''''||p_rbs||''');');
COMMIT;
END create_job_load;
FUNCTION dependency_on(p_type IN VARCHAR2, p_date IN DATE) RETURN BOOLEAN IS
CURSOR c1 IS SELECT * FROM DWH_DATA_LOADS
WHERE data_type = p_type
AND file_date >= TRUNC(p_date);
r1 c1%ROWTYPE;
BEGIN
OPEN c1;
FETCH c1 INTO r1;
IF c1%FOUND AND r1.status = 'Done' THEN
RETURN FALSE;
END IF;
CLOSE c1;
RETURN TRUE;
END;
PROCEDURE send_mail (p_sender IN VARCHAR2,
p_recipient IN VARCHAR2,
p_subject IN VARCHAR2,
p_message IN VARCHAR2) IS
* This procedure is usefull for sending e-mails for single or multiples recipients up to 50 *
* the limitation is Lotes Notes e-mail service. *
* Lewis Cunnigham Package is good also for massive distribuition to multiples e-mails, *
v_mailhost VARCHAR2(30) := '172.27.2.157'; -- Titan and Eagle available SMTP service, through the GATEWAY
v_mailhost VARCHAR2(30) := 'STPMTA1ML'; old one
v_mailhost VARCHAR2(30) := 'stpnh1ml'; Main SMTP, all other are replicated, not available.
v_mailhost VARCHAR2(30) := 'STPMS6ML'; Replicated server, not available.
v_mail_conn utl_smtp.connection;
v_crlf VARCHAR2(2) DEFAULT CHR(13)||CHR(10);
v_date VARCHAR2(255) DEFAULT TO_CHAR( SYSDATE, 'MM/DD/YYYY hh24:mi AM' ); -- Lotus Notes default format.
--pragma autonomous_transaction;
PROCEDURE writeData( p_text IN VARCHAR2 ) AS
BEGIN
IF ( p_text IS NOT NULL ) THEN
utl_smtp.write_data( v_mail_conn, p_text || v_crlf );
END IF;
END;
BEGIN
v_mail_conn := utl_smtp.open_connection(v_mailhost, 25); -- Default port
utl_smtp.helo(v_mail_conn, v_mailhost);
utl_smtp.mail(v_mail_conn, p_sender);
utl_smtp.rcpt(v_mail_conn, p_recipient);
utl_smtp.open_data(v_mail_conn);
writeData( 'To: '|| p_recipient ); -- Redundant, but necessary to complete format
writeData( 'From: ' || p_sender); -- Redundant, but necessary to complete format
writeData( 'Date: ' || v_date ); -- Database completion time
writeData( 'Subject: ' || NVL( p_subject , '(no subject) ' ) ); -- Default Subject
--writeData( 'Content-Type: text/html');
utl_smtp.write_data(v_mail_conn, '' || v_crlf );
utl_smtp.write_data(v_mail_conn, p_message ); -- Message body
utl_smtp.close_data(v_mail_conn );
utl_smtp.quit(v_mail_conn);
--commit;
EXCEPTION WHEN OTHERS THEN null; Since we are just sending e-mails,
-- We don't care about mail errors like when server down, only when needed.
END;
PROCEDURE start_load_guard IS
v_job INTEGER;
BEGIN
DBMS_JOB.SUBMIT(v_job,'load_datamart.load_guard(100);',SYSDATE+100);
DBMS_JOB.CHANGE(v_job,'load_datamart.load_guard('||v_job||');',SYSDATE,'sysdate+((1/60)*1/24)');
COMMIT;
END start_load_guard;
PROCEDURE load_guard(p_job IN INTEGER) IS
v_job INTEGER;
CURSOR c1 IS SELECT * FROM DWH_DATA_LOADS
WHERE file_date BETWEEN TRUNC(SYSDATE) AND TRUNC(SYSDATE)+(86399/86400);
did_PAYC_load BOOLEAN := NULL;
did_ARMS_load BOOLEAN := NULL;
did_CLMS_load BOOLEAN := NULL;
did_STAT_load BOOLEAN := NULL;
did_TRAN_load BOOLEAN := NULL;
did_VCOM_load BOOLEAN := NULL;
did_BCRD_load BOOLEAN := NULL;
did_PNET_load BOOLEAN := NULL;
BEGIN
FOR i IN c1 LOOP
NULL;
--if i.status in ('Ready','Done') then
--if i.data_type = 'PAYC' then
END LOOP;
IF NOT ( SYSDATE >= TO_DATE(TO_CHAR(SYSDATE,'DD-MON-YYYY')||' 13:35:00','DD-MON-YYYY HH24:MI:SS') )THEN
send_mail('"Load Datamart"','[email protected]','I am the guard','This is my body messaje at '||TO_CHAR(SYSDATE,'DD-MON-YYYY HH24:MI:SS')||'.');
ELSE
send_mail('"Load Datamart"','[email protected]','I am the guard, this is the last message.','This is my body messaje at '||TO_CHAR(SYSDATE,'DD-MON-YYYY HH24:MI:SS')||'.');
DBMS_JOB.SUBMIT(v_job,'begin dbms_job.next_date('||p_job||',to_date('''||TO_CHAR(SYSDATE+1,'DD-MON-YYYY')||' 03'||''',''DD-MON-YYYY HH24'')); commit; exception when others then null; end;',TRUNC(SYSDATE));
END IF;
COMMIT;
EXCEPTION WHEN OTHERS THEN
load_datamart.send_mail('"Load Datamart"','[email protected]','I am the guard, I break at '||TO_CHAR(SYSDATE,'DD-MON-YYYY HH24:MI:SS'),SQLERRM);
END load_guard;
END load_datamart; -
I have a script that will be used for more than one service and am trying to configure a global keepalive using type script. The command is accepted by the CLI without any errors, but the configuration doesn't change. I can configure all other keepalive types, but not script. The CSS 11501 is running 8.10.3.01.
Posted message too quickly. Found the bug.
CSCsi51773 Bug Details
Product
Cisco CSS 11000 Series Content Services Switches
Technology
1st Found-In
8.10(3.1)
8.20(1.1)
Fixed-In
8.20(1.2)S
8.10(3.2)S
8.20(2.1)
8.10(4.1)
Component(s)
keepalives
Regression
N -
I need to reprogram the delete and enter key to the left side of a external keyboard for the ipad mini. I don't need the caps/lock or ctrl key. Due to a brain injury my daughter can only use her left hand to type. She also uses a text to speech app to verbalize all of her needs since her speech isn't intelligible any longer either. And her vision was significantly affected also, so the keyboard has to be mounted about 6 inches from her face. So to reach across the keyboard with her left hand to the right side delete and enter button is physically difficult and causes typing errors, which cause people to not understand what shes trying to say.
The best keyboard so far is the Zagg folio mini. I just had to make stickers to enlarge the letters on the key buttons.
Does anyone know how I can reprogram these two keys? Or where I can buy a wireless mini keyboard for Ipad made for lefthanders with these two functions on the left side. I have searched for days and days. It's sooooo important to me that she be able to contribute her voice again. Imagine if you got in a car accident and couldn't speak clearly any longer, but understood everything still. Thanks for any help and suggestions you all take the time to share with me. I really appreciate the kindness of strangers to help me help my daughter.
Sami's momSami\'s mom wrote:
I need to reprogram the delete and enter key to the left side of a external keyboard for the ipad mini.
You cannot. -
How to hide cut/copy/paste/Replace… menu on the UIWebView when it is being displayed over the keyboard.
Detail: I am having a HTML from, having text box, displayed using UIWebView. If user types in text box it shows the keyboard. Now If user tap and hold on text box it shows a popup menu. Now while keyboard and pop up are being displayed user scrolls the view. At this time it shows pop up over the keyboard which I need to hide.
I tried setMenuVisible of UIMenuController when popup rect and keyboard rect intersects each other on viewDidScroll but it didn't help me.
Any clues will help a lot.
Thanks.You are more likely to get an answer if you post programming problems to the Developer forum. This forum is intended for normal user level problems.
-
Reading an xml file in actionscript using flex3
plzz tell me how to read an xml file in actionscript using flex3.......
One possible option to parse an xml-file to a flex XML object:
public function parseConXML(source:String):void
xmlLoader = new URLLoader();
xmlLoader.load(new URLRequest(source));
// Eventlistener: if URL loaded --> onLoadComplete function
xmlLoader.addEventListener(Event.COMPLETE, xmlLoadComplete);
public function xmlLoadComplete(evt:Event):void{
var xml:XML = new XML();
// ignore comments in XML-File
XML.ignoreComments = true;
//ignore whitespaces in XML-File
XML.ignoreWhitespace = true;
// XML-Objekt erstellen
xml = new XML(evt.target.data);
//AFTERWARDS use your xml as your wish -
How to make use of customer reserve pricing types in copying control
Hi All
Please inform how to make use of 'customer reserve' pricing types like 'X,Y,Z & 1-9' keys in copying control.
Right now I'm on maintenance & supporting project for european client. They used pricing type 'Z' for copying condition records from stadard sales order to returns(RE) order. I wanted to know that what is 'Z' and how it is functioning to resolve one urgent ticket assigned to me.
Could you please guide me where should I verify its logic.
Thanks & Regards
SeshuHi Seshu,
Pricing type changes will done at user exit level. You may want to look at the user exit USEREXIT_PRICING_RULE (module pool SAPLV61A, program RV61AFZA)
Also, OSS note 24832 will help you to get an understanding.
Regards,
Please reward points if helpful -
I installed an external application, and this new application has been configured by defect that it will be used to open all files with extensions like jpg, pdf, etc...
I want to revert this situation and define again the proper application I want to use for opening each file type. How can I do this in Lion?
Thanks,
AzaldierPick a representative file.
Get info. (Command-i)
There you will see a place "Open with" where you can select the application for that file.
Hit the "Change all..." button to do this for all files of this type.
charlie -
Why do I get error -17500 when calling a batch file using the call executable step type?
I am calling a batch file using the call executable step type. If the path to the batch file contains a space I get error -17500 and a message stating there was an error in "Post". For example the path to the batch file is "c:\TestWin\Test Files\...\Program.bat" When I run this I get the above mentioned error, however if I change my directory structure so the path is now "c:\TestWin\TestFiles\...\Program.bat" it runs fine. I use the browse feature to find my batch file so it is not me typing in a path incorrectly. I have removed the batch file and I get a different error stating that it couldn't find the file so it appears that for my error it can find the file but can't run it. I am
sure that this has something to do with the fact that batch files are written in DOS but really don't want to resort to changing my directory structure on all my test stations. Is there any way to fix this problem so I can leave a space in my path?It appears I have figured it out. This was on another computer so I was unaware of how they used their computer. I like you got it to work in the temp directory and in fact got the program.bat file to work as long as I put it under the temp directory, but when I switched out to my TestWin directory it wouldn't work, so I removed everything from the directory except the batch file it self and it work. What I found out after adding files in one at a time is that the person had a file called "Test" with no file extension in there "c:\TestWin\" directory. Removing this file made it work. Putting the file back broke it. So it appeares that when teststand was running it followed the path saw a space and attempted to grab the "Test" file instead of bro
wsing into the "Test Files" directory. If you create a file in your temp directory called "temp" with no file extension you will see the same problem. Thank you for your help.
Maybe you are looking for
-
I have lost my iCal data and am having a hard time retrieving it from Time Capsule. I am using Mountain Lion OS om iMac. Can anyone help?
-
Opening Installation File In Applications
Hi All, I'm having great difficulty oopening a game I have downloaded. I have gone onto the Second Life website to download the game onto my apple mac OS X Panther. It has downloaded successfully and gives the instructions to move the SL icon into my
-
Hello: I am running Windows XP, Acrobat 8 Pro, and Word 2007. I created a document in Word and would like to create a PDF. When I open Acrobat and select to create a PDF from file, I select my file and then receive an error message stating that Miss
-
Cannot play .mov Files....
I am not able to play .mov files in my JFrame Window.... The Visual Content shows onli a pink screen and following exception... The mov file which i tried to play is a standard file and plays well with quicktime player... Its not working with my code
-
My nano is registered and my songs picked and redeemed on itunes i cant see to connect this to my nano help!!!!!!!!!!!