I hope someone can help me. I've been working on this problem for 2 days and have been reluctant to post because I didn't get a single response on my last 4 cries for help. If someone can get me going on this, I'd really appreciate it.
This is my problem. I have a read only grid that alerts the user if certain tasks are past due. An administrator can maintain the value for number of days used to determine date past due so I have that stored in an administrative table. Initially I set up my grid (just to get it going) with this value hard-coded in my calculated fields expression in my dbf query and everything worked great. I got a result set with a "varnotifydt" for each record that was calculated by subtracting the hard-coded number of days. It displayed nicely in the grid.
I went in to clean this up and found that I needed to set up the number of days in a session variable. All good. Then I found I couldn't use that variable in my dbf query definition. I did set it up as an argument and was able to get the grid to filter correctly. I still want to show the date in my grid that was the calculated date. I've tried to use the calculated field on one of my grid variables. I can get a lot of values to work here, but not varnotifydt - number of days. I understand that this is because it is looking for javascript (varnotifydt - numberofdays works in xbasic). I've tried adding a button, creating a javascript function (ajaxcallback) and using the e._set object and can't get that to work. I don't even know if I should be using the calculated fields area to accomplish this.
I'd really like to have the calculated value in my query results. If I can't have that, I'd like to have the date calculated as the grid is being built (I did try server side and client side events to no avail). I really don't want a button. This seems like it should be such a common and easy thing to do. I'm still learning.
Thanks, (a very discouraged) Lisa
This is my problem. I have a read only grid that alerts the user if certain tasks are past due. An administrator can maintain the value for number of days used to determine date past due so I have that stored in an administrative table. Initially I set up my grid (just to get it going) with this value hard-coded in my calculated fields expression in my dbf query and everything worked great. I got a result set with a "varnotifydt" for each record that was calculated by subtracting the hard-coded number of days. It displayed nicely in the grid.
I went in to clean this up and found that I needed to set up the number of days in a session variable. All good. Then I found I couldn't use that variable in my dbf query definition. I did set it up as an argument and was able to get the grid to filter correctly. I still want to show the date in my grid that was the calculated date. I've tried to use the calculated field on one of my grid variables. I can get a lot of values to work here, but not varnotifydt - number of days. I understand that this is because it is looking for javascript (varnotifydt - numberofdays works in xbasic). I've tried adding a button, creating a javascript function (ajaxcallback) and using the e._set object and can't get that to work. I don't even know if I should be using the calculated fields area to accomplish this.
I'd really like to have the calculated value in my query results. If I can't have that, I'd like to have the date calculated as the grid is being built (I did try server side and client side events to no avail). I really don't want a button. This seems like it should be such a common and easy thing to do. I'm still learning.
Thanks, (a very discouraged) Lisa
Comment