refresh

How to make JTable show refreshed data after updating database?

ぃ、小莉子 提交于 2019-12-24 10:49:24
问题 I have updated a database and I would like to refresh a JTable with this code tied to a button click event, but it doesn't work. When I close aplication and open it again JTable shows the right data. Do I need to override some method on my abstract table? try { model=new MyTableModel(this.database); table = new JTable(model); } catch (SQLException e) { e.printStackTrace(); } scrollPane = new JScrollPane(table); refresh.addActionListener(new ActionListener() { public void actionPerformed

Ajax url does not change in asp.net mvc

时光总嘲笑我的痴心妄想 提交于 2019-12-24 08:55:46
问题 I have been trying to use ajax post to another actionresult. However i have 3 problems about ajax. 1-Url does not change on browser. 2-I can not click to previous page and forward page on browser 3-Do i have to refresh html like $("#BodyPage").html(mydata);? My codes below, Index ActionResult (Project starts from Index) public ActionResult Index() { return View(); } Index View <body id="BodyPage"> <input type="text" id="LoginEmailText"/> <input type="text" id="LoginPasswordText"/> </body> JS

Ajax url does not change in asp.net mvc

一个人想着一个人 提交于 2019-12-24 08:55:30
问题 I have been trying to use ajax post to another actionresult. However i have 3 problems about ajax. 1-Url does not change on browser. 2-I can not click to previous page and forward page on browser 3-Do i have to refresh html like $("#BodyPage").html(mydata);? My codes below, Index ActionResult (Project starts from Index) public ActionResult Index() { return View(); } Index View <body id="BodyPage"> <input type="text" id="LoginEmailText"/> <input type="text" id="LoginPasswordText"/> </body> JS

javascript popup reloads parent page -

断了今生、忘了曾经 提交于 2019-12-24 08:47:49
问题 I have a popup function in a program that works well, be re-loads the parent page as it loads the child. Is there a way to prevent this behaviour. // popup window function function newPop(url, myWin, width, height, left, top, scrollbars) { parms = 'toolbar=yes, scrollbars=no, location=no, menubar=no, resizable=no, width= ' + width + ' , height=' + height + ' , left= ' + left + ' , top= ' + top + ' , titlebar=no , scrollbars = ' + scrollbars ; var newwin = window.open(url,myWin, parms); newwin

How can I refresh/reopen an SQLite database after restoring it, when using a singleton for the database helper

让人想犯罪 __ 提交于 2019-12-24 07:32:47
问题 I have incorporated Database Backup and restore in my App. This all works fine except that when I restore the database, due to the use of a singleton DBHelper along with only closing the database when the App closes, the in-memory copy of the Database continues to be used after the restore. Closing the App and re-starting uses the new database. However, rather than tell the user to do this. I would like to seamlessly access the restored database. This is the code that detects and then reports

JQuery Mobile refreshing checkbox works only once - .checkboxradio('refresh') issue

两盒软妹~` 提交于 2019-12-24 04:42:05
问题 I ran into a strange problem. I've got a table with a checkbox column. I'm using JQuery Mobile checkboxes. I want a click on a row to be associated with click on the checkbox in this row. JS: $(document).on('pagecreate', function (event) { bindRowClick(); }); function bindRowClick() { $('.productTable').find('tr').click(function () { var chck = $(this).find('td.hyperLink').find('input[type=checkbox]:first'); var chckStatus = chck.is(':checked'); alert("chckStatus 1: " + chckStatus); alert("

Datagrid. I Can't refresh field

断了今生、忘了曾经 提交于 2019-12-24 04:18:41
问题 I can't refresh a field in my datagrid. This is my datagrid <DataGrid ItemsSource="{Binding Dati_Viaggio}" SelectedItem="{Binding SelectDati_Viaggio}" Style="{DynamicResource ST_DataGrid}" CellStyle="{DynamicResource St_DataGridCellStyle}" SelectionMode="Single" Name="Dg_Dati" IsReadOnly="True" RowDetailsVisibilityMode="VisibleWhenSelected" > this is the filed in datagrid that I want to refresh <DataGridTextColumn x:Name="col_NumOrd" Binding="{Binding Path=NumOrd}" Header="Num. Ord." Width=

refresh SQLITE3 (Core Data) on device and app store

橙三吉。 提交于 2019-12-24 02:35:19
问题 I have an app leveraging Core Data SQLITE3 that works perfectly in the simulator. However i do not understand how to update the DB on the device, which i guess is the same as in app-store. I update the DB from .txt files in the app and create the DB, this function is there only for creating the DB and will be removed in the final version. My idea is to create the DB in the simulator, lock the update part of the code and then distribute the package with an updated database. However, when i

Help refreshing list with notifyDataSetChanged()

人走茶凉 提交于 2019-12-24 00:56:53
问题 Hi i'm working on a simple file browser that is a part of my app and I have added some code to delete files however I need the list of files to refresh after one item has been deleted. This is the code I have so far and I added a comment in where I call on fileList.notifyDataSetChanged(); however it doesn't work for me so basically what am i doing wrong here? Thank you for any help private void getDir(String dirPath) { item = new ArrayList<String>(); path = new ArrayList<String>(); File f =

UltraWinGrid Auto Refresh

半城伤御伤魂 提交于 2019-12-24 00:13:49
问题 In my vb.net project, I have 3 forms. home_mdi , Viewfrm and AddDatafrm . Viewfrm has an UltraWinGrid on it, which is displaying some data. When I click the add data button, AddDatafrm opens. When data is saved, the form then closes. At this point, I want the UltraWinGrid on Viewfrm to update/refresh and display the data that I added. At the moment, it doesn't display it until I close Viewfrm and then open it again. The images show this. (Data is not there at the start, it then gets added and