Show_errors in 6i
Hello allls
one question pls.
i want to show errors on run time using the keyboard
any help is appreciated..
Thanks..
Abdetu..
Sim U r the One
Multi Thanks 2 U
I wonder what is the case in 10G this will be Generous from u..;)
Best Regards,
Abdetu..
----------------------------------------------------------------------------------------------
Similar Messages
-
Show_errors in 6i & 10g
PLS show_errors in 6i Keyboard
Regards,
Abdetu..Well,i got it from searching it was an old posting i forgot answered by Sim:
show_errors in 6i = <CTL>+<E>
show_errors in 10G= <CTL>+<E>+<SHIFT>
all togeather at once..
Regards,
Abdetu.. -
Error says: Warning: Cannot modify header information
I keep receiving an error message after my form is sent (the form still send the information I need just wont re-direct to the next page)
It redirects to a page that says:
Warning: Cannot modify header information - headers already sent by (output started at /home/tommyle/public_html/newp.php:10) in /home/tommyle/public_html/newp.php on line 41
my php code looks like this:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Tommy Lemonade Beta</title>
<link href="style1.css" rel="stylesheet" type="text/css">
</head>
<body>
<?php
/* Set e-mail recipient */
$myemail = "profiles@tommylemonade";
/* Check all form inputs using check_input function */
$name = check_input($_POST['name'], "Enter your name");
$subject = check_input($_POST['subject'], "Enter a subject");
$email = check_input($_POST['email']);
$message = check_input($_POST['message'], "Write your message");
/* If e-mail is not valid show error message */
if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email))
show_error("E-mail address not valid");
/* Let's prepare the message for the e-mail */
$message = "
Name: $name
E-mail: $email
Subject: $subject
Message:
$message
/* Send the message using mail() function */
mail($myemail, $subject, $message);
/* Redirect visitor to the thank you page */
header('Location: thanks.html');
exit();
/* Functions we used */
function check_input($data, $problem='')
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
if ($problem && strlen($data) == 0)
show_error($problem);
return $data;
function show_error($myError)
?>
<html>
<body>
<p>Please correct the following error:</p>
<strong><?php echo $myError; ?></strong>
<p>Hit the back button and try again</p>
</body>
</html>
<?php
exit();
?>
</body>
</html>
This is line 41:
header('Location: thanks.html');
Can anybody see what I'm missing?Yeah, rework the code so you don't get any output before the php code is executed (like below):
<?php
/* Set e-mail recipient */
$myemail = "profiles@tommylemonade";
/* Check all form inputs using check_input function */
$name = check_input($_POST['name'], "Enter your name");
$subject = check_input($_POST['subject'], "Enter a subject");
$email = check_input($_POST['email']);
$message = check_input($_POST['message'], "Write your message");
/* If e-mail is not valid show error message */
if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email))
show_error("E-mail address not valid");
/* Let's prepare the message for the e-mail */
$message = "
Name: $name
E-mail: $email
Subject: $subject
Message: $message
/* Send the message using mail() function */
mail($myemail, $subject, $message);
/* Redirect visitor to the thank you page */
header('Location: thanks.html');
exit();
/* Functions we used */
function check_input($data, $problem='')
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
if ($problem && strlen($data) == 0)
show_error($problem);
return $data;
function show_error($myError)
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Tommy Lemonade Beta</title>
<link href="style1.css" rel="stylesheet" type="text/css">
</head>
<body>
<p>Please correct the following error:</p>
<strong><?php echo $myError; ?></strong>
<p>Hit the back button and try again</p>
</body>
</html>
<?php
exit();
?> -
How to get system time and date with PHP
Dear Mr.Craig,
Thanx a lot. We are running SRM 5.0 (RAMP - Implementation).
My initial requirement is to write a server-side script to display server date and time. Could you give more inside on how to achieve it?
Regards,
Deva.Perhaps that will help.
[code]
<html>
<h1>Access System time and date</h1>
<?
// saprfc-class-library
require_once("saprfc.php");
$sap = new saprfc(array(
"logindata"=>array(
"ASHOST"=>"localhost" // application server
,"SYSNR"=>"00" // system number
,"CLIENT"=>"000" // client
,"USER"=>"bcuser" // user
,"PASSWD"=>"minisap" // password
,"show_errors"=>false // let class printout errors
,"debug"=>false)) ; // detailed debugging information
$result=$sap->callFunction("MSS_GET_SY_DATE_TIME",
array( array("EXPORT","SAPTIME",array()),
array("EXPORT","SAPDATE",array())));
if ($sap->getStatus() == SAPRFC_OK) {
echo "Time: ".$result["SAPTIME"];
echo "<br>Date: ".$result["SAPDATE"];
echo "<br>or<br>";
echo "Server is showing: "
.substr($result["SAPDATE"], 0, 4)
."-".substr($result["SAPDATE"], 4, 2)
."-".substr($result["SAPDATE"], 6, 2)
." and "
.substr($result["SAPTIME"], 0, 2)
.":".substr($result["SAPTIME"], 2, 2)
.":".substr($result["SAPTIME"], 4, 2);
} else {
$sap->printStatus();
$sap->logoff();
?>
[/code] -
Read Excel File on Application Server to Internal Table
Hi Everybody!
Can anyone tell me how I can Read in an Excel File from the Application Server?
I'm familiar with the OPEN DATASET Statement and I already use it to read in text files.
Important is, that it works in the Batch / can be used as a background job
I already tried using
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
which did not work.
Can anybody please help me`?
I created the file I try to read out from the Application Server Folder with the Standard upload
in ABAP Web Dynpro and Wrote it to the Server with the following code. Does anyone know
if maybe already the writing is to the application server is wrong?
try.
convt = cl_abap_conv_in_ce=>create(
input = lv_filedata
encoding = 'UTF-8'
replacement = '?'
ignore_cerr = abap_true ).
convt->read( importing data = s_cont ).
catch cx_sy_conversion_codepage.
wd_comp_controller->show_error( exporting
text = 'There occurred an error during conversioning the code page.' type = 'E' ).
endtry.
open dataset XLSFILEPATH for output in binary mode.
transfer s_cont TO XLSFILEPATH.
close dataset XLSFILEPATH.
Best Regards and Thanks,
SteffenHi Suhan,
I tried the following, but the output in the table doesn't look good at all
Can you please help?
OUTPUT:
??#u0871#?################>###??##############################=#######????########???????????????????????????????????????????????????????????????????????????????????????????????????????
####################################################################################### ###!###"#######$###%###&###'###(###)###*###+###,###-###.###/###0###1###2###3###4###5###6###7#
#?######Z##A#r#i#a#l###3########,#####0#\# #"#? "#;#\#-###,#####0#\# #"#? "###=########,#####0#\# #"#? "#;#[#R#e#d#]#\#-###,#####0#\# #"#? "###?########,#####0#.#0#0#\# #"#? "#;#\#-
###?? ##?########? ?#######?? ##?########? ?#######?? ##?#P######? ?#######?? ##?#P######? ?#######?? ##?# ######? ?#######?? #################A#?#?j}#(#}############################
##########?########}#?#}#############*##################_#? _#-########????#,#####0########????#? _#-#;########????#"#?#?#\########????#_#-#@#_
#######????########}#(#}#############+##################_#? _#-}#(#}#############,##################_#? _#-}#(#}#############-##################_#? _#-}#(#}#############.###########
##########?########}#<#}#############6#############?}#?#_#? _#-########??#?#,#####0}#<#}#############7#############?e#?#_#? _#-########????#,#####0}#?#}#############8###############
#######????########}#?#}#############9#############????#_#? _#-########????#,#####0########????#? _#-#;########????#"#?#?#\########????#_#-#@#_
#######????########}#(#}#############:##################_#? _#-}#-#}#############;##################_#? _#-#####}#P#}#############<##################_#? _#-#############,#####0#####
##Check Cell?#z#?##############?
#C#h#e#c#k# #C#e#l#l##########?##????########????#####?##????#######?##????#######?##????#######?##????##?###+?#??# #?##############?##C#o#m#m#a#####?###,?#??#(#?##############?##C#
#5####Input?#p#?##############?##I#n#p#u#t##########?##?u0319?#####?##??v?#####?#####?#######?#####?#######?#####?#######?#####?##?###6####Linked Cell?#F#?##############?##L#i#n#k#e#d#
?##N#o#t#e##########?##????#####?##????#######?##????#######?##????#######?##????##?###9####Output?#r#?##############?##O#u#t#p#u#t##########?##????#####?##????#####?##????#######?#
#;####Title?#1#?##############?##T#i#t#l#e##############I}?%####?#
#<####Total?#H#?##############?##T#o#t#a#l################?########O???##########O???##?###=####Warning Text?#:#?##############?##W#a#r#n#i#n#g# #T#e#x#t##########?##?##??#X#?######
##Commission###Health Incentive ###Housing Norm###Hypo Tax###Hypo Tax- Special Wages###Paid Time Off(##Vision Insurance- Withheld from Employee###Working Spouse/DP surcharge)##TX St
###########?#?#?######### #########c###?3###N##?h##?t##nu############d#################????MbP?_#####*#####+#####?#####?###########%#####?#?###?#########?#####?#####&###ffffff??'###
#I#######}########+######}#######$
######}#######m###############c###################?###################?###################?###################?###################?###################?###################?##########
CODING:
types: begin of st_excel_parse,
clientno type string,
fileid type string,
paymtreportingid type string,
name type string,
employee_id type string,
home_country type string,
host_country type string,
actstartdt type string,
actenddt type string,
assignment_status type string,
paymttypenm type string,
paymtcategorynm type string,
paymtdt type string,
transeffdt type string,
amount type string,
currency_code type string,
end of st_excel_parse.
data: ls_excel_parse type st_excel_parse,
lt_excel_parse type table of st_excel_parse.
data l_wa_raw_data type string.
open dataset gv_str_filename for input in text mode encoding default.
if sy-subrc = 0.
do.
read dataset gv_str_filename into l_wa_raw_data.
if sy-subrc = 0.
"Split the file record using <TAB> and store inside the work area
split l_wa_raw_data at cl_abap_char_utilities=>horizontal_tab into :
ls_excel_parse-clientno
ls_excel_parse-fileid
ls_excel_parse-paymtreportingid
ls_excel_parse-name
ls_excel_parse-employee_id
ls_excel_parse-home_country
ls_excel_parse-host_country
ls_excel_parse-actstartdt
ls_excel_parse-actenddt
ls_excel_parse-assignment_status
ls_excel_parse-paymttypenm
ls_excel_parse-paymtcategorynm
ls_excel_parse-paymtdt
ls_excel_parse-transeffdt
ls_excel_parse-amount
ls_excel_parse-currency_code .
append ls_excel_parse to lt_excel_parse.
endif.
enddo.
endif. -
Getting "Method 'sign_in' does not exist" Error (using Charles)
This may be a bit off the FLEX field, and have to do with Zend Framework's ZEND_AMF class. Unfortunately I haven't been able to dig anything up, and comments posted on Wade Arnolds site have not received any responses, so I thought I'd give it a go here.
My ServiceController Class:
public function loginAction()
$this->_helper->viewRenderer->setNoRender();
$server = new Zend_Amf_Server();
$server->setClass('LoginAmfService', 'LoginService');
$server->setClassMap('CurrentUserVO', 'CurrentUserVO');
$server->setProduction(false);
print($server->handle());
My LoginAmfService class:
class LoginAmfService
* Main login function.
* @param string $name
* @param string $password
* @return CurrentUserVO
public function sign_in($name, $password)
$authAdapter = new Zend_Auth_Adapter_DbTable(Zend_Registry::get('db'), 'users', 'user_name', 'password', 'PASSWORD(?) AND active = 1');
$returnValue = new CurrentUserVO();
$authAdapter->setIdentity(htmlspecialchars($name))
->setCredential(htmlspecialchars($password));
$authResult = $authAdapter->authenticate();
if ($authResult->isValid())
$userArray = $authAdapter->getResultRowObject(array('id', 'first_name', 'last_name', 'title', 'photo'));
$returnValue->first_name = $userArray->first_name;
$returnValue->last_name = $userArray->last_name;
$returnValue->title = $userArray->title;
$returnValue->photo = $userArray->photo;
$returnValue->token = $userArray->id;
return $returnValue;
* Function used to log people off.
public function sign_out()
$authAdapter = Zend_Auth::getInstance();
$authAdapter->clearIdentity();
My SignIn FLEX module (the relevant portions):
<mx:RemoteObject
id="LoginRemote"
destination="login"
source="SignIn"
showBusyCursor="true"
fault="parentDocument.handleFault(event)"
>
<mx:method name="sign_in" result="signin_handle(event)" />
<mx:method name="sign_out" result="signout_handle(event)" />
</mx:RemoteObject>
<mx:Script>
<![CDATA[
import mx.rpc.events.FaultEvent;
import mx.utils.ArrayUtil;
import mx.rpc.events.ResultEvent;
import mx.controls.Alert;
import com.brassworks.ValueObjects.CurrentUserVO;
import mx.events.VideoEvent;
[Bindable]
private var this_user:CurrentUserVO = new CurrentUserVO();
private function mdl_init():void
focusManager.setFocus(txt_username);
private function signin_handle(event:ResultEvent):void
this_user = event.result as CurrentUserVO;
if (this_user.token == null) {Alert.show("Supplied login credentials are not valid. Please try again.");}
else
this.parentApplication.setUser(this.this_user);
private function signout_handle(event:ResultEvent):void
private function sign_in(event:Event):void
try
//Alert.show(txt_name.text + "|" + txt_password.text);
LoginRemote.sign_in(txt_username.text, txt_password.text);
catch (error:Error)
this.parentDocument.handleFault(error);
private function sign_out(event:Event):void
private function show_error(error:Error, s_function:String):void
Alert.show("Method:" + s_function + "\nName: " + error.name + "\nID: " + error.errorID + "\nMessage: " + error.message + "\nStack Trace: " + error.getStackTrace() + "\nError: " + error.toString());
private function handleFault(event:FaultEvent):void
Alert.show(event.fault.faultDetail, event.fault.faultString);
]]>
</mx:Script>
Now, all this is great and good, as it works with Zend Framework 1.7.6. However, when I try to upgrade to 1.7.8 (to take advantage of session management and other bug-fixes), I get the following error (using Charles):
#1 /var/web/htdocs/core/library/Zend/Amf/Server.php(390): Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))
#2 /var/web/htdocs/core/application/default/controllers/ServicesController.php(73): Zend_Amf_Server->handle()
#3 /var/web/htdocs/core/library/Zend/Controller/Action.php(503): ServicesController->loginAction()
#4 /var/web/htdocs/core/library/Zend/Controller/Dispatcher/Standard.php(285): Zend_Controller_Action->dispatch('loginAction')
#5 /var/web/htdocs/core/library/Zend/Controller/Front.php(934): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#6 /var/web/htdocs/core/application/bootstrap.php(39): Zend_Controller_Front->dispatch()
#7 /var/web/htdocs/core/public/index.php(5): Bootstrap->runApp()
#8 {main} ?Method "sign_in" does not exist
I have no idea why this would not work anymore. My assumption is that I am not correctly setting up Zend_Amf (but then again, my counter-argument is that it worked before, so ..... ????)
Thanks for any help!
-MikeFor those that are also fighting this issue:
The problem appears to be that the RemoteObject needs to specify the class containing the methods as a source parameter. According to this bug report (http://framework.zend.com/issues/browse/ZF-5168) it is supposed to have been addressed, but apparently has re-emerged in Zend_Amf since version 1.7.7.
Using my example above, I would have to specify the RO as:
<mx:RemoteObject
id="LoginRemote"
destination="login"
source="LoginAmfService"
showBusyCursor="true"
fault="parentDocument.handleFault(event)"
>
<mx:method name="sign_in" result="signin_handle(event)" />
<mx:method name="sign_out" result="signout_handle(event)" />
</mx:RemoteObjecct> -
Validation on Application Level?
Hi,
is there the possibility to define a validation on application level? Couldn't find anything.
I thought about a validation on page 0, but page 0 doesn't allow to create validations...
Purpose: I want to validate the Apex_Application.g_fxx arrays. The validation will be the same for all pages.
Thanks for your help
Patrick
Check out my APEX-blog: http://inside-apex.blogspot.comHi Vikas,
thanks for the help. Just tried it out, didn't work :-(
It does the redirect, but doesn't show the error message. I assume the g_validation_ids_in_error and g_item_ids_in_error has also to be set. But the redirect isn't good in my case anyway, because the tabular form entries are lost.
But I just found out that APEX_Application.show_error does exactly what I was looking for!
Thanks for your help
Patrick
Check out my APEX-blog: http://inside-apex.blogspot.com -
Webutil_file_transfer.db_to_client does not work
I am using the following piece of code to display and read images stored in a database
IF webutil_file_transfer.db_to_client (lv_file_name, 'TPPP_IMAGES', 'IMAGE_FILE','TPPPI_ID = '||:b_tdpi.tdpi_id)
THEN
-- Open using extension
reporting.preview_output (lv_file_name);
ELSE
messaging.show_error (880, 'Failed to copy file', TRUE, lv_file_name);
END IF;
END IF;
END;
I keep getting the error " 880, Failed to copy'). What could be the reason ?
Thanks
FMWell, if you are using Forms 10.1.2.0 like you mentioned in your other post, I think you should start by installing 10.1.2.3 as it includes both Forms fixes and specifically new WebUtil fixes. It also includes an update to webutil.pll which you need to manually generate into a new plx.
I would recommend that you try using the WebUtil demo. If that works, you can assume that your code is at fault. Be aware that in order to use the up/down load for AS you will need to make some minor code changes in the demo, however the code for up/down for db should work without changes. The demo does require that you install a small table.
The demo is available on the Forms Download page:
http://www.oracle.com/technetwork/developer-tools/forms/downloads/index.html -
Error handling in Portal standard forms
I have a customer who needs to validate input on a Form Based on a Table (standard component). They have tried code, as shown below, as a PLSQL handler on a Save button. This example can obviously be solved with JavaScript validation on the client, but they have similar requirements for validation on DB level.
If procedure call 1) in the if statement is used, nothing happens. If procedure call 2) is used, it is executed in a new page as a standard error Oracle Portal error message.
declare
v_sender VARCHAR2(1000);
v_sender_id NUMBER;
begin
v_sender := p_session.get_value_as_VARCHAR2(
p_block_name => 'DEFAULT',
p_attribute_name => 'A_SENDER');
v_sender_id := p_session.get_value_as_NUMBER(
p_block_name => 'DEFAULT',
p_attribute_name => 'A_SENDER_ID');
insert into hd (number, text) values (hd_seq.nextval,
'step 3 v_sender = ' || v_sender ||
' v_sender_id = ' || v_sender_id);
if v_sender_id >= 100 then
1) Custom error handling, does not display:
show_error('Error message');
2) Error handling is displayed, but as a standard error:
raise_application_error(-20000, 'SenderID must be smaller than 100.');
else
doInsert;
end if;
end;
The customer has two questions:
Why does the custom procedure in 1) "show_error" not execute, and if it does, why does it not display? show_error works and the if statement is entered.
Is it possible to take control of Portals error handling on standard components (forms etc.), to show custom error messages with the style used on the component/page instead of the standard Error: ORA- ....etc. as Portal displays it?
Customer needs reply asap. Please reply directly. Any help will be much appreciated!
Kind regards
Jakob LundJacob,
Try following:
declare
v_sender VARCHAR2(1000);
v_sender_id NUMBER;
begin
v_sender := p_session.get_value_as_VARCHAR2(
p_block_name => 'DEFAULT',
p_attribute_name => 'A_SENDER');
v_sender_id := p_session.get_value_as_NUMBER(
p_block_name => 'DEFAULT',
p_attribute_name => 'A_SENDER_ID');
insert into hd (number, text) values (hd_seq.nextval,
'step 3 v_sender = ' || v_sender ||
' v_sender_id = ' || v_sender_id);
if v_sender_id >= 100 then
p_session.set_value(
p_block_name => "_block",
p_attribute_name => '_STATUS',
p_value => 'Sender ID must be less than 100!');
-- return to your form with status message set
-- and all fields filled with recent values
return;
end if;
end;
-- This point is reached only if validation is OK
doInsert;
Regards,
Henn -
Hi,
i have creted a function module which read stock quantity using BAPI_MATERIAL_AVAILABILITY.
Import - MFRPN
Export - QNTY
If i execute function module from SAP the result it's OK but when i call function from PHP it does not output nothing.
$sap = new saprfc(array(
"logindata"=>array(
"ASHOST"=>"192.168.3.1" // application server
,"SYSNR"=>"00" // system number
,"CLIENT"=>"200" // client
,"USER"=>"rfc" // user
,"PASSWD"=>"123456789" // password
,"show_errors"=>true // let class printout errors
,"debug"=>false)) ; // detailed debugging information
// Call-Function
// Call-Function
$result=$sap->callFunction("Z_READ_QNTY",
array(
array("IMPORT","MFRPN",$_POST['cod']),
array("EXPORT","QNTY",$quantity),
// Call successfull?
if ($sap->getStatus() == SAPRFC_OK)
echo $quantity;
else
// No, print long Version of last Error
$sap->printStatus();
// or print your own error-message with the strings received from
// $sap->getStatusText() or $sap->getStatusTextLong()
Please someone help me.
Thank you.hi Dan,
i will send you an working code sample. The Fuba ZGET_MAKTX is easy MATNR as import parameter and MAKTX as export parameter.
you will receive the material short description.
hope this will help you a little bit.
in your code i thing you forgot to fill the $quantity like this $quantity = saprfc_export($fce,"QNTY"); before echo $quantity;
regards
Tony
<?php
//Login to SAP R/3
$login = array ("ASHOST"=>"vsap3", "SYSNR"=>"2", "CLIENT"=>"200","USER"=>"vsrfc", "PASSWD"=>"********", "CODEPAGE"=>"1100");
$rfc = saprfc_open($login);
if (!$rfc) {
echo "RFC connection failed";
exit;
$fce = saprfc_function_discover($rfc,"ZGET_MAKTX");
if (!$fce) {
echo "Discovering interface of function module failed";
exit;
saprfc_import($fce,"MATNR","200200");
$rc = saprfc_call_and_receive ($fce);
if ($rfc_rc != SAPRFC_OK) { if ($rfc == SAPRFC_EXCEPTION ) echo ("Exception raised: ".saprfc_exception($fce)); else echo (saprfc_error($fce)); exit; }
$maktx = saprfc_export($fce,"MAKTX");
echo $maktx;
saprfc_function_free($fce);
saprfc_close($rfc);
?>
Edited by: Tony Wienhold on Oct 7, 2008 11:19 AM
Edited by: Tony Wienhold on Oct 7, 2008 11:22 AM -
Bi Beans session connect method and JWS gives accesscontrolexception
Hi,
I have folowing code for connecting to Bi session and am trying to load my application using java web start technology. When I try to run the code from Jdeveloper it works fine but when trying to run from java web start gives following error.
Error:
Exception occurred during event dispatching:
java.security.AccessControlException: access denied (java.util.PropertyPermission apple.awt.showGrowBox read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at oracle.bali.ewt.elaf.basic.BasicLookAndFeel$2.createValue(Unknown Source)
at javax.swing.UIDefaults.getFromHashtable(Unknown Source)
at javax.swing.UIDefaults.get(Unknown Source)
at javax.swing.MultiUIDefaults.get(Unknown Source)
at javax.swing.UIDefaults.getInsets(Unknown Source)
at javax.swing.UIManager.getInsets(Unknown Source)
at oracle.bali.ewt.button.DialogBarLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.JRootPane$RootLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at oracle.bali.ewt.dialog.JEWTDialog.getPreferredSize(Unknown Source)
at java.awt.Window.pack(Unknown Source)
at oracle.bali.ewt.dialog.JEWTDialog.pack(Unknown Source)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.dss.util.gui.BIExceptionDialog.display(BIExceptionDialog.java:199)
at gecf.pmg.PmgBiOlapApp.showExceptionDialog(PmgBiOlapApp.java:2560)
at gecf.pmg.PmgBiOlapApp.connect(PmgBiOlapApp.java:2823)
at gecf.pmg.PmgBiOlapApp$39.actionPerformed(PmgBiOlapApp.java:2886)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener$ReleasedAction.actionPerformed(Unknown Source)
at javax.swing.JComponent$ActionStandin.actionPerformed(Unknown Source)
at javax.swing.SwingUtilities.notifyAction(Unknown Source)
at javax.swing.JComponent.processKeyBinding(Unknown Source)
at javax.swing.JComponent.processKeyBindings(Unknown Source)
at javax.swing.JComponent.processKeyEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Code:
//1. create session
m_biSession = new BISession();
m_biSession.setBIUser(new BIUser(userName));
m_biSession.setDeploymentOption("LOCAL");
m_biSession.setProperty("Mode","ERROR");
DefaultErrorHandler m_handler = new DefaultErrorHandler();
m_handler.setDebugMode(DefaultErrorHandler.SHOW_ERROR);
m_biSession.addErrorHandler(m_handler);
//2.
m_connection = new Connection();
DefaultErrorHandler o_handler = new DefaultErrorHandler();
o_handler.setDebugMode(DefaultErrorHandler.SHOW_ERROR);
m_connection.addErrorHandler(o_handler);
m_connection.setSession(m_biSession);
m_connection.setDriverType("MDM");
m_connection.setServerType("OLAPServer");
m_connection.setJdbcDriverType("thin");
m_connection.setHostName(m_hostName);
m_connection.setPortNumber(Integer.parseInt(m_port));
m_connection.setSID(m_olapSid);
m_connection.setUsername(userName);
m_connection.setPassword(password);
//3.
p_connection = new Connection();
DefaultErrorHandler p_handler = new DefaultErrorHandler();
p_handler.setDebugMode(DefaultErrorHandler.SHOW_ERROR);
p_connection.addErrorHandler(p_handler);
p_connection.setSession(m_biSession);
p_connection.setDriverType(MDU.PERSISTENCE);
p_connection.setJdbcDriverType("thin");
p_connection.setHostName(m_hostName);
p_connection.setPortNumber(Integer.parseInt(m_port));
p_connection.setUsername("CATLOGADMIN");
p_connection.setPassword("CATLOGADMINPWD");
p_connection.setSID(m_catSid);
p_connection.setProperty(PSRConstants.STORAGEMANAGER_DRIVER, "oracle.dss.persistence.storagemanager.bi.BIStorageManagerImpl",1,1);
//4.
m_metadataManager = new MetadataManager();
DefaultErrorHandler md_handler = new DefaultErrorHandler();
md_handler.setDebugMode(DefaultErrorHandler.SHOW_ERROR);
m_metadataManager.addErrorHandler(md_handler);
m_metadataManager.setSession(m_biSession);
m_metadataManager.setConnection(p_connection);
m_metadataManager.setConnection(m_connection);
try{
m_biSession.connect();
}catch (Exception e)
System.out.println("error connecting to bisession");
e.printStackTrace();
m_metadataManager.attach();
It is giving me the error at "m_biSession.connect();" line.
Please help asap.
Thanks and Regards,
UjwalaDid you follow the points outlined in the Release Notes:
http://www.oracle.com/technology/products/bib/htdocs/904/readme_bibeans.html#webstart
Hope this helps
Business Intelligence Beans Product Management Team
Oracle Corporation -
SMTP Authorization code for PHP Mail Form
Can anyone help me in figuring out the correct way to incorporate the SMTP authentication into a form? I am having a lot of trouble in getting my forms to send with this format. My code for my php action page is below. I have my correct information where i included *******. Please let me know what i have wrong.
CODE STARTS HERE
<?php
//new function
$to = "*******";
$nameto = "LTL Freight Shop";
$from = "*******";
$namefrom = "LTL Freight Shop";
$subject = "Account Request";
authSendEmail($from, $namefrom, $to, $nameto, $subject, $message);
?>
<?php
$recipient = "*******";
//$subject = "Account Request";
$companyname = check_input($_POST['CompanyName'], "Enter your company name");
$firstname = check_input($_POST['FirstName'], "Enter your first name");
$lastname = check_input($_POST['LastName'], "Enter your last name");
$phone = check_input($_POST['PhoneNumber'], "Enter your phone number");
$fax = check_input($_POST['FaxNumber']);
$email = check_input($_POST['Email'], "Enter your email");
$address = check_input($_POST['StreetAddress'], "Enter your address");
$city = check_input($_POST['City'], "Enter your city");
$state = check_input($_POST['State'], "Enter your state");
$zipcode = check_input($_POST['ZipCode'], "Enter your zip code");
$country = check_input($_POST['Country'], "Enter your country");
$yearsinbusiness = check_input($_POST['YearsinBusiness'], "Enter your years in business");
$typeofindustry = check_input($_POST['TypeofIndustry'], "Enter your type of industry");
$multiplelocations = check_input($_POST['MultipleLocations']);
$numberoflocations = check_input($_POST['LocationsCount']);
$ltl = check_input($_POST['ServicesLTL']);
$ftl = check_input($_POST['ServicesFTL']);
$domesticparcel = check_input($_POST['ServicesDomesticParcel']);
$intlparcel = check_input($_POST['ServicesInternationalParcel']);
$airfreight = check_input($_POST['ServicesAirFreight']);
$oceanfreight = check_input($_POST['ServicesOceanFreight']);
$other = check_input($_POST['ServicesOther']);
$none = check_input($_POST['ServicesNone']);
$volume = check_input($_POST['TypicalVolume'], "Enter your typical volume");
$carrier = check_input($_POST['CurrentCarrier'], "Enter your current carrier");
$class = check_input($_POST['AverageClass'], "Enter your average class");
$weight = check_input($_POST['AverageWeight'], "Enter your average weight");
$process = check_input($_POST['Process']);
$hearabout = check_input($_POST['HearAbout']);
$comments = check_input($_POST['Comments']);
if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email))
show_error("E-mail address not valid");
$message = "You have received an account request from:
Company Name: $companyname
First Name: $firstname
Last Name: $lastname
Phone Number: $phone
Fax Number: $fax
E-mail: $email
Street Address: $address
City: $city
State: $state
Zip Code: $zipcode
Country: $country
Years in Business: $yearsinbusiness
Type of Industry: $typeofindustry
Multiple Locations: $multiplelocations
Number of Locations: $numberoflocations
Services they use: $ltl, $ftl, $domesticparcel, $intlparcel, $airfreight, $oceanfreight, $other, $none
Typical Volume: $volume
Current Carrier: $carrier
Average Class: $class
Average Weight: $weight
How they currently process: $process
How they heard about us: $hearabout
Comments: $comments
End of message
//ini_set("SMTP","smtp.emailsrvr.com");
//ini_set("SMTP_PORT", 25);
//ini_set("sendmail_from","*******");
//mail($recipient, $subject, $message);
function check_input($data, $problem='')
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
if ($problem && strlen($data) == 0)
show_error($problem);
return $data;
function authSendEmail($from, $namefrom, $to, $nameto, $subject, $message)
$smtpServer = "smtp.emailsrvr.com";
$port = "25";
$timeout = "30";
$username = "********";
$password = "********";
$localhost = "smtp.emailsrvr.com";
$newLine = "\r\n";
$smtpConnect = fsockopen($smtpServer, $port, $errno, $errstr, $timeout);
$smtpResponse = fgets($smtpConnect, 515);
if(empty($smtpConnect))
$output = "Failed to connect: $smtpResponse";
return $output;
else
$logArray['connection'] = "Connected: $smtpResponse";
fputs($smtpConnect,"AUTH LOGIN" . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['authrequest'] = "$smtpResponse";
fputs($smtpConnect, base64_encode($username) . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['authusername'] = "$smtpResponse";
fputs($smtpConnect, base64_encode($password) . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['authpassword'] = "$smtpResponse";
fputs($smtpConnect, "HELO $localhost" . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['heloresponse'] = "$smtpResponse";
fputs($smtpConnect, "MAIL FROM: $from" . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['mailfromresponse'] = "$smtpResponse";
fputs($smtpConnect, "RCPT TO: $to" . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['mailtoresponse'] = "$smtpResponse";
fputs($smtpConnect, "DATA" . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['data1response'] = "$smtpResponse";
$headers = "MIME-Version: 1.0" . $newLine;
$headers .= "Content-type: text/html; charset=iso-8859-1" . $newLine;
$headers .= "To: $nameto <$to>" . $newLine;
$headers .= "From: $namefrom <$from>" . $newLine;
fputs($smtpConnect, "To: $to\nFrom: $from\nSubject: $subject\n$headers\n\n$message\n.\n");
$smtpResponse = fgets($smtpConnect, 515);
$logArray['data2response'] = "$smtpResponse";
fputs($smtpConnect,"QUIT" . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['quitresponse'] = "$smtpResponse";
function show_error($myError)
?>
<html>
<body>
<b>Please correct the following error:</b><br />
<?php echo $myError; ?>
</body>
</html>
<?php
exit();
?>I have tried the standard PHP mail function and it doesnt seem to work. Here is my most recent warning or error message.
Warning: mail() [function.mail]: SMTP server response: 554 5.7.1 <*****>: Sender address rejected: Access denied in D:\inetpub\vhosts\ltlfreightshop.com\httpdocs\requestaccount.php on line 78
I had the standard mailing set up but it wouldnt ever send and when i set up just the form, it requires the default email client. Am i wrong to assume that i need the SMTP authentication?
I am not sure about the sockets being enabled. We currently outsource our web hosting and email hosting. I cannot find the phpinfo(), where would this be?
Thanks,
Ben -
SMTP Authentication for PHP Mail
Can anyone help me in figuring out the correct way to incorporate the SMTP authentication into a form? I am having a lot of trouble in getting my forms to send with this format. My code for my php action page is below. I have my correct information where i included *******. Please let me know what i have wrong.
CODE STARTS HERE
<?php
//new function
$to = "*******";
$nameto = "LTL Freight Shop";
$from = "*******";
$namefrom = "LTL Freight Shop";
$subject = "Account Request";
authSendEmail($from, $namefrom, $to, $nameto, $subject, $message);
?>
<?php
$recipient = "*******";
//$subject = "Account Request";
$companyname = check_input($_POST['CompanyName'], "Enter your company name");
$firstname = check_input($_POST['FirstName'], "Enter your first name");
$lastname = check_input($_POST['LastName'], "Enter your last name");
$phone = check_input($_POST['PhoneNumber'], "Enter your phone number");
$fax = check_input($_POST['FaxNumber']);
$email = check_input($_POST['Email'], "Enter your email");
$address = check_input($_POST['StreetAddress'], "Enter your address");
$city = check_input($_POST['City'], "Enter your city");
$state = check_input($_POST['State'], "Enter your state");
$zipcode = check_input($_POST['ZipCode'], "Enter your zip code");
$country = check_input($_POST['Country'], "Enter your country");
$yearsinbusiness = check_input($_POST['YearsinBusiness'], "Enter your years in business");
$typeofindustry = check_input($_POST['TypeofIndustry'], "Enter your type of industry");
$multiplelocations = check_input($_POST['MultipleLocations']);
$numberoflocations = check_input($_POST['LocationsCount']);
$ltl = check_input($_POST['ServicesLTL']);
$ftl = check_input($_POST['ServicesFTL']);
$domesticparcel = check_input($_POST['ServicesDomesticParcel']);
$intlparcel = check_input($_POST['ServicesInternationalParcel']);
$airfreight = check_input($_POST['ServicesAirFreight']);
$oceanfreight = check_input($_POST['ServicesOceanFreight']);
$other = check_input($_POST['ServicesOther']);
$none = check_input($_POST['ServicesNone']);
$volume = check_input($_POST['TypicalVolume'], "Enter your typical volume");
$carrier = check_input($_POST['CurrentCarrier'], "Enter your current carrier");
$class = check_input($_POST['AverageClass'], "Enter your average class");
$weight = check_input($_POST['AverageWeight'], "Enter your average weight");
$process = check_input($_POST['Process']);
$hearabout = check_input($_POST['HearAbout']);
$comments = check_input($_POST['Comments']);
if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email))
show_error("E-mail address not valid");
$message = "You have received an account request from:
Company Name: $companyname
First Name: $firstname
Last Name: $lastname
Phone Number: $phone
Fax Number: $fax
E-mail: $email
Street Address: $address
City: $city
State: $state
Zip Code: $zipcode
Country: $country
Years in Business: $yearsinbusiness
Type of Industry: $typeofindustry
Multiple Locations: $multiplelocations
Number of Locations: $numberoflocations
Services they use: $ltl, $ftl, $domesticparcel, $intlparcel, $airfreight, $oceanfreight, $other, $none
Typical Volume: $volume
Current Carrier: $carrier
Average Class: $class
Average Weight: $weight
How they currently process: $process
How they heard about us: $hearabout
Comments: $comments
End of message
//ini_set("SMTP","smtp.emailsrvr.com");
//ini_set("SMTP_PORT", 25);
//ini_set("sendmail_from","*******");
//mail($recipient, $subject, $message);
function check_input($data, $problem='')
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
if ($problem && strlen($data) == 0)
show_error($problem);
return $data;
function authSendEmail($from, $namefrom, $to, $nameto, $subject, $message)
$smtpServer = "smtp.emailsrvr.com";
$port = "25";
$timeout = "30";
$username = "********";
$password = "********";
$localhost = "smtp.emailsrvr.com";
$newLine = "\r\n";
$smtpConnect = fsockopen($smtpServer, $port, $errno, $errstr, $timeout);
$smtpResponse = fgets($smtpConnect, 515);
if(empty($smtpConnect))
$output = "Failed to connect: $smtpResponse";
return $output;
else
$logArray['connection'] = "Connected: $smtpResponse";
fputs($smtpConnect,"AUTH LOGIN" . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['authrequest'] = "$smtpResponse";
fputs($smtpConnect, base64_encode($username) . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['authusername'] = "$smtpResponse";
fputs($smtpConnect, base64_encode($password) . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['authpassword'] = "$smtpResponse";
fputs($smtpConnect, "HELO $localhost" . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['heloresponse'] = "$smtpResponse";
fputs($smtpConnect, "MAIL FROM: $from" . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['mailfromresponse'] = "$smtpResponse";
fputs($smtpConnect, "RCPT TO: $to" . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['mailtoresponse'] = "$smtpResponse";
fputs($smtpConnect, "DATA" . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['data1response'] = "$smtpResponse";
$headers = "MIME-Version: 1.0" . $newLine;
$headers .= "Content-type: text/html; charset=iso-8859-1" . $newLine;
$headers .= "To: $nameto <$to>" . $newLine;
$headers .= "From: $namefrom <$from>" . $newLine;
fputs($smtpConnect, "To: $to\nFrom: $from\nSubject: $subject\n$headers\n\n$message\n.\n");
$smtpResponse = fgets($smtpConnect, 515);
$logArray['data2response'] = "$smtpResponse";
fputs($smtpConnect,"QUIT" . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['quitresponse'] = "$smtpResponse";
function show_error($myError)
?>
<html>
<body>
<b>Please correct the following error:</b><br />
<?php echo $myError; ?>
</body>
</html>
<?php
exit();
?>I have the same problem - user has Outlook 2010 on Exchange 2007. Mail goes directly into the deleted items folder. After browsing around the net I found 2 different site with the same potential fix. It seems that when migrating a user from Exch 2003 to
2007 (which we did) some of the configs get set incorrectly. The weird thing is we migrated over 2 years ago, and some others are experiencing the same after a long period after the migration. The fix that was suggested is:
Go to your Exch server, open up Exchange Management Shell and type the following:
get-mailboxcalendarsettings "domain/ou/user" | fl
set-mailboxcalendarsettings "doman/ou/user" -automateprocessing: Autoupdate
My user already had Autoupdate set, but this seems to have fixed it for me... -
Tcl/Tk hell -- 'invalid command name "mc"'
I've installed git to my ~. For some reason I've got a bunch of Tcl/Tk errors when I try to run programs that depend on the Tcl/Tk binaries:
% ./git-gui ~/src/git-gui
zsh: no such file or directory: ./git-gui
[127] master
% ./git-gui.sh ~/src/git-gui
Error in startup script: invalid command name "mc"
while executing
"mc "git-gui: fatal error""
invoked from within
"if {[catch {package require Tcl 8.4} err]
|| [catch {package require Tk 8.4} err]
catch {wm withdraw .}
tk_messageBox \
-icon error \
-typ..."
(file "./git-gui.sh" line 34)
[1] master
% gitk ~/src/git-gui
Error in startup script: invalid command name "mc"
while executing
"mc "Sorry, gitk cannot run with this version of Tcl/Tk.\n Gitk requires at least Tcl/Tk 8.4.""
invoked from within
"if {[catch {package require Tk 8.4} err]} {
show_error {} . [mc "Sorry, gitk cannot run with this version of Tcl/Tk.\n\
Gitk requires at le..."
(file "/home/print/bin/gitk" line 9721)
[1] master
% ~/src/git-gui
I have Tcl installed:
[1] master
% tclsh<TAB> ~/src/git-gui
tclsh tclsh8.3 tclsh8.5
It looks like Tcl is finding the tclsh8.3, even though that executable comes after the tclsh8.4 in my $PATH. I'm completely clueless of Tcl/Tk, so any hints on how to get this going much appreciated.
Thanks,
print
Last edited by print (2009-01-04 01:21:42)Hi,
tclsh is a link to tclsh8.3, probably. To find out, type in the terminal
ls -l `which tclsh`
Chances are that you won't get
lrwxrwxrwx 1 root root 8 oct 16 10:45 /usr/bin/tclsh -> tclsh8.5
as I do To fix it, just delete the link as root and create a new one pointing to tclsh8.5
Cheers -
When using focusManager.setFocus(txtfield) in a module, it appears to loose its focus.
I'm not sure why this is happening, since I am setting focus after the module has been created. The following is the code for my module:
<?xml version="1.0" encoding="utf-8"?>
<mx:Module
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
creationComplete="mdl_init()"
>
<mx:RemoteObject
id="LoginRemote"
destination="login"
showBusyCursor="true"
>
<mx:method name="sign_in" result="signin_handle(event)" />
<mx:method name="sign_out" result="signout_handle(event)" />
</mx:RemoteObject>
<mx:Script>
<![CDATA[
import mx.rpc.events.FaultEvent;
import mx.utils.ArrayUtil;
import mx.rpc.events.ResultEvent;
import mx.controls.Alert;
import com.brassworks.ValueObjects.CurrentUserVO;
import mx.events.VideoEvent;
[Bindable]
private var this_user:CurrentUserVO = new CurrentUserVO();
private function mdl_init():void
focusManager.setFocus(txt_username);
private function signin_handle(event:ResultEvent):void
this_user = event.result as CurrentUserVO;
if (this_user.token == null) {Alert.show("Supplied login credentials are not valid. Please try again.");}
else
this.parentApplication.setUser(this.this_user);
private function signout_handle(event:ResultEvent):void
private function sign_in(event:Event):void
//Alert.show(txt_name.text + "|" + txt_password.text);
LoginRemote.sign_in(txt_username.text, txt_password.text);
private function sign_out(event:Event):void
private function show_error(error:Error, s_function:String):void
Alert.show("Method:" + s_function + "\nName: " + error.name + "\nID: " + error.errorID + "\nMessage: " + error.message + "\nStack Trace: " + error.getStackTrace() + "\nError: " + error.toString());
private function handleFault(event:FaultEvent):void
Alert.show(event.fault.faultDetail, event.fault.faultString);
]]>
</mx:Script>
<mx:Panel
id="pnl_signin"
title="Sign In"
horizontalAlign="center"
verticalAlign="middle"
>
<mx:Form
id="frm_signin"
cornerRadius="5"
defaultButton="{btn_signin}"
>
<mx:FormItem
id="fi_username"
label="Username:"
>
<mx:TextInput
id="txt_username"
/>
</mx:FormItem>
<mx:FormItem
id="fi_password"
label="Password:"
>
<mx:TextInput
id="txt_password"
displayAsPassword="true"
/>
</mx:FormItem>
</mx:Form>
<mx:ControlBar>
<mx:LinkButton
id="lnk_request_password"
label="Forgot your password?"
click="currentState='RequestPassword'"
/>
<mx:Spacer
id="spc_spacer"
width="100%"
/>
<mx:Button
id="btn_signin"
label="Sign In"
click="sign_in(event)"
/>
</mx:ControlBar>
</mx:Panel>
<mx:states>
<mx:State
name="RequestPassword"
>
<mx:SetProperty
target="{pnl_signin}"
name="title"
value="Request New Password"
/>
<mx:SetProperty
target="{btn_signin}"
name="label"
value="Submit Request"
/>
<mx:RemoveChild
target="{lnk_request_password}"
/>
<mx:RemoveChild
target="{fi_password}"
/>
<mx:AddChild
relativeTo="{spc_spacer}"
position="before"
>
<mx:target>
<mx:LinkButton
id="lnk_sign_in"
label="Return to Sign In form."
click="currentState=''"
/>
</mx:target>
</mx:AddChild>
</mx:State>
</mx:states>
<mx:transitions>
<mx:Transition
fromState="*"
toState="*"
>
<mx:Parallel
id="trn_default"
targets="{['RequestPassword']}"
>
<mx:Fade
alphaFrom="0.0"
alphaTo="1.0"
/>
</mx:Parallel>
</mx:Transition>
</mx:transitions>
</mx:Module>
Ideas?
Thanks!
MikeHi there, there's a constraint between flash player and web browsers so in order to gain focus in any object inside the flash player you must manually click inside the flash player instance.
Maybe you are looking for
-
Hi Experts, Please help me to solve this two issues I will give you clearly about my client requirement in the current system (existing) already configured for shift allowance. shift allowance for executive Shift Allowance Rates 2 shift 3 shift RM
-
MD01- PR not getting generated
Hi, When i am running MRP in MD01,it is showing me : No materials were planned Statistics Materials planned Materials with new exceptions Materials with terminated MRP list Parameters Scope of Planning Plnt
-
Looking for a music player with a very specific feature
I've been looking for this ever since I completely left windows behind, and six months later, it's killing me that I haven't found the right music player. Obviously, I used to use foobar2000. The greatest thing about it for was the 'facets' extension
-
Syncing photos from another profile
Hi all I have an iMac and have 2 profiles. 1 is for my business where I have work photos document and also iTunes which i sync my iPhone, iPad and iPods to. The 2nd profile is solely for family photos. My main question is, how do I sync my Iphone, iP
-
Inluding java webdynpro apps into portal transport packages
Hi All, Platform: EP7 SPS13, solaris, oracle DB I would like to know how to include java webdynpro apps into portal transport packages. I was reading documentation but I was not able to accomplish this. I have modified Pcd.TransportApplication.Export