Dynamic Action on DOM object not working

Thru a dynamic action I am executing PL/SQL Code that creates additional item using APEX_ITEM.CHECKBOX (see code on bottom). Thru another Dynamic action, I am trying to execute additional Java. I have it set to fire like this:
Event: Click
Type: DOM Object
DOM Object: document.forms[0].f11 (this matches the APEX_ITEM.checkbox fxx value)
Just trying a simple alert("hi"). doesn't work. Am I missing something?
DECLARE
l_hold_table_name varchar2(1000) := :P1223_HOLD_TABLE_NAME;
l_hold_html varchar2(32000) := '';
l_hold_session_state varchar2(32000) := '';
CURSOR get_columns IS
select b.column_heading, b.column_name
from dual
BEGIN
l_hold_html := '<DIV><TABLE border="2"><THEAD><TR><TH>' || l_hold_table_name ||
'</TH></TR></THEAD>';
FOR x in get_columns LOOP
l_hold_html := l_hold_html || '<TR><TD>' || APEX_ITEM.CHECKBOX(20,x.column_name,null) || x.column_heading || '</TD></TR>';
END LOOP;
l_hold_html := l_hold_html || '</TABLE><DIV>';
:P1223_HOLD_INNERHTML := l_hold_html;
END;

Hi,
first your code in example does not compile.
CURSOR get_columns IS
select b.column_heading, b.column_name
from dual
There is a ; missing and even with that this query is not OK.
If you have a problem with DOM selector, then try jquery selector:
Event:Click
Selection Type: jQuery Selector
jQuery Selector: input:checkbox[name*='f11']
For testing I created a test page with one dynamic PLSQL region and following source:
DECLARE
  l_hold_table_name varchar2(1000) := 'MYTABLE';
  l_hold_html varchar2(32000) := '';
  l_hold_session_state varchar2(32000) := '';
  CURSOR get_columns IS
  select
    'My Checkbox' column_heading, 'a' column_name
  from dual ;
BEGIN
  l_hold_html := '<TABLE border="2"><THEAD><TR><TH>'
                          || l_hold_table_name
                          || '</TH></TR></THEAD>';
  FOR x in get_columns LOOP
    l_hold_html := l_hold_html ||
                            '<TR><TD>' ||
                            APEX_ITEM.CHECKBOX(20,x.column_name,null) ||
                            x.column_heading ||
                            '</TD></TR>';
  END LOOP;
  l_hold_html := l_hold_html || '</TABLE>';
  htp.p( l_hold_html );
END;And Dynamic Action with properties as described above (only that in my case name of the checkbox is f20)
You can see working example here : http://apex.oracle.com/pls/apex/f?p=60428:4
Regards,
Aljaz
Edited by: Aljaz on 5.3.2012 22:36

Similar Messages

  • Dynamic Action with field DIVGV not working

    We have built the dynamic action below to default values from infotypes 0007 and 0008 behind the screnes in infotype 0491 Payroll Outsourcing. The issue that we are having is that the dynamic action will not work for field P0008-DIVGV, but will work with all the other fields.
    The only difference between the DIVGV field and the rest of the other fields mentioned in this dynamic ation is that it seems to be a free text field (which you can modify), even though the values are pulled from the work schedule rule in infotype 0007. We have also hidden the DIVGV field in 0007 per client requirement.
    Does anyone have any suggestions on how to get this working. Do we need to populate these values in any of thh HR tables first?
    06     10     *     *** COP 0491 US PAYROLL OUTSOURCING ***
    06     12     P     T001P-MOLGA='10'
    06     14     I     COP,0491,,,(P0008-BEGDA),(P0008-ENDDA)/D
    06     16     W     P0491-OTF06='PS TYPE'
    06     18     W     P0491-OTV06=P0008-TRFAR
    06     20     W     P0491-OTF07='PS AREA'
    06     22     W     P0491-OTV07=P0008-TRFGB
    06     24     W     P0491-OTF08='WORK SCHEDULE RULE'
    06     26     W     P0491-OTV08=P0007-SCHKZ
    06     27     W     P0491-OTV09='WORK HOURS/PERIOD'
    06     28     W     P0491-OTV09=P0008-DIVGV

    Hi Damas,
      it seems to be no specific reason for not updation P0008-DIVGV only.Please cross check whether field is populating or not in Infotype 0008, before dynamic action triggered, other that that there is no reason.

  • Quicktime objects not working on GoLive

    I have a GoLive CS2 Student Version. My Quicktime Objects are not working. I tried to drag the track objects to the page or to layer and no avail.
    Can you help me? I spent a whole day to finally figure out the Quicktime objects not working.

    Thank you for the support John,
    To explain what I am doing in more detail: I am basically making an image gallery with thumbnail buttons of each image. When the user enters this page I want to have the automatic slideshow of a few images. Then the user have the option to click on the buttons to see the images. I was able to make a slideshow in GoLive. But the transition is abrupt. According to the GoLive Help Menu there is a way to make the trasnition smoother using the timeline editor, but it is too difficult to follow up for me. So I downloaded another program called SWFn'Slide which was very easy to make the smooth transitional slideshow. Now I am trying to insert the SWF file into my page. But I can't figure out how to do it. In my understanding, I must place a layer on the page and on that layer I must place the SWF track from the Quicktime Objects tab. But I cannot drag any of the Quicktime Objects tools into the page. Again I am having a problem inserting a SWF file into the page.

  • Dymanic action with jQuery selector not working in version 4.2.2

    Hi,
    We’re in the process upgrading to APEX version 4.2.2. We have an issue is with a report with a link that’s firing a dynamic action with a jQuery selector.
    The first sequence in the dynamic action is Confirm. When we click the link in the report it’s supposed to popup a confirm “Are you sure you want to save?"
    When we click the link nothing happens. This works in our current version 4.0.1, but not in 4.2.2. Do you have any ideas?
    Thanks,
    Joe

    change the
    in the url to
    javascript:void(0);
    The reason for your issue is that the default action of the anchor tag is not prevented and thus navigation occurs. A confirm action will return true or false, and execution of further true actions will stop when selecting cancel but this will still not prevent the default action from occuring. Similarly a cancel event true action is not adequete as this has to be run after the confirm so not accounting for the execution-stopping cancel of the confirm.
    That javascript in the url is some good ol' "hack". It'll run that javascript instead of performing a navigation and void(0) just does nothing, and the click dynamic action will be unaffected.

  • Create Type as Object not working in linux oracle 11g

    Pleae refer to the following simple create type as object statement.
    CREATE OR REPLACE TYPE EC_VIEWABLETYPES as object ( CASE_TYPE_ID NUMBER)
    It is working in oracle 11g and windows server 2008 environment.
    But it is not working in oracle 11g with linux environment.
    I am executing this statement as dynamic sql as follows
    CREATE OR REPLACE PROCEDURE TEMP_SP
    AS
    BEGIN
    DECLARE vcType VARCHAR2(30);
    BEGIN
    SELECT OBJECT_TYPE into vcType FROM USER_OBJECTS
    WHERE OBJECT_NAME='EC_VIEWABLETYPES' AND OBJECT_TYPE='TYPE';
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    EXECUTE IMMEDIATE 'CREATE OR REPLACE TYPE EC_VIEWABLETYPES as object ( CASE_TYPE_ID NUMBER) ';
    COMMIT;
    RETURN;
    END;
    END;
    exec TEMP_SP
    please let me know what i am missing ?

    And error is:ORA-00600: internal error code, arguments: [kothc_uc_md5:lxerr], [], [], [], [], [], [], [], [], [], [], []
    ORA-06512: at "ATIPAGENT.TEMP_SP", line 10
    ORA-01403: no data found
    ORA-06512: at line 1
    ..Query:exec TEMP_SP...Previous Query:CREATE OR REPLACE PROCEDURE TEMP_SP AS BEGIN DECLARE vcType VARCHAR2(30); BEGIN
    SELECT OBJECT_TYPE into vcType FROM USER_OBJECTS
    WHERE OBJECT_NAME='EC_VIEWABLETYPES' AND OBJECT_TYPE='TYPE'; EXCEPTION WHEN NO_DATA_FOUND THEN
    EXECUTE IMMEDIATE 'CREATE OR REPLACE TYPE EC_VIEWABLETYPES as object ( CASE_TYPE_ID NUMBER) ';
    COMMIT;
    RETURN;
    END;
    END;

  • Java object with ArrayList of custom objects not working

    I have a custom java object that has an ArrayList of another set of custom objects (code listed below). I can pull back a Customer object (to flex client) and it's recognized as a Customer action script object, but the ArrayList in the Customer object is not recognized as an ArrayCollection of Accounts. Instead it is an ArrayCollection of Action Script Objects.
    At first I thought something was wrong with my action script Account class, but then I tried to pull back just an Account and it was recognized as an action script Account. It's just when I have my Customer object with an ArrayList of Accounts that it isn't getting converted.
    Is there something else I need to do to have that ArrayList be recognized as an ArrayCollection of Accounts on the Flex Client side? Is there some way of specifying what type an ArrayCollection is mapped to?
    Thanks in advance for the help!
    public class Customer {
         private String name;
         private String address;
         private ArrayList<Account> accounts;
         public Customer(){
         public String getName(){
              return name;
         public void setName(String str){
              name = str;
         public String getAddress(){
              return address;
         public void setAddress(String str){
              address = str;
         public ArrayList<Account> getAccounts(){
              return accounts;
         public void setAccounts(ArrayList<Account> list){
              accounts = list;
    public class Account {
         private long accountNumber;
         private String type;
         private double balance;
         public Account(){
         public long getName(){
              return accountNumber;
         public void setName(long l){
              accountNumber= l;

    I accidently found how to make this work. I may have missed something while reading about blazeDS reflection, but I thought I'd pass this along anyway.
    What I have is I have an class A. In class A I have an arraycollection of Class B. If I want that arraycollection to return to the server with the correct class, then I need to include Class B in the compiled swf. How I have done that is to create a dummy variable of type B. Importing B will not work you actually need to have a member variable of type B even if you don't need it.
    Example
    import dataobjects.B;
    [RemoteClass(alias="dataobjects.A")]
    public class A {
       private var _b:B; //This is never used, but needed to include B object in swf to be reflected.
       private var_ bList:ArrayCollection = new ArrayCollection();
      public function A(){
      public function set bList(list:ArrayCollection):void{
         _bList = list;
      public function get bList():ArrayCollection{
        return _bList;

  • Action Script 3 code not working for start and stop button?

    Ok so I have this simple animation I created of a circle that moves from one side of the stage to the other. I have added a new layer and called it buttons. On this layer I have added 2 buttons. One for start and another one for stop. The purpose is to get my circle to move from one side of the stage to the other but be able to use my buttons so that I can start and stop the animations at random times during playback. I fixed all my compiler errors now the problem lies in that everytime I click the start or the stop button I get an output error. I have a 3rd layer in which is titled actions and this is where all my code is posted. I removed that layer and placed my code in the first frame of the buttons layer to see if this would change anything but I still get the same output errors. So I just added back my actions layer. What could I be doing wrong? I have made sure to name all my movie clips and buttons correctly and I even added an instance name to them.
    Here is my code and the errors I am getting when I press the play and stop button on test-
    start_btn.addEventListener(MouseEvent.CLICK, startCircle);
    stop_btn.addEventListener(MouseEvent.CLICK, stopCircle);
    function startCircle(e:MouseEvent):void{
        circle.play();
    function stopCircle(e:MouseEvent):void{
        circle.stop();
    green_btn.addEventListener(MouseEvent.CLICK, greenCircle);
    red_btn.addEventListener(MouseEvent.CLICK, redCircle);
    function greenCircle(e:MouseEvent):void{
        circle.play();
    function redCircle(e:MouseEvent):void{
        circle.stop();
    Here are my output errors-
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at exercise2_fla::MainTimeline/redCircle()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at exercise2_fla::MainTimeline/greenCircle()

    ok so my circle is my movie clip and it is titled circle and the instance name is circle. Am I supposed to change MovieClip to circle? I put the code at the top of my actions script but for some reason it did not work. I did change play to stop and it got the movie clip to stop when I do test movie but my buttons still do not work. So I changed stop back to play. Strange.
    I did try changing MovieClip to circle but that did not work so I did Circle with a capital C and that did me no good eigther.
    I meant to add that I did get an error that said- 1180 Call to a possibly undefined method circle.

  • Dynamic Height in Graphs does not work properly when the graph is in an list

    Help please,
    I have an report in SQL Server 2008 (SP1) Reporting Services which uses Dynamic Height to dynamically increase the size of the graph for the data. For a single dataset this works great!
    When I place this graph in a list/tablix (to display this graph on each group) things go bad... Only the first graph on every page is resized, all other graphs on the same page are equal in size of the first!
    When I place a pagebreak on the lists property all graphs are drawn fine!! But then I will have a page for every question in my data (which can be a lot!)
    What is going on here? Please help.

    Hi Jerry,
    thanks for your reply, but this does not work. The graphs are now all the same size (the size of the first one that is), and on the same page for that matter...
    It looks like the renderer calculates the value of the dynamic height only once on a page in stead of each graph. That's a bug in my opinion.
    Any suggestions on how to fix this?
    The inner workings of the report are like this: The data contains anwers from a survey by question, so i have a unknown count of answers with each question; I placed a list on my report with a groupingproperty on the question asked. On this list i place a horizontal bar-graph which must grow in height when it is too small. The dynamic height should be calculated like this =70 + (CountDistinct(AnswerValue.Value)*10) & "pt".
    When i place this calculation in a textbox, every item in the group is calculated correctly. Each graph is drawn, but the graphs are sized only to the size of the first graph on the page. When I place a pagebreak after each list-repeat (so i get each question on a seperate page) each graph is drawn correctly! This results however in more than 100 pages with all used for just a few centimeters (think about trees!).
    I'm using SQL 2008 / SSRS2008 with SP1 by the way ( without SP1, the behaviour is the same).
    Any more suggestions are appreciated.
    Danny

  • Display/Change/Delete of planning object not working in BPS

    Hi Guys
    While displaying or changing object in planning workbench, system is taking too long to process the request and request doesn't completes even in hours. The following operations are not working
    1. Delete Planning Area/Level.
    2. Display/Change planning Level.
    3. Display/Change Planning Layout.
    4. When clicking on Variable Tab of infoarea.
    5. When clicking on Set variable button.
    In all of the above mentioned cases System displays a message "Generating Environment" and it runs for indefinite time.All this is ha0
    We are on Suppport Pack 12 of BI NetWeaver(2004S)and we are using BPS for our planning application.
    Thanks
    Tripple k

    Hi Dear
    Thanks for info. i know that it will take some time to regenerate the BPS classes after making changes in cube but in my system its taking at least half an hour which i think is too much.....i don't think that its normal behaviour of system...
    Thanks
    Kamal

  • Substituting View object not working.....

    Hi All,
    I am working on iSupplier portal, I am trying to add requeter name on the line lavel of PO details page of iSupplier.
    But the by substitutions of Standard View Object is not working.
    1. I have extend the PosViewLinesVO object with Custome PosViewLInesVOEx
    2. Add the View Object in the ViewOrderAM.class
    3. Go to SSTest.jpr file and add the substitutinons by edit optin.
    4.Then trying to test on the standalon . But the it's not working
    5. The View PosViewLInesVO having viewlink with PosViewShipmentsVO so i am unable understand, if i am add a new column requeter name on the personalization than it giving error.
    6. I f i open the about the page is shown both the view original view PosViewLineVO and the Extend View PosViewLinesVOEx.
    Can any body help me. why the View Substitution is not working.
    I have the screenshots of the error but am not able to attach it over here. Could you please ping me your ID so that I can forwards the Error Msg file to you guys.
    In the doc,I have attached the screen sort and the requirement details.
    Help Appreciated.
    Thanks

    If you are working on R12, there are some bugs with VO extension :
    1)If a expert mode VO based on EO is extended and new attributes from EO are included, the new attributes turn out to be transient.The resolution is you would have to manually edit the extended VO xml file and include EO reference in new attributes.
    2) If expert mode VO based on sql query is extended all attributes automatically become Update : Never in extended VO, you need to go to each attribute in VO wizard and change the type to Update:Always.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Premiere Pro CC and After Effects CC - Dynamic Link of an .aep not working - Stalls during import

    I have been trying to import an .aep file into Premiere Pro CC from After Effects CC. As suggested, I import the file. The dynamic import window appears. It states connected to file along with the import files ... dialogue box. It stalls there.
    I have been working off my network and have all the files collected on my machine.
    My workaround to get me to deadline was to render my clips from AE and import them. Importing the .aep would make more sense from efficiency and workflow.
    Thank you

    Thank You, Jim -
    Unfortunately that specifically did not work.
    Based on another comment sent to me, here is what did.
    In PProCC
    File > Adobe Dynamic Link > New After Effects Composition
    In AECC
    From that composition created from PPro, I imported the project (aep) initially created in AECC from another team member. Saved the file.
    Back in PProCC
    File > Adobe Dynamic Link > Import After Effects Composition
    Magic.

  • Why is dynamic spelling (or check spelling) not working on a particular document?

    I have a coupe documents where neither Dynamic Spelling or Spell Check are working. Both are documents where those tools have been used before successfully. These are files that have been shared via Dropbox for editing. There are however other files that have been shared and edited the same way, with the same team, where both Dynamic Spelling and Spell Check continue to work.
    Documents are InDesign CS6.
    I have tried moving files to my desktop as well as saving a copy, neither of which worked.
    Last resort would be to make a whole new file and copy/past over all the content, but obviously I'm trying to avoid that if there is an easier solution.
    Any thoughts would be helpful.
    - Alice

    Ended up having the same issue in a CC version document. A combination of fixing the Language setting on character styles and editing Preferences, Dictionary, Spelling and also Hyphenation to Hunspell did the trick.
    It should be noted that both of these problem files were ones that were being shared and edited by two people via dropbox. I'm guessing that the preferences are not set correctly within InDesign by the other user, thus resulting in what you noted above as a change in the language associated with the file. A cautionary tale for anyone working with a client who may be doing some content editing on a shared file, as it seems settings overwrite.

  • A/R Invoice linked object not working all the time

    I have a LinkedButton that is set to SAPbouiCOM.BoLinkedObject.lf_Invoice. When the selected A/R Invoice has a Document Type of Service the link works. When the selected A/R Invoice has a Document Type of Items the link does not work and I get the following error:
    "No matching records found 'A/R Invoice' (ODBC -2028)"
    I there another property that I should be setting? I could not find anything.

    Hi,
    I've added a code sample that works fine for me.
    add this code to a simple vb project with the correct references....
    1. Enter a number of the Invoice you want
    2. click on the second EditText to set the linkedButton
    3. click the LinkedButton
    <i>Public WithEvents m_App    As SAPbouiCOM.Application
    Private Sub Class_Initialize()
    Dim oForm As SAPbouiCOM.Form
    Dim oDBDS As SAPbouiCOM.DBDataSource
    Dim oItem As SAPbouiCOM.Item
    Dim oLB As SAPbouiCOM.LinkedButton
    Dim oST As SAPbouiCOM.StaticText
    Dim oET As SAPbouiCOM.EditText
        Set m_App = getCurrentApplication()
       ' m_App.MessageBox "You have COM UI connection"
        'form
        Set oForm = m_App.Forms.Add("UUID")
        oForm.Height = 150
        oForm.Width = 400
        oForm.Top = 100
        oForm.Left = 400
        Set oDBDS = oForm.DataSources.DBDataSources.Add("OINV")
        'Edittext
        Set oItem = oForm.Items.Add("EditT", it_EDIT)
        oItem.Left = 200
        oItem.Width = 40
        oItem.Top = 50
        oItem.Height = 15
        Set oET = oItem.Specific
        Call oET.DataBind.SetBound(True, "OINV", "DocNum")
        'static
        Set oItem = oForm.Items.Add("StaticT", it_STATIC)
        oItem.Left = 50
        oItem.Width = 100
        oItem.Top = 50
        oItem.Height = 15
        oItem.LinkTo = "EditT"
        Set oST = oItem.Specific
        oST.Caption = "Business Partner Code"
        Set oItem = oForm.Items.Add("EditT2", it_EDIT)
        oItem.Left = 200
        oItem.Width = 40
        oItem.Top = 80
        oItem.Height = 15
        Set oET = oItem.Specific
        Call oET.DataBind.SetBound(True, "OINV", "DocNum")
        Set oItem = oForm.Items.Add("StaticT2", it_STATIC)
        oItem.Left = 50
        oItem.Width = 100
        oItem.Top = 80
        oItem.Height = 15
        oItem.LinkTo = "EditT2"
        Set oST = oItem.Specific
        oST.Caption = "Business Partner Decs"
        'linked button
        Set oItem = oForm.Items.Add("Linked", it_LINKED_BUTTON)
        oItem.Left = 180
        oItem.Top = 50
        oItem.LinkTo = "EditT"
        Set oLB = oItem.Specific
        oLB.LinkedObject = lf_Invoice
        oForm.Visible = True
    End Sub</i>
    Regards,
    Yaniv G.
    SDK Consultant,
    SAP Manage Israel.

  • CS4's 3d object not working in snow leopard

    when my system was leopard, photoshop cs4's 3d object is working properly...but when i upgraded it to snow cs4 indicates that the feature no longer support it....why was it? T_T

    when my system was leopard, photoshop cs4's 3d object is working properly...but when i upgraded it to snow cs4 indicates that the feature no longer support it....why was it? T_T

  • Click action open URL does not work

    I am trying to make a simple click action which opens a URL, but I simply cannot make it work. I get no cursor in the browser whatsoever (http://consilio.no/demo/sbbl/). I have tried to insert the action on all elements elements, on the stage and even made a new object on top of everything, but nothing happens.
    In the screenshot you can see the code I am using, this should be pretty straight forward I guess?
    What on earth am I doing wrong? Do I have to insert some kind of keyframes...?

    Hi, cascoboy-
    Can you ZIP up your project folder and post it to some kind of sharing service, like Creative Cloud, Dropbox, or Google Drive?  I'd like to take a look at it.  I wasn't able to click.  Please note that your cursor won't change as you hover over it unless you set it specifically.  You can:
    Select the Rectangle element
    Click on the cursor icon in the properties panel
    Change it to pointer
    Hope that helps,
    -Elaine

Maybe you are looking for

  • How can I move mail from the offline folder inbox to a local folder?

    I have an IMAP account and my provider lost all but the last week of my emails. I still have them in the offline folder in Thunderbird so as long as I stay offline I can see the emails but I want to move them to local folders so I can go back online

  • Audigy Platinum Ex Line In Quest

    I recently re-installed my Soundblaster Audigy Platinum Ex card on a new hard dri've - it's worked properly in the past. I have run the installation cd and gone to the Soundblaster website for all the latest drivers. On my external module I am unable

  • Word X for Mac - attachments coming up in German

    Not sure what happened, but when I send an email with an attachment which is a word doc, and then I click on the attachment it is giving me this message which looks like German: "Microsoft Office 2004 test Drive har upphort att galla. On du vill best

  • Getting BAM Error: BAM-06008: The XML payload is invalid; extra contents we

    Hi All, Version: 11.1.1.4 We are getting the BAM Error: "BAM-06008: The XML payload is invalid; extra contents were found" after I added a another field to a BAM Object. I can see the new field in BAM and I can also see it when I pull up and map to a

  • Wireless card and kernel panic

    So for no apparent reason my airport has failed in my powerbook 17" 1.5 w/1.5. It just has no strength to start and seems to loose juice as time in a given session passes. so I threw a wireless card I had in to see how it would fare. The good news is