APEX-AT-WORK no image

AJAX based select list in APEX - Part 2

Von Tobias Arnhold 3.01.2010
I couple of days ago I wrote about a way using AJAX based select lists in APEX.
After some hints from Peter Raganitsch I tried the ApexLib Framework but I run into some issues with ExtJS.
Error message:
vFieldValue is undefined
populateLovField(Object { name="pFieldId"}, Object { name="pLovEntry"})ApexLib_Full.js
populateDependingLovs(Object { name="pFieldId"})ApexLib_Full.js
(?)(Object { name="pEvent"})ApexLib_Full.js
vAjaxRequest.add(pLovEntry.oUsedFi...ace(/\:/g, String.fromCharCode(1)));

Error part where somehow an ExtJS function got called:

vAjaxRequest.add(pLovEntry.oUsedFieldList[ii], vFieldValue.replace(/\:/g, String.fromCharCode(1)));

I found another solution from Carl Backstrom: Ajax Selects
I modified his script a bit and used it in my environment.

Using the ApexLib would have been much easier luckily I just had a really small application.

Good for us that APEX 4.0 will solve these problems by a new standard feature:
Oracle APEX 4.0: Cascading LOVs/Select Lists

3 Comments " AJAX based select list in APEX - Part 2 "

Peter Raganitsch 02 March, 2010 15:49

ApexLib and ExtJS got mixed up because they overloaded functions of each other.

I hope to include a fix for that in one of the upcomming ApexLib versions.


Tobias Arnhold 02 March, 2010 23:23

Does it help if I create an example application for you?

As I wrote you before I will look though this again! ;D Or have you found the exact failure?


Robert Schaefer

I also ran into this topic while using ExtJS and AJAX Computation via ApexLib.

It aborts with "vFieldValue is undefined", while looping through the fields with "for (var ii in pComputationEntry.oUsedFieldList)" - it processes there a "remove"-Function..?
@Peter: If detail information is required, just give a note. I also would be glad, if this could be fixed;-)