Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Question aboutan issue with ValuesManager and member forms

    We are attempting to upgrade from version 8.3 to 11 of SmartClient. We are using a ValuesManager to logically group two DynamicForms on a screen. In version 8.3 this worked fine but not in version 11 it is throwing a "TypeError: this.form is null" in Firebug. If I remove the DateTime it will load but the field will not be editable, if I remove the members statement from the ValuesManager everything works fine but it will not save the data. Please see shortened versions of all three.

    this.billToFeeExemptionsDForm = isc.DynamicForm.create({
    parent: this,
    name: "billToFeeExemptionsDForm",
    validateForm: true,
    margin: 4,
    numCols: 6,
    colWidths: ["25%", "0%", "0%", "25%", "25%"],
    itemHoverWidth: 300,
    fields: [
    {name: "FEE_EXEMPTION_HEADER",
    defaultValue: lang_trans("billToMATeamDForm.FEE_EXEMPTION_HEADER.defaultValue", "Fee exemptions"),
    align: "center",
    showTitle: false,
    colSpan: 4,
    editorType: "StaticTextItem",
    textBoxStyle: "headerItem"
    },
    {name: "FUEL_SURCHARGE_END_DATE",
    title: lang_trans("billToMATeamDForm.FUEL_SURCHARGE_END_DATE.title", "Global Waive Fuel End Date"),
    isProtected: true,
    tabIndex: 480,
    prompt: lang_trans("billToMATeamDForm.FUEL_SURCHARGE_END_DATE.title", "Global Waive Fuel End Date"),
    showTitle: false,
    editorType: "DateTime",
    useTextField: true,
    datePairedField: "FUEL_SURCHARGE_START_DATE",
    validators: [{type: "isDate"},{type: "dateIsAfter"}]
    },
    {editorType: "SpacerItem", colSpan: 2}







    this.billToMATeamDForm = isc.DynamicForm.create({
    parent: this,
    name: "billToMATeamDForm",
    validateForm: true,
    margin: 4,
    numCols: 6,
    colWidths: ["25%", "0%", "0%", "25%", "25%"],
    itemHoverWidth: 300,
    fields: [
    {type: "header",
    defaultValue: lang_trans("billToMATeamDForm.defaultValue", "Marketing Attributes"),
    align: "center"
    },
    {name: "PROG_END_DATE",
    title: lang_trans("billToMATeamDForm.PROG_END_DATE.title", "ATD Activate End Date"),
    isProtected: true,
    tabIndex: 270,
    colSpan: 2,
    prompt: lang_trans("billToMATeamDForm.PROG_END_DATE.title", "ATD Activate End Date"),
    editorType: "DateItem",
    useTextField: true,
    validators: [
    {type: "isDate"}
    ]
    }







    this.billToMATeamVM = isc.ValuesManager.create({
    parent: this,

    name: "billToMATeamVM",
    margin: 4,
    width: 550,
    height: 250,
    tabIndex: 500,

    dataSource: isc.EASDataSources.CMR.customerMarketing,

    autoFetchData: false,
    members:[
    this.billToMATeamDForm,
    this.billToFeeExemptionsDForm
    ],


    #2
    Make sure to always post the product you are using, as well as the full version. If you are not already using the latest patched version (see smartclient.com/builds), get the latest patched version and retest.

    If you still have the problem and believe it may be a framework bug rather than a usage issue, put together a ready-to-run, minimal test case demonstrating the problem, and we can take a look.

    Comment

    Working...
    X