DMXzone Ajax Form Support Product Page

Answered

How can I do a page with an ajax form and an ajax record list

Asked 08 Feb 2013 17:47:54
1
has this question
08 Feb 2013 17:47:54 Steve Skinner posted:
I am considering using ajax form extension for a database tool to manage swatches on a client site. My form will be simple, with a couple of fields and an image upload. I understand how the ajax form extension works for this part, but on the same page I also want to show a list of all swatches. I've watched all the videos and checked out the showcases, but I don't see any examples where the form submits and a recordset list auto-updates showing the newest entry without a page refresh.

I know how to create this so the page gets reloaded after each upload/entry, but that defeats the benefit of ajax. When the form is submitted, how would I go about getting the recordset for swatches on the same page to update without a page reload?

I already own the ajax form extension and also ajax datagrid. I could use ajax datagrid to show my recordset, but maybe you could tell me how to make it auto update when a new ajax form entry is submitted (without page refresh of course).

Replies

Replied 18 Feb 2013 13:31:56
18 Feb 2013 13:31:56 Vulcho Vulev replied:
Hello Steve.

You can achieve the functionality following these steps :

1.) Create your form and use standard update record behavior.
2.)Place the Ajax Datagrid on the page and connect the extension with the database that will be updated.
3.)Apply the Ajax Form extension
4.) Open Behaviors Connector by click on the blue paperclip icon in the Property Inspector of the DMXzone Ajax Form in order to view the available events.
5.1.)Click from the right-hand side “Available Events” : “When form is successfully submitted”
5.2.) Click on the left-hand side “Available Behaviors” :” DMXZone> Control AJAX DataGrid”.
5.3.)Click on right pointing blue arrow in order to add selected behavior.
6.)From the Dialog window which will appear choose:
Where to execute: Current window
Grid ID: (Your Grid ID)
Select Action: Reload Grid Contents.
7.)Click O.k. in order to apply the behavior.


Regards:Vulcho.
Replied 18 Dec 2013 17:18:26
18 Dec 2013 17:18:26 Miguel Quintero replied:
Is there any way of doing this same thing without using the datagrid, im making some forms and i want users to add new categories if they dont exist so they can select them on checkboxes, in my insert page i have already the list of checkbox that exist but having a feature to just reload the check lists with new data would be great any way to acomplish without reloading the entire insert page?

Reply to this topic