I’m trying to disable the Suggestions checkbox (set it to false) on page load in the Time Phase Inquiry screen. I created a Form_OnLoad event to handle this, but it’s not working as expected. Although I initially anticipated a straightforward task, it has proven more challenging than I thought. I’ve attached all the relevant screenshots for review. Since I’m still new to Application Studio and learning as I go, I likely missed a step or selected the wrong trigger or prop value. Can anyone shed some light on what might be going wrong?
Did you try with row update instead of property set?
Also, don’t override unless you have to.
I have used the hook ‘After’ as well and still does not work as expected.
Check with console out first.
I agree with both @klincecum and @aosemwengie1
You don’t want to override the existing Form_onLoad… if you do… none of the below will happen:
Set your event up as an “after” event.
Also, as @aosemwengie1 noted, use a row-update, not a property set. You want to update the “value” of the EpBinding… not a property of the control.
Results:
Thank you kindly! That did the trick.
One question. How did you know to use Misc.* instead of TimePhas.* for the Ep Binding?
When I begin to type TimePhas. it automatically fills in after the period as I type, whereas with Misc. it does not.
Now go vote for this idea. Your solution is great as long as everyone has the same preference, but it doesn’t fill the requirement to let everyone save their own default on that:
Time phase inquiry should have a Save Defaults option
Misc.TOSuggestions is the EpBinding that the checkbox control is bound to. So, again, you’re not trying to change the property of the control, you’re trying to set the value that is being displayed.
That value is coming from Misc.TOSuggestions
ACTUALLY… this could be a bug in Time Phase!! (screen shots are from 2024.2.12
I think Epicor has their bindings mixed up.
The checkbox labelled “Suggestions” is bound to Misc.TOSuggestions.
But the checkbox labeled “Transfer Order Suggestions” is bound to Misc.Suggestions.
These appear to be swapped!!
~*~
Also, the reason Misc. doesn’t populate with “intellisense” typing, is because the columns are not pre-defined in the dataview.
The Misc dataview exists, but no columns exist.
Epicor is setting the initial values of these “Misc” columns (which creates the columns “on-the-fly”) in the AfterInitialize event.
Your NEW event is then over-writing the TOSuggestions column with a new value.
BUT… as I stated above… The checkboxes might be bound to the wrong column. So if you’re not getting the results you’re looking for, test by unchecking the other box.
Okay, apparently not… checking/unchecking the “Suggestions” checkbox appears to work as intended. Very odd that the binding seem backwards though.