OnClick Event on Standard Report/Tabular Form Row

Hi All
We have complex requirements and would need your help here.In the Application( referred below on OTN), we need the following:
Whenever User clicks anywhere on any row, the values in the Disabled Text fields(or we may chnage to disabled Text Areas if required) in the region at the bottom should come from the corresponding columns of the Row clicked. e.g. When User clicks anywhere on the row with Empid as 1, the disabled text fields should show Empname as "Ravijeet" and Departmentname as "Coprorate Application".
Application Reference:
URL: [http://apex.oracle.com/pls/otn/f?p=12190:3]
workspace: VCS
Userid: *************
password: ***************
Please let us know.
Regards
Ravijeet
Edited by: Ravijeet on Jan 26, 2009 10:02 AM

Hi Andy,
Thanks again as usual for your valuable time and inputs, this too worked perfectly fine as usual :-)
One thing I missed Yesterday :
1) a) In all cases when ever the Page loads (or refreshes based on filter) the display items P3_EMPNAME
& P3_DEPARTMENTNAME in the last bottom Region would have Values as per the First row of the Tabular
Form, which we achieved yesterday.
But in case we do 'SUBMIT' the page via "Submit" button to change value of salary field, the display items P3_EMPNAME & P3_DEPARTMENTNAME should have value as per the last row clicked i.e. in which salary value was changed.
b) I am supposed to Focus the cursor by default on the salary field, which i tried to do using your reply
on other thread : Tabular form - initially position the cursor on a given field
Since we would not have to add any Row in tabular form so I removed the inner 'If' condition to setfocus always on first row's corresponding column (I saw certain problem in using arrow left and arrow right key,but this is minor problem).
Extra requirement is that in case some other Row's Salary field has been changed and "submit" button is pressed then cursor should focus on the salary field of that row after submit.
(like Displayed items in last region should be of row canged in case a above).
We have few other really complex Requirements and have updated corresponding old threads on OTN (still open) :
1) In the Tabular Form Users want to navigate in the "salary" field of our tabular form,
use the Keyboard Keys "Arrow Up" or "Enter" to go to the salary field of the previous Row and "Arrow Down"
to go to the salary field of the Next Row.
Came across this thread, but could not get the complete code since would have to download complete ApexLib Framework:
screen (behavior expected/required): http://apex.oracle.com/pls/otn/f?p=33231:52:4145765023028237::NO:::
Thread: Use navigation keys in tabular form
2) Scrollable Region with Constant Header would be also required, since in our case Tabular form would always have
number of records more than can be displayed on one window screen.
First I tried doing by putting in Tabular Report's Regions's Header: <div style="height:100px;overflow-y:scroll;">
and footer : </div>
This is the only change I did to our application on OTN, not to disturb it :-)
As you see that as we drag the scroll bar below, column headers get hidden as they also move up.Requirement is to keep it constant.
Went through the following thread discusses by so many People , but there is still no solution workable for all Browsers: How to implement fixed column headers
Applied the solution provided for all browsers as per the thread,Column headers get really distorted.
Users & I Prefer to have Scrollable region rather then having Pagination links (Noticed yesterday
on my local application that in case we put pagination link our Java script to hide the extra columns in tabular report
like 'XXX' OR 'Department Name' fails,which we grab to display in last region's displayed items, become visible).
I know its more than enough questions on this thread. The thread is well answered by You with
multiple correct solutions as per my all questions till now, but users Requirement Need all of these.
I also know that if these are possible in APEX ,You would have the best idea.
Have also updated the other threads ,mentioned above.
Please suggest, if these would be possible?
Many Thanks again as usual for all your valuable time and solutions provided.
Regards
Ravijeet

Similar Messages

  • Popup window for tabular form row edition

    To edit existing or new rows in a tabular form (page 1), I would like to open a popup window (page 2) with fields mirroring original tabular form fields. So, some basic data can be viewed/typed in the tabular form and the whole of the record data are viewed/typed on a separate popup form.
    On opening popup, I pass a tabular form's current line number (filled with up to three zeros on the left).
    When the user clicks on OK button on popup page, data will be put to the corresponding tabular form row. That should allow me to get /set tab form data from popup using following syntax:
    opener.document.getElementById('f04_' + line).value
    However, when I call data-initialization javascript function on onload of the popup form, popup fields to be filled are not rendered yet. At which point (and how) could I call this javascript initialization function?
    Another question. With Firebug Inspector, I see that right in front of each tab form data tag, there is a "label" tag with the name of the column as it was defined in report attributes. As long as I have a information, opener.document.getElementById, what HTML/Javascript syntax should I use to get to this label tag?
    Igor

    OK, the first part of question is OK now. Simply, I was putting a javascript code calling my initialization predure in the HTML Body Attribute section of the page, instead of simply writing there: onload="initFunction();"
    The second one stands still: once I have a tabular form's element id like f20_0003, how can I get to the symbolic name, e.g., "FIRST_NAME", that is in the label tag in the same table cell?

  • How to avoid submitting a page when tabular form rows are empty

    Hi,
    I have a master detail form in my application. There are 2 tables that are used Table A and Table B. Table A contains Ticket number and Table B refers to Table A through a foriegn key and Table B have columns like Date,Name, Age, ticket_id (that refers to the ticket_number of the Table A).
    This is how the application works:
    In a page there is a field for Ticket Number, once the user enters the Ticket Number and click Add Details, a tabular Form with 5 empty field appears... (Done through Page Process->Data Manipilation->Add Rows)
    This form contains fields Date, Name and Age. Once the user fills in all the details and click Submit button, the page is submitted. Whatever values that was entered is saved in Table B. Page Sucess message appears. This works fine.
    But once the Ticket Number is entered and Add Details is clicked, and without entering the values in the Tabular Form, if Submit button is clicked, there is no error showing up neither I see Page success message. But this should not be allowed. There should be some error showing up...
    Tabular Form Validations works only when user enters some values in the Tabular Form and click Submit. For the above scenario, where the form is untouched the validation doesnt work.
    How can I get this done? Any ideas?

    Hello Suzi,
    >> if (document.wwv_flow==null)
    The document.wwv_flow is an object representing the current form that was just rendered on your screen. As such, it can never be null.
    >> How to avoid submitting a page when tabular form rows are empty
    The correct way, especially for versions prior to APEX 4.0 is to use JavaScript, but for that, you need to know and understand how APEX generates your tabular form, HTML wise.
    To be very brief, APEX attached a unique ID to every updatable cell in the tabular form, using a certain pattern – each updatable column is getting a unique name (e.g. ‘f01’,’f02’ etc.) and the ID of a cell is a combination of this name with the serial row number the cell is on. For example, a cell on the third row in an updatable column called ‘f04’ will be given an ID of f04_0003. (More detailed explanation, with an example, can be found in my book).
    What you should do is to check these cells according to your validation policy (e.g. is all five row must be filled, is all the columns in a specific row must be filled, etc.).
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • Catch the onClick event on Interactive Report to access columns content

    Hi,
    I am using Apex 4
    I would like to display some rows into an interactive report. I have define a dynamic action on that report in order to catch the Mouse OnClick Event.
    The Goal is to display the detail of the row in a form region in the sidebar.
    To do this, I would like to get the content of a column of the row clicked and then execute a pl/sql block to get the detail of my row.
    I am stuck to get the content of the column I have clicked within the dynamic action to pass it to execute the pl/sql block.
    Any idee?
    Many thanks
    jko
    Edited by: user617942 on 29-Jul-2010 04:19

    Hello,
    Did I ask something stupid :-)
    Jko
    Edited by: user617942 on 29-Jul-2010 04:19
    Edited by: user617942 on 29-Jul-2010 08:34

  • Need customized query on updateable report (tabular form)

    I have a pl/sql function that returns a SELECT statement based on very flexible query specifications allowed in a form. (Form has a field for each table column, allows operations like <,>,between, etc, that can be entered directly into the field; all fields need not have some sort of query constraint specified. Essentially the same sort of query flexibility you get in Forms... ) The select always returns the same number of columns. Query results are returned on a different page (either report or tabular form) than that used to enter the query specs.
    The function works beautifully on a page type of Report.
    However, when I take a Tabular Form and switch its query source to PL/SQL function body returns SQL select, the page type becomes Report. The query works on this modified page (returns correct rows), and the columns are still editable (can be typed into) but the changes can't be submitted because the page is no longer a tabular form -- Error is: No updateable report found. Multi row updated and delete operations can only be performed on tabular forms of type 'Updateable Report'.
    How can I have flexible query specs paired w/ an updateable report? Does this require writing my own multi-row DML processes? Or is there a simpler way?
    Thanks,
    Carol

    I have a pl/sql function that returns a SELECT statement based on very flexible query specifications allowed in a form. (Form has a field for each table column, allows operations like <,>,between, etc, that can be entered directly into the field; all fields need not have some sort of query constraint specified. Essentially the same sort of query flexibility you get in Forms... ) The select always returns the same number of columns. Query results are returned on a different page (either report or tabular form) than that used to enter the query specs.
    The function works beautifully on a page type of Report.
    However, when I take a Tabular Form and switch its query source to PL/SQL function body returns SQL select, the page type becomes Report. The query works on this modified page (returns correct rows), and the columns are still editable (can be typed into) but the changes can't be submitted because the page is no longer a tabular form -- Error is: No updateable report found. Multi row updated and delete operations can only be performed on tabular forms of type 'Updateable Report'.
    How can I have flexible query specs paired w/ an updateable report? Does this require writing my own multi-row DML processes? Or is there a simpler way?
    Thanks,
    Carol

  • How to capture number of tabular form rows in javascript

    Greetings All -
    I have a tabular form that I created manually.
    I am looking for a way in javascript to capture the number of rows that are displayed on the page.
    Is this possible?
    Regards,
    Mark

    Bill -
    Thank you for the reply.
    I had thought of your suggestion but I was unsure where I could execute the apex_application.g_fxx.count command without submitting the page.
    I cannot do this on a submit, because I need to now the number of rows displayed in order to do a calculation while entering a row on a manually created tabular form
    Suggestions appreciated
    Regards,
    Mark

  • Is there a way to open page with a new Tabular Form row?

    Hi All,
    I have a (non-manual) Tabular Form that works great. My requirement is to have the new page to open with a new row already added.
    I tried      onLoad="onLoadProcess()";
         <script language="JavaScript" type="text/javascript">
         function onLoadProcess(){
         doSubmit('ADD');
         </script>
    but it hits every onload so it loops, each submit causing another submit.
    Anyway of getting the rowcount in the tabular form without making a manual one?
    Thanks, Bill

    Bill,
    Here's a short (hah!) example of how to do it with a manual form. No idea of how hard it may be to convert to a wizard form.
    select
    x.PERSON_ID,
    x.ck ck,
    x.PERSON_ROLE,
    x.del
    from (
    SELECT
    apex_item.select_list_from_lov(1,person_id,'PEOPLE') PERSON_ID,
    apex_item.hidden(2,issue_id)||
    apex_item.hidden(3,wwv_flow_item.md5(person_id,issue_id,person_role)) ck,
    apex_item.select_list_from_lov(4,person_role,'ROLES') PERSON_ROLE,
    apex_item.checkbox(5,person_id||issue_id) del
    FROM HT_ASSIGNMENTS
    WHERE ISSUE_ID = :P7_ISSUE_ID
    union all
    select apex_item.select_list_from_lov(1,NULL,'PEOPLE') PERSON_ID,
    apex_item.hidden(2,to_number(:P7_ISSUE_ID))||
    apex_item.hidden(3,null) ck,
    apex_item.select_list_from_lov(4,NULL,'ROLES') PERSON_ROLE,
    apex_item.checkbox(5,null) del
    from dual) x
    Bill Ferguson
    Message was edited by:
    wbfergus

  • Tabular form row order out of sync when using apex_item.popup_from_query

    Hi
    I have a tabular form that contains a apex_item.popup_from_query column, the query itself has an order by clause and I believe this is the reason why selecting from the popup column results in the wrong row being updated.
    I refer to a previous post where Scott Spendolini acknowledges the absence of any workaround for this, does anyone know of one now given that that was a few years ago?
    I kind of need to find a workaround for this ASAP or else I will have to redesign the whole page and abandon the tabular form, I'd be really grateful for any help here
    Thanks

    I experienced the same problem before and there is definitelly a bug. However, I didn't know about this difference. This explains some doubts I had. Thanks for pointing that out. Hopefully, this is going to get better in 4.0.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Row Selector - How to set onclick event handler?

    I have a master-detail set of forms and would like to respond to the onclick event of the row selector. When I go to the column attributes of the row selector I don't see anywhere to set the onclick event.
    The other tabular form elements have an "Element Attributes" field that I normally use, but the row selector does not. Am I simply missing something?
    I'm open to alternatives as well. The reality is, however, I don't need anything complicated or sophisticated. When the user clicks the box I gather some data from the current row and initiate an AJAX call. I don't need to submit the page, etc.
    Thanks,
    Brent

    I think that the only way to do that is to use the apex_item package like this:
    http://htmldb.oracle.com/pls/otn/f?p=31517:170
    The standard row selector doesn't have an option for attaching javascript code to it.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Passing Session Values to the Tabular Form Element of a Report Column

    Hello,
    I'm running application express version 2.0 with a 10.2.0.2.0 database on a 32 bit windows box. I'm trying to figure out sneaky a way to pass the &APP_PAGE_ID., #APP_PAGE_ID# or V('APP_PAGE_ID'); as an element attribute of a Report Tabular Form Element set to display as a Select List (named LOV).
    It seems that whatever option I choose, the Element Attributes field will only render the literal value of what I have entered. This is part of the solution but I would like to find a way to pass the current page id.
    What I'm trying to do is utilize the ONCHANGE attribute to redirect to a report page in my application when the value from a Select List (named LOV) is selected.
    I could work around this by creating my own table output with PL/SQL and HTP.P commands but would really be interested in finding out if I can use the reporting structures which are already available through Application Express.
    Any ideas?
    Thanks.
    Justin.

    Thanks for the response Earl. To clarify this is what I've done and what I hope to achieve:
    I currently have a LOV for my application that identifies a number of database report types: DB Options, DB Parameters, DB Version, and so on.
    I have an application express report being generated for the databases I'm monitoring and it displays as follows:
    - HOST -- DBTYPE -------- DBNAME - DBREPORTS
    =====================================
    - SVR 1 - Oracle 9.2.0.1 - DEV -------- [LOV HERE]
    - SVR 2 - Oracle 9.2.0.7 - TST --------- [LOV HERE]
    I am displaying the LOV on my report the the options under the reports attribute tab in my application builder. I insert my LOV select list by editing the DBREPORTS column and set the "Display As:" option under Tabular Form Element to "Select List (named LOV)"; I have also added my LOV to the "Named LOV" option under List of Values.
    So far this achieves everything I would expect and works quite well (a select list with my report types appears in my monitor report for each DB that is returned).
    What I'm interested in doing now is opening a DBREPORT for a given database by simply choosing the report type from my LOV. I can set the "Element Attributes" option under Tabular Form Element to execute a javascript call for any valid event (in my case I'm using ONCHANGE).
    My only issue is that I cannot find a way to pass any session values from my page to my Element Attribute. If, in the Element Attributes field I enter:
    onchange="alert(this.value);" //my dialogue box will display the value of my current selection when I choose a report type.
    What I'd love to be able to do is something like:
    onchange="alert('&APP_PAGE_ID.');" //so my current page id is written to the element.
    Unfortunately, only my literal text seems to be rendered. Rather than having my dialogue come back with my page number, say 75, I receive the literal value &APP_PAGE_ID.
    Notwithstanding any quote issues, I've tried to dump a test html attribute to my source html by entering any of the following in the Element Attributes field:
    test=&APP_PAGE_ID.
    test=#APP_PAGE_ID#
    and as a shot in the dark knowing that I'm not using PL/SQL:
    test=V('APP_PAGE_ID');
    In every case when I view source I see the literal value of what was entered in the Element Attributes field (ie "test=&APP_PAGE_ID." instead of "test=75").
    What makes things a little more frustrating is that I can drop &APP_PAGE_ID. into the Column Heading field (ex My Heading &APP_PAGE_ID.), it renders as I would expect; "My Heading 75". If we could find a solution to this, I could see a number of slick uses for this type of functionality.
    Hope this helps,
    Thanks.
    Justin.

  • Get item value of hidden item in java script on standard report

    I've a report with following query:
    select "ROWID",
    "GTEMPDETAILID",
    "GTEMPID",
    "NORMTEXT",
    "ITEMTYP",
    "ITEM",
    "BEMERKUNG"
    from "#OWNER#"."ALAVIS_GTEMPDETAILS"
    Item GTEMPDETAILID is hidden (set in column attributes).
    I defined an onclick event in the report template to set the value of GTEMPDETAILID into a Page item. This works, if the GTEMPDETAILID is not hidden. But how can I get the value of an hidden item in javascript?

    I am guessing this hidden value is not a protected item because youre manipulating the value. How about setting is a textfield but inside the "HTML form element" property, specify style="display:none;" or you can nest <script type="text/javascript">$x_Hide("ID_OF_TEXTFIELD");</script> in the page somewhere...
    Question, have you tried using $x_Value('ID_OF_ITEM','VALUE_OF_ITEM') ? this is APEX javascript API
    you can also use $x('ID_OF_ITEM') to retrieve DOM object, or $v('ID_OF_ITEM); to retrieve item values.
    Let me know if you need additional assistance.
    Edited by: srbonham1 on Jul 27, 2012 4:31 PM

  • Events in Interactive reports

    hi gurus,
    i want detailed explanation each n every event of standard report...
    Regards
    baskar

    HI
    <b>INITIALIZATION</b>
    This event keyword defines an event block whose event is triggered by the ABAP runtime environment during the flow of an executable program, directly after LOAD-OF-PROGRAM and before the selection screen processing of any existing standard selection screen. This gives you the one-time opportunity to initialize the input fields of the selection screen, including those defined in the logical database linked with the program.
    When an executable program defines a standard selection screen, it is called again by the ABAP runtime environment after execution, which triggers the INITIALIZATION event again. In this case, initializing parameters or selection criteria of the selection screen has no effect, because they are automatically supplied with the preceding user inputs from the selection screen during the selection screen event AT SELECTION-SCREEN OUTPUT. To explicitly initialize the selection screen for each call, you must use the event AT SELECTION-SCREEN OUTPUT.
    <b>START-OF-SELECTION</b>
    This event keyword defines an event block whose event is triggered by the ABAP runtime environment when calling the executable program selection screen processing of a selection screen.
    In an executable program, all statements that are not declarations, and are listed before the first explicit processing block, are assigned to this event block. If the program does not contain an explicitly defined event block START-OF-SELECTION, these statements form the complete event block START-OF-SELECTION. If a program contains an explicitly defined event block START-OF-SELECTION, these statements are added to the beginning of the event block. If the program contains no explicitly defined event blocks, these statements form the entire event block START-OF-SELECTION.
    If the program is linked to a logical database, preparations can be made here before the logical database reads data. If the program is not linked to a logical database, this event block even displays a "main program" from which procedures or screen layouts are called.
    <b>GET node</b>
    Use GET to handle two types of events after submitting executable programs: Get events and events at the end of a hierarchy level of a logical database. If during a GET event a list is written, previously an automatic line feed is created.
    The event blocks after GET are implemented internally as procedures. Declarative statements in GET event blocks create local data.
    <b>END-OF-SELECTION</b>
    This statement defines an event block, whose event is raised by the ABAP-runtime environment during the calling of an executable program , if the logical database, with which the program is linked, has completely finished its work.
    In this event block, all data read by the logical data base , can be processed summarically. In an executable program without logical data base, there is no need to implement the event block END-OF-SELECTION.
    <b>LOAD-OF-PROGRAM</b>
    This event keyword defines an event block whose event is triggered by the ABAP-runtime environment when an executable program, a module pool, a function group or a sub-routine pool is loaded in the internal session.
    When calling a program through SUBMIT or through a transaction code, then, at every call, a new internal session is opened and the event block is executed once at every call. You can initialize global data objects of the program here.
    At the first call of an external Procedure (sub-program or function module), the framework program of the called procedure is loaded into the internal session of the caller, thus triggering the event LOAD-OF-PROGRAM. The event block is executed before the called procedure. At any further call of a procedure of the same framework program by a caller of the same internal session, the event LOAD-OF-PROGRAM is triggered no longer.
    The event LOAD-Of-PROGRAM should mainly be used to initialize global data when calling external procedures or Transactions. If you call executable programs with SUBMIT, we recommend that you use the event INITIALIZATION, as the Starting values for parameter and selection criteria are set after LOAD-OF-PROGRAM (see program flow after SUBMIT).
    <b>AT SELECTION-SCREEN</b>
    AT SELECTION-SCREEN selscreen_event.
    This statement defines event blocks for different events selscreen_event that are triggered by the ABAP runtime environment during selection screen processing.
    Selection screen events occur immediately before sending a selection screen and after certain user actions on a displayed selection screen. They assist in selection screen processing in the ABAP program.
    AT SELECTION-SCREEN is triggered at least twice during actions on selection screens that are linked into another selection screen as a subscreen - first for the linked selection screen itself, and then for the linking selection screens.
    The event blocks after AT SELECTION-SCREEN are implemented internally as procedures. Declarative statments in these event blocks create local data.
    <b>AT SELECTION-SCREEN OUTPUT</b> 
    This event is triggered at the screen event PBO of a selection screen. In the event block, the selection screen can be prepared through assignments to the data objects of parameters and selection criteria and through dynamic screen modifications.
    The assignments to input fields in the event block AT SELECTION-SCREEN OUTPUT always affect the selection screen and overwrite the user inputs from previous displays of the same selection screen. Assignments in the event blocks LOAD-OF-PROGRAM oder INITIALIZATION, on the other hand, only have an effect at first program start.
    <b>AT SELECTION-SCREEN ON {para|selcrit}</b>
    This event is triggered at the screen event PAI of a selection screen if the content of the input field of a parameter para or a line of a selection criterion selcrit was passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or an error message in the event block makes the fields para and selcrit ready for input again.
    No parameter that is defined as a radio button can be specified. For this purpose, the addition ON RADIOBUTTON GROUP is provided.
    If a user action takes place in the dialog box for the multiple selection of a selection criterion selcrit, the entries of the selection table are passed to the program, line by line. For each line, the event AT SELECTION-SCREEN ON selcrit is triggered.
    <b>AT SELECTION-SCREEN ON END OF selcrit</b>
    This event is triggered after the selection table selcrit has been fully passed to the program after a user action in the dialog box for the multiple selection has taken place. In the event block, the entire selection table can be checked.
    <b>AT SELECTION-SCREEN ON BLOCK block</b>
    This event is triggered at the screen event PAI of a selection screen if all the input fields of a block block of the selection screen were passed to the ABAP program. In the event block, the user inputs can be checked. Sending a warning or an error message in the event block makes all the fields of the block block ready for input again.
    <b>AT SELECTION-SCREEN ON RADIOBUTTON GROUP radi</b>
    This event is triggered at the screen event PAI of a selection screen if all the fields of a radio button group radi of the selection screen were passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or error message in the event block makes all the radion buttons of the block radi ready for input again.
    The individual fields of a radio button group are not passed individually and do not trigger the event AT SELECTION-SCREEN ON par.
    <b>AT SELECTION-SCREEN { ON { HELP-REQUEST | VALUE-REQUEST } FOR
        {para|selcrit-low|selcrit-high} }</b>
    The two events ON HELP-REQUEST and ON VALUE-REQUEST are triggered at the screen events POH and POV of a selection screen if - for the input field of a parameter para or one of the input fields of a selection criterion selcrit - the field help F1 or the input help F4 was called. Other selection events are not triggered.
    In the event blocks, a self-defined field or input field can be programmed, which overrides any helps possibly defined in the ABAP Dictionary.
    These event blocks can only be implemented for fields of the selection screen that are defined in the same ABAP program and not in a possibly linked logical database.
    With the events for the field and input help, no data is transported between the selection screen and the ABAP program. As with general screens, suitable function modules must be used for these. The parameters and selection criteria changed for the input help are transported to the selection screen.
    <b>AT LINE-SELECTION</b>
    This statement defines an event block whose event is triggered by the ABAP runtime environment during the display of a screen list - provided the scren cursor is on a list line and you select a function using the function code PICK. Through the definition of this event block, the standard list status is automatically enhanced in such a way that the function code F2 and, with it, the double-click mouse function is linked up to the function code PICK.
    If the function key F2 is linked with a function code different than PICK, each double click will trigger its even, usually AT USER-COMMAND, and not AT LINE-SELECTION.
    <b>AT USER-COMMAND</b>
    This statement defines an event block whose event is triggered by the ABAP runtime environment if, during the display of a screen list, a function with a self-defined function code was chosen.
    Self-defined function codes are all those that include character combinations, except for the following:
    The function codes PICK and PF## ("##" stands for 01 to 24) do not cause the event AT USER-COMMAND, but the events AT LINE-SELECTION and AT PF##.
    All function codes that start with the character "%" are interpreted as system functions and do not cause the event AT USER-COMMAND. The system functions for lists are listed in the following table 1.
    The function codes in the following table 2, likewise, do not cause the event AT USER-COMMAND, but are handled by the list processor.
    <b>AT PF##</b>
    This statemet defines an event block whose event is triggered by the ABAP runtime environment during list display - provided the screen cursor is on a list line and a function is selected using the function code PF##. Here ## stands for a number between 01 and 24. In the= standard list status, these function codes are assigned to the function keys of the input device.
    Instead of AT PF## , AT USER-COMMAND should always be used and special function codes should be assigned to the required function keys.
    <b>TOP-OF-PAGE</b>
    Effect
    This statement defines an event block whose event is triggered by the ABAP runtime environment during the creation of a list. This occurs when a new page is started - that is, immediately before the first line in a new page is to be output. All list outputs that take place in the event block are placed below the standard page header of the list. You cannot output more lines than are available in the page within the event block. The NEW-PAGE statement is ignored within this event block.
    The entire output written to the list in the event block belongs to the page header of the current list page. The top page header cannot be moved when you scroll vertically in a list displayed on the screen.
    <b>TOP-OF-PAGE DURING LINE-SELECTION</b>
    If you do not use an addition, an event block is triggered for event TOP-OF-PAGE during the creation of a basic list. If you use the addition DURING LINE-SELECTION, an event block is triggered for the corresponding events during the creation of details lists. You have to use system fields like sy-lsind to distinguish between the individual details lists.
    <b>END-OF-PAGE</b>
    This statement defines an event block that is raised by the ABAP-runtime during creation of a basic list, if there is a line reservation in the addition LINE-COUNT of the initiating statement for a page footer, which was reached while writing to this page. A list output that takes place in the event block, is placed in this area. Output statements that exceed the reserved area will be ignored.
    <b>Reward if usefull</b>

  • Multiple select lists in tabular form

    Hi,
    I created a tabular form with two select lists (Queries are same for both the select list and results around 300 records in the SQL).
    I am getting the following error:
    report error:
    ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    If I changed Select list to POP list, I am not getting error.
    Please suggest how to user select list in this case.
    Regards,
    Meda

    LnTInfotech wrote:
    I created a tabular form with two select lists (Queries are same for both the select list and results around 300 records in the SQL).
    I am getting the following error:
    report error:
    ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    If I changed Select list to POP list, I am not getting error.
    Please suggest how to user select list in this case.It is not possible. There is a 32K limit on the HTML generated for select list items. (As a type of report, tabular forms are also subject to the 32K limit on the size of a report row.)
    In terms of usability 200 options is about the maximum size I would consider sensible for a select list ( and for select lists in tabular forms, much, much fewer!)
    Use Popup Key LOVs.

  • Failed validation highlights entire column in tabular form

    Hi,
    I have a tabular form where one of the field is a date field. I need to ensure that that the date selected or entered falls in the correct range of another page item P6_WEEK_ENDING. Here is my code.
    DECLARE
         last_week_fri      DATE;
         this_week_fri     DATE;
         in_range NUMBER:=1;
         ret_bool BOOLEAN := TRUE;
    BEGIN
         -- Get current end of week ID
         this_week_fri:= CONVERTDATE2(:P6_WEEK_ENDING);
         SELECT CONVERTDATE2(this_week_fri-7) INTO last_week_fri FROM DUAL;
         FOR i in 1..apex_application.g_f03.count LOOP
              IF apex_application.g_f03(i) IS NOT NULL THEN
                   CASE
                        WHEN CONVERTDATE2(apex_application.g_f03(i)) >= CONVERTDATE2(last_week_fri) AND CONVERTDATE2(apex_application.g_f03(i)) <= CONVERTDATE2(this_week_fri) THEN
                             null;
                        ELSE
                             in_range:=0;                    
                   END CASE;
              END IF;
              if in_range != 1 THEN
                   ret_bool:= FALSE;
                   EXIT;
              END IF;          
         END LOOP;
         return ret_bool;
    END;Where
    convertdate2 takes date format and outputs date in dd-mm-yyyy format.
    apex_application.g_f03(i) is the date field.
    Now it all works well except when my validation fails, it highlights the entire column instead of highlighting the only the bad entries.
    I have my execution scope as : Created and Modified Rows, tried changing it with no luck.
    Many thank.
    Environment: APEX.4.1.1 using Sand theme

    Taepodong ,
    I assume this is a validation. When you first created the validation, you either selected a page item or tabular form. If you selected the latter, you then selected the tabular form to which the validation would apply. On the next screen, you were asked to "Identify the validation level:" I am guessing that, at that point, you selected "Tabular Form Row" rather than "Column" The former will highlight the entire row, while the latter will only highlight the column which was specified.
    -Joe

  • Set value in tabular form field with dynamic action

    Hi Guys,
    I have a dummy field in a tabular form which I am trying to use to populate another field in the tabular form when it is changed.
    In the tabular form I have an ITEM_ID field. Each item_id has an ITEM_NAME which is the dummy field as it is not a field in the database table.
    When the user enters an item name, I would like something like a dynamic action to fire, populating the ITEM_ID.
    e.g User enters part no ABC into the dummy field. When they tab out, I want the value to the item_id field on the tabular form row to be populated based on a SQL query in a similar fashion to how it can be done with dynamic actions on text items on a form.
    I am using APEX v4.0.0
    Thanks in advance
    Chris

    Hello Chris,
    Why can't you use Select List Item on tabular form, which will display all item_names and return item_ids?
    If the list is huge and you need users to type & search, then you can use Pop-up LOV item.
    Regards,
    Hari

Maybe you are looking for

  • How to get the name of the attachment in Sender Mail Adaper?

    hi mates, I've scenario a where in I need to pick up a mail with an attachment and change its extension and send it to target system using file adapter. I'm able to pick up the mail with attachment using sender mail adapter but not able to get the na

  • G4 and Aiport Express not working

    We have an existing wireless network in our house (via a Belkin router). I am trying to configure my old G4 for the wireless connection. My husband went to Apple retail store and came home with the Airport Express. He's a PC guy, so I'm hoping he cor

  • Account reflection in balance sheet

    Hello everyone, We are implementing SAP Business One 2005 PL05. We are come across a problem, we have created few more bank accounts and respective chart of accounts. Once the payment transaction is done, the amount is not reflecting in the balance s

  • FAIL ERROR 1680

    After installing Windows 8, Acrobat asks for a 'MANDATORY UPDATE' but the update fails with error 16820. How can I get the update?

  • Hard drive replaced, backup successful, now can't sync to time machine

    Hi Guys I had a failing hard drive (S.M.A.R.T. status) so I got the hard drive replaced on my apple care plan.  I had been able to successfully back-up the entire system using a WD My passport for Mac (1TB).  The tech uploaded the new Lion operating