[CLOSED] Assigning and adding data in Text Field

  1. #1

    [CLOSED] Assigning and adding data in Text Field

    Hi ,

    I have a problem with a textfield and checkbox. They are included in a fieldset and this last is included in FormPanel.

    If you see the code below, the data on server side is retrieved and sending back successfully. Just the Text field and the checkbox included in the fieldset with ID "fdsApproval" are not working correctly, rather than all other components are working and refreshing data with success.

    The problem is with the components with ID :
    - wdwtxfInst_Approve_Title1
    - wdwcbxInst_IsShow_Approve1
    - wdwtxfInst_Approve_Title2
    - wdwcbxInst_IsShow_Approve2

    Additional Info : When opening this window (window used for editing a record), the typed values are same for each record edited, they are not affected by the server side changes.

    Please need help. (I tried to change the Panel to formPanel but still same problem).


    <ext:Window ID="wdwInsrCours" runat="server" Hidden="true" Collapsible="true" Height="410"
            Icon="ChartOrganisation" Title="<%$ Resources:FactoBAT, cor_EditInst_Cours %>" Layout="BorderLayout" Width="590" Maximizable="true"
            AutoScroll="true" Maximized="true" AutoDestroy="true" ButtonAlign="Center">
            <Items>
                <ext:FormPanel ID="FormPanel1" LabelWidth="130" AutoScroll="true" Region="Center" Layout="Form" runat="server"
                    ButtonAlign="Center" Frame="true">
                    <Items>
                        <ext:FieldSet ID="fdsMainInformation" AnchorHorizontal="96%" LabelAlign="Left" Title="<%$ Resources:FactoBAT, cor_MainInformation %>"
                            runat="server" Collapsible="true" AnimCollapse="true" Layout="ColumnLayout" Width="590"
                            Height="115">
                            <Items>
                                <ext:Panel ID="ContainerEn" runat="server" LabelAlign="Left" Layout="Form" ColumnWidth=".5">
                                    <Items>
                                        <ext:TextField ID="wdwtxfInst_Course_En" AnchorHorizontal="95%" DataIndex="Inst_Course_En"
                                            FieldLabel="<%$ Resources:FactoBAT, cor_Inst_Course_En %>" AllowBlank="false"
                                            runat="server">
                                        </ext:TextField>
                                        <ext:TextField ID="wdwtxfInst_Description_En" AnchorHorizontal="95%" DataIndex="Inst_Description_En"
                                            FieldLabel="<%$ Resources:FactoBAT, cor_Inst_Description_En %>" AllowBlank="false"
                                            runat="server">
                                        </ext:TextField>
                                        <ext:NumberField ID="wdwnbfInst_Cours_Min" DataIndex="Inst_Cours_Min" MaxLength="9"
                                            FieldLabel="<%$ Resources:FactoBAT, cor_Inst_Cours_Min%>" runat="server"
                                            AllowBlank="false" Width="150">
                                        </ext:NumberField>
                                    </Items>
                                </ext:Panel>
                                <ext:Panel ID="ContainerAr" runat="server" LabelAlign="Left" Layout="Form" ColumnWidth=".5">
                                    <Items>
                                        <ext:TextField ID="wdwtxfInst_CourseAr" AnchorHorizontal="95%" DataIndex="Inst_Course_Ar"
                                            FieldLabel="<%$ Resources:FactoBAT, cor_Inst_Course_Ar%>" AllowBlank="false"
                                            runat="server">
                                        </ext:TextField>
                                        <ext:TextField ID="wdwtxfInst_DescriptionAr" AnchorHorizontal="95%" DataIndex="Inst_Description_Ar"
                                            FieldLabel="<%$ Resources:FactoBAT, cor_Inst_Description_Ar%>" AllowBlank="false"
                                            runat="server">
                                        </ext:TextField>
                                        <ext:NumberField ID="wdwnbfInst_Cours_Max" DataIndex="Inst_Cours_Max" MaxLength="9"
                                            FieldLabel="<%$ Resources:FactoBAT,cor_Inst_Cours_Max%>" runat="server" AllowBlank="false"
                                            Width="150">
                                        </ext:NumberField>
                                    </Items>
                                </ext:Panel>
                            </Items>
                        </ext:FieldSet>
                        <ext:FieldSet ID="fdsInfDetails" AnchorHorizontal="96%" LabelAlign="Left" Title="<%$ Resources:FactoBAT, cor_DetailInformation%>"
                            runat="server" Collapsible="true" AnimCollapse="true" Layout="ColumnLayout" Width="590"
                            Height="180">
                            <Items>
                                <ext:Panel ID="Container2" runat="server" LabelAlign="Left" ColumnWidth=".5" Layout="Form">
                                    <Items>
                                        <ext:TextField ID="wdwnbfInst_Course_Code" DataIndex="Inst_Course_Code" FieldLabel="<%$ Resources:FactoBAT,cor_Inst_Course_Code%>"
                                            runat="server" Disabled="true" Width="150">
                                        </ext:TextField>
                                        <ext:TextField ID="wdwnbfInst_Course_No" DataIndex="Inst_Course_No" MaxLength="9"
                                            FieldLabel="<%$ Resources:FactoBAT,cor_Inst_Course_No%>" runat="server" Width="150">
                                        </ext:TextField>
                                        <ext:TextField ID="wdwtxfCourse_ID" DataIndex="Course_ID" Disabled="true" FieldLabel="<%$ Resources:FactoBAT,cor_Inst_Course_ID%>"
                                            runat="server" Width="190">
                                        </ext:TextField>
                                        <ext:ComboBox ID="wdwcbxRank_TypeID" FieldLabel="<%$ Resources:FactoBAT,Rank_ID%>"
                                            StoreID="StoreRank_Type" DisplayField="Rank_Type" ValueField="Rank_Type_ID" DataIndex="Rank_Type_ID"
                                            AllowBlank="false" runat="server">
                                        </ext:ComboBox>
                                    </Items>
                                </ext:Panel>
                                <ext:Panel ID="ContainerDate" runat="server" LabelAlign="Left" Layout="Form"
                                    ColumnWidth=".5">
                                    <Items>
                                        <ext:ComboBox ID="wdwcbxYear_ID" DataIndex="Year_ID" FieldLabel="<%$ Resources:FactoBAT,Year_ID%>"
                                            StoreID="StoreYears" DisplayField="Year_Name" ValueField="Year_ID" AllowBlank="false"
                                            runat="server">
                                        </ext:ComboBox>
                                        <ext:ComboBox ID="wdwcbxSemester_ID" FieldLabel="<%$ Resources:FactoBAT,cor_Semester_ID%>"
                                            StoreID="StoreSemester" DisplayField="Semester" ValueField="Semester_ID" DataIndex="Semester_ID"
                                            AllowBlank="false" runat="server">
                                        </ext:ComboBox>                                   
                                        <ext:DateField ID="wdwdtfInst_StartDate"  DataIndex="Inst_Start_Date"
                                            AllowBlank="false" FieldLabel="<%$ Resources:FactoBAT,cor_Inst_Start_Date%>"
                                            runat="server" />
                                        <ext:DateField ID="wdwdtfInst_EndDate"  DataIndex="Inst_End_Date"
                                            AllowBlank="false" FieldLabel="<%$ Resources:FactoBAT,cor_Inst_End_Date%>"
                                            runat="server" />
                                        <ext:NumberField ID="wdwnbfInst_Course_WeeksQTY" DataIndex="Inst_Course_Weeks_QTY"
                                            MaxLength="9" FieldLabel="<%$ Resources:FactoBAT,Course_Weeks_QTY%>" runat="server"
                                            AllowBlank="false" Width="150">
                                        </ext:NumberField>
                                    </Items>
                                </ext:Panel>
                            </Items>
                        </ext:FieldSet>
                        <ext:FieldSet ID="fdsTimeTableStaff" AnchorHorizontal="96%" LabelAlign="Left" Title="<%$ Resources:FactoBAT, cor_TimeTableSignatures%>"
                            runat="server" Collapsible="true" AnimCollapse="true" Layout="ColumnLayout" Width="590"
                            Height="120">
                            <Items>
                                <ext:Panel ID="Container1" runat="server" LabelAlign="Left" Layout="Form" ColumnWidth="1" >
                                    <Items>
                                        <ext:TextField ID="wdwtxfInst_ApproveTitle3" AllowBlank="false" DataIndex="Inst_Approve_Title1"
                                            FieldLabel="<%$ Resources:FactoBAT,cor_Inst_Approve_Title1%>" AnchorHorizontal="95%"
                                            runat="server">
                                        </ext:TextField>
                                        <ext:ComboBox ID="cbxTm_Dean_Of_Faculty" FieldLabel="<%$ Resources:FactoBAT, cor_Tm_Dean_Of_Faculty%>"
                                            StoreID="StoreHR_Staff" DisplayField="Staff_Name" ValueField="Staff_Name" DataIndex="Tm_Dean_Of_Faculty"
                                            AllowBlank="false" AnchorHorizontal="45%" runat="server">
                                        </ext:ComboBox>
                                        <ext:ComboBox ID="cbxTm_Chief_Instructor" FieldLabel="<%$ Resources:FactoBAT, cor_Tm_Chief_Instructor%>"
                                            StoreID="StoreHR_Staff" DisplayField="Staff_Name" ValueField="Staff_Name" DataIndex="Tm_Chief_Instructor"
                                            AllowBlank="false" AnchorHorizontal="45%" runat="server">
                                        </ext:ComboBox>
                                        <ext:ComboBox ID="cbxTm_Program_Dept" FieldLabel="<%$ Resources:FactoBAT, cor_Tm_Program_Dept%>"
                                            StoreID="StoreHR_Staff" DisplayField="Staff_Name" ValueField="Staff_Name" DataIndex="Tm_Program_Dept"
                                            AllowBlank="false" AnchorHorizontal="45%" runat="server">
                                        </ext:ComboBox>
                                    </Items>
                                </ext:Panel>
                            </Items>
                        </ext:FieldSet>
                        <ext:FieldSet ID="fdsApproval" AnchorHorizontal="96%" LabelAlign="Left" Title="<%$ Resources:FactoBAT, cor_ApprovalInformation%>"
                            runat="server" Collapsible="true" AnimCollapse="true" Layout="ColumnLayout" Width="590"
                            Height="250">
                            <Items>
                                <ext:Panel ID="ContainerApp1" runat="server" LabelAlign="Left" Layout="Form" ColumnWidth=".5" >
                                    <Items>
                                       <ext:TextField ID="wdwtxfInst_Approve_Title1" AnchorHorizontal="95%" DataIndex="Inst_Approve_Title1"
                                            FieldLabel="<%$ Resources:FactoBAT, cor_Inst_Approve_Title1%>" AllowBlank="false"
                                            runat="server">        
                                        </ext:TextField>
                                        <ext:Checkbox ID="wdwcbxInst_IsShow_Approve1" DataIndex="Inst_IsShow_Approve1" 
                                                    FieldLabel="<%$ Resources:FactoBAT,cor_Inst_IsShow_Approve1%>" runat="server">
                                        </ext:Checkbox>
                                        <ext:ComboBox ID="wdwcbxInst_Approve1_ID" FieldLabel="<%$ Resources:FactoBAT,cor_Inst_Approve1_ID%>"
                                            StoreID="StoreHR_Staff" DisplayField="Staff_Name" ValueField="Staff_ID" DataIndex="Staff_ID"
                                            AllowBlank="false" AnchorHorizontal="95%" runat="server">
                                        </ext:ComboBox>
                                        <ext:BoxComponent ID="BoxComponent1" runat="server" FieldLabel="<%$ Resources:FactoBAT,cor_Inst_Electronic_Signature%>">
                                            <Content>
                                                <asp:FileUpload ID="upfApproval1" runat="server" />
                                            </Content>
                                        </ext:BoxComponent>
                                    </Items>
                                </ext:Panel>
                                <ext:Panel ID="ContainerApp2" runat="server" ColumnWidth=".5" Layout="Form" LabelAlign="Left">
                                    <Items>
                                        <ext:TextField ID="wdwtxfInst_Approve_Title2" AnchorHorizontal="95%" AllowBlank="false"
                                            DataIndex="Inst_Approve_Title2" FieldLabel="<%$ Resources:FactoBAT,cor_Inst_Approve_Title2%>"
                                            runat="server">
                                        </ext:TextField>
                                        <ext:Checkbox ID="wdwcbxInst_IsShow_Approve2" DataIndex="Inst_IsShow_Approve2" FieldLabel="<%$ Resources:FactoBAT,cor_Inst_IsShow_Approve2%>"
                                            runat="server">
                                        </ext:Checkbox>
                                        <ext:ComboBox ID="wdwcbxInst_Approve2_ID" AnchorHorizontal="95%" FieldLabel="<%$ Resources:FactoBAT, cor_Inst_Approve2_ID%>"
                                            StoreID="StoreHR_Staff" DisplayField="Staff_Name" ValueField="Staff_ID" DataIndex="Staff_ID"
                                            AllowBlank="false" runat="server">
                                        </ext:ComboBox>
                                        <ext:BoxComponent ID="BoxComponent2" runat="server" FieldLabel="<%$ Resources:FactoBAT,cor_Inst_Electronic_Signature%>">
                                            <Content>
                                                <asp:FileUpload ID="upfApproval2" runat="server" />
                                            </Content>
                                        </ext:BoxComponent>
                                    </Items>
                                </ext:Panel>
                                
                            </Items>
                        </ext:FieldSet>
                    </Items>
                </ext:FormPanel>
            </Items>
            <Buttons>
                <ext:Button ID="btnSaveRecord" runat="server" Type="Submit" Icon="Disk" Text="<%$ Resources:FactoBAT, msgSave %>">
                    <DirectEvents>
                        <Click Before="return #{FormPanel1}.getForm().isValid();" OnEvent="EditInstCours">
                            <EventMask ShowMask="true" Msg="Saving..." />
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:Window>
    Last edited by Daniil; Jun 04, 2012 at 8:26 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Quote Originally Posted by Digital.Dynamics View Post
    The problem is with the components with ID :
    - wdwtxfInst_Approve_Title1
    - wdwcbxInst_IsShow_Approve1
    - wdwtxfInst_Approve_Title2
    - wdwcbxInst_IsShow_Approve2
    I would double ensure its DataIndexes match the Names of the respective RecordFields.

    Quote Originally Posted by Digital.Dynamics View Post
    Additional Info : When opening this window (window used for editing a record), the typed values are same for each record edited, they are not affected by the server side changes.
    It's hard to say what might be wrong without the code how you do these actions - open the window, load a record, etc. Could you provide more details? A code sample would be best.

Similar Threads

  1. [CLOSED] Assigning ComboBox Value
    By Adrian in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 12, 2012, 1:01 PM
  2. [CLOSED] add text field to hboxlayout
    By T3rryChan in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Aug 25, 2011, 1:55 PM
  3. [CLOSED] Assigning store data from javascript not working
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 05, 2011, 3:07 PM
  4. Replies: 1
    Last Post: May 16, 2010, 8:42 PM
  5. [CLOSED] htmleditor text adding
    By alexp in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 03, 2009, 2:03 PM

Tags for this Thread

Posting Permissions