Expand my Community achievements bar.

_Bruce_Robertson
_Bruce_Robertson
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • Hello Bibhu,  I am not sure what data you wish to remove.  Somthing like$record.nodes.remove($record.ItemInformation);Should remove the ItemInformation node and all the nodes below it.I don't think it matters were the code goes, whatever makes sense to you.  Maybe the preSubmit of the top form eleme...

    Type

    Questions

    Views

    2.1K

    Likes

    0

    Replies

    0
  • Hello BibhuThis code is JavaScript but as I don't know the structure of your data connection this is just an example, you will have to change the "$record.dataroot" to suit your data connection structure ... the error you are getting would suggest that "$record.dataroot" does not exist.  You may als...

    Type

    Questions

    Views

    2.1K

    Likes

    0

    Replies

    0
  • Hi Bibhu,You should be able to delete nodes in your data connection using the following code in the preSubmit event.$record.nodes.remove($record.dataroot);This will remove all xml nodes in the data connection from dataroot down ... so you will probably have to change the code to match your requireme...

    Type

    Questions

    Views

    2.1K

    Likes

    0

    Replies

    0
  • Hello Bibhu,I'm guessing your data is currently part of your data connection, maybe you can load this data in it's own dataset, similar to the "Load Country List" button click event code in my sample and then delete it from the data connection.  Alternatively you could load the alternative dataset u...

    Type

    Questions

    Views

    2.1K

    Likes

    0

    Replies

    0
  • Hi Bibhu,If this is something you are trying to do on the server side then it is very unlikely I can help.  Have you tried the method I suggested above, in the sample formhttps://acrobat.com/#d=xqToK-8CdJC01vfso*7DUQ ?Bruce

    Type

    Questions

    Views

    2.1K

    Likes

    0

    Replies

    0
  • Hi Bibhu,Glad you got it sorted.  This is what I would have done; list = xfa.resolveNodes('xfa.datasets.dataroot.dbo_ElectronicForm_UK.[At(Lower(Title),Lower("'+xfa.event.newText+'")) > 0]'); for (var i = 0; i < list.length; i++) {  var electronicFormUK = list.item(i);  Results.CountryList.addItem(...

    Type

    Questions

    Views

    2.1K

    Likes

    0

    Replies

    0
  • Hi Bibhu,Can you post your xml here? if so I can have a look.Bruce

    Type

    Questions

    Views

    2.1K

    Likes

    0

    Replies

    0
  • Hello Bibhu,You would have got all the countries returned in your submit data because the data connection contained all the countries in my sample.  If you only wanted the values selected then there are a number of ways you can do this.  Possibly the easiest for a relatively static set of data like ...

    Type

    Questions

    Views

    2.1K

    Likes

    0

    Replies

    0
  • Hi Bibhu,You could change the sample to work in this way by replacing the line populating the list in the Search text fields change event fromlist = xfa.resolveNodes('$record.country.[Lower(Left(name,' + (xfa.event.newText.length) + ')) == "' + xfa.event.newText.toLowerCase() + '"]');tolist = xfa.re...

    Type

    Questions

    Views

    8.9K

    Like

    1

    Replies

    0
  • Hi Bibhu,I am not seeing this behavior, if I type the space after "New" then the two countries stay in the list. I have tested this code in versions of Reader 7.0.9 to X so I'm not sure what to suggest. What version are you using.Bruce

    Type

    Questions

    Views

    6.5K

    Likes

    0

    Replies

    0