imports/vx/client/code/ux.js
/**
     * Update the redux store with form data.
     *
     * @param {object} component Component.
     */
Update the redux store with form data.
@param {object} component Component.
Update the redux store with form data . @param { object } component Component .
updateRedux(component) {
        let formProps = UX.getFormProps(component)
        let value = component.getValue()
        let dbName = component.props.dbName || component.props.id
        OLog.debug("ux.js updateRedux formId=" + formProps.id + " dbName=" + dbName)
        let formData = Store.getState().formData
        let currentFormValues = formData[formProps.id] || {}
        currentFormValues[dbName] = value
        formData[formProps.id] = currentFormValues
        Store.dispatch(setFormData(formData))
    }
updateRedux ( component ) { let formProps = UX . getFormProps ( component ) let value = component . getValue ( ) let dbName = component . props . dbName || component . props . id OLog . debug ( "ux.js updateRedux formId=" + formProps . id + " dbName=" + dbName ) let formData = Store . getState ( ) . formData let currentFormValues = formData [ formProps . id ] || { } currentFormValues [ dbName ] = value formData [ formProps . id ] = currentFormValues Store . dispatch ( setFormData ( formData ) ) }
Update the redux store with form data.
Update the redux store with form data .