Ajax DataGrid Support Product Page

This topic was archived

Refresh Grid on adv layer close

Asked 15 Jan 2009 19:07:40
1
has this question
15 Jan 2009 19:07:40 brad baker posted:
I need to know how to refresh the grid when the user closes the advance layer popup or after an insert into a database.

I use ADDT

<pre id=code><font face=courier size=2 id=code>
// Make an insert transaction instance
$ins_qa_docs = new tNG_multipleInsert($conn_bpe);
$tNGs-&gt;addTransaction($ins_qa_docs);
// Register triggers
$ins_qa_docs-&gt;registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1";
$ins_qa_docs-&gt;registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);
$ins_qa_docs-&gt;registerTrigger("END", "Trigger_Default_Redirect", 99, "doc_mgnt_layer.php";
$ins_qa_docs-&gt;registerTrigger("AFTER", "Trigger_FileUpload", 97);
// Add columns
$ins_qa_docs-&gt;setTable("qa_docs";
$ins_qa_docs-&gt;addColumn("qadocs_docid", "STRING_TYPE", "POST", "qadocs_docid";
$ins_qa_docs-&gt;addColumn("qadocs_title", "STRING_TYPE", "POST", "qadocs_title";
</font id=code></pre id=code>


Edited by - bakes82 on 15 Jan 2009 19:13:37

Replies

Replied 22 Jan 2009 15:19:38
22 Jan 2009 15:19:38 Kiril Iliev replied:
Hi Brad,

You can simply have a default behavior for refreshing the datagrid contents attached to a link specified here: www.dmxzone.com/showDetail.asp?TypeId=7&NewsId=12938

Hope this helps.

Regards,


==================
DMX Zones
Support Team
==================
Replied 05 Feb 2009 01:20:22
05 Feb 2009 01:20:22 brad baker replied:

              <input type="submit" name="KT_Insert1" value="<?php echo NXT_getResource("Insert as new_FB"); ?>" onclick="parent.cDMXPopupWindow.closeWindow('dmxPopupAddEditLayer'); nxt_form_insertasnew(this, 'mwoagen_id');controlAjaxDataGrid(parent, 'dmx_grid5', 'reload')" />


This doesnt work. (Everything but the refresh does though)

This form is in a Adv Layer Popup and the grid is on the layer below. Suggestions?
Replied 03 Mar 2009 14:47:21
03 Mar 2009 14:47:21 richard vl replied:
I have the same problem. can anyone help?
Replied 04 Mar 2009 16:28:13
04 Mar 2009 16:28:13 Kiril Iliev replied:
Hi guys,

I can suggest you another thing, to make your Ajax DataGrid reload automatically, without submission of a form or insert into the database.

You can check the tutorial here: www.dmxzone.com/go?16150
Replied 20 Mar 2009 17:53:55
20 Mar 2009 17:53:55 brad baker replied:
The download link doesnt work on that page.
Replied 21 Mar 2009 16:42:39
21 Mar 2009 16:42:39 George Petrov replied:
Thanks! Link is fixed now it goes to: www.dmxzone.com/go?16146

George
Replied 23 Apr 2009 22:58:08
23 Apr 2009 22:58:08 nathan green replied:
brad,

did you figure this out?

Nathan
Replied 23 Apr 2009 23:35:57
23 Apr 2009 23:35:57 nathan green replied:
OK.

I have a popup layer with a form that is correctly doing a data update and then closing itself on form submission.

However, I cannot get the grid to refresh. I have attached the following code to the form onsubmit (where I have also attached the close popup):

controlAjaxDataGrid(opener, 'dmx_grid2', 'reload');

What am I doing wrong?

Nathan
Replied 24 Apr 2009 16:03:14
24 Apr 2009 16:03:14 nathan green replied:
OK

One step further on. Now have it working (intermittently) using

controlAjaxDataGrid(parent, 'dmx_grid1', 'reload')

rather than

controlAjaxDataGrid(opener, 'dmx_grid1', 'reload')

However, the refresh isn't happening every time and even when it does, it isn't always displaying the updated record values.

Help please....

Thanks.

Nathan

Reply to this topic