hello, here is a screenshot that show an error when executing JS on a push button... can you maybe see why?
https://drive.google.com/open?id=0ByTl_ ... Fg1OVcxUzQ
error executing JS
Moderators: Jon, Steve, Ian, Dave
-
- Moderator
- Posts: 414
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
Hi,
JavaScript is a case sensitive language.
If you change the line of code:
to
This should fix your problem.
Also I see on the next line you should call:
to show the table. You are missing the () at the end.
I hope this helps
Steve
JavaScript is a case sensitive language.
If you change the line of code:
Code: Select all
tables.myWorldDiscounts.fetchTable();
Code: Select all
tables.myWorldDiscounts.fetchtable();
Also I see on the next line you should call:
Code: Select all
controls.table1.show();
I hope this helps
Steve
0 x
-
- Ebase User
- Posts: 6
- Joined: Thu Jun 22, 2017 2:39 am
thanks, i did make the adjustments and still getting same error, it says
' "fetchtable" of undefined '
could it be mysetup of the table... here is screenshot of setup...
https://drive.google.com/open?id=0ByTl_ ... TEhmTGR6LV
' "fetchtable" of undefined '
could it be mysetup of the table... here is screenshot of setup...
https://drive.google.com/open?id=0ByTl_ ... TEhmTGR6LV
0 x
-
- Moderator
- Posts: 414
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
Hi,
Sorry I misinformed you. The syntax should be fetchTable with a capital T. I misread the error. The error is suggesting that the table does not exist on the form.
Is the table name correct for the fetchTable() function? Does myWorldDiscounts exist in the form?
Your last screen shot link did not work, so perhaps you can send me a screen shot of the Form - 'firstForm'
Kind regards
Steve
Sorry I misinformed you. The syntax should be fetchTable with a capital T. I misread the error. The error is suggesting that the table does not exist on the form.
Code: Select all
tables.myWorldDiscounts.fetchTable();
Your last screen shot link did not work, so perhaps you can send me a screen shot of the Form - 'firstForm'
Kind regards
Steve
0 x
-
- Ebase User
- Posts: 6
- Joined: Thu Jun 22, 2017 2:39 am
thanks, i actually redid the entire resource attachment and the table is displaying... BUT, the button event returns an error , the text box should display a message of the users first and last name... here is a screenshot, of error, code, and setup...
https://drive.google.com/file/d/0ByTl_9 ... sp=sharing
https://drive.google.com/file/d/0ByTl_9 ... sp=sharing
0 x
-
- Moderator
- Posts: 414
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
Hi,
You need to modify the line:
to
The important part here is the .value at the end of the field name you are referencing ... this returns the actual value of the field.
Kind regards
Steve
You need to modify the line:
Code: Select all
controls.text1.text.text = fields.firstName + fields.lastName
Code: Select all
controls.text1.text.text = "welcome " + fields.firstName.value + " " + fields.lastName.value
Kind regards
Steve
0 x
-
- Ebase User
- Posts: 6
- Joined: Thu Jun 22, 2017 2:39 am
-
- Moderator
- Posts: 414
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
Who is online
Users browsing this forum: No registered users and 11 guests