Expand my Community achievements bar.

DKinsley
DKinsley
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • I tried the following:this.rawValue = Table1.Row.instanceManager.count;and i tried...this.rawvalue = Table1.instanceManager.count;and the result was 1 for each script but my form has 47 rows (not repeating rows).

    Type

    Questions

    Views

    5.2K

    Likes

    0

    Replies

    0
  • I tried Table1.instanceManager.count():andTabel1.Row.instanceManager.count():and neither worked.

    Type

    Questions

    Views

    5.2K

    Likes

    0

    Replies

    0
  • My table does NOT have repeating rows. Using JavaScript, how can I count the number of rows?var vRows = Table1.Question.count:

    Type

    Questions

    Views

    7.3K

    Likes

    0

    Replies

    7
  • Thank you. I will give it a try. My concern is that the vValue will not find the largest number in the database column when each value starts with text ("T" or "F"). Example T1012 or F1013

    Type

    Questions

    Views

    4.6K

    Likes

    0

    Replies

    0
  • Thanks for your help. When you can, please post what your script should look like.Thank you

    Type

    Questions

    Views

    4.6K

    Likes

    0

    Replies

    0
  • I am mistaken. The script above is still not working correctly.radzmar: your script does not include "substr" - is it missing or can I use Number(vValue, 2, 5) the same way as substr ?

    Type

    Questions

    Views

    4.6K

    Likes

    0

    Replies

    0
  • This is now working. Thank you to all the responders for helping me solve this issue.This works:while(!oDB.isEOF()){ if(xfa.record.DataConnection1.FileName.value > nMaxID)  nMaxID = Number(xfa.record.DataConnection1.FileName.value.substr(1,12));  Test.rawValue = nMaxID; oDB.next();}Thank you!

    Type

    Questions

    Views

    4.6K

    Likes

    0

    Replies

    0
  • radzmar,Your script does not have substr in it? Is it missing?The script is going out to the database and looking for the largest number. The numbers start with either "T" or "Y" so I need to have the script ignore the first text character and only look at the remaining numeric digits. I would thing...

    Type

    Questions

    Views

    4.6K

    Likes

    0

    Replies

    0
  • Does substr have to be used in the calculate event? I have all my script in the exit event.

    Type

    Questions

    Views

    4.6K

    Likes

    0

    Replies

    0
  • substr appears to be a Formcalc method only - not JavaScript. Your suggestion stopped the error but it does not appear to be doing what i expected. Are you sure it can alos be used in JavaScript?

    Type

    Questions

    Views

    4.6K

    Likes

    0

    Replies

    0
Sort by
  • Recently earned
  • Unearned first
  • A-Z
  • Z-A
Give back 300 8/10/21 Earned by 177 People
Give Back 200 8/10/21 Earned by 293 People
Ignite 100 8/10/21 Earned by 56 People
Ignite 90 8/10/21 Earned by 65 People
Ignite 80 8/10/21 Earned by 83 People
Give Back 100 8/10/21 Earned by 500 People
Ignite 70 8/10/21 Earned by 93 People
Ignite 60 8/10/21 Earned by 128 People
Ignite 50 8/10/21 Earned by 180 People
Ignite 40 8/10/21 Earned by 267 People
Give Back 50 8/10/21 Earned by 945 People
Ignite 30 8/10/21 Earned by 466 People
Give Back 25 8/10/21 Earned by 1,966 People
Ignite 20 8/10/21 Earned by 928 People
Ignite 10 8/10/21 Earned by 2,434 People
Give Back 10 8/10/21 Earned by 4,788 People
Give Back 5 8/10/21 Earned by 9,409 People
Ignite 5 8/10/21 Earned by 5,876 People
Give Back 3 8/10/21 Earned by 15,129 People
Ignite 3 8/10/21 Earned by 10,601 People
Give Back 8/10/21 Earned by 37,438 People
Ignite 1 8/10/21 Earned by 42,148 People
Validate 100 4/28/21 Earned by 29 People
Validate 50 4/28/21 Earned by 52 People
Validate 25 4/28/21 Earned by 177 People
Validate 10 4/28/21 Earned by 754 People
Validate 1 4/28/21 Earned by 16,720 People
Boost 5 4/26/21 Earned by 7,366 People
Boost 3 4/26/21 Earned by 11,059 People
Boost 1 4/26/21 Earned by 23,526 People
Affirm 5 4/26/21 Earned by 1,207 People
Affirm 3 4/26/21 Earned by 1,810 People
Affirm 1 4/26/21 Earned by 6,588 People
Unlock Earned by 430 People
Unlock 2 Earned by 10 People
Establish Earned by 7,586 People
Validate 250 Earned by 13 People
Validate 500 Earned by 7 People
Validate 1000 Earned by 6 People
Validate 2000 Earned by 3 People
Show more