Let's say an ajax request pots a form with the following variables:
I can actually perform a vvin_char on web variable bogus even though the variable was not sent with the post/get. In the case of a vvin_char, the variable bogus would contain a blank.
So, that being said, is there a way to determine which web variables were posted?
Here's why I want to know this.
I have an app that contains a mass update feature with filters. So the user can filter down to the records they want to mass update, supply the values they wish to apply, then commit the changes. Well, how am I supposed to determine the difference between a 0 or blank? If they set cost to 0, how do I know (on my backend) that cost is 0 or cost was not supplied as part of the post/get? Previously, I used special values (hival for number fields and the string *BLANK for character fields). I was hoping for a "better" solution. :-)
Code:
part: "partValue", store: "storeValue", cost: "costValue"
So, that being said, is there a way to determine which web variables were posted?
Here's why I want to know this.
I have an app that contains a mass update feature with filters. So the user can filter down to the records they want to mass update, supply the values they wish to apply, then commit the changes. Well, how am I supposed to determine the difference between a 0 or blank? If they set cost to 0, how do I know (on my backend) that cost is 0 or cost was not supplied as part of the post/get? Previously, I used special values (hival for number fields and the string *BLANK for character fields). I was hoping for a "better" solution. :-)
Comment