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.3K

    Likes

    0

    Replies

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

    Type

    Questions

    Views

    5.3K

    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.4K

    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.7K

    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.7K

    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.7K

    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.7K

    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.7K

    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.7K

    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.7K

    Likes

    0

    Replies

    0
Sort by
  • Recently earned
  • Unearned first
  • A-Z
  • Z-A
Give back 300 8/10/21 Earned by 178 People
Give Back 200 8/10/21 Earned by 294 People
Ignite 100 8/10/21 Earned by 57 People
Ignite 90 8/10/21 Earned by 66 People
Ignite 80 8/10/21 Earned by 85 People
Give Back 100 8/10/21 Earned by 501 People
Ignite 70 8/10/21 Earned by 94 People
Ignite 60 8/10/21 Earned by 129 People
Ignite 50 8/10/21 Earned by 181 People
Ignite 40 8/10/21 Earned by 268 People
Give Back 50 8/10/21 Earned by 948 People
Ignite 30 8/10/21 Earned by 468 People
Give Back 25 8/10/21 Earned by 1,970 People
Ignite 20 8/10/21 Earned by 929 People
Ignite 10 8/10/21 Earned by 2,439 People
Give Back 10 8/10/21 Earned by 4,796 People
Give Back 5 8/10/21 Earned by 9,422 People
Ignite 5 8/10/21 Earned by 5,885 People
Give Back 3 8/10/21 Earned by 15,151 People
Ignite 3 8/10/21 Earned by 10,622 People
Give Back 8/10/21 Earned by 37,499 People
Ignite 1 8/10/21 Earned by 42,193 People
Validate 100 4/28/21 Earned by 29 People
Validate 50 4/28/21 Earned by 53 People
Validate 25 4/28/21 Earned by 178 People
Validate 10 4/28/21 Earned by 755 People
Validate 1 4/28/21 Earned by 16,735 People
Boost 5 4/26/21 Earned by 7,378 People
Boost 3 4/26/21 Earned by 11,084 People
Boost 1 4/26/21 Earned by 23,574 People
Affirm 5 4/26/21 Earned by 1,208 People
Affirm 3 4/26/21 Earned by 1,818 People
Affirm 1 4/26/21 Earned by 6,599 People
Unlock Earned by 430 People
Unlock 2 Earned by 10 People
Establish Earned by 7,919 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