DateField Problem
When I add a date formatter to the DateField control,
selectedDate does not get set. It remains at null after using the
date chooser.
Does anyone know a way I can set selectedDate or is there a
problem with the way I've used the DateFormatter?
The following code shows the error. (The error disappears if
you remove the labelFunction line.)
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns="*" creationComplete = "initApp()">
<mx:Script>
<![CDATA[
import mx.controls.DateField;
import mx.formatters.DateFormatter;
public function initApp():void{
var myDF:DateField = new DateField();
myDF.labelFunction = formatDate;
pan.addChild(myDF);
private function formatDate(date:Date):String{
var df:DateFormatter = new DateFormatter();
df.formatString = "D MMM YYYY";
return df.format(date);
]]>
</mx:Script>
<mx:Panel id="pan" width="450" height="150" />
</mx:Application>
Doug
This solves the problem.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns="*" creationComplete = "initApp()">
<mx:Script>
<![CDATA[
import mx.controls.DateField;
import mx.formatters.DateFormatter;
import mx.events.DropdownEvent;
private var dc:Date;
public function initApp():void{
var myDF:DateField = new DateField();
myDF.labelFunction = formatDate;
myDF.addEventListener(DropdownEvent.OPEN, calOpenHandler);
myDF.addEventListener(DropdownEvent.CLOSE, calCloseHandler);
pan.addChild(myDF);
private function calOpenHandler(event:DropdownEvent):void{
event.currentTarget.selectedDate = dc;
private function calCloseHandler(event:DropdownEvent):void{
if(dc == event.currentTarget.selectedDate){
event.currentTarget.selectedDate = null;
}else{
dc = event.currentTarget.selectedDate;
private function formatDate(date:Date):String{
var df:DateFormatter = new DateFormatter();
df.formatString = "D MMM YYYY";
return df.format(date);
]]>
</mx:Script>
<mx:Panel id="pan" width="450" height="150" />
</mx:Application>
Doug
Similar Messages
-
Form Scope, Datefield Problems
I have a problem with form fields in sql where clause...
When I preview the code between<div laye 2> below, the
datefield works, but the LSdateformat not very well. If I try to
use the datefield in asql where clasue query, I get datefield not
defined in form.. urgent help required.
<cfparam name="value" default="3">
<cfquery name="Detail_RST" datasource="RsDetailMin2">
SELECT *
FROM Image_Detail
WHERE rsDT>= <cfset plusdate=#form.datefield# -
#value#> And rsDT<= <cfset minusdate=#form.datefield# +
#value#>
</cfif>
</cfquery>
<div id="Layer2">
<cfform name="form" method="post" action=""
format="flash">
<cfinput name="datefield" type="datefield" required="yes"
mask="dd/mm/yyyy">
<cfinput type = "submit" name="submit" width="100" value
= "Show Resorts">
</cfform>
</div>
<cfset plusdate=#form.datefield# + #value#>
<cfset minusdate=#form.datefield# - #value#>
<cfoutput>
#LSdateformat(plusdate,"dd/mm/yyyy")#<br>
#form.datefield#<br>
#LSdateformat(minusdate,"dd/mm/yyyy")#<br>
#LSDateFormat(minusdate, "dd/mm/yyyy")#<br>
</cfoutput>
<cfif IsDefined("Form.fieldnames")>
<cfdump var="#form#" label="form scope">
</cfif>Ok....the clients existing form mail needed to be
updated....and, they want
to make sure when someone places an order the sender gets a
copy of the
email. But, with the clients existing format, when they get
an order via
the form mail, the format they receive in their inbox looks
exactly like on
the website. I am used to just placing a text value
associated with the
text box...but, how do I get the actual completed page to be
sent via email.
http://www.greatbasinoptical.com/weborder.html
"Joe Makowiec" <[email protected]> wrote in
message
news:[email protected]..
> On 29 Jul 2008 in macromedia.dreamweaver, tweaked_eye
wrote:
>
>> I might actually have about 10 different width sizes
>
> KISS... [1]
>
>> input width : 10px ;
>
> Nope. No such property in CSS. All you need is the tag
name:
>
> input {
> width : 20px ;
> }
>
> You can do the styles which apply to all inputs in one
CSS style:
>
> input {
> color : #333 ;
> background-color : #ffa ;
> font-family : Verdana, Arial, sans-serif ;
> font-size : 1em ;
> }
>
> And then just do widths:
>
> input.narrow {
> width : 10px ;
> }
> input.medium {
> width : 25px ;
> }
> input.waywide {
> width : 600px ;
> }
>
> But see the first part of the answer above...
>
> If you want to get really fancy about it, you can use
type selectors to
> specify which type of input field gets what styling:
> input[type=text] {
> width : 30px ;
> }
> input[type=submit] {
> width : 25px ;
> }
>
>
http://www.w3.org/TR/CSS21/selector.html#attribute-selectors
>
> Do a bit of research on styling forms. It'll give you a
better idea of
> what you can and can't do.
>
>
http://www.google.com/search?q=form+styling
>
> [1]
http://en.wikipedia.org/wiki/KISS_principle
> --
> Joe Makowiec
>
http://makowiec.net/
> Email:
http://makowiec.net/contact.php -
Hi All,
I have a problem with displaying the date in a inputText.
Eveything works fine but the "DAY" of the date is displayed wrong.
What is the problem my code is below.
<mx:DateField x="30" y="60" id="curDate"
disabledRanges="{[ {rangeEnd: new Date(2007, 1, 1)} ]}"/>
<mx:Button x="171" y="60" click="{ getDate(); }"
label="Add Note" id="activateButton"/>
private function getDate():void {
if(curDate.selectedDate == null) {
Alert.show("No Date Selected !");
else {
var myDay:Number = curDate.selectedDate.getDay();
var myMonth:Number = (curDate.selectedDate.getMonth())+1;
var myYear:Number = curDate.selectedDate.getFullYear();
var myDate:String = myDay.toString() + "/" +
myMonth.toString() + "/" + myYear.toString();
myPanel.visible=true;
cancelOp.enabled=true;
dateText.text = myDate;
}Try running the Builder for the first time as Administrator
(even if you are logged in as administrator you have to right-click
and run as administrator... gotta love Vista)
http://wesleonardo.wordpress.com/2007/03/12/flex-builder-on-vista/
Cheers,
-- Jim -
hi,
im using a date field in my application. i checked the application with nokia series 40 emulator.
Emulator has a command 'select the day' when i focus on the date field. When we select the command, calendar is opening and we can select a date.
My problem is when i run the application in nokia mobiles, there is no option called 'select the day'. i can give the date by manually. Not able to select from calendar.
I checked with Nokia N70 and Nokia 5300 mobiles.
Can anybody give me a solution for this?
Thanks,
Ramesh.PWell, to start with, behavior of Nokia N70 and 5300 you describe is perfectly legal: MIDP 2 specification does not require DateField to have an option called +'select the day'+ . It is up to device manufacturer to decide how to let user select the date.
If you need +'select the day'+ to be available in your MIDlet on any (MIDP 2) device, independently on how particular manufacturer prefers to implement the DateField, then you probably have to write the code for it yourself, or try to find such code in available MIDP UI libraries like LWUIT, [J2ME Polish|http://www.j2mepolish.org/cms/leftsection/introduction.html] etc. -
Datefield as Item renderer problem
I am having problems with the datefield while using it in a
renderer. If you click the text area of the datefield to bring up
the datechooser everything works, if you click the datefield icon
the date is not bound properly.
Try out the code below and you will see what I am talking
about. Any idea what im doing wrong?
dateRenderer.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="{newDate = data.Date}">
<mx:Script>
<![CDATA[
import mx.events.DataGridEvent;
import mx.binding.utils.ChangeWatcher;
import mx.formatters.DateFormatter;
// Define a property for returning the new value to the
cell.
[Bindable]
public var newDate:Date;
private var df:DateFormatter = new DateFormatter();
private function test(event:Event):void {
trace(df.format(dateFieldTI.selectedDate));
newDate= new Date(dateFieldTI.text);
this.dispatchEvent(new
DataGridEvent(DataGridEvent.ITEM_EDIT_END, true, false, 0,
"newDate", -1, null, this));
]]>
</mx:Script>
<mx:DateField id="dateFieldTI"
showToday="false"
selectedDate="{newDate}"
text="{df.format(newDate)}"
click=""
change="test(event)"/>
</mx:VBox>
/////////////////////////////////////////// dateRenderer.mxml
File///////////////////////////////////////////////////////
/////////////////////////////////////////////// Begin
application ///////////////////////////////////////////////////
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
height="700" width="700">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var initDG:ArrayCollection = new ArrayCollection([
{Date: new Date("3/14/2007")},
{Date: new Date("3/14/2007")}]);
[Bindable]
public var displayedDate:String;
private function getDate():void {
displayedDate = initDG[0].Date;
]]>
</mx:Script>
<mx:DataGrid id="myDG"
width="500" height="250"
dataProvider="{initDG}"
variableRowHeight="true"
editable="true">
<mx:columns>
<mx:DataGridColumn dataField="Date"
width="200"
editable="true"
rendererIsEditor="true"
itemRenderer="dateRenderer"
editorDataField="newDate"/>
</mx:columns>
</mx:DataGrid>
<mx:Button label="getIt" click="getDate()"/>
<mx:Text text="{displayedDate}"/>
</mx:Application>Hi Proeliata ,
I am using mx.controls.DateField as itemRenderer in the
DataGridColumn as Below.
<mxataGrid
id="dgDetailsContainer" dataProvider="{alphaGroups}"
variableRowHeight="true"
sortableColumns="true" editable="true" width="100%"
itemEditEnd="editGrid(event)">
<mx:columns>
<mxataGridColumn
headerText="ETA Date" itemRenderer="mx.controls.DateField"
editorDataField="selectedDate"
rendererIsEditor="true"
editable="true" dataField="EtaDate" />
</mx:columns>
</mxataGrid>
While I was submitting the dataGrid values If I try to alert
the EtaDate using the below call
I am getting null value always.
private function submitChanges():void
try{
Alert.show("EtaDate0 is"+alphaGroups[0].EtaDate);
Alert.show("EtaDate1 is"+alphaGroups[1].EtaDate);
commonWebService.submitChanges(alphaGroups);
}catch(err:Error){
Alert.show("Please choose Title and Alpha");
Please help me to re-solve,If any one handled this scenario
please provide me the sample code to update dataProvider.
Back to top
Thanks,
Ravindra -
Problem with cfwindow and cfinput datefield
If you have a cfform that contains a cfinput type datefield that is displayed in a cfwindow there is a problem when you scroll the cfwindow.
That is if the form content causes the cfwindow to have scroll bar when you scroll the cfinput datefield stays where it is while the rest of the form scrolls with the window.
Does anyone have any idea how to fix this.
The code being used is as follows
<cfwindow
width="800"
height="200"
name="myWindow"
center="true"
title="Test Window"
modal="true"
initshow="true">
<br>
<cfform name="mycfform1">
<div style="float:left;">Date 1: </div>
<cfinput type="datefield" name="mydate1"><br><br><br>
<div style="float:left;">Date 2: </div>
<cfinput type="datefield" name="mydate2" value="15/1/2007"><br><br><br>
<div style="float:left;">Date 3: </div>
<cfinput type="datefield" name="mydate3" required="yes"><br><br><br>
<div style="float:left;">Date 4: </div>
<cfinput type="datefield" name="mydate4" required="no"><br><br><br>
<br>
<div style="float:left;">Date 1: </div>
<cfinput type="datefield" name="mydate5" mask="dd/mm/yyyy">
(dd/mm/yyyy)<br><br><br>
<div style="float:left;">Date 2: </div>
<cfinput type="datefield" name="mydate6" mask="mm/dd/yyyy">
(mm/dd/yyyy)<br><br><br>
<div style="float:left;">Date 3: </div>
<cfinput type="datefield" name="mydate7" mask="d/m/yy">
(d/m/yy)<br><br><br>
<div style="float:left;">Date 4: </div>
<cfinput type="datefield" name="mydate8" mask="m/d/yy">
(m/d/yy)<br><br><br>
</cfform>
</cfwindow>-Fernis,
Thanks for your help.
I know IE 7 is a problem, not using this one.
I'm actually using 8.0.6
I will need to do more research, maybe it's my doc type.
Anyway, thanks for testing.
Ken -
DateField and phpMyAdmin problem
Hi, I have a dateField, var date1:Date and column in the phpMyAdmin table which is also date type.
I dont find anywhere how to do this:
When i choose in datefield a date it goes to a var date1 and then date1 goes to a phpMyAdmin.
I need a date format like this : 2010-03-26.
Maybe someone knows?import mx.events.DateChooserEvent;
[Bindable]
public var newGimimoData:Date; //(date1)
<mx:HTTPService id="newUser" url="php\newUser.php" method="POST" result="newUserResult(event)">
<mx:request xmlns="">
<newuser>{newUsername}</newuser>
<newpassword>{newPassword}</newpassword>
<newvardas>{newVardas}</newvardas>
<newpavarde>{newPavarde}</newpavarde>
<newklase>{newKlase}</newklase>
<newgimimoData>{newGimimoData}</newgimimoData> // (date1)
</mx:request>
</mx:HTTPService>
This line is in the function in which is newUser,send() and I know that it is wrong, but I dont know how to write it in flex:
private function addNewUser():void{
newGimimoData = newGimimoDataTxt.selectedItem.getDate();
newUser.send();
and this is all php file:
$conn = mysql_connect($hostname_conn, $username_conn, $password_conn);
mysql_select_db("socDB");
//mysql_real_escape_string POST'ed data for security purposes
$newuser = mysql_real_escape_string($_POST["newuser"]);
$newpassword = mysql_real_escape_string($_POST["newpassword"]);
$newvardas = mysql_real_escape_string($_POST["newvardas"]);
$newpavarde = mysql_real_escape_string($_POST["newpavarde"]);
$newklase = mysql_real_escape_string($_POST["newklase"]);
$newgimimoData = mysql_real_escape_string($_POST["newgimimoData"]);
$query = "SELECT * FROM vartotojas WHERE USERNAME = '$newuser'";
$result = mysql_query($query);
$logged = mysql_num_rows($result);
if ($logged == 1)
$log = false;
else
$log = true;
if ($log == true)
$sql = "INSERT INTO vartotojas (USERNAME, PASSWORD. VARDAS, PAVARDE, KLASE, GIMIMODATA) VALUES('$newuser','$newpassword','$newvardas','$newpavarde', '$newklase','$newgimimoData')";
if (!mysql_query($sql, $conn))
echo "<status>Sukurti nepavyko</status>";
else
echo "<status>Naujas vartotojas sukurtas!</status>";
else
echo "<status>Šis vartotojo vardas yra užimtas, bandykite kita!</status>"; -
Uix:dateField and date Picker problems
Hello.
In the Blaf Glossary, I read that is possible to use the date picker on a primary window, without a popup window.
does anybody has a sample code to see how is this possible?
thnks !What version of JDev are you using? The inlineDatePicker is in 10g preview. There was no way of doing this prior to 10g.
-
Hi,
I have a problem with a date-field. Maybe I must describe the problem more detailled, but first I just want to ask you, if you know the following error-message: "21.10.2010 kommt nicht in der Menge der erlaubten Werte vor". I don't know the correct translation but it must be something like this: "21.10.2010 does not occur in the quantity of the permitted values". I don't find the position in the sourcecode of this message. And I know, that this message isn't thrown by a functionblock from SAP. So what is the describtion of this message?Yes I have a date field in my form. Ok I must describe it more detailled. I have an employee searchfield. After select an employee you see a form. After filling the form you click on "Send". It creates a ticket and sends the data to the Backend and jumps back to the employee search field. Untill this point everything works fine. There is no problem with the datefield. Now I want to create the form. I choose an employee and fill the form. But now it comes this message. But not after clicking the "send" button. The message comes after changing some data (e.g. change a radio button). So it looks like a validationproblem, but only at the second creationprocess. Maybe the first date is in some cache? I don't know...
-
I have problem with the date fields, in fact when i want to update or insert a date in a datefield i get this message
For input string: "oct."
I'am using Jdeveloper 10.1.2.1.0 (build 1913) and
JHeadstart 10.1.2.0 (build 19)
My Regional parameters are set to French
should i change a date mask and where ??
Thanks
Message was edited by:
MedbaMedba,
OK, date formatter class is right now.
I am afraid I can't help you with how to get it to work with Arabic settings.
To determine whether this is JHeadstart-related:
Could you create a very simple non-JHeadstart app with one page that contains a date field, and you hardcode the date pattern in both the UIX page and as UI Hint on the VO atttribute, will that work when deployed on app server with Arabic settings?
If not, I suggest you contact Oracle Support or log a TAR on metalink.
Steven Davelaar,
JHeadstart Team. -
Mapping problem with compressed key update record
Hi, could you please advise?
I'm getting the following problem:
About a week ago replicat abened with "Error in mapping" error. I found in discard file some record looking like:
filed1 = NULL
field2 =
field3 =
field4 =
field5 =
datefield = -04-09 00:00:00
field6 =
field8 =
field9 = NULL
field10 =
Where filed9 = @GETENV("GGHEADER", "COMMITTIMESTAM"), field10 = = @GETENV("GGHEADER", "COMMITTIMESTAM"), others are table fields mapped by USEDEFAULTS
So I got Mapping problem with compressed key update record at 2012-06-01 15:44
I guess I need to mention that extract failed in 5 minuts before it with: VAM function VAMRead returned unexpected result: error 600 - VAM Client Report <[CFileInfo::Read] Timeout expired after 10 retries with 1000 ms delay, waiting to read transaction log or backup files. To increase the number of retries, use SETENV (GGS_CacheRetryCount = n) in Extract parameter file. To control retry delay time, use SETENV (GGS_CacheRetryDelay = n). handle: 0000000000000398 ReadFile GetLastError:997 Wait GetLastError:997>.
I don't know if it has ther same source as data corruption, could you tell me if it is?
Well, I created new extract, starting 2012-06-01 15:30 to check if there was something with extract at the time, but got the same error.
If I run extract beging at 15:52 it starts and works.
But well, I got another one today. Data didn't look that bad, but yet one column came with null value:( And I'm using it as a key column, so I got Mapping problem with compressed key update record again:(
I'm replicating from SQL Server 2008 to Oracle 11g.
I'm actually using NOCOMPRESSUPDATES in Extract.
CDC is enabled for all tables replicated. The only thing is that it is enabled not by ADD TRANDATA command, but by SQL Server sys.sp_cdc_enable_table, does it matter?
Could you please advise why does it happen?Well, the problem begins somewhere in extract or before extract, may be in transaction log, I don't know:(
Here are extract parameters:
EXTRACT ETCHECK
TRANLOGOPTIONS MANAGESECONDARYTRUNCATIONPOINT
SOURCEDB TEST, USERID **, PASSWORD *****
exttrail ./dirdat/ec
NOCOMPRESSUPDATES
NOCOMPRESSDELETES
TABLE tst.table1, COLS (field1, field2, field3, field4, field5, field6, field7, field8 );
TABLE tst.table2, COLS (field1, field2, field3, field4 );
Data pump:
EXTRACT DTCHECK
SOURCEDB TEST, USERID **, PASSWORD *****
RMTHOST ***, MGRPORT 7809
RMTTRAIL ./dirdat/dc
TABLE tst.table1;
TABLE tst.table2;
Replicat:
REPLICAT rtcheck
USERID tst, PASSWORD ***
DISCARDFILE ./dirrpt/rtcheck.txt, PURGE
SOURCEDEFS ./dirdef/sourcei.def
HANDLECOLLISIONS
UPDATEDELETES
MAP tst.table1, t.table1, COLMAP (USEDEFAULTS , filed9 = @GETENV("GGHEADER", "COMMITTIMESTAMP"), filed10= @CASE(@GETENV("GGHEADER", "OPTYPE"), "SQL COMPUPDATE", "U", "PK UPDATE", "U",@GETENV("GGHEADER", "OPTYPE")) ), KEYCOLS (field3);
MAP dbo.TPROCPERIODCONFIRMSTAV, TARGET R_019_000001.TPROCPERIODCONFIRMSTAV, COLMAP (USEDEFAULTS , field5 = @GETENV("GGHEADER", "COMMITTIMESTAMP"), filed6= @CASE(@GETENV("GGHEADER", "OPTYPE"), "SQL COMPUPDATE", "U", "PK UPDATE", "U",@GETENV("GGHEADER", "OPTYPE")) ), KEYCOLS (filed1, field2, field3);
Rpt file for replicat:
Oracle GoldenGate Delivery for Oracle
Version 11.1.1.1 OGGCORE_11.1.1_PLATFORMS_110421.2040
Windows x64 (optimized), Oracle 11g on Apr 22 2011 00:34:07
Copyright (C) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
Starting at 2012-06-05 12:49:38
Operating System Version:
Microsoft Windows Server 2008 R2 , on x64
Version 6.1 (Build 7601: Service Pack 1)
Process id: 2264
Description:
** Running with the following parameters **
REPLICAT rtcheck
USERID tst, PASSWORD ***
DISCARDFILE ./dirrpt/rtcheck.txt, PURGE
SOURCEDEFS ./dirdef/sourcei.def
HANDLECOLLISIONS
UPDATEDELETES
MAP tst.table1, t.table1, COLMAP (USEDEFAULTS , filed9 = @GETENV("GGHEADER", "COMMITTIMESTAMP"), filed10= @CASE(@GETENV("GGHEADER", "OPTYPE"), "SQL COMPUPDATE", "U", "PK UPDATE", "U",@GETENV("GGHEADER", "OPTYPE")) ), KEYCOLS (field3);
MAP dbo.TPROCPERIODCONFIRMSTAV, TARGET R_019_000001.TPROCPERIODCONFIRMSTAV, COLMAP (USEDEFAULTS , field5 = @GETENV("GGHEADER", "COMMITTIMESTAMP"), filed6= @CASE(@GETENV("GGHEADER", "OPTYPE"), "SQL COMPUPDATE", "U", "PK UPDATE", "U",@GETENV("GGHEADER", "OPTYPE")) ), KEYCOLS (filed1, field2, field3);
CACHEMGR virtual memory values (may have been adjusted)
CACHEBUFFERSIZE: 64K
CACHESIZE: 512M
CACHEBUFFERSIZE (soft max): 4M
CACHEPAGEOUTSIZE (normal): 4M
PROCESS VM AVAIL FROM OS (min): 1G
CACHESIZEMAX (strict force to disk): 881M
Database Version:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
Database Language and Character Set:
NLS_LANG = "AMERICAN_AMERICA.CL8MSWIN1251"
NLS_LANGUAGE = "AMERICAN"
NLS_TERRITORY = "AMERICA"
NLS_CHARACTERSET = "CL8MSWIN1251"
For further information on character set settings, please refer to user manual.
** Run Time Messages **
Opened trail file ./dirdat/dc000000 at 2012-06-05 12:49:39
2012-06-05 12:58:14 INFO OGG-01020 Processed extract process RESTART_ABEND record at seq 0, rba 925 (aborted 0 records).
MAP resolved (entry tst.table1):
MAP tst.table1, t.table1, COLMAP (USEDEFAULTS , filed9 = @GETENV("GGHEADER", "COMMITTIMESTAMP"), filed10= @CASE(@GETENV("GGHEADER", "OPTYPE"), "SQL COMPUPDATE", "U", "PK UPDATE", "U",@GETENV("GGHEADER", "OPTYPE")) ), KEYCOLS (field3);
2012-06-05 12:58:14 WARNING OGG-00869 No unique key is defined for table table1. All viable columns will be used to represent the key, but may not guarantee uniqueness. KEYCOLS may be used to define the key.
Using the following default columns with matching names:
field1=field1, field2=field2, field3=field3, field4=field4, field5=field5, field6=field6, field7=field7, field8=field8
Using the following key columns for target table R_019_000001.TCALCULATE: field3.
2012-06-05 12:58:14 WARNING OGG-01431 Aborted grouped transaction on 'tst.table1', Mapping error.
2012-06-05 12:58:14 WARNING OGG-01003 Repositioning to rba 987 in seqno 0.
2012-06-05 12:58:14 WARNING OGG-01151 Error mapping from tst.table1 to tst.table1.
2012-06-05 12:58:14 WARNING OGG-01003 Repositioning to rba 987 in seqno 0.
Source Context :
SourceModule : [er.main]
SourceID : [er/rep.c]
SourceFunction : [take_rep_err_action]
SourceLine : [16064]
ThreadBacktrace : [8] elements
: [C:\App\OGG\replicat.exe(ERCALLBACK+0x143034) [0x00000001402192B4]]
: [C:\App\OGG\replicat.exe(ERCALLBACK+0x11dd44) [0x00000001401F3FC4]]
: [C:\App\OGG\replicat.exe(<RCALLBACK+0x11dd44) [0x000000014009F102]]
: [C:\App\OGG\replicat.exe(<RCALLBACK+0x11dd44) [0x00000001400B29CC]]
: [C:\App\OGG\replicat.exe(<RCALLBACK+0x11dd44) [0x00000001400B8887]]
: [C:\App\OGG\replicat.exe(releaseCProcessManagerInstance+0x25250) [0x000000014028F200]]
: [C:\Windows\system32\kernel32.dll(BaseThreadInitThunk+0xd) [0x000000007720652D]]
: [C:\Windows\SYSTEM32\ntdll.dll(RtlUserThreadStart+0x21) [0x000000007733C521]]
2012-06-05 12:58:14 ERROR OGG-01296 Error mapping from tst.table1 to tst.table1.
* ** Run Time Statistics ** *
Last record for the last committed transaction is the following:
Trail name : ./dirdat/dc000000
Hdr-Ind : E (x45) Partition : . (x04)
UndoFlag : . (x00) BeforeAfter: A (x41)
RecLength : 249 (x00f9) IO Time : 2012-06-01 15:48:56.285333
IOType : 115 (x73) OrigNode : 255 (xff)
TransInd : . (x03) FormatType : R (x52)
SyskeyLen : 0 (x00) Incomplete : . (x00)
AuditRBA : 44 AuditPos : 71176199289771
Continued : N (x00) RecCount : 1 (x01)
2012-06-01 15:48:56.285333 GGSKeyFieldComp Len 249 RBA 987
Name: DBO.TCALCULATE
Reading ./dirdat/dc000000, current RBA 987, 0 records
Report at 2012-06-05 12:58:14 (activity since 2012-06-05 12:58:14)
From Table tst.table1 to tst.table1:
# inserts: 0
# updates: 0
# deletes: 0
# discards: 1
Last log location read:
FILE: ./dirdat/dc000000
SEQNO: 0
RBA: 987
TIMESTAMP: 2012-06-01 15:48:56.285333
EOF: NO
READERR: 0
2012-06-05 12:58:14 ERROR OGG-01668 PROCESS ABENDING.
Discard file:
Oracle GoldenGate Delivery for Oracle process started, group RTCHECK discard file opened: 2012-06-05 12:49:39
Key column filed3 (0) is missing from update on table tst.table1
Missing 1 key columns in update for table tst.table1.
Current time: 2012-06-05 12:58:14
Discarded record from action ABEND on error 0
Aborting transaction on ./dirdat/dc beginning at seqno 0 rba 987
error at seqno 0 rba 987
Problem replicating tst.table1 to tst.table1
Mapping problem with compressed key update record (target format)...
filed1 = NULL
field2 =
field3 =
field4 =
field5 =
datefield = -04-09 00:00:00
field6 =
field8 =
field9 = NULL
field10 =
Process Abending : 2012-06-05 12:58:14 -
Problem with Form in container tut. 2.1
Here is my code:
<mx:Form x="439" y="10"
width="318" height="349"
borderStyle="solid" borderColor="#d4d4d4"
dropShadowEnabled="true" dropShadowColor="#b3b3b3"
shadowDirection="right" shadowDistance="10">
<mx:FormHeading label="Contact Information"/>
<mx:FormItem label="Full Name:">
<mx:TextInput id="fullname"/>
</mx:FormItem>
<mx:FormItem id="Address:">
<mx:TextInput id="address"/>
</mx:FormItem>
<mx:FormItem id="City:">
<mx:TextInput id="city"/>
</mx:FormItem>
<mx:FormItem id="State:">
<mx:TextInput id="state"/>
</mx:FormItem>
<mx:FormItem id="Postal Code:">
<mx:TextInput id="postalcode"/>
</mx:FormItem>
<mx:FormItem id="Phone:">
<mx:TextInput id="phone"/>
</mx:FormItem>
<mx:FormHeading label="Room Information"/>
<mx:FormItem label="Date needed">
<mx:DateField id="dateNeeded"/>
</mx:FormItem>
<mx:FormItem>
<mx:Button label="Submit" id="Button"/>
</mx:FormItem>
</mx:Form>
But only the FullName Text input displays. Am I blind? I
can't see my mistake...Looks like the problem is that you are missing the "label"
attribute for those FormItems that come after the Name item. You
have "ID" instead of label. -
Having problem with adding and reading dates to/from database !!!
Hi
I am new in J2ME
I am trying to code a simple software.
My problem is with dates.
I have a datefield on my menu and the user will choose the date from here. By default, datefield shows todays date. But when I try to write that date to database using rms, date value transforms to java.util.Date@acfdb0fe.
As I read from tutorials this is common problem of date class, so I tried to use calendar class.
But with Calendar class I cannot let user to choose date from screen like DateField. datefield dowsn't work with calendar.
later, I will use that date for sorting records
Summary : I need a sample code that read date from screen (preferably with datefield), write it to recordstore. and then read it from recordstore asnd write to screen.
I searching internet for a sample code through days.
Please help me
ThanksHi,
The best i would suggest is instead of storing the date as 19 Jan 2004 or something like this better store the date in milliseconds.
DateField df = new DateField();
Date d = df.getDate();
long ms = d.getTime();
store the value of ms in RMS. This is the commonly used way to store date in RMS for j2me.
You can get back date using
Date d = new Date(ms);
DateField df = new DateField();
df.setDate(d);
Prabhu. -
Hi , i'm trying to run a simple Midlet with a list, but appear the following errors:
Error running executable C:\WTK22\bin\zayit
java.net.SocketException: No buffer space available (maximum connections reached?): JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:97)
at com.sun.kvem.Lime.runClient(Unknown Source)
at com.sun.kvem.KVMBridge.runKVM(Unknown Source)
at com.sun.kvem.KVMBridge.runKVM(Unknown Source)
at com.sun.kvem.midp.MIDP$4.run(Unknown Source)
the code of the Midlet is so simple and i don't know what happen.
i hope that you can help me
thanksthe code is:
package componentes;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
public class InterfazMid extends MIDlet implements CommandListener {
private Display display;
private List menu;
private List lista;
private TextBox cajaTexto;
private Form form;
private DateField campoFecha;
private Gauge indicador;
private TextField campoTexto;
private Ticker ticker;
private Alert aviso;
private Image imagen;
private Command atras;
private Command menuPrincipal;
private Command salir;
String menuActual = null;
public InterfazMid() {
form = new Form( "Formulario" );
indicador = new Gauge( "Indicador",false,50,20 );
campoTexto = new TextField( "Campo de texto","abc",40,0 );
ticker = new Ticker( "Componentes de la intefaz MIDP" );
aviso = new Alert( "Aviso Sonoro" );
imagen = Image.createImage( "/error.png" );
} catch( Exception e ) {}
atras = new Command( "Atr�s",Command.BACK,0 );
menuPrincipal = new Command( "Men� Ppal",Command.SCREEN,1 );
salir = new Command( "Salir",Command.STOP,2 );
protected void startApp() {
display = Display.getDisplay( this );
menu = new List( "Interfaz MIDP",Choice.IMPLICIT );
menu.append( "Caja de texto",null );
menu.append( "Fecha",null );
menu.append( "Lista",null );
menu.append( "Aviso",null );
menu.append( "Formulario",null );
menu.addCommand( salir );
menu.setCommandListener( this );
menu.setTicker( ticker );
mainMenu();
protected void pauseApp() {}
protected void destroyApp( boolean flag ) {}
public void mainMenu() {
menuActual = "Men� Ppal";
display.setCurrent( menu );
public void testTextBox() {
cajaTexto = new TextBox( "Teclea algo:","",10,TextField.ANY );
cajaTexto.setTicker( new Ticker("Probando TextBox") );
cajaTexto.addCommand( atras );
cajaTexto.setCommandListener( this );
cajaTexto.setString( "ABC" );
display.setCurrent( cajaTexto );
menuActual = "texto";
public void testList() {
lista = new List( "Seleciona:",Choice.MULTIPLE );
lista.setTicker( new Ticker("Probando List") );
lista.addCommand( atras );
lista.setCommandListener( this );
lista.append( "Opci�n 1",null );
lista.append( "Opci�n 2",null );
lista.append( "Opci�n 3",null );
lista.append( "Opci�n 4",null );
display.setCurrent(lista);
menuActual = "lista";
public void testAlert() {
aviso.setType( AlertType.ERROR );
aviso.setImage( imagen );
aviso.setString( " ** ERROR **" );
display.setCurrent( aviso );
public void testDate() {
java.util.Date fecha = new java.util.Date();
campoFecha = new DateField( "Hoy es: ",DateField.DATE );
campoFecha.setDate( fecha );
Form f = new Form( "Fecha" );
f.append( campoFecha );
f.addCommand( atras );
f.setCommandListener( this );
display.setCurrent( f );
menuActual = "fecha";
public void testForm() {
form.append( campoTexto );
form.append( indicador );
form.addCommand( atras );
form.setCommandListener( this );
display.setCurrent( form );
menuActual = "form";
public void commandAction( Command c,Displayable d ) {
String label = c.getLabel();
if( label.equals("Salir") ) {
destroyApp( true );
notifyDestroyed();
else if (label.equals("Atr�s")) {
if( menuActual.equals( "lista" ) ||
menuActual.equals( "texto" ) ||
menuActual.equals( "fecha" ) ||
menuActual.equals( "form" ) ) {
mainMenu();
else {
List l = (List)display.getCurrent();
switch( l.getSelectedIndex() ) {
case 0:
testTextBox();
break;
case 1:
testDate();
break;
case 2:
testList();
break;
case 3:
testAlert();
break;
case 4:
testForm();
break;
the code is so simple. i think that the problem is on the j2me wirless toolkit but i don't know.
thank you
bye -
Problem with Stacked area chart
Hi all,
I'm working on delivery data according to month having input(combo) as the year. I'm trying to display the data in percentages in Stacked area chart having series as ontime delivery, 1 week late, 2 weeks late,........5 weeks late and category labels as months. The problem is when I take the Preview of data I get to see the data for ontime, 1 week , 2 week as it should be but when I hover the mouse over the 2 weeks data area mouse over values shows 5 weeks data(0 %) where as in reality the colored area belongs to 2 weeks data. I tried to delete 5 weeks series data and now it shows as 4 weeks data.
What could be the problem ?
Thanks>
Raghavendra Gadhamsetty wrote:
> Did you try adding the formula year(datefield) in X axis by removing the existing datefield?
>
> Regards,
> Raghavendra
Thanks for the answer regarding dates. I'm still awaiting an answer on the following part of my question:
"My problem is that I am trying to configure a stacked area chart to show various related financial figures over the period of a year or more. My problem with a regular stacked area chart is that because of the large number of data points (daily) the X axis becomes far too chaotic with the large number of labels. The obvious option seems to be to use the "Show time scale" option in axis settings, however when you chose this option the "Date axis area" chart type is automatically chosen and this chart type doesn't seem to allow stacking. Can anybody help?"
Thanks in advance for your help.
Kind Regards,
Mark
Maybe you are looking for
-
How to enable downloading of an Attached File at the Client End
Hi In the process of enabling File Attachment in my Email Service (using Servlets), I have been able to upload the file chosen for attachment. Now I am facing the following 3 problems :- 1. How to enable the client to download his file from his brose
-
Does any one know which view I need to amend to extend the IBASE and Account Search. I've look at IBASEsearch and BUPAsearch in CRM_IC. Thanks in advance. Kini
-
How can i find contact information from phone?
While I was attempting to update the OS to 4.3.5 on the Iphone and error occurred that prevented me from completing the update. I ejected my phone from iTunes and immediately got a message on the phone telling me to connect to iTunes. When re-conne
-
Error number -3221. When I try to connect to iTunes Store.
Please help!! And dont tell me to check my connections cause I already did.
-
Automatic duplex printing with DeskJet 6980dt with Windows 7, MS Office 2010
What do I need to do in order for my DeskJet 6980dt to automatically duplex print without manually inserting the paper? Prior to changing my OS from XP to W-7 the printer would duplex print when I changed the "properties" but since installing W-7 "