Af:table sending event on load, is it possible?

In JDeveloper 11.1.1.6 I have a af:table that has a selection event tied into it that sends an ID to another task flow.
However, since the selectionLister does not get called on initial table load, only on a change that leads my other task flow to not get the unique ID sent by this event for the first page load. Is there a way for me to trigger this event for the first page load? I tried sending the event in the getTable() method in the bindings but that did not work.

I am nor sure what the actual use case is.. but you can use a trick.
Add an attribute binding for ID attribute(or any attribute you need for that matter).. value of this attribute will always be the attribute value for current row of the table.
you can access this attribute binding #{bindings.<attr_name>.inputValue}.
Amit

Similar Messages

  • Issuing an Error in Table Maintenance Event

    Hi,
    How can I issue an error in the table maintenance event without exiting the screen.
    When an event is triggered (Before Save), it will perform a check in the data changed or created. It will issue an error when the changes are not correct. But when I press enter or click on the check button, it will exit the table maintenance screen.
    What do I have to do in order to issue an error but will still go back to the table maintenance view.
    Making the message as information or type I, will not work because it will still save.

    Hi,
    I came to the same problem, maybe this will help someone.
    You can move check into view cluster event.
    1. load the view
         PERFORM vcl_set_table_access_for_obj
              USING 'view'
              CHANGING error_flag.
    2. assing to structure
         LOOP AT <vcl_total> INTO ls_view
    3. perform check, set VCL_STOP which will stop saving and will display message
         VCL_STOP = 'X'.
         MESSAGE ....

  • What are the tables will update while loading Master data ?

    Hello Experts,
    What are the tables will update while loading Master data ? And requesting you to provide more information about Master data loading and its related settings in the beginning of creation infoobjects. 

    It depends upon the type of Master data u r loading....
    In all the master data loadings, for every new value of master data an SID will be created in the SID table /BI*/S<INFOOBJECT NAME> irrespective of the type of master data.
    But the exceptional tables that get updated depending on the type of master data are.....
    If it is a time Independent master data then the /BI*/P<INFOOBJECT NAME> table gets updated with the loaded data.
    If it is a time dependent master data then the /BI*/Q<INFOOBJECT NAME> table gets updated with the loaded data.
    If the master data is of time Independent Navigational attributes then for every data load the SID table will get updated first and then the /BI*/X<INFOOBJECT NAME> table gets updated with the SID's created in the SID table (NOT WITH THE MASTER DATA).
    If the master data is of time dependent navigational attributes then for every data load the SID table will get updated first and then the /BI*/Y<INFOOBJECT NAME> table gets updated with the SID's created in the SID table (NOT WITH THE MASTER DATA).
    NOTE: As said above, For all the data in P, Q, T, X, Y tables the SID's will be created in the S table /BI*/S<INFOOBJECT NAME>
    NOTE: Irrespective of the time dependency or Independency the VIEW /BI*/M<INFOOBJECT NAME> defined on the top of /BI*/P<INFOOBJECT NAME> & /BI*/Q<INFOOBJECT NAME> tables gives the view of entire master data.
    NOTE: it is just a View and it is not a Table. So it will not have any physical storage of data.
    All the above tables are for ATTRIBUTES
    But when it comes to TEXTS, irrespective of the Time dependency or Independency, the /BI*/T<INFOOBJECT NAME> table gets updated (and of course the S table also).
    Naming Convention: /BIC/*<InfoObject Name> or /BI0/*<InfoObject Name>
    C = Customer Defined Characteristic
    0 = Standard or SAP defined Characteristic
    * = P, Q, T, X,Y, S (depending on the above said conditions)
    Thanks & regards
    Sasidhar

  • How to create a table with events in smartforms?

    How to create a table with events view in smartforms?
    It doesn't like general table with header, main area and footer.
    for example:
    in smartforms: LE_SHP_DELNOTE
    table name is TABLEITEM(Delivery items table)

    Vel wrote:
    I am creating XML file using DBMS_XMLGEN package. This XML file will contain data from two different database tables. So I am creating temporary table in the PL/SQL procedure to have the data from these different tables in a single temporary table.
    Please find the below Dynamic SQL statements that i'm using for create the temp table and inserting the data into it.
    Before insert the V_NAME filed, i will be appending a VARCHAR field to the original data.
    EXECUTE IMMEDIATE 'CREATE TABLE TEMP_TABLE (UNIQUE_KEY NUMBER , FILE_NAME VARCHAR2(1000), LAST_DATE DATE)';
    EXECUTE IMMEDIATE 'INSERT INTO TEMP_TABLE values (SEQUENCE.nextval,:1,:2)' USING V_NAME,vLastDate;What exactly i need is to eliminate the INSERT portion of it,Since i have to insert more 90,000 rows into it. Is there way to have the temp table created with data in it along with the sequence value as well.
    I'm using Oracle 10.2.0.4 version.
    Edited by: 903948 on Dec 22, 2011 10:58 PMWhat you need to do to eliminate the INSERT statement is to -- as already suggested by others - eliminate the temporary table. You don't need it. It is just necessary overhead. Please explain why you (apparently) believe that the suggestion of a view will not meet your requirements.

  • How to use the table maintenance events for validating the input entries..?

    Hi,
    I have created a Z table with 6 fields in which all are KEY fields. All are of CHAR type. I have created the Table Maintenance Generator for the same. While maintaining the entries in the table, even though I maintain a blank entry for a field it is saving the entry. But, I don't want that way. All the fields are mandatory in my table. One should enter all the fields. Otherwise it should not allow to save the entry. So, I think it can be done using the Table Maintenance Events. can someone tell me how to use the Table Maintenance Events. and which event to use for my reuqirement and what is the logic to be written.
    Or Is there any other way to solve my problem.
    Please share your inputs. Thanks in advance.
    Best regards,
    paddu.

    In the table maintenance generator, Environment --> Modifications --> Events then a screen will be appear here,we need to create the Events.In the EVENTS screen, press new Entries, there give 01(Before Saving the Data in the Database) and give a name(This will become a PERFORM), then click the Editor pushbutton, this will be there at the right side of the entry, then a popup will be appear, you can create an include program, there inside of the include program write ur code.
    Here is documentation for Event 01(Before Saving the Data in the Database )
    Event 01: Before Saving the Data in the Database
    Use
    This event occurs before new, changed or deleted entries are written to the database. Other activities can be performed, for example:
    hidden entry processing
    fill hidden fields
    flag data to be written to hidden tables after the database change.
    To have the changes saved by the central maintenance dialog routines, SY-SUBRC must be set to 0 at the end of the routine.
    Realization
    This event has no standard routine. The following global data is available for the realization of the user routine:
    internal table TOTAL
    field symbols
    field symbols <ACTION> and <ACTION_TEXT>
    <STATUS>-UPD_FLAG
    If internal table data are to be changed before saving, t he changes should be made in both the internal table TOTAL and in the internal table EXTRACT.
    FORM abc.
    DATA: F_INDEX LIKE SY-TABIX. "Index to note the lines found
    LOOP AT TOTAL.
    IF <ACTION> = desired constant.
    READ TABLE EXTRACT WITH KEY <vim_xtotal_key>.
    IF SY-SUBRC EQ 0.
    F_INDEX = SY-TABIX.
    ELSE.
    CLEAR F_INDX.
    ENDIF.
    (make desired changes to the line TOTAL)
    MODIFY TOTAL.
    CHECK F_INDX GT 0.
    EXTRACT = TOTAL.
    MODIFY EXTRACT INDEX F_INDX.
    ENDIF.
    ENDLOOP.
    SY-SUBRC = 0.
    ENDFORM.
    Regards,
    Joy.

  • Table maintenance events

    Hello,
    Does anyone has a code example of table maintenance events?
    I have a custom table ( zitab ) , with a maintenance view in SM30. I would like to use the table maintenance events for some authorisation check before the data is displayed, then, depending on the authorisation, display what the user is authorised to see. After data input, perform validation, if errors occur, inform the user what the problem is, if not, save in tha z table.
    Can this be done in sm30 or I need to write a new program?
    Thank you!

    Can someone please explain me why I have this short dump (before save event)?
    Error analysis
        The statement
          "MOVE src TO dst"
        requires the operands "dst" and "src" to be comvertible.
        Since this statement occurs in a Unicode program, the special
        convertibility rules for Unicode programs apply. In this case, the
        following rules have been broken:
    Source Code Extract
    Line  SourceCde
        1 ----
        2 ***INCLUDE LYTableF04 .
        3 ----
        4
        5 form before_save.
        6
        7 DATA: l_field_is_blank.
        8   DATA: BEGIN OF s_ytable.
        9           INCLUDE STRUCTURE ytable.
       10           INCLUDE STRUCTURE vimtbflags.
       11   DATA: END OF s_ytable.
       12
       13   LOOP AT total.
       14     CLEAR s_ytable.
    >>>>>     MOVE total TO s_table.
       16
       17   ENDLOOP.
       18
       19 endform.
    In all examples that i read on this forum this code works, I don't know why it fails for me.

  • Outlook 2007 Calendar Monitoring: track send event for recurring meetings

    Hi,
    I'm working on an Outlook 2007, VSTO 2010, .NET 3.5 add-in which monitors AppointmentItem objects changed on the user's calendar. Specifically I'm tracking the send event of the currently selected appointment in the calendar view. Currently my add-in is
    set to cancel the send event and call Display() on the selected appointment instead.
    I'm testing with Outlook 2007 SP3. The event handler is fired correctly for non-recurring meetings when the user changes the start or end time of the meeting and for recurring meeting occurrences / exceptions when the user changes the end time, but not when
    the user changes the start time of a recurring meeting occurrence / exception. These are the specific steps:
    Create a recurring appointment with e.g. 3 occurrences, add at least one attendee and send the invitation.
    Set the Calendar to display a Week View.
    Select the top edge of the first occurrence of the appointment created in step 1 and drag it upwards to increase the length of the appointment by half an hour.
    Release the mouse button and press enter to confirm the change.
    Answer 'Save changes and send update' in the popup.
    At this point the addin should cancel the send event and display the appointment, but actually the event handler is not called. This behavior occurs only when I change the start time of an occurrence / exception. When I change the end time the event handler
    is called correctly.
    Do you have any clue why the event handler is only called for the one change and not for the other? How could I work around this issue?

    Hi Eugene,
    Thanks for your reply. Here is my code:
    public class ExplorerMonitor {private Explorer explorer;private AppointmentItem selectedAppointment;
    public ExplorerMonitor()
    this.explorer = Globals.ThisAddIn.Application.ActiveExplorer();
    this.explorer.SelectionChange += new ExplorerEvents_10_SelectionChangeEventHandler(Explorer_SelectionChange);
    private void Explorer_SelectionChange()
    Selection selection = null;
    object selectedItem = null;
    bool eventsHookedUp = false;
    try
    // first remove the listeners from the previously selected item
    this.StopSelectedItemMonitor();
    selection = this.explorer.Selection;
    if (selection.Count == 1)
    selectedItem = selection[1];
    AppointmentItem appointment = selectedItem as AppointmentItem;
    if (appointment != null)
    this.selectedAppointment = appointment;
    ((ItemEvents_10_Event)this.selectedAppointment).Send
    += new ItemEvents_10_SendEventHandler(SelectedAppointment_Send);
    // Stop monitoring when the item is opened in an explorer window.
    this.selectedAppointment.Open
    += new ItemEvents_10_OpenEventHandler(SelectedAppointment_Open);
    eventsHookedUp = true;
    catch (System.Exception exception)
    logger.Error("Caught in Explorer_SelectionChange", exception);
    finally
    if (!eventsHookedUp)
    // only release if we didn't start monitoring it
    ComMarshaler<object>.releaseComObject(ref selectedItem);
    ComMarshaler<Selection>.releaseComObject(ref selection);
    private void SelectedAppointment_Open(ref bool Cancel)
    this.StopSelectedItemMonitor();
    private void SelectedAppointment_Send(ref bool Cancel)
    Cancel = true;
    this.selectedAppointment.Display();
    private void StopSelectedItemMonitor()
    if (this.selectedAppointment != null)
    this.selectedAppointment.Open -= new ItemEvents_10_OpenEventHandler(SelectedAppointment_Open);
    ((ItemEvents_10_Event)this.selectedAppointment).Send
    -= new ItemEvents_10_SendEventHandler(SelectedAppointment_Send);
    ComMarshaler<AppointmentItem>.releaseComObject(ref this.selectedAppointment);
    public static class ComMarshaler<T>
    public static void releaseComObject(ref T anObject)
    if (anObject != null && Marshal.IsComObject(anObject))
    Marshal.ReleaseComObject(anObject);
    anObject = default(T);

  • Two triggers in the same table and event

    If I created two triggers on the same table and event (before insert), which of them will be triggered first ?...
    The problem from the beginning is that I created the second one as after insert and in the body of the trigger I wrote (:new.xxx:= value) ... then an error (that it should be before insert trigger or update trigger), so I created it as before update ,,, but I have already before update trigger (for primary key)..... and the problem -I think- which of them start first...
    Can make the second one as after insert and make update statement instead of assigning (:new.xxx:= value).....
    Regards

    If I created two triggers on the same table and event
    (before insert), which of them will be triggered
    first ?...As already mentioned, prior to 11g the order of firing is undetermined.
    The problem from the beginning is that I created the
    second one as after insert and in the body of the
    trigger I wrote (:new.xxx:= value) ... then an error
    (that it should be before insert trigger or update
    trigger), so I created it as before update ,,, but I
    have already before update trigger (for primary
    key)..... and the problem -I think- which of them
    start first...If there is a conflict of interest inside the code then you will have to alter your design principle around this to cater for it. Also consider combining the code into a single before insert trigger to prevent any confusion.
    Can make the second one as after insert and make
    update statement instead of assigning (:new.xxx:=
    value).....Attempting to update or query the same table as is causing the trigger to fire will result in a mutating table error. You can't do this.

  • External Table and Direct path load

    Hi,
    I was just playing with Oracle sql loader and external table features. few things which i ovserved are that data loading through direct path method of sqlloader is much faster and takes much less hard disk space than what external table method takes. here are my stats which i found while data loading:
    For Direct Path: -
    # OF RECORDS.............TIME...................SOURCE FILE SIZE...................DATAFILE SIZE(.dbf)
    478849..........................00:00:43.53...................108,638 KB...................142,088 KB
    957697..........................00:01:08.81...................217,365 KB...................258,568 KB
    1915393..........................00:02:54.43...................434,729 KB...................509,448 KB
    For External Table: -
    # OF RECORDS..........TIME...................SOURCE FILE SIZE...................DATAFILE SIZE(.dbf)
    478849..........................00:02:51.03...................108,638 KB...................966,408 KB
    957697..........................00:08:05.32...................217,365 KB...................1,930,248 KB
    1915393..........................00:17:16.31...................434,729 KB...................3,860,488 KB
    1915393..........................00:23:17.05...................434,729 KB...................3,927,048 KB
    (With PARALLEL)
    i used same files for testing and all other conditions are similar also. In my case datafile is autoextendable, hence, as par requirement its size is automatically increased and hard disk space is reduced thus.The issue is that, is this an expected behaviour? and why in case of external tables such a large hard disk space is used when compared to direct path method? Performance of external table load is also very bad when compared to direct path load.
    one more thing is that while using external table load with PARALLEL option, ideally, it should take less time. But what i actually get is more than what the time was without PARALLEL option.
    In both the cases i am loading data from the same file to the same table (once using direct path and once using external table). before every fresh loading i truncate my internal table into which data was loaded.
    any views??
    Deep
    Message was edited by:
    Deep

    Thanx to all for your suggestions.
    John, my scripts are as follows:
    for external table:
    CREATE TABLE LOG_TBL_LOAD
    (COL1 CHAR(20),     COL2 CHAR(2),     COL3 CHAR(20),     COL4 CHAR(400),
         COL5 CHAR(20),     COL6 CHAR(400),     COL7 CHAR(20),     COL8 CHAR(20),
         COL9 CHAR(400),     COL10 CHAR(400))
    ORGANIZATION EXTERNAL
    (TYPE ORACLE_LOADER
    DEFAULT DIRECTORY EXT_TAB_DIR
    ACCESS PARAMETERS
    (RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY WHITESPACE OPTIONALLY ENCLOSED BY '"' MISSING FIELD VALUES ARE NULL     
    LOCATION ('LOGZ3.DAT')
    REJECT LIMIT 10;
    for loading i did:
    INSERT INTO LOG_TBL (COL1, COL2, COL3, COL4,COL5, COL6,
    COL7, COL8, COL9, COL10)
    (SELECT COL1, COL2, COL3, COL4, COL5, COL6, COL7, COL8,
    COL9, COL10 FROM LOG_TBL_load_1);
    for direct path my control file is like this:
    OPTIONS (
    DIRECT = TRUE
    LOAD DATA
    INFILE 'F:\DATAFILES\LOGZ3.DAT' "str '\n'"
    INTO TABLE LOG_TBL
    APPEND
    FIELDS TERMINATED BY WHITESPACE OPTIONALLY ENCLOSED BY '"'
    (COL1 CHAR(20),
    COL2 CHAR(2),
    COL3 CHAR(20),
    COL4 CHAR(400),
    COL5 CHAR(20),
    COL6 CHAR(400),
    COL7 CHAR(20),
    COL8 CHAR(20),
    COL9 CHAR(400),
    COL10 CHAR(400))
    and ya, i have used same table in both the situations. after loading once i used to truncate my table, LOG_TBL. i used the same source file, LOGZ3.DAT.
    my tablespace USERS is loaclly managed.
    thanks

  • Detecting the send event in Outlook addin

    I'm trying to write an Outlook AddIn app in C# using Visual Studio 2012.  I need to detect when the send button is clicked in a current email.  I'll want to perform some actions after the send button has been clicked.   
    I assume an event handler needs to be created, but I'm not sure where- at the item level, or application level.  I created a mail item object with Outlook.MailItem publicItem = (Outlook.MailItem).this.OutlookItem.  It seems like I should be detecting
    publicItem.send but I'm not clear on how and where to use event handlers in this case.  
    I added a checkbox, and Visual Studio created publicCheckBox_Changed(object sender, EventArgs e) for me.  To check if the box was checked, I used  'if(publicCheckBox.checked) { do stuff }.   Is detecting the send event similar? 
    I'm new to c# and Outlook Addins, and fairly new to coding.  
    Thanks for your help. 
    Wayne

    Hello Wayne,
    In the check box Clicked event you can add a user property to the MailItem (see UserProperties.Add). Then in the ItemSend event ( see the Application class) handler you can check out the property value - whether it is set or not. Be aware, the Cancel parameter
    passed to ItemSend event handler allows to prevent the item from sending.

  • ABAP Table Maintenance Events

    Hello All ,
    I have created the Table Maintenance with Events .
    When the user enter the sales order number  & item in the Txn code screen of the table  .The Event  05  triggers & pulls out information for Sales Order Customer ,Material ,Plant  & show it in the  screen .
    There are two more fields for user input Valid to & Valid from , the user now fills in these fields & then press Save button in the screen .
    Now He gets the Short dump related to duplicate entries .
    I checked the standard code & it  is trying to enter data into the Internal table
    MOD_ELEM_TAB  & since already the same entry exsist in this table so program dumps out .
    Kindly suggest the way to solve this issue .
    Best regards,
    Anurag Goel .

    Check with table primary keys and if you are creating same data again and again,
    then you will get short dump..
    so keep the validation like if record already exits then give message.
    else you want to create same data again and again then create one more field and it is like count (keep as primary key ).
    Reward Points if it is helpful
    thanks
    Seshu

  • Problem with table maintenance event

    Hi Experts,
    In the table maintenance event 05 for a ztable, I have written logic to validate if few key fields and non key fields are not initial.
    If they are initial,need to throw an error message and it has to stay in the same screen.But right now it grays out the non key field.
    Tried the combination of events 01 and 05 it grays out the key field.
    Please let me know if there are any ways to achieve this without making modifications in the PBO or PAI of the ztable.
    Regards,
    Sridevi

    I have this exact problem, why is this thread 'closed'? Is there an answer provided somewhere?
    I have found a topic which shows an information message, which claims that the data is not saved.
    But it does save the data if you use an information message and blocks non-key fields when using an error message
    so this problem is still open for me.
    Does anybody have a solution?
    Ah an answer was indeed provided in another topic:
    Issuing an Error in Table Maintenance Event
    Edited by: Arno ter Horst on May 5, 2011 4:12 PM

  • Extended Table Maintenance Events

    Can any give me information regarding Extended Table Maintenance Events .
    Thanks,
    zia

    Hi,
    Check out these links...
    /people/sudheer.cheedella/blog/2006/02/20/extracting-data-in-table-maintenance
    maintenance view event
    check this thread also..
    Re: Maintenance View Events
    Rgds,
    Prakashsingh

  • Handling a table scroll event

    Hi experts,
    I have a table with several columns. In one column there is a small image thumbnail. After the content (JSONModel) has rendered in the table, a javascript is triggered, which searches for the thumbnails and generates on mouseover bigger preview of that image. However, if I scroll down the table, then the preview is not generated and I would like to re-run that script again. Therefore I would like to handle a table scroll event.
    How could a listener to the scroll event of a sapui5 table be handeled?
    Regards
    Stefan

    HI Stefan
    Here is an example. But it is not officially supported.
    Example
    -D

  • My problem is that my iCal won't sync from my first-generation iPad to my computer, and the computer sends events multiple times back to the iPad... which is now full of duplicate events. I'm NOT on iCloud.

    I'm just an old lady who doesn't know a lot about this stuff, but I do love my iPad and miss my portable calendar! My problem is that my iCal won't sync from my (first-generation, cheaper of the two models) iPad to my computer, and the computer sends events multiple times back to the iPad... which is now full of duplicate events. I'm NOT on iCloud. I've had this problem for nearly a year now. My Really Really Smart son couldn't fix it for me.

    djb53 wrote:
    Can take some time.... how much time?
    There's no simple answer to that. My calendar goes back to 2004 and is moderately busy; it took around an hour. It's possible that you've hit a slow period on the server - it happens.
    In order for it to work, your calendars should show on the MobileMe site, they should be listed under your MobileMe login name in the calendar list in iCal (calendars listed under 'On My Mac' will not sync) and your MM account details have to be entered in iCal Preferences>Accounts (this should have happened by itself).
    If it's not working please see the page I linked to.

Maybe you are looking for

  • Editing website from new Mac book pro

    I have a website that was created using iWeb  on my husband's Mac. I now have my own Mac book pro and would like to edit the website from my own computer.

  • F.59 report

    Hi, I am executing F.59 report for GL accounts , iam getting a list of GL accounts items balances  not equal to masters balances. I checked the balaces in FBL3N and FS10N showing the same blance (Masters balance in the report) what could be the reaso

  • Excise Value change during Part 1 and 2

    Dear SAP Gurus, 1.)Requirement is that material store person should not interfere in the excise transaction not even in part-1, but the doubt is  as per my knowledge part -1 can only be done before the GR or during the GR (along with GR). and client

  • No bill via email

    Why didn't I get last month's bill via email?  Just got one saying I'm one month past due.  Now I have to pay $5 charge. I've had it with paperless.

  • How bad is the performance hit with RTMPT?

    In a conversation with engineers recently at a CDN it was suggested to me that streaming all video over RTMPT only was a viable solution to the barriers posed by firewalls and proxies blocking port 1935.  They indicated that they had seen no signifig