Parameter Text set maximum length
I have 2 paramenters with requirements below
Set the maximum length of the parameter to 4 typed in the text box.
Set the maximum length of the parameter to 2 and allow only alphabets typed in the text box.
ShanmugaRaj
Hi ShanmugaRaj,
If I understand correctly, you have two parameters in the report. You have not set the available and default values of these parameters. User would type the parameters’ values manually. The parameter value of the first parameter should be less than 4 characters.
The parameter value of the second parameter is less than 2 characters, and it can only type alphabets characters.
Suppose these two parameters is: Parameter1 and Parameter2. Please refer to the following filter:
Filter1:
Expression: =InStr(Fields!Field1.Value,Parameters!Parameter1.Value)
Operator: =
Value:
=IIF(Len(Parameters! Parameter1.Value)<=4 and
InStr(Fields!Field1.Value,Parameters! Parameter1.Value),
1,Nothing)
Filter2:
Expression: =InStr(Fields!Field2.Value,Parameters!Parameter2.Value)
Operator: =
Value:
=IIF(Len(Parameters! Parameter2.Value)>2 and
(IsNumeric(Left(Parameters! Parameter2.Value,1)) or IsNumeric(Left(Parameters! Parameter2.Value,2)))
and InStr(Fields! Field2.Value,Parameters! Parameter2.Value)=0,
Nothing,1)
If there are any misunderstanding, please elaborate the issue for further investigation.
Regards,
Alisa Tang
If you have any feedback on our support, please click
here.
Alisa Tang
TechNet Community Support
Similar Messages
-
Xsd:integer - how to set maximum length
Hi,
In a structure, I have set some of fields as xsd:integer. my scenario is file to proxy. while generating the inbound proxy, for those elements which are xsd:integer, the data dictionary fields are authomatically set to INT4. Whereas the actual field length is 15. so when i test with the data the proxy fails as there is a mismatch is the length. how do i overcome this problem.
can i set the length of the field when the data type is xsd:integer so that while generating the proxy automatically this field length is taken. or otherwise can i change the data type in the dictionary table.
kindly advise.
Balaexperts,
can anyone suggest how to deal with this issue.
thanks in advance. bala -
TextEdit: set maximum length
Hi,
Is there a way of setting the maximum number of characters that may be entered in a text edit field.
Many Thanks,
PaulHi, to clarify slightly.
I am using the following htmlb control to accept text in a BSP.
<htmlb:textEdit id = "AREA_REASON"
text = "<%=AREA_REASON%>"
height = "50"
width = "400" />
Currently the user can enter as much text as they want into this window. I want to limit the text to 255 chars to prevent potential loss of text when the data is passed to the back end.
If there is no way of doing this by setting a htmlb property would it be possible to use javascript to do this?
Thanks,
Paul -
How to set maximum length for TextEdit
Hi all,
I have a TextEdit UI element in my webdynpro page and I want to set the maximum number of characters that can be entered in this TextEdit. How can I do this?
Thanks,
Satyajit.Hi Arun,
thanks for the reply. But I also want to use the same scenario for an Inputfield. Now I used the same method here and when viewed in the browser, the entire InputField has been stretched. How can I keep the view of the InputField as default but still have a restriction on the number of characters that can be entered in this InputField? It works for TextEdit.
Thanks,
Satyajit. -
Set maximum length for JFormettedtextfield
Hi,
how can restrict user to fill only 10 characters in JFormettedtextfield .
thanks in advanceHi camickr,
thanks for the hint................
i had written the following code for that................is this ok.
Here i want to allow user to enter characters other than alpha and number.
javax.swing.text.MaskFormatter formatter;
try {
formatter = new javax.swing.text.MaskFormatter("*");
formatter.setInvalidCharacters("0123456789ABCDEFGHHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");
flat_file_delimiterFormattedTextField = new javax.swing.JFormattedTextField(formatter);
} catch (ParseException e) {
// TODO Auto-generated catch block
javax.swing.JOptionPane.showMessageDialog(null,"Bad Format :","Error",javax.swing.JOptionPane.ERROR_MESSAGE);
//e.printStackTrace();
} -
Set maximum size in Text Form Field Options for a field in bi publisher RTF
Hi All,
How to set maximum size in Text Form Field Options for a field in bi publisher RTF.
I have a RTF whch is having a field in that i need to add some validation condition but after adding certain condition in Add help text tab ,it is not accepting after certain length, how i can increase the length to unlimited,please help me on this
ThnaksForm fields have some restrictions if your are using version lower than 11g.
They can accommodate only 393 chars. You can add the text in both status bar and help key, which can in total consume 393 chars.
If your code logic is more than that, it can be split into multiple form fields as Avinash suggested or you can use sub template logic and handle coding over there. Again in sub template code can be within/outside form fields.
So there is no option for user to increase the size of form field. -
Set the maximum length of textedit element in webdynpro
Hi All,
How to set the maximum length of texedit element to a some constant characters.setting col and row property to 10 and 2 didnot set max length to 40.setting width and height also didnt helped to limit the characters user can enter to 20.
Thanks,
pkv>
pkv wrote:
> Hi All,
>
> How to set the maximum length of texedit element to a some constant characters.setting col and row property to 10 and 2 didnot set max length to 40.setting width and height also didnt helped to limit the characters user can enter to 20.
>
> Thanks,
> pkv
Hi,
Setting row and height is for layout purposes and not for the limiting of text in a TextEdit UI Element.
To ensure that the Text Exit has only 40 characters in 04s - you can do as Alka has suggested.
For doing the same in CE 7.1 - you can use the onChange Action and write code inside that method to limit the number of characters.
I would suggest that you use IWDMessageManager to show a message in the MessageTray whenever the user goes over the limit of 40 characters - rather than accept the whole text and then show some sort of popup.
Thanks.
p256960 -
How set maximum character length in Fxml
Hey can any body help me set Maximum character length in Fxml.
thanx in advanceI wrote my own TextField.
I can't give you the code right now, but it's easy to create it by yourself.
0 - create a private method that deletes any unwanted char/s: restoreRightLength();
1 - Add a listener on the textProperty of your TextField/TextArea that calls restoreRightLength() method.
2 - Override the following methods:
@Override
public void replaceText(int start, int end, String text) {
super.replaceText(start, end, text);
restoreRightLength();
@Override
public void replaceSelection(String text) {
super.replaceSelection(text);
restoreRightLength(); -
How to set the maximum length that a user can enter in Msgstyledtextinput
Hi Everyone,
I'm currently using EBS 11.5.1 and 10.2g DB
Is there a way that I can set the maximum length that a user can input?
I changed the Maximum Length to lower number (from 150 to 100) but I get the following error.
Developer Mode Exception encountered in item SaveLocation
Error: The item SaveLocation has a maximum length (100)
which is not equal to that of the corresponding VO attribute
, SaveLocation length (150).
Action: Make sure they are equal in size. There must be other way to set that value
Thanks,
ElmerYou have to set the maximum length of column to 150 to avoid this error.
You can set the same in Jdev.
Thanks
--Anil -
I am getting this back:
TypeError: Error #2007: Parameter text must be non-null.
at flash.text::TextField/set text()
at AS3_Flash_Poll_PHP_MySQL_fla::WholePoll_1/completeHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
PHP code:
<?php
// ---------------------------------------- Section 1 -----------------------------------------------
// IMPORTANT!!!! Connect to MySQL database here(put your connection data here)
mysql_connect("ginaty05.fatcowmysql.com","fall2010","@regina") or die (mysql_error());
mysql_select_db("poll_2010") or die (mysql_error());
// When Flash requests the totals initially we run this code
if ($_POST['myRequest'] == "load_numbers") {
// Query the totals from the database
$sql1 = mysql_query("SELECT id FROM votingPoll WHERE choice='1'");
$choice1Count = mysql_num_rows($sql1);
$sql2 = mysql_query("SELECT id FROM votingPoll WHERE choice='2'");
$choice2Count = mysql_num_rows($sql2);
$sql3 = mysql_query("SELECT id FROM votingPoll WHERE choice='3'");
$choice3Count = mysql_num_rows($sql3);
echo "choice1Count=$choice1Count";
echo "&choice2Count=$choice2Count";
echo "&choice3Count=$choice3Count";
// ---------------------------------------- Section 2 -----------------------------------------------
// IF POSTING A USER'S CHOICE
if ($_POST['myRequest'] == "store_choice") {
//Obtain user IP address
$ip = $_SERVER['REMOTE_ADDR'];
// Create local variable from the Flash ActionScript posted variable
$userChoice = $_POST['userChoice'];
$sql = mysql_query("SELECT id FROM votingPoll WHERE ipaddress='$ip'");
$rowCount = mysql_num_rows($sql);
if ($rowCount == 1) {
$my_msg = "You have already voted in this poll.";
print "return_msg=$my_msg";
} else {
$sql_insert = mysql_query("INSERT INTO votingPoll (choice, ipaddress) VALUES('$userChoice','$ip')") or die (mysql_error());
$sql1 = mysql_query("SELECT * FROM votingPoll WHERE choice='1'");
$choice1Count = mysql_num_rows($sql1);
$sql2 = mysql_query("SELECT * FROM votingPoll WHERE choice='2'");
$choice2Count = mysql_num_rows($sql2);
$sql3 = mysql_query("SELECT * FROM votingPoll WHERE choice='3'");
$choice3Count = mysql_num_rows($sql3);
$my_msg = "Thanks for voting!";
echo "return_msg=$my_msg";
echo "&choice1Count=$choice1Count";
echo "&choice2Count=$choice2Count";
echo "&choice3Count=$choice3Count";
?>
AS3 code:
stop(); // Stop the timeline since it does not need to travel for this to run
// Assign a variable name for our URLVariables object
var variables1:URLVariables = new URLVariables();
// Build the varSend variable
var varSend1:URLRequest = new URLRequest("parse_my_poll.php");
varSend1.method = URLRequestMethod.POST;
varSend1.data = variables1;
// Build the varLoader variable
var varLoader1:URLLoader = new URLLoader;
varLoader1.dataFormat = URLLoaderDataFormat.VARIABLES;
varLoader1.addEventListener(Event.COMPLETE, completeHandler1);
// Set variable to send to PHP here for the varloader below
variables1.myRequest = "load_numbers";
// Send data to php file now, and wait for response using the COMPLETE event
varLoader1.load(varSend1);
function completeHandler1(event:Event):void{
count1_txt.text = "" + event.target.data.choice1Count;
count2_txt.text = "" + event.target.data.choice2Count;
count3_txt.text = "" + event.target.data.choice3Count;
// hide the little processing movieclip
processing_mc.visible = false;
// Initialize the choiceNum variable that we will use below
var choiceNum:Number = 0;
// Set text formatting colors for errors and success messages
var errorsFormat:TextFormat = new TextFormat();
errorsFormat.color = 0xFF0000; // bright red
var successFormat:TextFormat = new TextFormat();
successFormat.color = 0x00FF00; // bright green
// Button Click Functions
function btn1Click(event:MouseEvent):void{
choiceNum = 1;
choice_txt.text = choice1_txt.text;
function btn2Click(event:MouseEvent):void{
choiceNum = 2;
choice_txt.text = choice2_txt.text;
function btn3Click(event:MouseEvent):void{
choiceNum = 3;
choice_txt.text = choice3_txt.text;
// Button Click Listeners
btn1.addEventListener(MouseEvent.CLICK, btn1Click);
btn2.addEventListener(MouseEvent.CLICK, btn2Click);
btn3.addEventListener(MouseEvent.CLICK, btn3Click);
// Assign a variable name for our URLVariables object
var variables:URLVariables = new URLVariables();
// Build the varSend variable
var varSend:URLRequest = new URLRequest("parse_my_poll.php");
varSend.method = URLRequestMethod.POST;
varSend.data = variables;
// Build the varLoader variable
var varLoader:URLLoader = new URLLoader;
varLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
varLoader.addEventListener(Event.COMPLETE, completeHandler);
// Handler for PHP script completion and return
function completeHandler(event:Event):void{
// remove processing movieclip
processing_mc.visible = false;
// Clear the form fields
choice_txt.text = "";
choiceNum = 0;
// Load the response from the PHP file
status_txt.text = event.target.data.return_msg;
status_txt.setTextFormat(errorsFormat);
if (event.target.data.return_msg == "Thanks for voting!") {
// Reload new values into the count texts only if we get a proper response and new values
status_txt.setTextFormat(successFormat);
count1_txt.text = "" + event.target.data.choice1Count;
count2_txt.text = "" + event.target.data.choice2Count;
count3_txt.text = "" + event.target.data.choice3Count;
// Add an event listener for the submit button and what function to run
vote_btn.addEventListener(MouseEvent.CLICK, ValidateAndSend);
// Validate form fields and send the variables when submit button is clicked
function ValidateAndSend(event:MouseEvent):void {
//validate form fields
if(!choice_txt.length) {
// if they forgot to choose before pressing the vote button
status_txt.text = "Please choose before you press vote.";
status_txt.setTextFormat(errorsFormat);
} else {
status_txt.text = "Sending...";
processing_mc.visible = true;
// Ready the variables for sending
variables.userChoice = choiceNum;
variables.myRequest = "store_choice";
// Send the data to the php file
varLoader.load(varSend);
} // close else after form validation
} // Close ValidateAndSend function ////////////////////////This error means that you are trying to set the text field but there is no data in the variable. As a first step, try to identify where this is happening, eg Is it the first call, or once you have submitted your data or only if you try to submit data second time?
Trace out the data that is returned for both completeHandlers to see if there is a missing var. Try this for "load_numbers" and "store_choice". Do it twice for "store_choice". Do you get back what you expected?
You could also try altering the php to return some fixed dummy variables, eg choice1Count=11&choice2Count=22&choice3Count=33, etc. If this works then you know that the error is in the PHP.
It looks to me like the issue is when you submit the data a second time and just get back the return_msg - the handler then tries to assign the choice1Count etc but doesn't have any count data back from the poll.php.
Test that there is data before assigning it, eg
if(event.target.data.choice1Count){
count1_txt.text = event.target.data.choice1Count;
count2_txt.text = event.target.data.choice2Count;
count3_txt.text = event.target.data.choice3Count; -
Hi - Still new to flash as3 and php -
it is a contact form page - user puts in information - i am to receive it in an email address their information
as well the variables get sent back from the php to the .swf file.
I am receiving these errors and not knowing how to fix them.
any help would be much appreciated. thank you in advance really.
below are the errors in flash - as3 code - and php code setup.
errors:
ActionScript 3 + PHP: TypeError: Error #2007: Parameter text must be non-null:
at flash.text::TextField/set text()
at kwangjaekim_fla::wholeform_16/completeHandler()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()
my as3 code is the following:
// build variable name for the URL Variables loader
var variables:URLVariables = new URLVariables();
//Build the varSend variable
var varSend:URLRequest = new URLRequest("contact_parse.php");
varSend.method = URLRequestMethod.POST;
varSend.data = variables;
//Build the varLoader variable
var varLoader:URLLoader = new URLLoader;
varLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
varLoader.addEventListener(Event.COMPLETE, completeHandler);
//handler for the PHP script completion and return of status
function completeHandler(event:Event):void{
//value is cleared at ""
name_txt.text = "";
contact_txt.text = "";
msg_txt.text = "";
//Load the response PHP here
status_txt.text = event.target.data.return_msg;
//Add event listener for submit button click
submit_btn.addEventListener(MouseEvent.CLICK, ValidateAndSend);
//function ValidateAndSend
function ValidateAndSend(event:MouseEvent):void{
//validate fields
if(!name_txt.length){
status_txt.text = "Please Enter Your Name";
}else if(!contact_txt.length){
status_txt.text = "Please Enter Your Contact Detail";
}else if(!msg_txt.length){
status_txt.text = "Please Enter Your Message";
}else {
// ready the variables in form for sending
variables.userName = name_txt.text;
variables.userContact = contact_txt.text;
variables.userMsg = msg_txt.text;
// Send the data to PHP now
varLoader.load(varSend);
submit_btn.addEventListener(MouseEvent.CLICK, function(){MovieClip(parent).gotoAndPlay(151)});
} // Close else condition for error handling
} // Close validate and send function
my php code is the following:
<?php
// Create local PHP variables from the info the user gave in the Flash form
$senderName = $_POST['userName'];
$senderEmail = $_POST['userContact'];
$senderMessage = $_POST['userMsg'];
// Strip slashes on the Local variables
$senderName = stripslashes($senderName);
$senderContact = stripslashes($senderContact);
$senderMessage = stripslashes($senderMessage);
//!!!!!!!!!!!!!!!!!!!!!!!!! change this to my email address !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
$to = "put iny me email address";
// Place sender Email address here
$from = "$senderContact ";
$subject = "Contact from your site";
//Begin HTML Email Message
$message = <<<EOF
<html>
<body bgcolor="#FFFFFF">
<b>Name</b> = $senderName<br /><br />
<b>Contact</b> = <a href="mailto:$senderContact">$senderEmail</a><br /><br />
<b>Message</b> = $senderMessage<br />
</body>
</html>
EOF;
//end of message
$headers = "From: $from\r\n";
$headers .= "Content-type: text/html\r\n";
$to = "$to";
mail($to, $subject, $message, $headers);
exit();
?>
thank you once again
jaythank you Ned -
i put in the trace line as you mentioned -
and this is what i received -
returns: undefined
TypeError: Error #2007: Parameter text must be non-null
at flash.text::TextField/set text()
at kwangjaekim_fla::wholeform_16/completeHandler()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()
what does this mean exactly?
thank you for the help really -
TypeError: Error #2007: Parameter text must be non-null
I am new to AS period, but I am following some training videos for AS 3.0 to create a portfolio site where the images and text are loaded by xml.
I have followed the instructions to the letter; however I am getting the #2007 Parameter text must be not-null error.
I have pasted my code below:
var titleArray:Array = new Array();
var descriptionArray:Array = new Array();
var largeImageArray:Array = new Array();
var thumbnailImageArray:Array = new Array();
var imageNum:Number=0;
var totalImages:Number;
//XML
//load in XML
var XMLURLLoader:URLLoader = new URLLoader();
XMLURLLoader.load(new URLRequest("assets/portfolio/portfolio.xml"));
XMLURLLoader.addEventListener(Event.COMPLETE, processXML);
function processXML(event:Event):void {
var theXMLData:XML=new XML(XMLURLLoader.data);
totalImages=theXMLData.title.length();
for (var i:Number = 0; i < totalImages; i++) {
titleArray.push(theXMLData.title[i]);
descriptionArray.push(theXMLData.description[i]);
largeImageArray.push(theXMLData.largeImage[i]);
thumbnailImageArray.push(theXMLData.thumbImage[i]);
loadThumbnail();
myScrollPane.source=allThumbnails;
//LOAD THE THUMBNAILS
function loadThumbnail():void {
trace(imageNum);
var thumbLoader:Loader = new Loader();
thumbLoader.load(new URLRequest(thumbnailImageArray[imageNum]));
thumbLoader.x = 90*imageNum;
//stores the appropriate info for thumbnail
var thisLargeImage:String = largeImageArray[imageNum];
var thisTitle:String = titleArray[imageNum];
var thisDescription:String = descriptionArray[imageNum];
thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);
function thumbLoaded(event:Event):void {
//add the thumbnails to the allThumbnails instance
allThumbnails.addChild(thumbLoader);
allThumbnails.buttonMode = true;
myScrollPane.update();
thumbLoader.addEventListener(MouseEvent.CLICK, loadMainImage1);
function loadMainImage1(event:MouseEvent):void {
largeUILoader.source=thisLargeImage;
selectedTitle.text=thisTitle;
selectedDesc.text=thisDescription;
//add to imageNum (1);
imageNum++;
if (imageNum<totalImages) {
loadThumbnail();
I know my error has something to do with this part of the code:
//stores the appropriate info for thumbnail
var thisLargeImage:String = largeImageArray[imageNum];
var thisTitle:String = titleArray[imageNum];
var thisDescription:String = descriptionArray[imageNum];
but I can't figure out what's wrong. When I test my movie, everything functions correctly except when I click on a different thumbnail, the proper description does not load. My xml file is set up correctly. Here is a bit of that code:
<?xml version="1.0" encoding="UTF-8"?>
<portfolio>
<!--Image 1-->
<title>Spark Your Imagination Ad</title>
<![CDATA[<description>These black & white ads were designed to run in the trade publication The Green Sheet in the Merchant Acquiring Industry</description>]]>
<largeImage>assets/portfolio/lg/1.jpg</largeImage>
<thumbImage>assets/portfolio/thumbs/1.jpg</thumbImage>
<!--Image 2-->
<title>Corporate Business Card - iMax Bancard</title>
<![CDATA[<description>This full color double-sided business card is the current standard card being used by employees and agents of iMax Bancard</description>]]>
<largeImage>assets/portfolio/lg/2.jpg</largeImage>
<thumbImage>assets/portfolio/thumbs/2.jpg</thumbImage>
</portfolio>
The only thing different with my xml code is that in the tutorial I am following, the <description></description> tags are on the outside of the CDATA tags (which I have seen examples of both)... but when I put the code that way, it causes breaks in my code at the first special character I use.
Any help is appreciated. Thanks, Jenclick file/publish settings/flash and tick "permit debugging". retest. the line number with the non-existant object will be in the error message.
-
As3 TypeError:#2007 Parameter text must be non-null can't fix.
I have comment box project. As3+php based project.And have #2007 Error.Try to fix but can't do anything.If can help it would be very helpful.Error part like this:
TypeError: Error #2007: Parameter text must be non-null. at flash.text::TextField/set text() at comment2_fla::mc_1/completeHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete()
First Part of Code:
var variables_re:URLVariables = new URLVariables();
var varSend_re:URLRequest = new URLRequest("guestbookParse.php");
varSend_re.method = URLRequestMethod.POST;
varSend_re.data = variables_re;
var varLoader_re:URLLoader = new URLLoader;
varLoader_re.dataFormat = URLLoaderDataFormat.VARIABLES;
varLoader_re.addEventListener(Event.COMPLETE,completeHandler_re);
function completeHandler_re(event:Event):void{
if(event.target.data.returnBody==""){
gbOutput_txt.text = "no data";
} else {
gbOutput_txt.condenseWhite = true;
gbOutput_txt.htmlText = "" + event.target.data.returnBody;
variables_re.comType = "requestEntries";
varLoader_re.load(varSend_re);
Second Part of Code:
msg_txt.restrict = "ığüşöç A-Za-z 0-9";
name_txt.restrict = "ığüşöç A-Za-z 0-9";
var errorsFormat:TextFormat = new TextFormat();
errorsFormat.color = 0XFF0000;
processing_mc.visible = false;
var variables:URLVariables = new URLVariables();
var varSend:URLRequest = new URLRequest("guestbookParse.php");
varSend.method = URLRequestMethod.POST;
varSend.data = variables;
var varLoader:URLLoader = new URLLoader;
varLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
varLoader.addEventListener(Event.COMPLETE,completeHandler);
function completeHandler(event:Event):void{
processing_mc.visible = false;
name_txt.text = "";
msg_txt.text = "";
status_txt.text = event.target.data.return_msg;
gbOutput_txt.condenseWhite = true;
gbOutput_txt.htmlText=""+event.target.data.returnBody;
submit_btn.addEventListener(MouseEvent.CLICK,ValidateAndSend);
function ValidateAndSend(event:MouseEvent):void{
if(!name_txt.length){
status_txt.text = "İsminizi Girin";
status_txt.setTextFormat(errorsFormat);
} else if (!msg_txt.length){
status_txt.text = "Yorum Girin";
status_txt.setTextFormat(errorsFormat);
}else{
processing_mc.visible = true;
variables.comType = "parseComment";
variables.userName = name_txt.text;
variables.userMsg = msg_txt.text;
varLoader.load(varSend);
status_txt.text = "Yorumunuz Eklendi...";
Php Part:
<?php
mysql_connect("localhost","root","") or die (mysql_error());
mysql_select_db("yorum") or die (mysql_error());
if ($_POST['comType'] == "parseComment") {
$name = $_POST['userName'];
$location = $_POST['userLocation'];
$comment = $_POST['userMsg'];
$sql = mysql_query("INSERT INTO guestbook (name, post_date, comment, location)
VALUES('$name', now(),'$comment','$location')")
or die (mysql_error());
$body = "";
$sql = mysql_query("SELECT * FROM guestbook ORDER BY post_date DESC");
while($row = mysql_fetch_array($sql)) {
$id = $row["id"];
$name = $row["name"];
$post_date = $row["post_date"];
$comment = $row["comment"];
$location = $row["location"];
$comment = stripslashes($comment);
$name = eregi_replace("'", "'", $name);
$location = eregi_replace("'", "'", $location);
$comment = eregi_replace("'", "'", $comment);
$post_date = strftime("%b %d, %y", strtotime($post_date));
$body .= '<u><b><font color="#790000">' . $name . '</font> | <font color="#9B9B9B">' . $location . '</font> | <font color="#9B9B9B">' . $post_date . '</font></b></u>
<br />
'.$comment.'
<br />
<br />
mysql_free_result($sql);
mysql_close();
echo "return_msg=Entry has been added successfully $name, thanks!&returnBody=$body";
exit();
if ($_POST['comType'] == "requestEntries") {
$body = "";
$sql = mysql_query("SELECT * FROM guestbook ORDER BY post_date DESC");
while($row = mysql_fetch_array($sql)) {
$id = $row["id"];
$name = $row["name"];
$post_date = $row["post_date"];
$comment = $row["comment"];
$location = $row["location"];
$comment = stripslashes($comment);
$post_date = strftime("%b %d, %y", strtotime($post_date));
$body .= '<u><b><font color="#790000">' . $name . '</font> | <font color="#9B9B9B">' . $location . '</font> | <font color="#9B9B9B">' . $post_date . '</font></b></u>
<br />
'.$comment.'
<br />
<br />
mysql_free_result($sql);
mysql_close();
echo "returnBody=$body";
exit();
?>use the trace function to debug:
function completeHandler(event:Event):void{
processing_mc.visible = false;
name_txt.text = "";
msg_txt.text = "";
status_txt.text = event.target.data.return_msg;
gbOutput_txt.condenseWhite = true;
trace("::"+event.target.data.returnBody+"::");
gbOutput_txt.htmlText=""+event.target.data.returnBody;
// and then initialize $body outside those if-statements or ensure you're sending an appropriate comType variable and value.
// right now it doesn't look like you're even sending comType with varSend.
// ie, you must assign the urlrequest data property AFTER urlvariable variables/values are assigned. -
Hi,
I have a problem with Early Media functionality between Lync and Mediant 1000 E-SBC. If SBC Remote Early Media RTP parameter is set to Delayed (on IP Profile Settings level) i cannot establish connection. After receiving 183 Session progress (from Lync site)
call is released with 488 event (488 is sent from mediant site). Before "Not applicable here" in logs i can see:
6d:9h:46m:35s ( lgr_flow)(18219 ) #MediaResourcesConnector::AllocateMediaResources
(lgr_media_connector)(18220 ) MediaResourcesConnector:CalculateResourcesForAppExtensions Leading:DSP Opposite:NONE MediationLevel:NONE
(lgr_media_service)(18221 ) ServicesMngr: Allocate Media channel. current active: 0 and max is: 0
6d:9h:46m:35s (lgr_media_service)(18222 ) !! [ERROR] ServicesMngr: Cannot allocate more Media channel. current active: 0 and max is: 0
6d:9h:46m:35s (lgr_media_service)(18261 ) (#292) ChannelResource Deallocated.
6d:9h:46m:35s (lgr_media_service)(18262 ) (#293) ChannelResource Deallocated.
I need this because if im using SBC Remote Early Media RTP = Immidiately i cannot hear ringtone. Could someone give me any clues what is wrong in config?
I enclosed detailed logs:
Log is Activated 6d:9h:46m:35s ( lgr_sbc)(18057 ) (#51) SBCRoutesIterator Allocated.
( lgr_sbc)(18058 ) Classification Succeeded - Source IP Group #2.
( lgr_sbc)(18059 ) CallAdmission::AddDialog: Type INVITE Direction In IP group 2: 1 SRD 2: 1 SRD ovflw:1 used unres:1
( lgr_flow)(18060 ) (#51)SBCRoutesIterator::Change State From: InitialRouting To : AlternativeRouting
( lgr_sbc)(18061 ) CallAdmission::AddDialog: Type INVITE Direction Out IP group 1: 1 SRD 1: 1 SRD ovflw:1 used unres:2
( lgr_flow)(18062 ) (#51)SBCRoutesIterator::Next route found: Route by: IPGroup , IP Group ID: 1, Live:1
( lgr_sbc)(18063 ) Routing Succeeded -IP2IPRouting Rule #2.
( lgr_flow)(18064 ) ---- Incoming SIP Message from switch:5060 to SIPInterface #2 UdpTransportObject[#2] ----
6d:9h:46m:35s INVITE sip:1234@Mediant;user=phone SIP/2.0
Allow: INVITE, ACK, CANCEL, BYE, PRACK, NOTIFY, REFER, SUBSCRIBE, OPTIONS, UPDATE, INFO
Supported: replaces,timer,path,100rel
User-Agent: OmniPCX Enterprise R10.1.1 j2.603.33.a
Session-Expires: 1800;refresher=uac
Min-SE: 900
P-Asserted-Identity: "TPSA 12" <sip:221111111@switch;user=phone>
Content-Type: application/sdp
To: <sip:1234@Mediant;user=phone>
From: "TPSA 12" <sip:221111111@switch;user=phone>;tag=434636a077aeb3418ef3d5c0887debbd
Contact: <sip:221111111@switch;transport=UDP>
Call-ID: 5050e7eb34568795c049d14a6b088172@switch
CSeq: 1290334631 INVITE
Via: SIP/2.0/UDP switch;branch=z9hG4bK668ced008893ef177292c6f0f662ca02
Max-Forwards: 70
Content-Length: 265
v=0
o=OXE 1415263596 1415263596 IN IP4 switch
s=abs
c=IN IP4 172.16.20.32
t=0 0
m=audio 32156 RTP/AVP 8 4 97
a=sendrecv
a=rtpmap:8 PCMA/8000
a=ptime:20
a=maxptime:30
a=rtpmap:4 G723/8000
a=ptime:30
a=maxptime:30
a=rtpmap:97 telephone-event/8000
( sip_stack)(18066 ) New SIPMessage created - #57
( sip_stack)(18067 ) New SIPSBCCallLeg created - #1695
6d:9h:46m:35s ( sip_stack)(18068 ) New AcSIPCall created - #1922
( sip_stack)(18069 ) AcTransactionUser::AddMessageToQueue: Queueing message
6d:9h:46m:35s ( sip_stack)(18102 ) SIPCall(#1922) changes state from Idle to Invited
6d:9h:46m:35s ( sip_stack)(18164 ) SIPCall(#1921) changes state from Idle to Inviting
( sip_stack)(18165 ) SIPSessionTimer<TU#1921>::FillSTRequestData - Session-Timer mode: TRANSPARENT
( lgr_flow)(18166 ) ---- Outgoing SIP Message to Lync2:5068 from SIPInterface #1 TcpTransportObject[#648] ----
6d:9h:46m:35s ( lgr_flow)(18178 ) ---- Incoming SIP Message from Lync2:5068 to SIPInterface #1 TcpTransportObject[#648] ----
SIP/2.0 183 Session Progress
FROM: "TPSA 12"<sip:221111111@switch;user=phone>;tag=1c1656521459
TO: <sip:1234@Mediant;user=phone>;tag=499c98c8cd;epid=DE8F26F104
CSEQ: 1 INVITE
CALL-ID: 1656462877611201494635@Mediant
VIA: SIP/2.0/TCP Mediant:5068;branch=z9hG4bKac1657277504;alias
CONTACT: <sip:lyfe02.grupa.lukas:5068;transport=Tcp;maddr=Lync2>
CONTENT-LENGTH: 281
CONTENT-TYPE: application/sdp
ALLOW: CANCEL
ALLOW: BYE
ALLOW: UPDATE
ALLOW: PRACK
REQUIRE: 100rel
SERVER: RTCC/5.0.0.0 MediationServer
Rseq: 1
v=0
o=- 89 1 IN IP4 Lync2
s=session
c=IN IP4 Lync2
b=CT:1000
t=0 0
m=audio 52882 RTP/AVP 8 97
c=IN IP4 Lync2
a=rtcp:52883
a=label:Audio
a=sendrecv
a=rtpmap:8 PCMA/8000
a=rtpmap:97 telephone-event/8000
a=fmtp:97 0-16
m=audio 0 RTP/SAVP 8 4 97
( sip_stack)(18180 ) New SIPMessage created - #55
( lgr_flow)(18181 ) | |(SIPTU#1921)183 State:Proceeding(1656462877611201494635@Mediant)
6d:9h:46m:35s ( lgr_stk_ses)(18182 ) | | | #1694:SIP_ALERT_EV(1656462877611201494635@Mediant)
( sip_stack)(18183 ) SDPBody::New - id = 126
( sip_stack)(18184 ) SDPBodyMedia::New - id = 541
( sip_stack)(18185 ) SDPBodyMedia::New - id = 540
( sip_stack)(18186 ) <BaseSIP SDPSESSION #1694> UpdateChosenMediaByCN - CN as Remote -1
( sip_stack)(18187 ) SDPBodyMedia::New - id = 539
( sip_stack)(18188 ) SDPBodyMedia::New - id = 538
( lgr_stk_ses)(18189 ) SBCOfferAnswerMngr(#1694) changes state from SIP_MEDIA_OFFERING to SIP_MEDIA_COMPLETED
( lgr_stk_ses)(18190 ) <SESSION #1694> SendToCall - event: MEDIA_NEGOTIATION_COMPLETED_EV m_Call#1852
( lgr_flow)(18191 ) | | (#1852)SBCCall <- (#1694)SIPSBCCallLeg: MEDIA_NEGOTIATION_COMPLETED_EV
( lgr_flow)(18192 ) | (#59)SBCCallPlacementFeature <- (#1852)SBCCall: MEDIA_NEGOTIATION_COMPLETED_EV
( lgr_flow)(18193 ) | (#1853)SBCParticipantEndPoint <- (#59)SBCCallPlacementFeature: MEDIA_NEGOTIATION_COMPLETED_EV
6d:9h:46m:35s ( lgr_flow)(18219 ) #MediaResourcesConnector::AllocateMediaResources
(lgr_media_connector)(18220 ) MediaResourcesConnector:CalculateResourcesForAppExtensions Leading:DSP Opposite:NONE MediationLevel:NONE
(lgr_media_service)(18221 ) ServicesMngr: Allocate Media channel. current active: 0 and max is: 0
6d:9h:46m:35s (lgr_media_service)(18222 ) !! [ERROR] ServicesMngr: Cannot allocate more Media channel. current active: 0 and max is: 0
6d:9h:46m:35s (lgr_media_service)(18261 ) (#292) ChannelResource Deallocated.
6d:9h:46m:35s (lgr_media_service)(18262 ) (#293) ChannelResource Deallocated.
6d:9h:46m:35s ( lgr_flow)(18263 ) | | (#1853)SBCCall <- (#1695)SIPSBCCallLeg: RELEASE_EV
( lgr_flow)(18264 ) | | (#1853) SBCCall changing states from:AlertingState to:DisconnectingState
( lgr_flow)(18265 ) | (#1852)SBCParticipantEndPoint <- (#1853)SBCCall: RELEASE_EV
( lgr_flow)(18266 ) (#1852) SBCParticipantEndPoint changing states from:InitiatedState to:ReleaseingState
( lgr_flow)(18267 ) (#1035)SBCController <- (#1852)SBCParticipantEndPoint: RELEASE_EV
( lgr_flow)(18268 ) | | (#1035) SBCController changing states from:EstablishingState to:DisconnectingState
( lgr_flow)(18269 ) | (#1853)SBCParticipantEndPoint <- (#1035)SBCController: RELEASE_EV
( lgr_flow)(18270 ) (#1853) SBCParticipantEndPoint changing states from:InitiatedState to:ReleaseingState
( lgr_flow)(18271 ) | (#59)SBCCallPlacementFeature <- (#1853)SBCParticipantEndPoint: RELEASE_EV
( lgr_flow)(18272 ) (#59) SBCCallPlacementFeature changing states from: Initiated to: Releasing
6d:9h:46m:35s ( lgr_flow)(18273 ) | | (#1852)SBCCall <- (#59)SBCCallPlacementFeature: RELEASE_EV
( lgr_flow)(18274 ) | | (#1852) SBCCall changing states from:AlertingState to:DisconnectingState
( lgr_flow)(18275 ) | | | (#1694)SIPSBCCallLeg <- (#1852)SBCCall: RELEASE_EV
( sip_stack)(18276 ) New SIPMessage created - #52
( lgr_flow)(18277 ) | |(SIPTU#1921)DISCONNECT_REQ State:Proceeding(1656462877611201494635@Mediant)
( sip_stack)(18278 ) New SIPMessage created - #49
( lgr_flow)(18279 ) ---- Outgoing SIP Message to Lync2:5068 from SIPInterface #1 TcpTransportObject[#648] ----
CANCEL sip:1234@Mediant;user=phone SIP/2.0
Via: SIP/2.0/TCP Mediant:5068;branch=z9hG4bKac1657277504;alias
Max-Forwards: 70
From: "TPSA 12" <sip:221111111@switch;user=phone>;tag=1c1656521459
To: <sip:1234@Mediant;user=phone>;epid=DE8F26F104
Call-ID: 1656462877611201494635@Mediant
CSeq: 1 CANCEL
User-Agent: E-SBC/v.6.60A.260.002
Reason: SIP ;cause=488 ;text="488 Not Acceptable Here"
Content-Length: 0
( sip_stack)(18281 ) Resource SIPMessage deleted - #49
6d:9h:46m:35s ( sip_stack)(18354 ) New SIPMessage created - #42
( sip_stack)(18355 ) Resource SIPMessage deleted - #42
( lgr_flow)(18356 ) | | TransactionUserMngr::ReturnTransactionUser - #1921
( sip_stack)(18357 ) SIPCall(#1921) changes state from Disconnected to Idle
6d:9h:46m:40s ( sip_stack)(18358 ) New SIPMessage created - #47
( sip_stack)(18359 ) Resource SIPMessage deleted - #47
( lgr_flow)(18360 ) | | TransactionUserMngr::ReturnTransactionUser - #1922
( sip_stack)(18361 ) SIPCall(#1922) changes state from Disconnected to IdleHi,
On Mediant 1000 E-SBC SBC tab, when set Remote Early Media RTP Behavior to
Delayed, but also check if the following configuration set correctly:
SBC Media Security Behavior: SRTP
PRACK Mode: Optional
Remote Update Support: Supported Only After Connect
Remote Re-INVITE: Supported Only With SDP
Remote Delayed Offer Support: Not Supported
Remote REFER Behavior: Handle Locally
Remote 3xx Behavior: Handle Locally
Enforce MKI Size: Enforce
You can refer this
link
Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
Best Regards,
Eason Huang
Eason Huang
TechNet Community Support -
How set maximum of characters for the columns
Hello I use a JTable and I want to set maximum of characters for the columns.
For example column 1 max 10 characters, column 2 max 20 characters, etc..
How can I do this?The principle is as follows: a table uses certain input components for editing a cell value, e.g. a JCheckBox for Boolean-type values or a JTextField for textual/numerical values. By default, a JTextField doesn't have any size limit, so you can enter as many chars as you want. In order to change this behaviour, you'll have to
1.) create a JTextField that does have a size limit and
2.) set a CellEditor on the JTable which uses this manipulated JTextField.
An easy way for 1.) is to create a custom Document (the internal data representation for text components, the M-part of the MVC -- see javax.swing.text.Document) that doesn't accept any text beyond a given limit, e.g.:
public class LimitedDocument extends PlainDocument {
private int max = 0;
public LimitedDocument(int max) {
this.max = max;
public void insertString(int offset, String str, AttributeSet a) throws BadLocationException {
// too long for the limit; get current contents, insert, and cut off trailing chars
if ((getLength() + str.length()) > max) {
StringBuffer buf = new StringBuffer(getText(0,getLength()));
buf.insert(offset,str);
remove(0,len); // remove current text contents
super.insert(0,buf.toString().substring(0,max),a); // insert whole text
// no problem, will fit
else {
super.insertString(offset,str,a);
}Then, in order to set the cell editor -- for example for the first column --, you can do as follows:
myTable.getColumnModel().getColumn(0).setCellEditor(new DefaultCellEditor(new JTextField(new LimitedDocument(5),"",5)));This will create a new DefaultCellEditor (see javax.swing.table) and initialize it with a given text field which will be responsible for any edition in this column. As the text field itself is created using a limit of 5, it should accept no text insertion beyond 5 chars.
Maybe you are looking for
-
How can I access my Call Handlers from outside line (outside district)
CISCO VoIP System Info: Cisco Unity Connection version: 8.6.2ES25.21900-25 CM Admin System version: 8.6.2.21900-5 on C200M2 Servers Our engineer setup our Call Handlers so that in our to change the recordings on them, you diall 7800 from a phone insi
-
Has anyone had a problem getting Windows MCE to recognize a Nano? I had a similar problem with a Netgear wireless USB adapter and their tech folks said it was a driver issue. Is that the same case here and if so, does Apple have a driver to solve thi
-
Chart x label start from July to June in Financial Year
Hi All, I have a chart displaying comparing three financial years value by month, currently x axis value is showing from Jan to Dec, but it is not correct, I want to show x axis value from July to June in financial month order, won't show year number
-
Hi all, Just a very simple question, but I can figure out myself. How to continue a command line to second line if one single line is not fit. Thanks in advance
-
Time Machine incorrectly reporting free space
I'm seeing this on Mavericks (retina MBP, 500GB SSD about 60% utilized) . I've got a AFP network share that I copied a clean 800GB sparesebundle to. I use Disk Utility to mount and verify it, and it says, 650MB used, which means it's essentially 99%