FormView Error

  1. #1

    FormView Error



    I am getting the following error when seeting up a form view - based upon the example

    Message: 'data.contractTermFrom' is null or not an object

    The text box I am assiging the value to is working and loading the data - but am consistentyly getting a JS error - regardless of what store field I assign - even though it loads OK into the textfield.




    function dataChanged() {


    var record = this.getAt(0) || {};


    <%= txtInsuranceCompanyName.ClientID %>.setValue(record.data.insuranceCompanyName);


    }







  2. #2

    RE: FormView Error

    here is my store:
    
    
    
    <ext:Store ID="storeSummary" runat="server" DataSourceID="sdsSummary" OnRefreshData="storeSummary_Refresh">
    
    
    <Reader>
    
    
    <ext:JsonReader ReaderID="contractID">
    
    
    <Fields>
    
    
    <ext:RecordField Name="contractID" Type="Int" />
    
    
    <ext:RecordField Name="ContractIDCount" Type="String" />
    
    
    <ext:RecordField Name="contractNumber" Type="String" />
    
    
    <ext:RecordField Name="insuranceCompanyName" Type="String" />
    
    
    <ext:RecordField Name="contractComment" Type="String" />
    
    
    <ext:RecordField Name="contractType" Type="String" />
    
    
    <ext:RecordField Name="contractTermFrom" Type="Date" />
    
    
    <ext:RecordField Name="contractTermTo" Type="Date" />
    
    
    <ext:RecordField Name="contractTermEffectiveBasis" Type="String" />
    
    
    <ext:RecordField Name="requiredNoticePeriod" Type="String" />
    
    
    <ext:RecordField Name="renewalStatus" Type="String" />
    
    
    <ext:RecordField Name="renewalStatusWarning" Type="String" />
    
    
    <ext:RecordField Name="billingTimeLimit" Type="String" />
    
    
    <ext:RecordField Name="rebillable" Type="String" />
    
    
    <ext:RecordField Name="paymentLatePenalty" Type="String" />
    
    
    <ext:RecordField Name="interestRateLatePayment" Type="String" />
    
    
    <ext:RecordField Name="preAuth" Type="String" />
    
    
    <ext:RecordField Name="proFeesBillable" Type="String" />
    
    
    <ext:RecordField Name="annualInsurancePlanCap" Type="String" />
    
    
    </Fields>
    
    
    </ext:JsonReader>
    
    
    </Reader>
    
    
    <Listeners>
    
    
    <DataChanged Fn="dataChanged" />
    
    
    <LoadException Handler="Ext.Msg.alert('Contracts - Load failed', e.message || e )" />
    
    
    <CommitFailed Handler="Ext.Msg.alert('Contracts - Commit failed', 'Reason: ' + msg)" />
    
    
    <SaveException Handler="Ext.Msg.alert('Contracts - Save failed', e.message || e)" />
    
    
    <BeforeLoad Handler="#{gpSummary}.body.mask('Loading Summary Data...', 'x-mask-loading');" />
    
    
    <Load Handler="#{gpSummary}.body.unmask();" />
    
    
    </Listeners>
    
    
    </ext:Store>
  3. #3

    RE: FormView Error

    wierd thing is that if I comment out the first line below - the error fires only on the next - any help would be greatly appreciated! As this is killing my app!




    var record = this.getAt(0) || {};


    <%= CompanyField.ClientID %>.setValue(record.data.insuranceCompanyName);


    <%= txtcontractNumber.ClientID %>.setValue(record.data.contractID);


    <%= txtrequiredNoticePeriod.ClientID %>.setValue(record.data.requiredNoticePeriod);








    <%= txtbillingTimeLimit.ClientID %>.setValue(record.data.billingTimeLimit);


    <%= txtpaymentLatePenalty.ClientID %>.setValue(record.data.paymentLatePenalty);


    <%= txtannualInsurancePlanCap.ClientID %>.setValue(record.data.annualInsurancePlanCap);


    <%= txtrenewalStatusWarning.ClientID %>.setValue(record.data.renewalStatusWarning);


    <%= txinterestRateLatePayment.ClientID %>.setValue(record.data.interestRateLatePayment);





    <%= cbrebillable.ClientID %>.setValue(record.data.rebillable);


    <%= cbproFeesBillable.ClientID %>.setValue(record.data.proFeesBillable);


    <%= cbpreAuth.ClientID %>.setValue(record.data.preAuth);


    <%= cbrenewalStatus.ClientID %>.setValue(record.data.renewalStatus);


    <%= cbcontractTermEffectiveBasis.ClientID %>.setValue(record.data.contractTermEffectiveBasis );


    <%= cbcontractType.ClientID %>.setValue(record.data.contractType);


    <%= txtcontractTermFrom.ClientID %>.setValue(record.data.contractTermFrom);


    <%= txtcontractTermTo.ClientID %>.setValue(record.data.contractTermTo);








    //





    //requiredNoticePeriod


    Panel2.body.unmask();


    }
  4. #4

    RE: FormView Error

    Are you sure you have a 'contractTermFrom' item in the data record?

    I took a look through the code you posted and everything appears to be correct, but is difficult to answer 100% without a sample we can test with.


    Geoffrey McGill
    Founder
  5. #5

    RE: FormView Error

    Here is a complete sample of my code - I am sure all of the fields exist- like I say - the textfield popultaes fine - and the value disaplays, but the error is still thrown - if I throw a buffer in large enough it helps, but do not want a 1 second buffer just for this error, etc.
    
    
    
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="CM_test" %>
    
    
    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
    
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    
    <head id="Head1" runat="server">
    
    
    <title>Untitled Page</title>
    
    
    <ext:ScriptContainer ID="ScriptContainer1" runat="server">
    
    
    </ext:ScriptContainer>
    
    
    <style type="text/css"> 
    
    
    td.ux-grid-hd-group-cell
    
    
    {
    
    
    background: url(assets/images/grid3-hrow.gif) repeat-x bottom;
    
    
    font-weight: bolder;
    
    
    }
    
    
    td.ux-grid-hd-nogroup-cell .x-grid3-hd-inner
    
    
    {
    
    
    background: none;
    
    
    }
    
    
    .list-item
    
    
    {
    
    
    font: normal 11px tahoma, arial, helvetica, sans-serif;
    
    
    padding: 3px 10px 3px 10px;
    
    
    border: 1px solid #fff;
    
    
    border-bottom: 1px solid #eeeeee;
    
    
    white-space: normal;
    
    
    color: #555;
    
    
    }
    
    
    .list-item h3
    
    
    {
    
    
    display: block;
    
    
    font: inherit;
    
    
    font-weight: bold;
    
    
    color: #222;
    
    
    }
    
    
    .company-label
    
    
    {
    
    
    display: block;
    
    
    font: inherit;
    
    
    font-weight: bold;
    
    
    padding-bottom: 6px;
    
    
    padding-left: 25px;
    
    
    padding-right: 2px;
    
    
    color: #253352;
    
    
    }
    
    
    .grey
    
    
    {
    
    
    background: #eeeeee;
    
    
    }
    
    
    .x-grid3-col-label, .x-grid3-td-label
    
    
    {
    
    
    background-color: #eeeeee;
    
    
    color: #333333;
    
    
    }
    
    
    .silver-grid .x-grid3-row-selected
    
    
    {
    
    
    background: white !important;
    
    
    border-color: white !important;
    
    
    }
    
    
    .dirty-row
    
    
    {
    
    
    background: #FFFDD8;
    
    
    }
    
    
    .new-row
    
    
    {
    
    
    background: #c8ffc8;
    
    
    }
    
    
    .mymulti .ux-mselect-item 
    
    
    { 
    
    
    color: black !important; 
    
    
    font-size: 10px !important; 
    
    
    padding:0px;
    
    
    } 
    
    
    .mymulti .ux-mselect-selected 
    
    
    { 
    
    
    color: green !important; 
    
    
    font-weight:bold; 
    
    
    } 
    
    
    .x-grid3-td-label 
    
    
    {
    
    
    font-weight:bold !important; 
    
    
    vertical-align: bottom;
    
    
    padding-right:-16px;
    
    
    margin-right:-16px;
    
    
    }
    
    
    .text-label
    
    
    {
    
    
    font: normal 10px verdana;
    
    
    color: #333333;
    
    
    font-weight: bold;
    
    
    }
    
    
    .text-normal
    
    
    {
    
    
    font: normal 10px verdana;
    
    
    color: #333333;
    
    
    }
    
    
    .x-my-list .x-combo-list-item { font: normal 10px verdana;
    
    
    color: #333333; }
    
    
    
    
    
    
    
    
    .x-grid3-col-label, .x-grid3-td-label 
    
    
    {
    
    
    background-color: #ffffff;
    
    
    color: #333333;
    
    
    font: 10px verdana,;
    
    
    border-top-style: none;
    
    
    border-left-style: none;
    
    
    border-bottom-style: none;
    
    
    border-right: #d0d0d0 1px solid;
    
    
    } 
    
    
    
    
    
    .without-dirty .x-grid3-dirty-cell
    
    
    {
    
    
    background:transparent !important; } 
    
    
    
    
    
    .list-item {
    
    
    font:normal 11px tahoma, arial, helvetica, sans-serif;
    
    
    padding:3px 10px 3px 10px;
    
    
    border:1px solid #fff;
    
    
    border-bottom:1px solid #eeeeee;
    
    
    white-space:normal;
    
    
    color:#555;
    
    
    }
    
    
    .list-item h3 {
    
    
    display:block;
    
    
    font:inherit;
    
    
    font-weight:bold;
    
    
    color:#222;
    
    
    </style>
    
    
    <script src="Common/Scripts/GroupHeaderPlugin.js" type="text/javascript"></script>
    
    
    <script type="text/javascript">
    
    
    
    
    
    var contractSelect = function(v) {
    
    
    hfContractID.setValue(ComboBox1.getValue());
    
    
    storeSummary.reload();
    
    
    storeReimb.reload();
    
    
    storeStopLoss.reload();
    
    
    
    
    
    }
    
    
    
    
    
    var template = '{1}';
    
    
    var pctChange = function(v) {
    
    
    var returnVal = null;
    
    
    if ((v == null) || (v == '')) {
    
    
    return null
    
    
    } else {
    
    
    returnVal
    
    
    return returnVal = (parseFloat(v) * 1.0).toFixed(2) + '%';
    
    
    }
    
    
    };
    
    
    
    
    
    var pctChange0 = function(v) {
    
    
    var returnVal = null;
    
    
    if ((v == null) || (v == '')) {
    
    
    return null
    
    
    } else {
    
    
    returnVal
    
    
    return returnVal = '<div style=text-align:center;>'+(parseFloat(v) * 1.0).toFixed(0) + '%' + '
    ';
    
    
    }
    
    
    };
    
    
    
    
    
    var usMoney = function(v) {
    
    
    var returnVal = null;
    
    
    if ((v == null) || (v == '')) {
    
    
    return null
    
    
    } else {
    
    
    returnVal
    
    
    return returnVal = Ext.util.Format.usMoney(v);
    
    
    }
    
    
    };
    
    
    
    
    
    var usMoney2 = function(v, meta) {
    
    
    meta.attr = 'style="background-color:#eeeeee;"';
    
    
    var returnVal = null;
    
    
    if ((v == null) || (v == '')) {
    
    
    return null
    
    
    } else {
    
    
    returnVal
    
    
    return returnVal = Ext.util.Format.usMoney(v);
    
    
    }
    
    
    };
    
    
    
    
    
    var pctChange2 = function(v, meta) {
    
    
    meta.attr = 'style="background-color:#eeeeee;"';
    
    
    var returnVal = null;
    
    
    if ((v == null) || (v == '')) {
    
    
    return null
    
    
    } else {
    
    
    returnVal
    
    
    return returnVal = (parseFloat(v) * 1.0).toFixed(2) + '%';
    
    
    }
    
    
    };
    
    
    
    
    
    function toMoney(field) {
    
    
    if (field.getValue() == '') {
    
    
    return;
    
    
    }
    
    
    var value = Ext.util.Format.usMoney(field.getValue());
    
    
    field.setRawValue(value.replace('$', ''));
    
    
    }
    
    
    
    
    
    var formatDate = function(value){ 
    
    
    return value.dateFormat('mm/dd/yyyy'); 
    
    
    }
    
    
    
    
    
    var YesNo = function(value){ 
    
    
    var test;
    
    
    if (value == "true") 
    
    
    test = "Yes"
    
    
    else
    
    
    test = "No"
    
    
    return test;
    
    
    }
    
    
    var departmentRenderer = function(value) {
    
    
    var test;
    
    
    switch (value){
    
    
    case "-1": test = ' '; 
    
    
    break;
    
    
    case "1": test = 'Medicare DRG'; 
    
    
    break; 
    
    
    case "2": test = 'Special DRG'; 
    
    
    break; 
    
    
    case "3": test = 'Per diem'; 
    
    
    break; 
    
    
    case "4": test = 'Fixed'; 
    
    
    break;
    
    
    case "5": test = 'Percent of Charges'; 
    
    
    break;
    
    
    case "6": test = 'Percent of Charges - Subject To Cap'; 
    
    
    break;
    
    
    case "7": test = 'Case Rate'; 
    
    
    break;
    
    
    case "8": test = 'Variable - Subject To Claim Limit'; 
    
    
    break;
    
    
    case "9": test = 'Cost'; 
    
    
    break;
    
    
    }
    
    
    return test;
    
    
    }
    
    
    var methods2Renderer = function(value) {
    
    
    var test;
    
    
    switch (value){
    
    
    case "FIXED": test = 'Fixed'; 
    
    
    break; 
    
    
    case "VARIABLE": test = 'Variable'; 
    
    
    break; 
    
    
    case "COST": test = 'Cost'; 
    
    
    break; 
    
    
    }
    
    
    return test;
    
    
    }
    
    
    
    
    
    var methods2Renderer2 = function(value, meta) {
    
    
    meta.attr = 'style="background-color:#eeeeee;"';
    
    
    var test;
    
    
    switch (value){
    
    
    case "FIXED": test = 'Fixed'; 
    
    
    break; 
    
    
    case "VARIABLE": test = 'Variable'; 
    
    
    break; 
    
    
    case "COST": test = 'Cost'; 
    
    
    break; 
    
    
    }
    
    
    return test;
    
    
    }
    
    
    var ccm = function(value, metadata, record, rowIndex, colIndex, store) {
    
    
    metadata.attr = 'style="background-color:#eeeeee;"';
    
    
    var test;
    
    
    if (record.data.chargePercentageDiscount != "" || record.data.chargePercentageDiscount == null) {
    
    
    test= (parseFloat((100 - record.data.chargePercentageDiscount)) * 1.0).toFixed(2) + '%';
    
    
    if (test == '100.00%'){
    
    
    test = null
    
    
    }
    
    
    return test;
    
    
    }
    
    
    }
    
    
    
    
    
    function dataChanged(record, store) {
    
    
    var record = this.getAt(0) || {};
    
    
    <%= CompanyField.ClientID %>.setValue(record.data.insuranceCompanyName);
    
    
    <%= txtcontractNumber.ClientID %>.setValue(record.data.contractID);
    
    
    <%= txtrequiredNoticePeriod.ClientID %>.setValue(record.data.requiredNoticePeriod);
    
    
    
    
    
    
    
    
    <%= txtbillingTimeLimit.ClientID %>.setValue(record.data.billingTimeLimit);
    
    
    <%= txtpaymentLatePenalty.ClientID %>.setValue(record.data.paymentLatePenalty);
    
    
    <%= txtannualInsurancePlanCap.ClientID %>.setValue(record.data.annualInsurancePlanCap);
    
    
    <%= txtrenewalStatusWarning.ClientID %>.setValue(record.data.renewalStatusWarning);
    
    
    <%= txinterestRateLatePayment.ClientID %>.setValue(record.data.interestRateLatePayment);
    
    
    
    
    
    <%= cbrebillable.ClientID %>.setValue(record.data.rebillable);
    
    
    <%= cbproFeesBillable.ClientID %>.setValue(record.data.proFeesBillable);
    
    
    <%= cbpreAuth.ClientID %>.setValue(record.data.preAuth);
    
    
    <%= cbrenewalStatus.ClientID %>.setValue(record.data.renewalStatus);
    
    
    <%= cbcontractTermEffectiveBasis.ClientID %>.setValue(record.data.contractTermEffectiveBasis);
    
    
    <%= cbcontractType.ClientID %>.setValue(record.data.contractType);
    
    
    <%= txtcontractTermFrom.ClientID %>.setValue(record.data.contractTermFrom);
    
    
    <%= txtcontractTermTo.ClientID %>.setValue(record.data.contractTermTo);
    
    
    
    
    
    
    
    
    //
    
    
    
    
    
    //requiredNoticePeriod
    
    
    Panel2.body.unmask();
    
    
    } 
    
    
    
    
    
    </script>
    
    
    </head>
    
    
    <body>
    
    
    <form id="form1" runat="server">
    
    
    
    
    
    <ext:ScriptManager ID="ScriptManager1" runat="server" IDMode="Inherit" Theme="Default"
    
    
    ScriptAdapter="Ext" ScriptMode="Release" StateProvider="PostBack" RenderScripts="Embedded"
    
    
    SourceFormatting="false" RenderStyles="Embedded" CleanResourceUrl="false" QuickTips="true"
    
    
    AjaxEventUrl="" AjaxViewStateMode="Include" />
    
    
    <asp:SqlDataSource ID="sdsReimb" runat="server" ConnectionString="<%$ ConnectionStrings:csCDMEditor %>"
    
    
    SelectCommandType="StoredProcedure" SelectCommand="CM_queryContractReimb2" InsertCommand="CM_updateContractReimb"
    
    
    InsertCommandType="StoredProcedure" UpdateCommand="CM_updateContractReimb" UpdateCommandType="StoredProcedure">
    
    
    <SelectParameters>
    
    
    <asp:Parameter Name="contractID" Type="Int32" />
    
    
    </SelectParameters>
    
    
    <UpdateParameters>
    
    
    <asp:Parameter Name="reimbID" Type="Int32" />
    
    
    <asp:Parameter Name="contractID" Type="Int32" />
    
    
    <asp:Parameter Name="patientType" Type="String" />
    
    
    <asp:Parameter Name="reimbursementMethod" Type="Int32" />
    
    
    <asp:Parameter Name="totalCharge" Type="Decimal" />
    
    
    <asp:Parameter Name="chargePercentageDiscount" Type="Decimal" />
    
    
    <asp:Parameter Name="claimCap" Type="Decimal" />
    
    
    <asp:Parameter Name="cashContributionMargin" Type="Decimal" />
    
    
    <asp:Parameter Name="settlementMethod" Type="String" />
    
    
    </UpdateParameters>
    
    
    <InsertParameters>
    
    
    <asp:Parameter Name="reimbID" Type="Int32" />
    
    
    <asp:Parameter Name="contractID" Type="Int32" />
    
    
    <asp:Parameter Name="patientType" Type="String" />
    
    
    <asp:Parameter Name="reimbursementMethod" Type="Int32" />
    
    
    <asp:Parameter Name="totalCharge" Type="Decimal" />
    
    
    <asp:Parameter Name="chargePercentageDiscount" DbType="VarNumeric" />
    
    
    <asp:Parameter Name="claimCap" Type="Decimal" />
    
    
    <asp:Parameter Name="cashContributionMargin" DbType="VarNumeric" />
    
    
    <asp:Parameter Name="settlementMethod" Type="String" />
    
    
    </InsertParameters>
    
    
    </asp:SqlDataSource>
    
    
    <asp:SqlDataSource ID="sdsContracts" runat="server" ConnectionString="<%$ ConnectionStrings:csCDMEditor %>"
    
    
    ProviderName="System.Data.SqlClient" SelectCommand="CM_queryContractIDList4"
    
    
    SelectCommandType="StoredProcedure">
    
    
    <SelectParameters>
    
    
    <asp:Parameter DefaultValue="263" Name="hospitalClientID" Type="Int32" />
    
    
    </SelectParameters>
    
    
    </asp:SqlDataSource>
    
    
    <asp:SqlDataSource ID="sdsStopLoss" runat="server" ConnectionString="<%$ ConnectionStrings:csCDMEditor %>"
    
    
    SelectCommandType="StoredProcedure" SelectCommand="CM_queryContractStopLoss"
    
    
    InsertCommand="CM_updateContractStopLoss" InsertCommandType="StoredProcedure"
    
    
    UpdateCommand="CM_updateContractStopLoss" UpdateCommandType="StoredProcedure">
    
    
    <SelectParameters>
    
    
    <asp:Parameter Name="contractID" Type="Int32" />
    
    
    </SelectParameters>
    
    
    <UpdateParameters>
    
    
    <asp:Parameter Name="stopLossID" />
    
    
    <asp:ControlParameter ControlID="hdnContractID" Name="contractID" PropertyName="Text" />
    
    
    <asp:Parameter Name="startDate" />
    
    
    <asp:Parameter Name="endDate" />
    
    
    <asp:Parameter Name="dollarThreshold" />
    
    
    <asp:Parameter Name="billedChargesPercentage" />
    
    
    <asp:Parameter Name="dollarType" />
    
    
    <asp:Parameter Name="dollarNotToEceed" />
    
    
    <asp:Parameter Name="exclusions" />
    
    
    </UpdateParameters>
    
    
    <InsertParameters>
    
    
    <asp:Parameter Name="stopLossID" />
    
    
    <asp:ControlParameter ControlID="hdnContractID" Name="contractID" PropertyName="Text" />
    
    
    <asp:Parameter Name="startDate" />
    
    
    <asp:Parameter Name="endDate" />
    
    
    <asp:Parameter Name="dollarThreshold" />
    
    
    <asp:Parameter Name="billedChargesPercentage" />
    
    
    <asp:Parameter Name="dollarType" />
    
    
    <asp:Parameter Name="dollarNotToEceed" />
    
    
    <asp:Parameter Name="exclusions" />
    
    
    </InsertParameters>
    
    
    </asp:SqlDataSource>
    
    
    <asp:SqlDataSource ID="sdsSummary" runat="server" ConnectionString="<%$ ConnectionStrings:csCDMEditor %>"
    
    
    SelectCommand="CM_queryContractSummary4" SelectCommandType="StoredProcedure">
    
    
    <SelectParameters>
    
    
    <asp:Parameter Name="contractID" Type="Int32" />
    
    
    </SelectParameters>
    
    
    </asp:SqlDataSource>
    
    
    <ext:Store ID="storeStopLoss" runat="server" IgnoreExtraFields="true" DataSourceID="sdsStopLoss"
    
    
    OnRefreshData="storeStopLoss_Refresh">
    
    
    <Reader>
    
    
    <ext:JsonReader ReaderID="stopLossID">
    
    
    <Fields>
    
    
    <ext:RecordField Name="stopLossID" Type="Int" />
    
    
    <ext:RecordField Name="contractID" Type="Int" />
    
    
    <ext:RecordField Name="startDate" Type="String" />
    
    
    <ext:RecordField Name="endDate" Type="String" />
    
    
    <ext:RecordField Name="dollarThreshold" />
    
    
    <ext:RecordField Name="billedChargesPercentage" />
    
    
    <ext:RecordField Name="dollarType" Type="String" />
    
    
    <ext:RecordField Name="dollarNotToEceed" />
    
    
    <ext:RecordField Name="exclusions" Type="String" />
    
    
    </Fields>
    
    
    </ext:JsonReader>
    
    
    </Reader>
    
    
    <Listeners>
    
    
    <LoadException Handler="Ext.Msg.alert('Stop Loss - Load failed', e.message || e )" />
    
    
    <CommitFailed Handler="Ext.Msg.alert('Stop Loss - Commit failed', 'Reason: ' + msg)" />
    
    
    <SaveException Handler="Ext.Msg.alert('Stop Loss - Save failed', e.message || e)" />
    
    
    <BeforeLoad Handler="#{gpStopLoss}.body.mask('Loading Stop Loss Data...', 'x-mask-loading');" />
    
    
    <Load Handler="#{gpStopLoss}.body.unmask();" />
    
    
    </Listeners>
    
    
    </ext:Store>
    
    
    <ext:Store ID="storeReimb" runat="server" DataSourceID="sdsReimb" OnRefreshData="storeReimb_Refresh">
    
    
    <Reader>
    
    
    <ext:JsonReader ReaderID="reimbID">
    
    
    <Fields>
    
    
    <ext:RecordField Name="reimbID" Type="Int" />
    
    
    <ext:RecordField Name="contractID" Type="Int" />
    
    
    <ext:RecordField Name="patientType" Type="String" />
    
    
    <ext:RecordField Name="reimbursementMethod" Type="String" />
    
    
    <ext:RecordField Name="totalCharge" />
    
    
    <ext:RecordField Name="chargePercentageDiscount" />
    
    
    <ext:RecordField Name="claimCap" />
    
    
    <ext:RecordField Name="cashContributionMargin" />
    
    
    <ext:RecordField Name="settlementMethod" />
    
    
    </Fields>
    
    
    </ext:JsonReader>
    
    
    </Reader>
    
    
    <Listeners>
    
    
    <LoadException Handler="Ext.Msg.alert('Stop Loss - Load failed', e.message || e )" />
    
    
    <CommitFailed Handler="Ext.Msg.alert('Stop Loss - Commit failed', 'Reason: ' + msg)" />
    
    
    <SaveException Handler="Ext.Msg.alert('Stop Loss - Save failed', e.message || e)" />
    
    
    <BeforeLoad Handler="#{gpReimb}.body.mask('Loading Reimbursement Data...', 'x-mask-loading');" />
    
    
    <Load Handler="#{gpReimb}.body.unmask();" />
    
    
    </Listeners>
    
    
    </ext:Store>
    
    
    <ext:Store ID="storeContracts" runat="server" DataSourceID="sdsContracts">
    
    
    <Reader>
    
    
    <ext:JsonReader ReaderID="contractID">
    
    
    <Fields>
    
    
    <ext:RecordField Name="contractID" Type="Int" />
    
    
    <ext:RecordField Name="contractNumber" Type="String" />
    
    
    <ext:RecordField Name="insuranceCompanyName" Type="String" />
    
    
    <ext:RecordField Name="totalCharge" Type="String" />
    
    
    <ext:RecordField Name="display" Type="String" />
    
    
    </Fields>
    
    
    </ext:JsonReader>
    
    
    </Reader>
    
    
    <Listeners>
    
    
    <LoadException Handler="Ext.Msg.alert('Contracts - Load failed', e.message || e )" />
    
    
    <CommitFailed Handler="Ext.Msg.alert('Contracts - Commit failed', 'Reason: ' + msg)" />
    
    
    <SaveException Handler="Ext.Msg.alert('Contracts - Save failed', e.message || e)" />
    
    
    <Load Handler="#{ComboBox1}.setValueAndFireSelect(this.getAt(0).data[#{ComboBox1}.valueField]);" />
    
    
    </Listeners>
    
    
    </ext:Store>
    
    
    <ext:Store ID="storeSummary" runat="server" DataSourceID="sdsSummary" OnRefreshData="storeSummary_Refresh">
    
    
    <Reader>
    
    
    <ext:JsonReader>
    
    
    <Fields>
    
    
    <ext:RecordField Name="contractID" Type="Int" />
    
    
    <ext:RecordField Name="ContractIDCount" Type="String" />
    
    
    <ext:RecordField Name="contractNumber" Type="String" />
    
    
    <ext:RecordField Name="insuranceCompanyName" Type="String" />
    
    
    <ext:RecordField Name="contractComment" Type="String" />
    
    
    <ext:RecordField Name="contractType" Type="String" />
    
    
    <ext:RecordField Name="contractTermFrom" Type="Date" />
    
    
    <ext:RecordField Name="contractTermTo" Type="Date" />
    
    
    <ext:RecordField Name="contractTermEffectiveBasis" Type="String" />
    
    
    <ext:RecordField Name="requiredNoticePeriod" Type="String" />
    
    
    <ext:RecordField Name="renewalStatus" Type="String" />
    
    
    <ext:RecordField Name="renewalStatusWarning" Type="String" />
    
    
    <ext:RecordField Name="billingTimeLimit" Type="String" />
    
    
    <ext:RecordField Name="rebillable" Type="String" />
    
    
    <ext:RecordField Name="paymentLatePenalty" Type="String" />
    
    
    <ext:RecordField Name="interestRateLatePayment" Type="String" />
    
    
    <ext:RecordField Name="preAuth" Type="String" />
    
    
    <ext:RecordField Name="proFeesBillable" Type="String" />
    
    
    <ext:RecordField Name="annualInsurancePlanCap" Type="String" />
    
    
    </Fields>
    
    
    </ext:JsonReader>
    
    
    </Reader>
    
    
    <Listeners>
    
    
    <DataChanged Fn="dataChanged" Buffer="375" />
    
    
    <LoadException Handler="Ext.Msg.alert('Contracts - Load failed', e.message || e )" />
    
    
    <CommitFailed Handler="Ext.Msg.alert('Contracts - Commit failed', 'Reason: ' + msg)" />
    
    
    <SaveException Handler="Ext.Msg.alert('Contracts - Save failed', e.message || e)" />
    
    
    <BeforeLoad Handler="#{Panel2}.body.mask('Loading...', 'x-mask-loading');" />
    
    
    </Listeners>
    
    
    </ext:Store>
    
    
    <ext:Store ID="storeSortBy" runat="server" AutoLoad="true">
    
    
    <Reader>
    
    
    <ext:ArrayReader>
    
    
    <Fields>
    
    
    <ext:RecordField Name="value" />
    
    
    <ext:RecordField Name="name" />
    
    
    </Fields>
    
    
    </ext:ArrayReader>
    
    
    </Reader>
    
    
    </ext:Store>
    
    
    <ext:Hidden runat="server" ID="hfContractID" />
    
    
    <div style="padding-left: 40px; padding-top: 60px">
    
    
    <ext:Panel runat="server" Width="920" BodyBorder="false" ID="Panel1">
    
    
    <TopBar>
    
    
    <ext:Toolbar ID="Toolbar1" runat="server">
    
    
    <Items>
    
    
    <ext:Label ID="Label1" runat="server" Text="&amp;nbsp;&amp;nbsp;" />
    
    
    <ext:ToolbarButton ID="ToolbarButton1" Icon="Add" StandOut="True" MenuAlign="Right"
    
    
    Text="New&amp;nbsp;" runat="server" Disabled="true" />
    
    
    <ext:Label ID="Label2" runat="server" Text="&amp;nbsp;&amp;nbsp;" />
    
    
    <ext:ToolbarSeparator />
    
    
    <ext:Label ID="Label3" runat="server" Text="&amp;nbsp;&amp;nbsp;" />
    
    
    <ext:ToolbarButton ID="ButtonSave" Icon="Accept" StandOut="True" MenuAlign="Right"
    
    
    Text="Save Changes&amp;nbsp;" runat="server" />
    
    
    <ext:Label ID="Label4" runat="server" Text="&amp;nbsp;&amp;nbsp;" />
    
    
    <ext:ToolbarSeparator />
    
    
    <ext:Label ID="Label5" runat="server" Text="&amp;nbsp;&amp;nbsp;" />
    
    
    <ext:ToolbarButton ID="ToolbarButton2" Icon="BulletLeft" runat="server">
    
    
    <Listeners>
    
    
    <Click Handler="if (#{ComboBox1}.getSelectedIndex() >0 ) {#{ComboBox1}.setValueAndFireSelect(#{storeContracts}.getAt(#{ComboBox1}.getSelectedIndex()-1).data[#{ComboBox1}.valueField]);};" />
    
    
    </Listeners>
    
    
    </ext:ToolbarButton>
    
    
    <ext:ComboBox ID="ComboBox1" runat="server" StoreID="storeContracts" Width="300"
    
    
    Editable="false" DisplayField="display" ValueField="contractID" TypeAhead="true"
    
    
    Mode="Local" ForceSelection="true" TriggerAction="All" FireSelectOnLoad="true"
    
    
    ItemSelector="div.list-item" SelectOnFocus="true" Cls="text-normal">
    
    
    <Template ID="Template1" runat="server">
    
    
    <tpl for=".">
    
    
    <div class="list-item">
    
    
    <h3>{contractNumber} - {insuranceCompanyName}</h3>
    
    
    Total Charge: {totalCharge:usMoney}
    
    
    
    
    
    
    </tpl>
    
    
    </Template>
    
    
    <Listeners>
    
    
    <Select Fn="contractSelect" />
    
    
    </Listeners>
    
    
    </ext:ComboBox>
    
    
    <ext:ToolbarButton ID="Button1" Icon="BulletRight" runat="server">
    
    
    <Listeners>
    
    
    <Click Handler="#{ComboBox1}.setValueAndFireSelect(#{storeContracts}.getAt(#{ComboBox1}.getSelectedIndex()+1).data[#{ComboBox1}.valueField]);" />
    
    
    </Listeners>
    
    
    </ext:ToolbarButton>
    
    
    <ext:ToolbarSeparator />
    
    
    <ext:Label ID="Label6" runat="server" Text="&amp;nbsp;&amp;nbsp;">
    
    
    </ext:Label>
    
    
    <ext:ComboBox ID="cbSortBy" Cls="text-normal" ListClass="x-my-list" runat="server"
    
    
    StoreID="storeSortBy" Width="100" Editable="false" DisplayField="name" ValueField="value"
    
    
    TypeAhead="true" Mode="Local" TriggerAction="All" ForceSelection="true" EmptyText="Sort By..."
    
    
    SelectOnFocus="true">
    
    
    <Listeners>
    
    
    <Select Handler="#{storeContracts}.sort(#{cbSortBy}.getValue(),#{CycleButton1}.getActiveItem().text);#{ComboBox1}.setValueAndFireSelect(#{storeContracts}.getAt(0).data[#{ComboBox1}.valueField]);#{ComboBox1}.focus();" />
    
    
    </Listeners>
    
    
    </ext:ComboBox>
    
    
    <ext:CycleButton ID="CycleButton1" runat="server" ShowText="false" PrependText="Sort direction ">
    
    
    <Menu>
    
    
    <ext:Menu ID="Menu3" runat="server">
    
    
    <Items>
    
    
    <ext:CheckMenuItem ID="CheckMenuItem1" runat="server" Text="ASC" Icon="ArrowUp" />
    
    
    <ext:CheckMenuItem ID="CheckMenuItem2" runat="server" Text="DESC" Icon="ArrowDown"
    
    
    Checked="true" />
    
    
    </Items>
    
    
    </ext:Menu>
    
    
    </Menu>
    
    
    </ext:CycleButton>
    
    
    <ext:Label ID="Label7" runat="server" Text="&amp;nbsp;&amp;nbsp;" />
    
    
    </Items>
    
    
    </ext:Toolbar>
    
    
    </TopBar>
    
    
    <Body>
    
    
    <br />
    
    
    <%-- formview here --%>
    
    
    <ext:Panel runat="server" Width="920" BodyBorder="false" ID="Panel2">
    
    
    <Body>
    
    
    <table cellpadding="4">
    
    
    <tr>
    
    
    <td>
    
    
    <div style="padding-right: 10px;">
    
    
    &amp;nbsp;
    
    
    
    </td>
    
    
    <td>
    
    
    <div class="text-label" style="padding-bottom: 3px;">
    
    
    *Contract No.:
    
    
    
    <ext:TextField ID="txtcontractNumber" runat="server" Cls="text-normal" Width="84">
    
    
    </ext:TextField>
    
    
    </td>
    
    
    <td>
    
    
    <div style="padding-right: 8px;">
    
    
    &amp;nbsp;
    
    
    
    </td>
    
    
    <td>
    
    
    <div class="text-label" style="padding-bottom: 3px;">
    
    
    *Insurance Company Name:
    
    
    
    <ext:TextField ID="CompanyField" runat="server" Cls="text-normal" Width="230">
    
    
    </ext:TextField>
    
    
    </td>
    
    
    <td>
    
    
    <div style="padding-right: 8px;">
    
    
    &amp;nbsp;
    
    
    
    </td>
    
    
    <td>
    
    
    <div class="text-normal">
    
    
    Insurance Contract Type:
    
    
    
    <ext:ComboBox runat="server" ID="cbcontractType" Cls="text-normal" Width="145" ListClass="x-my-list">
    
    
    <Items>
    
    
    <ext:ListItem Text="PPO" Value="PPO" />
    
    
    <ext:ListItem Text="HMO" Value="HMO" />
    
    
    <ext:ListItem Text="Indemnity" Value="Indemnity" />
    
    
    <ext:ListItem Text="Capitation" Value="Capitation" />
    
    
    </Items>
    
    
    </ext:ComboBox>
    
    
    </td>
    
    
    <td>
    
    
    <div style="padding-right: 8px;">
    
    
    &amp;nbsp;
    
    
    
    </td>
    
    
    <td>
    
    
    <div class="text-normal">
    
    
    Term From:
    
    
    
    <ext:DateField runat="server" ID="txtcontractTermFrom" Vtype="daterange" FieldLabel="To"
    
    
    Cls="text-normal">
    
    
    <Listeners>
    
    
    <Render Handler="this.endDateField = '#{txtcontractTermTo}'" />
    
    
    </Listeners>
    
    
    </ext:DateField>
    
    
    </td>
    
    
    <td>
    
    
    <div style="padding-right: 4px;">
    
    
    &amp;nbsp;
    
    
    
    </td>
    
    
    <td>
    
    
    <div class="text-normal">
    
    
    Term To:
    
    
    
    <ext:DateField runat="server" ID="txtcontractTermTo" Vtype="daterange" FieldLabel="From"
    
    
    Cls="text-normal">
    
    
    <Listeners>
    
    
    <Render Handler="this.startDateField = '#{txtcontractTermFrom}'" />
    
    
    </Listeners>
    
    
    </ext:DateField>
    
    
    </td>
    
    
    <td>
    
    
    <div style="padding-right: 8px;">
    
    
    &amp;nbsp;
    </td>
    
    
    <td>
    
    
    <div class="text-normal">
    
    
    Contract Term Effective Basis:
    
    
    
    <ext:ComboBox runat="server" ID="cbcontractTermEffectiveBasis" Width="175" Cls="text-normal"
    
    
    ListClass="x-my-list">
    
    
    <Items>
    
    
    <ext:ListItem Text="Admit Date" Value="Admit Date" />
    
    
    <ext:ListItem Text="Discharge Date" Value="Discharge Date" />
    
    
    <ext:ListItem Text="Pro-Rated" Value="Pro-Rated" />
    
    
    </Items>
    
    
    </ext:ComboBox>
    
    
    </td>
    
    
    </tr>
    
    
    </table>
    
    
    <div style="padding-top:10px;">
    
    
    
    <table cellpadding="4">
    
    
    <tr>
    
    
    <td>
    
    
    <div style="padding-right: 10px;">
    
    
    &amp;nbsp;
    
    
    
    </td>
    
    
    <td>
    
    
    <div class="text-normal" style="padding-bottom: 3px;">
    
    
    Required Notice Periond:
    
    
    
    <ext:NumberField ID="txtrequiredNoticePeriod" AllowDecimals="false" AllowNegative="false"
    
    
    runat="server" Cls="text-normal" Width="100" StyleSpec="text-align:right;">
    
    
    
    
    
    </ext:NumberField>
    
    
    Days
    
    
    </td>
    
    
    <td>
    
    
    <div style="padding-right: 8px;">
    
    
    &amp;nbsp;
    
    
    
    </td>
    
    
    </tr>
    
    
    </table>
    
    
    <ext:NumberField ID="txtbillingTimeLimit" AllowDecimals="false" AllowNegative="false"
    
    
    runat="server" Cls="text-normal" Width="80">
    
    
    </ext:NumberField>
    
    
    <ext:NumberField ID="txtpaymentLatePenalty" AllowDecimals="false" AllowNegative="false"
    
    
    runat="server" Cls="text-normal" Width="80">
    
    
    </ext:NumberField>
    
    
    <ext:NumberField ID="txtrenewalStatusWarning" AllowDecimals="false" AllowNegative="false"
    
    
    runat="server" Cls="text-normal" Width="80">
    
    
    </ext:NumberField>
    
    
    <ext:NumberField ID="txtannualInsurancePlanCap" AllowDecimals="false" AllowNegative="false"
    
    
    runat="server" Cls="text-normal" Width="80">
    
    
    </ext:NumberField>
    
    
    <ext:NumberField ID="txinterestRateLatePayment" runat="server" Cls="text-normal"
    
    
    Width="80" AllowDecimals="true" AllowNegative="false">
    
    
    </ext:NumberField>
    
    
    <ext:ComboBox runat="server" ID="cbrebillable" Cls="text-normal" ListClass="x-my-list">
    
    
    <Items>
    
    
    <ext:ListItem Text="Yes" Value="true" />
    
    
    <ext:ListItem Text="No" Value="false" />
    
    
    </Items>
    
    
    </ext:ComboBox>
    
    
    <ext:ComboBox runat="server" ID="cbproFeesBillable" Cls="text-normal" ListClass="x-my-list">
    
    
    <Items>
    
    
    <ext:ListItem Text="Yes" Value="true" />
    
    
    <ext:ListItem Text="No" Value="false" />
    
    
    </Items>
    
    
    </ext:ComboBox>
    
    
    <ext:ComboBox runat="server" ID="cbpreAuth" Cls="text-normal" ListClass="x-my-list">
    
    
    <Items>
    
    
    <ext:ListItem Text="Yes" Value="true" />
    
    
    <ext:ListItem Text="No" Value="false" />
    
    
    </Items>
    
    
    </ext:ComboBox>
    
    
    <ext:ComboBox runat="server" ID="cbrenewalStatus" Cls="text-normal" ListClass="x-my-list">
    
    
    <Items>
    
    
    <ext:ListItem Text="Auto" Value="Auto" />
    
    
    <ext:ListItem Text="By Notice" Value="By Notice" />
    
    
    </Items>
    
    
    </ext:ComboBox>
    
    
    <br />
    
    
    <br />
    
    
    </Body>
    
    
    </ext:Panel>
    
    
    <br />
    
    
    <br />
    
    
    <ext:Label runat="server" ID="lblSummary" Cls="text-label">
    
    
    </ext:Label>
    
    
    <br />
    
    
    <ext:Label runat="server" ID="lblReimb" Cls="text-label">
    
    
    </ext:Label>
    
    
    <ext:GridPanel ID="gpReimb" Cls="without-dirty" runat="server" StoreID="storeReimb"
    
    
    StripeRows="true" Width="920" Border="true" AutoHeight="true" ClicksToEdit="1">
    
    
    <ColumnModel ID="ColumnModel1" runat="server">
    
    
    <Columns>
    
    
    <ext:Column Header="Patient Type" Fixed="true" Align="right" Sortable="false" ColumnID="label"
    
    
    MenuDisabled="true" Width="120">
    
    
    <Renderer Fn="function(v, p, record, rowIndex){var test;switch (rowIndex){case 0: test = 'Inpatient'; break;case 1: test = 'Outpatient'; break; case 2: test = 'Ambulatory Surgical'; break; case 3: test = 'Emergency'; break; case 4: test = 'Urgent Care'; break;case 5: test = 'Non Patient'; break;}return test;}" />
    
    
    </ext:Column>
    
    
    <ext:Column DataIndex="reimbursementMethod" Sortable="false" MenuDisabled="true"
    
    
    Header="Reimbursement Method" Width="250">
    
    
    <Renderer Fn="departmentRenderer" />
    
    
    <Editor>
    
    
    <ext:ComboBox ID="cbMethods" Editable="false" runat="server" ListWidth="260" ListClass="x-my-list" />
    
    
    </Editor>
    
    
    </ext:Column>
    
    
    <ext:Column Header="Total Charge" Width="90" Align="Right" DataIndex="totalCharge"
    
    
    Sortable="false" MenuDisabled="true">
    
    
    <Renderer Fn="usMoney2" />
    
    
    </ext:Column>
    
    
    <ext:Column Header="Charge Percentage<br/>Discount" Align="Center" Width="120" DataIndex="chargePercentageDiscount"
    
    
    Sortable="false" MenuDisabled="true">
    
    
    <Renderer Fn="pctChange" />
    
    
    <Editor>
    
    
    <ext:NumberField ID="numBilledCharges" StyleSpec="text-align:center;" MaxLength="7"
    
    
    AllowDecimals="true" SelectOnFocus="True" runat="server" />
    
    
    </Editor>
    
    
    </ext:Column>
    
    
    <ext:Column Header="Claim Cap" Width="90" DataIndex="claimCap" Align="Right" Sortable="false"
    
    
    MenuDisabled="true">
    
    
    <Renderer Fn="usMoney" />
    
    
    <Editor>
    
    
    <ext:NumberField ID="NumberField2" DecimalPrecision="0" AllowDecimals="false" SelectOnFocus="True"
    
    
    runat="server" />
    
    
    </Editor>
    
    
    </ext:Column>
    
    
    <ext:Column Header="Cash Contribution<br/>Margin" DataIndex="cashContributionMargin"
    
    
    Align="Center" Sortable="false" MenuDisabled="true">
    
    
    <Renderer Fn="ccm" />
    
    
    </ext:Column>
    
    
    <ext:Column Header="Fixed/Variable/Cost<br/>Settlement Method" DataIndex="settlementMethod"
    
    
    Width="120" Align="Left" Sortable="false" MenuDisabled="true">
    
    
    <Renderer Fn="methods2Renderer" />
    
    
    <Editor>
    
    
    <ext:ComboBox ID="cbMethods2" Editable="false" runat="server" ListClass="x-my-list" />
    
    
    </Editor>
    
    
    </ext:Column>
    
    
    </Columns>
    
    
    </ColumnModel>
    
    
    <Plugins>
    
    
    <ext:GenericPlugin ID="GenericPlugin2" runat="server" InstanceOf="Ext.ux.plugins.GroupHeaderGrid">
    
    
    <CustomConfig>
    
    
    <ext:ConfigItem Name="rows" Value="[[
    
    
    {header: '', hidden: true, colspan: 1, align: 'left',menuDisabled:true},
    
    
    {header: 'Contract', colspan: 1, align: 'left',menuDisabled:true},
    
    
    {header: 'Reimb Table', colspan: 1, align: 'center',menuDisabled:true},
    
    
    {header: 'Contract', colspan: 2, align: 'center',menuDisabled:true},
    
    
    {header: 'Reimb Table', colspan: 2, align: 'center',menuDisabled:true}
    
    
    ]]" Mode="Raw" />
    
    
    </CustomConfig>
    
    
    </ext:GenericPlugin>
    
    
    </Plugins>
    
    
    <SelectionModel>
    
    
    <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="true" />
    
    
    </SelectionModel>
    
    
    <LoadMask Msg="Loading Reimbursement Data..." />
    
    
    </ext:GridPanel>
    
    
    <br />
    
    
    <ext:Label runat="server" ID="lblStopLoss" Cls="text-label">
    
    
    </ext:Label>
    
    
    <ext:GridPanel ID="gpStopLoss" Cls="without-dirty" runat="server" AutoExpandColumn="Exclusions"
    
    
    StoreID="storeStopLoss" StripeRows="true" Width="920" Border="true" Height="85"
    
    
    ClicksToEdit="1">
    
    
    <ColumnModel ID="ColumnModel2" runat="server">
    
    
    <Columns>
    
    
    <ext:RowNumbererColumn />
    
    
    <ext:Column Header="Dollar Threshold" Width="110" Align="Right" DataIndex="dollarThreshold"
    
    
    Sortable="false" MenuDisabled="true">
    
    
    <Renderer Fn="usMoney" />
    
    
    <Editor>
    
    
    <ext:NumberField ID="numThreshold" DecimalPrecision="0" AllowDecimals="false" SelectOnFocus="True"
    
    
    runat="server" />
    
    
    </Editor>
    
    
    </ext:Column>
    
    
    <ext:Column Header="Percentage of Billed Charges" Align="Right" Width="180" DataIndex="billedChargesPercentage"
    
    
    Sortable="false" MenuDisabled="true">
    
    
    <Renderer Fn="pctChange" />
    
    
    <Editor>
    
    
    <ext:NumberField ID="NumberField1" MaxLength="7" MaxLengthText="Value Cannot Exceed 99%"
    
    
    AllowDecimals="true" SelectOnFocus="True" runat="server" />
    
    
    </Editor>
    
    
    </ext:Column>
    
    
    <ext:Column Header="Method" Width="70" DataIndex="dollarType" Align="Center" Sortable="false"
    
    
    MenuDisabled="true">
    
    
    <Editor>
    
    
    <ext:ComboBox ID="cbMethod" ForceSelection="true" SelectOnFocus="true" FireSelectOnLoad="true"
    
    
    runat="server" Editable="false">
    
    
    <Items>
    
    
    <ext:ListItem Text="1st Dollar" Value="1st Dollar" />
    
    
    <ext:ListItem Text="2nd Dollar" Value="2nd Dollar" />
    
    
    </Items>
    
    
    <SelectedItem Value="1st Dollar" />
    
    
    <Listeners>
    
    
    <Focus Handler="this.setValue('1st Dollar');" />
    
    
    </Listeners>
    
    
    </ext:ComboBox>
    
    
    </Editor>
    
    
    </ext:Column>
    
    
    <ext:Column Header="Not To Exceed per Diem" DataIndex="dollarNotToEceed" Width="130"
    
    
    Align="Right" Sortable="false" MenuDisabled="true">
    
    
    <Renderer Fn="usMoney" />
    
    
    <Editor>
    
    
    <ext:NumberField ID="numNTE" AllowDecimals="false" SelectOnFocus="True" runat="server" />
    
    
    </Editor>
    
    
    </ext:Column>
    
    
    <ext:Column Header="Exclusions" Width="130" DataIndex="exclusions" ColumnID="Exclusions"
    
    
    Sortable="false" MenuDisabled="true">
    
    
    <Editor>
    
    
    <ext:MultiSelect ID="MultiSelect1" AllowDomMove="true" Height="47" FieldClass="mymulti"
    
    
    runat="server">
    
    
    <Items>
    
    
    <ext:ListItem Text="Implants" Value="Implants" />
    
    
    <ext:ListItem Text="SNF" Value="SNF" />
    
    
    <ext:ListItem Text="Rehab" Value="Rehab" />
    
    
    </Items>
    
    
    </ext:MultiSelect>
    
    
    </Editor>
    
    
    </ext:Column>
    
    
    </Columns>
    
    
    </ColumnModel>
    
    
    <SelectionModel>
    
    
    <ext:RowSelectionModel ID="RowSelectionModel2" runat="server" SingleSelect="true" />
    
    
    </SelectionModel>
    
    
    <LoadMask Msg="Loading Stop Loss Data..." />
    
    
    </ext:GridPanel>
    
    
    </Body>
    
    
    </ext:Panel>
    
    
    
    
    
    
    
    
    
    
    </form>
    
    
    </body>
    
    
    </html>
  6. #6

    RE: FormView Error

    Any thoughts on why, if I put a buffer in - it does not throw the error? The data from the stored procedure loads in milliseconds, so it is not delay from ther server, etc.
  7. #7

    RE: FormView Error

    There's some part of your javascript functions that are firing and require information/data/variables that are not available at the time it's being fired. That's my guess, but I was unable to get your sample working and upon visually reviewing your code nothing appeared out of place.

    Geoffrey McGill
    Founder

Similar Threads

  1. Ext.NET and FormView
    By alexrodi82 in forum 1.x Help
    Replies: 5
    Last Post: Jul 26, 2011, 8:01 AM
  2. Combobox in ASP.Net FormView
    By kumarxlnt in forum 1.x Help
    Replies: 0
    Last Post: Oct 31, 2009, 9:18 AM
  3. Coolite control like asp:FormView ?
    By Penunuri in forum 1.x Help
    Replies: 2
    Last Post: Feb 02, 2009, 9:30 PM
  4. Replies: 1
    Last Post: Nov 16, 2008, 5:16 AM
  5. Replies: 1
    Last Post: Nov 14, 2008, 4:36 AM

Posting Permissions