I have this button (Resolve) to resolve an issue but I need it to disable when the status is “Complete”. I figured I could use a data rule where I just use a boolean value that is just not used elsewhere and then check the condition. But i can’t seem to get that to work or do anything. Any ideas?
The setup looks correct.
When you are previewing your app, press F12 to load Dev Tools, switch back to your app and click anywhere in the browser window. ctrl-alt-8 (enable debug mode), then ctrl-alt-v (display data from dataviews in console)
Now, back to dev tools window, expand the UD13 → dataview with the arrow.
Expand the row you have selected next to Array → (0,1,2,3, etc.), and check the value for ShortChar07. is it “Complete”?
I guess I’m going to verify i dont have something else overriding it or something. im so at a loss at this point. It’s such a basic function I feel silly being lost on it.
In F12 Dev Tools Console:
epDebug.setDebugModeStatus(true)
epDebug.rules
There are a few rule related methods in epDebug, the autocomplete should show them as you start typing, try checking this to see how your rules are working out, for example:
BTW, if you don’t intend to store data in UD13.CheckBox20, the best practice here would be to use a new temporary dataview that exists for this purpose (or you can re-use the TransView dataview if that app has it)
I would do this:
Create a new dataview “temp” or anything you want, dont configure any options, just uncheck “dirty” and save it.
Now, in your Window OnLoad event, add a row-add widget, and add temp.resolve to “”:
If you re-use the TransView DV, you don’t need the row-add (because TransView already has a row) - you can create the “Resolved” column within the dataview “on the fly”