View event does not trigger custom method

This is something that should be straightforward and easy...... but it is not working as expected!
I have a main window with a tab bar and two additional views. One view has text boxes and a method to change a label when an event on the text box is triggered. Using the interface builder, I have created the text boxes and associated them with the custom method through the events. The method and text box is defined in the view controller files (the header file and the interface file).
When the view is shown and the event occurs, the method is not triggered. This is really weird as I have gone through several tutorials and all set up the view the same way I have it set up.
When I run it in debug, nothing breaks at the break points -- even the init methods....
Any ideas?

Please describe the event you're looking for and the method expected to catch it. By "custom method", do you mean a UITextField delegate method? You mentioned a tab bar and two other content views. Is your question confined to only one view controller->view, or do we need to know about any of the other content views? Are all the objects we need to know about in one .xib file?

Similar Messages

  • My multi-view component does not trigger WDDOMODIFY

    I have a webdynpro for abap component which displays three areas of information.
    The top part of the screen is a static display of a structure.
    The middle is a structure that displays a key field and its values.
    The bottom is an alv grid.
    It was implemented using techniques described in the tutorial u201CProgramming the ALV Configuration Model in Web Dynpro for ABAPu201D and u201CEditing ALV in Web Dynpro for ABAPu201D by Claudia Danger.
    I have four views and a window.  For simplicity, lets call them TOP_VIEW , MIDDLE_VIEW , AND RESULT_VIEW (the ALV).  These are all placed through ViewContainers onto the LAYOUT_VIEW.
    My main window kicks off the LAYOUT_VIEW and calls appropriate methods to populate all three sections.    I allow the users to add rows to the ALV grid and I have made the key field editable so that a user may enter a key value in the new row.  I then, through the WDDOMODIFY of the RESULT_VIEW, populate the new row with the additional values.
    We are good up to here.  If the user enters any info, or pushes enter, the RESULT_VIEWu2019s standard methods seem to kick in and I do what I need them to do.
    Now for the issue. 
    I want the user to be able to update the key field in the middle section as well, and have the rest of the middle structure update.  I coded the record update in the WDDOMODIFY of the MIDDLE_VIEW, but it does not seem to trigger (I canu2019t hit a break point).  How do I make this code recognize that something has happened..
    Interestingly, if I hit the enter key in the RESULT_VIEW, the WDDOMODIFY of the MIDDLE_VIEW will  update.
    I hope this makes sense u2013 Iu2019m sure itu2019s something simple that I donu2019t yet understand.
    Thanksu2026
    u2026Mike

    Hi,
    did you check WDDOBEFOREACTION and WDDOAFTERACTION methods of middle view...if they are getting hit....if not then the solution would be to create an event at the component level (the main component) and rasie that event while you update the alv records after user inputs key values....the subscriber to this event would be your middle view....inside that middle view you can create an event handler method which subscribe to this event(main component event)....
    thanks..
    AS...

  • Custom action event does not triggers

    Hai ,
    i have BAPI which results the data in a table when the screen loads initially .after i will inster one record to this bapi clicks on save the record is going to saved .
    i have a button (refresh ) on the same table when user clicks the refresh button the inserted record has to populate in the table.
    Table form -> create toolbar -> refrsh -> custom action -> self
    in event trigger i have selected refresh .im passing the input values again to same bapi as  date1 , date2 , pernr .
    im not able to see the updated record in the same table .
    when i refresh the browser iam able to see the updated record in the table
    any inputs .
    Regards ,
    venkat p

    Hai Govindhu ,
    timer doesnot works for me .
    signal in & signal out i have taken passed similar parameters , signal out event name is Refresh ,
    wht abt signal in event does not takes as it mask ,
    any inputs for this .
    Regards ,
    venkat p

  • Print with  write statements from webynpro does not trigger top-of-page

    Print launched from webdynpro application via application server created with write statements does not trigger top-of-page event. When print is done from sapgui it works ok. The idea is to reuse backend print which was created for sapgui with abap list made application log in webdynpro application.

    Hi,
    here a short extract like i do it:
    CLASS LCL_EVENT_HANDLER DEFINITION .
      PUBLIC SECTION .
        METHODS:
       HANDLE_PRINT_TOP_OF_PAGE
             FOR EVENT PRINT_TOP_OF_PAGE OF CL_GUI_ALV_GRID,
    ENDCLASS.                    "LCL_EVENT_HANDLER DEFINITION
    * Event-Händer Implementierung
    CLASS LCL_EVENT_HANDLER IMPLEMENTATION .
      METHOD HANDLE_PRINT_TOP_OF_PAGE.
          PERFORM PRINT_TOP_OF_PAGE.
      ENDMETHOD.   
    ENDCLASS.
      CREATE OBJECT GR_EVENT_HANDLER.
      SET HANDLER
      GR_EVENT_HANDLER->HANDLE_PRINT_TOP_OF_PAGE  FOR GR_ALVGRID_LEFT.
      CALL METHOD GR_ALVGRID_LEFT->SET_TABLE_FOR_FIRST_DISPLAY
    FORM PRINT_TOP_OF_PAGE.
      LINSZ = SY-LINSZ - 16.
      WRITE: / 'Report:   ', SY-REPID,
               AT LINSZ 'Datum:',  SY-DATUM.
      WRITE: / 'Benutzer: ', SY-UNAME,
               AT LINSZ 'Zeit: ', SY-UZEIT.
    ENDFORM.
    hope it helps.
    Regards, Dieter

  • Simple WD4A Portal Eventing does not work

    Hello togehter,
    I'm trying to get a simple Portal Eventing to work with two WebDynpro ABAP components. I read several threads as well as a blog from Thomas Jung about this but still have no eventing. What am I doing wrong? I think that it might be only a little obstacle but I can't get it. So what I didi is:
    1.) Created 1st WD4A application with a button and an action behind that button:
    DATA: l_api_component  TYPE REF TO if_wd_component,
            l_portal_manager TYPE REF TO if_wd_portal_integration.
      l_api_component = wd_comp_controller->wd_get_api( ).
      l_portal_manager = l_api_component->get_portal_manager( ).
      l_portal_manager->fire(
        portal_event_namespace = 'urn:my.namespace'
        portal_event_name      = 'test_event'
        portal_event_parameter = 'testValue' ).
    2.) Created 2nd WD4A application with the following code in the WDDOinit-Method:
    DATA: l_api_component  TYPE REF TO if_wd_component,
            l_portal_manager TYPE REF TO if_wd_portal_integration,
            view TYPE REF TO if_wd_view_controller.
      l_api_component = wd_comp_controller->wd_get_api( ).
      l_portal_manager = l_api_component->get_portal_manager( ).
      view ?= wd_this->wd_get_api( ).
      l_portal_manager->subscribe_event(
        portal_event_namespace = 'urn:my.namespace'
        portal_event_name      = 'test_event'
        view                   = view
        ACTION                 = 'CATCH_EVENT' ).
    and an action.
    method ONACTIONCATCH_EVENT .
      data: EVT_NAME type STRING,
            evt_parameter type string.
      EVT_NAME = WDEVENT->GET_STRING( NAME = 'PORTAL_EVENT_NAME' ).
      if EVT_NAME = 'test_event'.
        evt_parameter = WDEVENT->GET_STRING( NAME = 'PORTAL_EVENT_PARAMETER' ).
        DATA:
          ls_text TYPE if_main=>element_main,
          node_main TYPE REF TO if_wd_context_node,
          elem_main TYPE REF TO if_wd_context_element.
        node_main = wd_context->get_child_node( name = `MAIN` ).
        evt_parameter = 'IT WORKED'.
      else.
        evt_parameter = 'did not work'.
      endif.
      ls_text-text_receiver = evt_parameter.
      node_main->bind_element( ls_text ).
    endmethod.
    3.) FInally I created two iViews (for each WD4A application) and a page, linked the iViews in the page and made a preview. Unfortunately nothing happend in the second iVIew with the 2nd WD4A application in it.
    Any help?
    Thanx in advance
    Matthias

    Hello,
    thanks for your answers. But the problem is not yet solved, the link gives nothing new for me.
    To amend my first post:
    After having created and activated my both small WD4A applications, I created 2 similar iViews (iViews for WebDynpro -> and chose WD ABAP) in my portal. Both iViews have the same namespace (which is SAP - is this ok?) and no application parameter.
    Then I created both a Standard SAP page and a WebDynpro proxy page and added the 2 iViews as deltalink. The page and the iViews have the same prefix (but this is not important, isn't it?).
    --> In both pages the portal eventing does not work
    The ABAP server and the Portal server are the same machine and I call the portal with the full qualified domain name:
    http://<servername>.<domain>:50000/irj/portal
    When I test my WD4A applications in se80 I get the path http://<servername>.<domain>:8000/sap/bc/webdynpro/sap/z_event_receiver?sap-language=EN
    so this is the same domain.
    I even have an entry in my hosts-file for
    <myInternalIp>  <servername>.<domain>
    - Do I have to specify the domain explicitly in addition when integration the WD4A applications in the portal?
    - Is there a correlation between the Portal Event namespace, the namespace of my iViews and page and the domain name of my server?
    - Does the portal event namespave to have the prefix urn: or not?
    Thanks again in advance

  • Is not abstract and does not override abstract method actionPerformed

    I dont how to corr. Please help!! and thank you very much!!
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class test extends JFrame implements ActionListener, ItemListener
              private CenterPanel centerPanel;
              private QuestionPanel questionPanel;
              private ButtonPanel buttonPanel;
              private ResponsePanel responsePanel;
              private JButton b1,b2,b3,b4,b5;               //Create five references to Jbutton instances
         private JTextField t1,t2,t3,t4,t5;          //Create five references to JTextField instances
              private JLabel label1;                    //Create one references to JLabel instances
              private JRadioButton q1,q2,q3;               //Create three references to JRadioButton instances
              private ButtonGroup radioGroup;               //Create one references to Button Group instances
              private int que1[] = new int[5];           //Create int[4] Array
              private int que2[] = new int[5];
              private int que3[] = new int[5];
              private String temp1, temp2, temp3, temp4, temp5, temp6, temp7, temp8, temp9, temp10,
                        temp11, temp12, temp13, temp14, temp15;
    public test (String header)
              super(header);
              Container container = getContentPane();
              label1 = new JLabel ("PLease click on your response to ");     
              q1 = new JRadioButton("I understand most of the content of this subject",true);
              add(q1);
              q2 = new JRadioButton("I see the relevance of the subject to my degree",false);
              add(q2);
              q3 = new JRadioButton("The workload in this subject is appropriate",false);
              add(q3);
              radioGroup = new ButtonGroup();               //JRadioButton belong to ButtonGroup
              radioGroup.add(q1);
              radioGroup.add(q2);
              radioGroup.add(q3);
              JPanel buttonPanel = new JPanel();
              JPanel responsePanel = new JPanel();
              JPanel questionPanel = new JPanel();
              JPanel centerPanel = new JPanel();
              b1 = new JButton ("Strongly DISAGREE");          //Instantiate JButton with text
              b1.addActionListener (this);               //Register JButtons to receive events
              b2 = new JButton ("DISAGREE");
              b2.addActionListener (this);
              b3 = new JButton ("Neither AGREE or DISAGREE");
              b3.addActionListener (this);
              b4 = new JButton ("AGREE");
              b4.addActionListener (this);
              b5 = new JButton ("Strongly AGREE");
              b5.addActionListener (this);
              buttonPanel.setLayout(new GridLayout(5,1));
              buttonPanel.add(b1);
              buttonPanel.add(b2);
              buttonPanel.add(b3);
              buttonPanel.add(b4);
              buttonPanel.add(b5);
              t1 = new JTextField ("0",3);               //JTextField contains empty string
              t2 = new JTextField ("0",3);
              t3 = new JTextField ("0",3);
              t4 = new JTextField ("0",3);
              t5 = new JTextField ("0",3);
              t1.setEditable( false );
              t2.setEditable( false );
              t3.setEditable( false );
              t4.setEditable( false );
              t5.setEditable( false );
              responsePanel.setLayout(new GridLayout(5,1));
              responsePanel.add(t1);
              responsePanel.add(t2);
              responsePanel.add(t3);
              responsePanel.add(t4);
              responsePanel.add(t5);
              questionPanel.setLayout(new GridLayout(4,1));
              questionPanel.add(label1);
              questionPanel.add(q1);
              questionPanel.add(q2);
              questionPanel.add(q3);
              centerPanel.add(buttonPanel,BorderLayout.CENTER);
              centerPanel.add(responsePanel,BorderLayout.EAST);
              container.add(centerPanel,BorderLayout.WEST);
              container.add(questionPanel,BorderLayout.NORTH);
              q1.addActionListener(
                   new ActionListener(){
              public void actionPerformed( ActionEvent e )          
    {                                        //actionPerformed of all registered listeners
              if (e.getSource() == b1) {
                   que1[0] = Integer.parseInt(t1.getText()) + 1;
                   String temp1 = String.valueOf(que1[0]);
              t1.setText(temp1);
              else if (e.getSource() == b2)     {
                   que1[1] = Integer.parseInt(t2.getText()) + 1;
                   String temp2 = String.valueOf(que1[1]);
              t2.setText(temp2);
              else if (e.getSource() == b3)     {
                   que1[2] = Integer.parseInt(t3.getText()) + 1;
                   String temp3 = String.valueOf(que1[2]);
              t3.setText(temp3);
              else if (e.getSource() == b4)     {
                   que1[3] = Integer.parseInt(t4.getText()) + 1;
                   String temp4 = String.valueOf(que1[3]);
              t4.setText(temp4);
              else if (e.getSource() == b5)     {
                   que1[4] = Integer.parseInt(t5.getText()) + 1;
                   String temp5 = String.valueOf(que1[4]);
              t5.setText(temp5);
    } //end action performed
              q2.addActionListener(
                   new ActionListener(){
              public void actionPerformed( ActionEvent e )          
    {                                        //actionPerformed of all registered listeners
              if (e.getSource() == b1) {
                   que2[0] = Integer.parseInt(t1.getText()) + 1;
                   String temp6 = String.valueOf(que2[0]);
              t1.setText(temp1);
              else if (e.getSource() == b2)     {
                   que2[1] = Integer.parseInt(t2.getText()) + 1;
                   String temp7 = String.valueOf(que2[1]);
              t2.setText(temp7);
              else if (e.getSource() == b3)     {
                   que2[2] = Integer.parseInt(t3.getText()) + 1;
                   String temp8 = String.valueOf(que2[2]);
              t3.setText(temp8);
              else if (e.getSource() == b4)     {
                   que2[3] = Integer.parseInt(t4.getText()) + 1;
                   String temp9 = String.valueOf(que2[3]);
              t4.setText(temp9);
              else if (e.getSource() == b5)     {
                   que2[4] = Integer.parseInt(t5.getText()) + 1;
                   String temp10 = String.valueOf(que2[4]);
              t5.setText(temp10);
    } //end action performed
              q3.addActionListener(
                   new ActionListener(){
              public void actionPerformed( ActionEvent e )          
    {                                        //actionPerformed of all registered listeners
              if (e.getSource() == b1) {
                   que3[0] = Integer.parseInt(t1.getText()) + 1;
                   String temp11 = String.valueOf(que3[0]);
              t1.setText(temp11);
              else if (e.getSource() == b2)     {
                   que3[1] = Integer.parseInt(t2.getText()) + 1;
                   String temp12 = String.valueOf(que3[1]);
              t2.setText(temp12);
              else if (e.getSource() == b3)     {
                   que3[2] = Integer.parseInt(t3.getText()) + 1;
                   String temp13 = String.valueOf(que3[2]);
              t3.setText(temp13);
              else if (e.getSource() == b4)     {
                   que3[3] = Integer.parseInt(t4.getText()) + 1;
                   String temp14 = String.valueOf(que3[3]);
              t4.setText(temp14);
              else if (e.getSource() == b5)     {
                   que3[4] = Integer.parseInt(t5.getText()) + 1;
                   String temp15 = String.valueOf(que3[4]);
              t5.setText(temp15);
    } //end action performed
    }//end constructor test
    public void itemStateChanged(ItemEvent item) {
    //int state = item.getStateChange();
    //if (q1 == item.SELECTED)
              public class ButtonPanel extends JPanel
                   public ButtonPanel()
              public class CenterPanel extends JPanel
                   public CenterPanel()
              public class QuestionPanel extends JPanel
                   public QuestionPanel()
              public class ResponsePanel extends JPanel
                   public ResponsePanel()
    public static void main(String [] args)
         test surveyFrame = new test("Student Survey") ;
         surveyFrame.setSize( 500,300 );
         surveyFrame.setVisible(true);
         surveyFrame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
         }//end main
    }//end class test

    is not abstract and does not override abstract method actionPerformed
    Oh, I see that the title of your post is an error message? Ok. Well, the test class is declared as implementing an ActionListener. That means the test class must have an actionPerformed() method. Your test class apparently does not.
    It does not appear that the test class needs to implement ActionListener. You are using annonymous classes as listeners.

  • Is not abstract and does not override abstract method tablechanged

    I will remove all the gui code to make it shorter, but my problem lies with my InteractiveTableModelListener.
    public class Meet extends JPanel{
      private static void createAndShowGUI() {
            JFrame frame = new JFrame("MEET_dataTable");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.add(new Meet(), BorderLayout.CENTER);
            frame.pack();
            frame.setVisible(true);
    public class InteractiveTableModelListener implements TableModelListener {
         public void TableChanged(TableModelEvent evt) {
      if (evt.getType() == TableModelEvent.UPDATE) {
          int column = evt.getColumn();
          int row = evt.getFirstRow();
          dataTable.setColumnSelectionInterval(column + 1, column + 1);
          dataTable.setRowSelectionInterval(row, row);
    class InteractiveRenderer extends DefaultTableCellRenderer {
      protected int interactiveColumn;
      public InteractiveRenderer(int interactiveColumn) {
          this.interactiveColumn = interactiveColumn;
    public Component getTableCellRendererComponent(JTable dataTable,
         Object value, boolean isSelected, boolean hasFocus, int row,
         int column)
      Component c = super.getTableCellRendererComponent(dataTable, value, isSelected, hasFocus, row, column);
       if (column == interactiveColumn && hasFocus) {
         if ((Meet.this.tableModel.getRowCount() - 1) == row &&
            !Meet.this.tableModel.hasEmptyRow())
             Meet.this.tableModel.addEmptyRow();
        highlightLastRow(row);
      return c;
    public void highlightLastRow(int row) {
         int lastrow = tableModel.getRowCount();
      if (row == lastrow - 1) {
          dataTable.setRowSelectionInterval(lastrow - 1, lastrow - 1);
      else {
          dataTable.setRowSelectionInterval(row + 1, row + 1);
         dataTable.setColumnSelectionInterval(0, 0);
    public static void main(String[] args) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                UIManager.put("swing.boldMetal", Boolean.FALSE);
                createAndShowGUI();
    }As i say, i have removed all the gui code to make it shorter, but in this code i create the table and add all the model to it. I am being returned with the error
    Meet.InteractiveTableModelListener is not abstract and does not override abstract method tableChanged(javax.swing.event.TableModelEvent)in javax.swing.event.TableModelListener
    what would be causing this error?
    Cheers

    Sorry, just figured out my silly error, the method is tableChanged not TableChanged.
    cheers
    TOPIC CLOSED
    Edited by: nick2price on Sep 11, 2008 7:08 AM

  • The view 'cpdpopupeditactionsview' does not exist.

    I just installed UCM without any issues as far as I could see, but when I log in as sysadmin at http://localhost/idc/ I always get a popup box saying:
    "The view 'cpdpopupeditactionsview' does not exist."
    Looking for the cpdpopupeditactionsview string in the UCM installation directory gives me this:
    grep -i cpdpopupeditactionsview -R $UCM
    $UCM/server/custom/ContentFolios/templates/idc_folio_display.js:          "CpdPopupEditActionsView", idc.folio.display._popupEditActions);
    $UCM/server/custom/ContentFolios/templates/idc_folio_display.js:     idc.folio.util.loadFolioView("CpdPopupEditActionsView", null, null, callback);
    $UCM/server/weblayout/help/admin/folios_admin/wwhdata/js/search/search0.js:if(x.t("cpdpopupeditactionsview"))y.f("7,1");
    $UCM/server/weblayout/help/admin/folios_admin/wwhdata/java/search.xml:<i t="cpdpopupeditactionsview" l="7#1"/>
    $UCM/server/weblayout/help/admin/folios_admin/page_1_08.htm:&lt;a name="wp1090240"&gt; &lt;/a&gt;&lt;div class="pSmartList1"&gt;&lt;li&gt;CpdPopupEditActionsView&lt;/li&gt;&lt;/div&gt;
    $UCM/server/weblayout/resources/folios/util.js:          "CpdPopupEditActionsView", idc.folio.display._popupEditActions);
    $UCM/server/weblayout/resources/folios/util.js:     idc.folio.util.loadFolioView("CpdPopupEditActionsView", null, null, callback);Anyone know why this is happening?
    Thanks

    Hi
    This issue is resolved by manually uninstalling the ContentFolios component via editing the database directly. This only works if the client does not have any ContentFolio data - created or migrated; if they do have existing Content Folio data this will cause great harm to the integrity of their collection.
    1. Uninstall the ContentFolios component.
    2. Delete the following tables from the database;
    CpdArchivedLinks, CpdBasketLinks, CpdChangeHistory, CpdLinks
    3. Delete the entry for ContentFolios from the Config table.
    4. Restart the Content Server.
    5. Install the ContentFolios component.
    Hope this helps
    Thanks
    Srinath

  • Calendar on iOS 7.1: Cannot Save Event - That event does not belong to that event store.

    Hi All,
    I have an iPhone 5 running iOS 7.1.
    Yesterday, while updating a birthday in the iPhone iOS calendar app (default calendar = GMail), I noticed that the new 'List View' in the iOS 7.1 calendar (and only that view) showed an event called 'New Event' - which has a start date of 2014 and an end date of 2001. If I go into that event, it will show me no title and no location - only, as mentioned, funny start and end times. The 'Delete Event' button is completely missing. This 'New Event' does not come up in any other view.
    Trying to input a ficticious title with a valid start and end time into that event slot leads to a message from the calendar app saying: "Cannot Save Event - That event does not belong to that event store." I have deleted all calendars and re-add them again via settings, with / without soft and hard reset and tried every possible combination. Yet, the event will not disappear.
    The funny thing is that this 'New Event' will still showed up, even when my GMail, work and iCloud calendars were disabled. I have, however, subscribed to a GMail calendar for Australian holidays, and there is a built-in 'Birthday' calendar that pulls the dates from the contacts (I do not use that contact field, though).
    Does anyone have a similar issue? Any suggestions how to fix it?
    Thanks in advance!
    Edit: This 'New Event' does not seem to sync to any calendar other than on the iPhone - not to Gmail, not to work, not to iCloud.

    Had same problem. Although the phone looks off   it actually isnt.  If you actually turn it off and then on again this problem will disappear. I think its a memory overload issue that is solved by clearing the memory by turning it off.
    Worked for me

  • 2 Create bindings in 1 page, second Create event does not fire (ADF)

    I have an ADF, Struts, JSP master detail page and within that page there is a Create binding on the master view and this works fine.
    I added the detail list to the page and added a Create binding for this view underneath the list.
    The second create event does not seem to fire at all, when the button is clicked the page gets submitted and the request forwards to the correct page to display the input form but the contents of this form is the current selected detail row in the view and not a new row.
    I have created 2 new pages to test the detail view... I put a link in the original page to a test list page that displays the detail list and included a Create binding in this page which links to a test create page and this works fine.
    Has anyone else had this problem?
    Can there be only 1 Create event binding in a single page?
    Is there a way round this other than having to have my detail page on a seperate page?
    The Jdeveloper version I am using is as follows...
    JDeveloper Version 10.1.2.0.0 (Build 1811)
    Oracle IDE     10.1.2.17.84
    Business Components Version     10.1.2.17.96
    UML Modelers Version     10.1.2.16.71
    Versioning Support     10.1.2.16.71
    WebDAV Support Version     10.1.2.16.71
    Struts Modeler Version     10.1.2.6.15
    Designer Generators Framework     10.1.2.7.56
    ADF UIX     2.2.16
    java.version     1.4.2_04
    Thanks
    Al

    Can you do something like this?
    1. Look at the uimodel for your page and find the Create that is the action binding for the detail. Name it something like: CreateDetail
    2. Change the button on the page to create a detail to be named: event_CreateDetail.
    3. Change the forward from Master/Detail browser page to: CreateDetail
    Can you provide more details on:
    1. What are the names of the create bindings for master, then detail?
    2. What is the name of the forwards, that is the struts-config.xml action definition for this page?
    I hope this helps!

  • Help with Error: $host does not have a method 'messageBox'

    Greetings Everyone:
    I get this error in my Log window:
    Error: $host does not have a method 'messageBox'
    I'm calling xfa.host.messageBox("MyMessage") from form's initialize event.
    What am I doing wroing?
    Acrobat Pro 9 - Java Script is enabled.
    Thanks in advance,
    iL

    Hi Steve:
    Thanks for your prompt responses. I appreicate that. I got the latest version.
    I'm OT on at home looking for more answers...I'm guessing it's an installation issue...
    I even tried console.println("Message"); CTRL + J and blank. I did this on Acrobat and LC.
    I'm gonna do a full unistnall and reinstall when I get back to office.
    The software is coming from our IS dept so I know it's squeaky clean.
    I did an Installer Repair but the problem has returned.
    I also can't use/access any xfa.layout memebers....
    I get this errors even on newly created forms...it hasn't crashed again so I can't get any bucket ID log yet.
    Here's whats on my office box that giving me grief:
    LC version 8.2.1.4029.1.523496
    Acrobat Pro 9
    Java Version 6 Update 15
    OS Platform: (HP Box)
    SQL Server 2008 Express (HotFix installed)
    VS2008,Office2k7.
    XP SP3
    iL

  • LINQ to Entities does not recognize the method 'System.String ToString()'

    Hi, i am working on MVC using LINQ query where i am heading a problem with LINQ Query. When I use following code 
    public ActionResult GetProduct()
    Category p = new Category();
    var all = db.Products.ToList();
    // var catname = from i in db.Categories select i.CategoryID.ToString();
    p.CategName = (from i in db.Categories select new SelectListItem {Value =i.CategoryID.ToString(), Text = i.CategoryName }).ToList();
    var qq = (from i in db.Products join j in db.Categories on i.CategoryID equals j.CategoryID select new Product { ProductName = i.ProductName, UnitPrice = i.UnitPrice, UnitsOnOrder = i.UnitsOnOrder }).ToList();
    p.Products = qq;
    return View("GetProduct", p);
    It throws an error
    LINQ to Entities does not recognize the method 'System.String ToString(Int32)' method, and this method cannot be translated into a store expression.
    kindly help to fix this problem.
    Mayank Mani Pandey India

    Entity Framework cannot convert ToString() to SQL. Create the object after you have fetched the results:
    public ActionResult GetProduct()
    Category p = new Category();
    var all = db.Products.ToList();
    // var catname = from i in db.Categories select i.CategoryID.ToString();
    p.CategName = (from i in db.Categories select i).AsEnumerable().Select(x => new SelectListItem { Value = x.CategoryID.ToString(), Text = x.CategoryName }).ToList();
    var qq = (from i in db.Products join j in db.Categories on i.CategoryID equals j.CategoryID select new Product { ProductName = i.ProductName, UnitPrice = i.UnitPrice, UnitsOnOrder = i.UnitsOnOrder }).ToList();
    p.Products = qq;
    return View("GetProduct", p);
    Please remember to close your threads by marking all helpful posts as answer and then start a new thread if you have a new question.

  • I imported photos but the event does not show

    I imported photos today, it shows up under "Last Import" but the event does not show under "Events", how do I fix this?

    What version of iPhoto are you running? Also is your profile correct?
    In the Events mode set the View ➙ Sort option to By Date ➙ Descending so that the newer events are at the top of the window.
    OT

  • Is not abstract and does not override abstract method ERROR

    Hello. I'm new at all this, and am attempting to recreate a sample code out of my book (Teach Yourself XML in 24 Hours), and I keep getting an error. I appriciate any help.
    This is the Error that I get:
    DocumentPrinter is not abstract and does not override abstract method skippedEntity(java.lang.String) in org.xml.sax.ContentHandler
    public class DocumentPrinter implements  ContentHandler, ErrorHandler
            ^This is the sourcecode:
    import org.xml.sax.Attributes;
    import org.xml.sax.ContentHandler;
    import org.xml.sax.ErrorHandler;
    import org.xml.sax.Locator;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.XMLReader;
    public class DocumentPrinter implements  ContentHandler, ErrorHandler
    // A Constant containing the name of the SAX parser to use.
    private static final String PARSER_NAME = "org.apache.xerces.parsers.SAXParser";
    public static void main(String[] args)
       // Check to see whether the user supplied any command line arguments.  If not, print an error and exit.
       if (args.length == 0)
         System.out.println("No XML document path specified.");
         System.exit(1);
       // Create a new instance of the DocumentPrinter class.
       DocumentPrinter dp = new DocumentPrinter();
       try
         // Create a new instance of the XML Parser.
         XMLReader parser = (XMLReader)Class.forName(PARSER_NAME).newInstance();
         // Set the parser's content handler
        // parser.setContentHandler(dp);
         // Set the parsers error handler
         parser.setErrorHandler(dp);
         // Parse the file named in the argument
         parser.parse(args[0]);
       catch (Exception ex)
         System.out.println(ex.getMessage());
         ex.printStackTrace();
    public void characters(char[] ch, int start, int length)
       String chars ="";
       for (int i = start; i < start + length; i++)
         chars = chars + ch;
    System.out.println("Recieved characters: " + chars);
    public void startDocument()
    System.out.println("Start Document.");
    public void endDocument()
    System.out.println("End of Document.");
    public void startElement(String namespaceURI, String localName, String qName, Attributes atts)
    System.out.println("Start element: " + localName);
    for (int i = 0; i < atts.getLength(); i++)
    System.out.println(" Attribute: " + atts.getLocalName(i));
    System.out.println(" Value: " + atts.getValue(i));
    public void endElement(String namespaceURI, String localName, String qName)
    System.out.println("End of element: " + localName);
    public void startPrefixMapping(String prefix, String uri)
    System.out.println("Prefix mapping: " + prefix);
    System.out.println("URI: " + uri);
    public void endPrefixMapping(String prefix)
    System.out.println("End of prefix mapping: " + prefix);
    public void ignorableWhitespace(char[] ch, int start, int length)
    System.out.println("Recieved whitespace.");
    public void processingInstruction(String target, String data)
    System.out.println("Recieved processing instruction:");
    System.out.println("Target: " + target);
    System.out.println("Data: " + data);
    public void setDocumentLocation(Locator locator)
    // Nada
    public void error(SAXParseException exception)
    System.out.println("Parsing error on line " + exception.getLineNumber());
    public void fatalError(SAXParseException exception)
    System.out.println("Fatal parsing error on line " + exception.getLineNumber());
    public void warning(SAXParseException exception)
    System.out.println("Warning on line " + exception.getLineNumber());

    Check to make sure that the arguments are consistent with your ContentHandler class. Probably the wrong type.
    I think you forgot to include the skippedEntity method, it seems to be missing. Even if an implemented class has a method that you are not using, you still have to include the method in your code even if it doesn't do anything.
    Message was edited by:
    ChargersTule1

  • ...is not abstract and does not override abstract method compare

    Why am I getting the above compile error when I am very clearly overriding abstract method compare (ditto abstract method compareTo)? Here is my code -- which was presented 1.5 code and I'm trying to retrofit to 1.4 -- followed by the complete compile time error. Thanks in advance for your help (even though I'm sure this is an easy question for you experts):
    import java.util.*;
       This program sorts a set of item by comparing
       their descriptions.
    public class TreeSetTest
       public static void main(String[] args)
          SortedSet parts = new TreeSet();
          parts.add(new Item("Toaster", 1234));
          parts.add(new Item("Widget", 4562));
          parts.add(new Item("Modem", 9912));
          System.out.println(parts);
          SortedSet sortByDescription = new TreeSet(new
             Comparator()
                public int compare(Item a, Item b)   // LINE CAUSING THE ERROR
                   String descrA = a.getDescription();
                   String descrB = b.getDescription();
                   return descrA.compareTo(descrB);
          sortByDescription.addAll(parts);
          System.out.println(sortByDescription);
       An item with a description and a part number.
    class Item implements Comparable     
          Constructs an item.
          @param aDescription the item's description
          @param aPartNumber the item's part number
       public Item(String aDescription, int aPartNumber)
          description = aDescription;
          partNumber = aPartNumber;
          Gets the description of this item.
          @return the description
       public String getDescription()
          return description;
       public String toString()
          return "[descripion=" + description
             + ", partNumber=" + partNumber + "]";
       public boolean equals(Object otherObject)
          if (this == otherObject) return true;
          if (otherObject == null) return false;
          if (getClass() != otherObject.getClass()) return false;
          Item other = (Item) otherObject;
          return description.equals(other.description)
             && partNumber == other.partNumber;
       public int hashCode()
          return 13 * description.hashCode() + 17 * partNumber;
       public int compareTo(Item other)   // OTHER LINE CAUSING THE ERROR
          return partNumber - other.partNumber;
       private String description;
       private int partNumber;
    }Compiler error:
    TreeSetTest.java:25: <anonymous TreeSetTest$1> is not abstract and does not over
    ride abstract method compare(java.lang.Object,java.lang.Object) in java.util.Com
    parator
                public int compare(Item a, Item b)
                           ^
    TreeSetTest.java:41: Item is not abstract and does not override abstract method
    compareTo(java.lang.Object) in java.lang.Comparable
    class Item implements Comparable
    ^
    2 errors

    According to the book I'm reading, if you merely take
    out the generic from the code, it should compile and
    run in v1.4 (assuming, of course, that the class
    exists in 1.4). I don't know what book you are reading but that's certainly incorrect or incomplete at least. I've manually retrofitted code to 1.4, and you'll be inserting casts as well as replacing type references with Object (or the erased type, to be more precise).
    These interfaces do exist in 1.4, and
    without the generics.Exactly. Which means compareTo takes an Object, and you should change your overriding method accordingly.
    But this raises a new question: how does my 1.4
    compiler know anything about generics? It doesn't and it can't. As the compiler is telling you, those interfaces expect Object. Think about it, you want to implement one interface which declares a method argument type of Object, in several classes, each with a different type. Obviously all of those are not valid overrides.

Maybe you are looking for

  • Custom table cell

    hi in my project i created some custom-table-cell (classes) manually without interface builder. now my question is; is it possible to create custom-table-cells with interface builder for dynamicly create instances? i would like to have a nib file whe

  • IPhoto 11 - Problem viewing shared photos

    Hi, We have two MBP and we're having trouble viewing the photos from the other library via the Share function. The share is occurring through FW. Both MBP are running iPhoto 9.1.3. The issue is that MBP A can see MBP B's photos through share, but MBP

  • Http - XI - R/3  (http2rfc) scenario giving 401 unauthorized error

    Hi, I am new to SAP world. I am following this blog to /people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit to test http2rfc scenario to make a BAPI call in r/3. I am getting following error message:   <SAP:Code area="INTERNAL">HTTP_RESP

  • Locks in replication

    Hi, What locks does snapshot replication, transactional replication, merge replication holds.

  • Weblogic 10.3 Bridge fails every other message

    We have setup a bridge between to Tibco EMS servers. The source and target destinations are setup as eis.jms.WLSConnectionFactoryJNDIXA adapters. Start-up the bridge connects to both destinations without problems, so far so good. Once a message appea