![]() |
Sergey Kornilov admin 7/19/2016 |
Use calculated field in SQL query: |
![]() |
greggk author 7/19/2016 |
Use calculated field in SQL query: http://xlinesoft.com/articles/how_to_use_calculated_fields.htm scenario #1
|
![]() |
Sergey Kornilov admin 7/19/2016 |
Gregg, |
![]() |
greggk author 7/20/2016 |
Gregg, no, it doesn't require you to have another field in the database. This value is calculated on the fly and no new field is required.
|
![]() |
greggk author 7/21/2016 |
I started again from scratch with this. |
![]() |
Sergey Kornilov admin 7/21/2016 |
I'm sorry to say this doesn't much sense. Javascript API will only work with real edit controls, fields that are chosen to appear on Add or Edit pages on 'Choose pages' screen. Trying to apply Javascript API to field label or to some random placeholder like {$afl500lbl} won't work. Good news is that you can simply use jQuery for this purpose. <div id="total"/>
$("#total").text("some value");
|
![]() |
greggk author 7/22/2016 |
I'm sorry to say this doesn't much sense. Javascript API will only work with real edit controls, fields that are chosen to appear on Add or Edit pages on 'Choose pages' screen. Trying to apply Javascript API to field label or to some random placeholder like {$afl500lbl} won't work. Good news is that you can simply use jQuery for this purpose. Add a div with certain ID to the page (in HTML mode) and manipulate its content using jQuery. HTML part <div id="total"/>
$("#total").text("some value");
|
![]() |
greggk author 7/26/2016 |
Thanks for pointing me to the right direction. I did end up getting it to work. Here's how I did it:
|