DMXzone Database Connector PHP Support Product Page

Answered

How do I know when a datasource has finished returning data to the page?

Asked 21 Oct 2014 12:51:05
1
has this question
21 Oct 2014 12:51:05 Peter Hoyt posted:
I am building a page with two select items in a form. Both display lists of employee names. I need to set each select so it shows a specific value when the page loads. Basically, the first record in the employee table contains "Not Yet Selected" as the first, middle, and last name and that record number is 1000.

What I have done as a temporary fix is to use jQuery to set the value of each select item, after a short timeout:

setTimeout(function(){
$('#SelectOriginatorName').val("1000";
$('#Reviewer_Name').val("1000";
$('.trigger').fadeIn(200);
},200);

This works sometimes but as you can guess is unreliable. I need an event to trigger my jQuery... sort of how the $(document).ready(function()); works.

Is there an event fired that I can use to set the values of those two select items on the page?

Replies

Replied 21 Oct 2014 13:35:57
21 Oct 2014 13:35:57 Teodor Kuduschiev replied:
Hi Peter,
Such an event is available in the behaviors of HTML5 Data Bindnigs Extended Repeater: www.dmxzone.com/go/22752/html5-data-bindings-extended-repeater :
Check the video tutorial, please:
www.dmxzone.com/go/22828/using-html5-data-bindings-extended-repeater-events
Replied 04 Nov 2014 15:51:01
04 Nov 2014 15:51:01 Peter Hoyt replied:
I watched the video. My page only uses the database connection extenstion so I tried to add the behavior in the datasource on the page and it works. Now I just have to determine how best to use the event.

Reply to this topic