Expand my Community achievements bar.

djaknow
djaknow
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • I found something else as well. This statement:form1.PicSubform.instanceManager.removeInstance(nNumSub);wasn't working to remove the extra subform instance. Since you're referencing the instanceManager from inside the subform, you don't need the form1 at the beginning of the statement. When I got ri...

    Type

    Questions

    Views

    825

    Like

    1

    Replies

    0
  • I'm thinking you'd be better off to just use the count method to track the number of PicSubform instances, as in:var nNumSub = PicSubform.instanceManager.count;if (nNumSub < 1){<error message here>}

    Type

    Questions

    Views

    820

    Likes

    0

    Replies

    0
  • Now that's interesting. I didn't know you could duplicate a flowed subform. In any case, this script:if (PicSubform.nodes.item(nCount).className == "subform") {     nNumSub = nNumSub + 1;}is not incrementing the nNumSub variable. When I print the nNumSub value to a message box it returns -1 every ti...

    Type

    Questions

    Views

    820

    Likes

    0

    Replies

    0
  • To be able to duplicate a subform, it needs to be a positioned subform wrapped in a flowed subform. The one that's not working is a flowed subform. It's not as simple as just wrapping the entire opportunity subform in a flowed subform and setting the opportunity subform to positioned, but that's whe...

    Type

    Questions

    Views

    820

    Likes

    0

    Replies

    0
  • I'd try putting it right after the message box error message.

    Type

    Questions

    Views

    1.0K

    Likes

    0

    Replies

    0
  • The script for setting focus into a field is:xfa.host.setFocus(insert path to field here);

    Type

    Questions

    Views

    1.0K

    Likes

    0

    Replies

    0
  • Are you just needing to know how to calculate it? Here's a link to a wikipedia article that explains the calculation, without access to your form it's hard to give you a working example.http://en.wikipedia.org/wiki/Internal_rate_of_return

    Type

    Questions

    Views

    425

    Likes

    0

    Replies

    0
  • If you just want some samples of javascript coding, you might appreciate this link:http://www.w3schools.com/js/js_loop_for.aspThis goes straight to the for loop example, but there's a whole library of js samples on this site. Is this what you're looking for?

    Type

    Questions

    Views

    545

    Likes

    0

    Replies

    0
  • The feature I mentioned earlier about ctrl + clicking a field is really handy, if you get that down at least you'll always know you have the correct path reference to the field.Glad you got it working

    Type

    Questions

    Views

    467

    Likes

    0

    Replies

    0
  • Sure you can merge fields. Let's say you're merging field1, field2 and field3 into field4. In the validate event of field4, try this script:if (this.rawValue == null){     this.rawValue = field1.rawValue + " " + field2.rawValue + " " + field3.rawValue;}This will concatenate the other fields into 1, ...

    Type

    Questions

    Views

    666

    Likes

    0

    Replies

    0