The Calendar detail UX generated by Web2Cal calendar component is unbound and allows me to customize by adding many other fields. All the CRUD operations work as expected. I am pleased on how easy Alpha's environment allowed me to implement the calendar component.
Problem: I want to check options unrelated to controls that are NOT part of any CRUD operation and keep the form clean.
I attached an oversimplification of the issue to show you what I expect and what is happening.
To test, check Send Email, form stays clean, but xbasic returns unchecked.
Check Send Text Message, form becomes dirty, xbasic returns the correct values. (I don't want the user to Submit or Reset since the control has nothing to do with data)
I need a way to update specific controls (unrelated to my data) and keep the form clean and retain the values needed. Let's assume the form is clean to start and/or the user has saved all their changes.
The javascript to return the form to clean is straightforward. It keeps the value for the user to see, but the e object when submitted does not have the updated value.
I added this code to OnChange event for the control not related to the table and this does set the form clean which keeps the submit/reset disabled. The checkbox shows true, but the xbasic function shows false.
if ( {dialog.object}._dirtyRows[0] == true )
{
setTimeout(function() {
{dialog.object}._setRowState(1,false);
},10);
}
Does anyone know what the parameters for _setRowState(n, false/true)?
The xbasic function xpTest returns the values from e.dataSubmitted
NOTE: I cannot change my UX to be data bound since I can't disrupt the relationship between my calendar and detail UX. There is a lot of Xbasic generated to handle the CRUD operations that I would prefer to not change.
I am new at this so perhaps there is a better way? Any suggestions appreciated.
Problem: I want to check options unrelated to controls that are NOT part of any CRUD operation and keep the form clean.
I attached an oversimplification of the issue to show you what I expect and what is happening.
To test, check Send Email, form stays clean, but xbasic returns unchecked.
Check Send Text Message, form becomes dirty, xbasic returns the correct values. (I don't want the user to Submit or Reset since the control has nothing to do with data)
I need a way to update specific controls (unrelated to my data) and keep the form clean and retain the values needed. Let's assume the form is clean to start and/or the user has saved all their changes.
The javascript to return the form to clean is straightforward. It keeps the value for the user to see, but the e object when submitted does not have the updated value.
I added this code to OnChange event for the control not related to the table and this does set the form clean which keeps the submit/reset disabled. The checkbox shows true, but the xbasic function shows false.
if ( {dialog.object}._dirtyRows[0] == true )
{
setTimeout(function() {
{dialog.object}._setRowState(1,false);
},10);
}
Does anyone know what the parameters for _setRowState(n, false/true)?
The xbasic function xpTest returns the values from e.dataSubmitted
NOTE: I cannot change my UX to be data bound since I can't disrupt the relationship between my calendar and detail UX. There is a lot of Xbasic generated to handle the CRUD operations that I would prefer to not change.
I am new at this so perhaps there is a better way? Any suggestions appreciated.
Comment