Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Trying to display date on field shows Pointer:####

Avatar

Avatar
Validate 1
Level 1
Vincent_Hoang
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Vincent_Hoang
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Vincent_Hoang
Level 1

30-04-2017

Hi,

I'm struggling with displaying the date in a field on a table. I get this value Pointer:### instead of the actual date. (where #### is a series of numbers, e.g. Pointer:214470240)

Trying something like this

var date1 = new Date();

xfa.resolveNode("Row1[0].textfield").rawValue= date1;

Additionally, if I use date1.value or date1.formattedValue, then I get "Empty".

Can someone please explain? I'm using Adobe LiveCycle Designer ES2 ver. 9.0.1.0.2...

Thanks

Vincent

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile
_Bruce_Robertson
MVP

30-04-2017

Hi Vincent,

Typically in JavaScript when you assign an object to a string the toString() method on that object will be called, even if you don’t
specify it.  However, this doesn’t seem to be the case when you are using the XFA object properties.

Try calling the toString() method explicitly.

     xfa.resolveNode("Row1[0].textfield").rawValue=date1.toString();

or maybe,

     xfa.resolveNode("Row1[0].textfield").rawValue=date1.toLocaleDateString ();

If you want more control over the format you can use util.printd(), http://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/#t=Acro12_MasterBook%2FJS_API_AcroJ...

Regards

Bruce

Answers (0)