I am trying to add a data-bound calendar to my application but something is not working.
EntryPoint:
aufgaben.ds.xml
I have one entry in my table, which is correctly shown in the calendar. But when I try to create a new entry, (click on space in calendar, click on edit entry), I see the existing entry!!! So instead of creating the new entry, I am editing the existing entry!!!!
After clicking on "save", the existing entry is edited but the whole application stops working! I have to enter F5 in order to continue. But, when checking the DB, the entry is correctly edited.
If I edit the existing entry (by moving it for example to another position) , the application stops working again and I have to enter F5 again.
Maybe the problem has to do with my MSSQL ? Some time ago I had a similar problem and you said the problem was with the MSSQL and then corrected it.
Using SmartGWT 4.1p Power 10.01.15, MSSQL 2014
EntryPoint:
Code:
public class TestingModule implements EntryPoint { @Override public void onModuleLoad() { VLayout layout = new VLayout(); Calendar calendar = new Calendar(); calendar.setDataSource(DataSource.get("aufgaben")); calendar.setStartDateField("f_from"); calendar.setEndDateField("f_to"); calendar.setDescriptionField("f_aufgabe"); calendar.setNameField("f_name"); calendar.setTitleField("f_name"); calendar.setAutoFetchData(true); layout.setMembers(calendar); layout.setWidth100(); layout.setHeight100(); layout.draw(); } }
Code:
<DataSource ID="aufgaben" serverType="sql" tableName="t_aufgaben" > <fields> <field name="f_id" type="sequence" primaryKey="true" /> <field name="f_aufgabe" type="ntext" /> <field name="f_erledigt" type="boolean" sqlStorageStrategy="number" /> <field name="f_name" type="text" /> <field name="f_from" type="datetime" /> <field name="f_to" type="datetime" /> </fields> </DataSource>
After clicking on "save", the existing entry is edited but the whole application stops working! I have to enter F5 in order to continue. But, when checking the DB, the entry is correctly edited.
If I edit the existing entry (by moving it for example to another position) , the application stops working again and I have to enter F5 again.
Maybe the problem has to do with my MSSQL ? Some time ago I had a similar problem and you said the problem was with the MSSQL and then corrected it.
Using SmartGWT 4.1p Power 10.01.15, MSSQL 2014
Comment