Javascript Question

Avatar

Avatar
Level 3
_James_J_Gallag
Level 3

Likes

0 likes

Total Posts

54 posts

Correct reply

0 solutions
View profile

Avatar
Level 3
_James_J_Gallag
Level 3

Likes

0 likes

Total Posts

54 posts

Correct reply

0 solutions
View profile
_James_J_Gallag
Level 3

29-01-2009

Hey Guys,

I'm having a major issue with repeater grids in my Form Guides...

When I add a row to one of my repeaters its add fines but when I then try use the xml associated with the form I encounter an action script error.

Whet happens is I save the current xml to a field using:
xfa.datasets.saveXML();

The problem is with the rows in the repeater i've added, in the xml it appears like:



...


This only becomes a problem when I try invoke a web service using the field that I copied the xml into as an input parameter to the WS.

---------------------------------------------------------------------------
So as a work around I need to do the following:

Field.rawvalue = xfa.datasets.saveXML();

Now I need to remove all occurances of:
1. dd:maxOccurs="-1"
2. dd:minOccurs="0"

I don't know how to do this in Javascript!!

Can someone help??

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

29-01-2009

Is there only one occurance of maxOccurs in the string? If so then use javascript string functions to find and replace.

Avatar

Avatar
Level 3
_James_J_Gallag
Level 3

Likes

0 likes

Total Posts

54 posts

Correct reply

0 solutions
View profile

Avatar
Level 3
_James_J_Gallag
Level 3

Likes

0 likes

Total Posts

54 posts

Correct reply

0 solutions
View profile
_James_J_Gallag
Level 3

30-01-2009

Hey Paul,



There can be 0 to many occurances.



Thats what I was asking for, if someone could tell me where to find a javascript reference document with functions that are available to use with LiveCycle



Thanks

J