Expand my Community achievements bar.

_Bruce_Robertson
_Bruce_Robertson
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • Hi,It would be easier if your table contained one row that repeated with an initial count of five (this is set in the binding tab of the Object palette).  This will change the XML generated but assuming that is not a problem your could loop though your table with the code;    var rows = this.resolve...

    Type

    Questions

    Views

    5.0K

    Likes

    0

    Replies

    0
  • Hi,Is the Term field going to be used as a label, or is the user allowed to update it?  If it is just a label then you could use a Text object with two floating fields bound to the dates.If you do want to use a TextField object, you could use some JavaScript like the following, in the initialise eve...

    Type

    Questions

    Views

    4.7K

    Likes

    0

    Replies

    0
  • Hi Eagle,The addItem method takes a string so if ItemNo is a numeric field then you might have to change this.addItem(vItem); to this.addItem(vItem.toString());I know JavaScript will normally do that for us, but the XFA method calls don't seem to do that.Also, this sort of code should probably be in...

    Type

    Questions

    Views

    6.9K

    Likes

    0

    Replies

    0
  • Hi,I put an updated version of this sample in Adobe Designer Cookbooks, http://cookbooks.adobe.com/post_Drop_Down_List_Control_with_auto_complete__Searcha-18402.html.RegardsBruce

    Type

    Questions

    Views

    4.5K

    Likes

    0

    Replies

    0
  • 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