Tableview onClientRowSelection - Extremely Urgent

Could somebody please help me on this one?
I have a tablevire with onRowSelection generating server event.
I want to add onClientRowSelection = <func> to the tableview, where <func> will be a javascript function asking a pop-up question "Yes/No" - selecting Yes would continue and generate the server event; No will cancel the server event.
I got the js function in place but somehow cannot call it using onClientRowSelection. Any idea?
Thanks.
Partho

Raja, Thanks for your reply. Please help me with some code as I am really struggling with this one.
In my controller I have defined the interface
if_htmlb_tableview_iterator
Under the method section I have defined render_row_start, render_cell_start and get_column_definition for this interface.
I've created a variable on the controller c_iterator as TYPE REF TO if_htmlb_tableview_iterator.
I pass the variable in my DO_REQUEST
  DATA: v_runreview TYPE REF TO if_bsp_page.
  v_runreview = create_view( view_name = 'zrun2.htm').
  CREATE OBJECT c_iterator TYPE zcl_run_review. "Name of controller class
  v_runreview->set_attribute( name = 'v_tviterator'         value = c_iterator ).
v_tviterator is defined as an attribute on the view as
v_tviterator TYPE REF TO if_htmlb_tableview_iterator
and used in the tableview
       <htmlb:tableView id                    = "MyTV1"
                        keyColumn             = "REVIEWNUMBER"
                        headerText            = "<%= v_pagetitle %>"
                        headerVisible         = "FALSE"
                        design                = "ALTERNATING"
                        visibleRowCount       = "3"
                        onRowSelection        = "MyEventRowSelection"
                        selectionMode         = "<%= v_selectionmode %>"
                        selectedRowIndex      = "<%= v_rowselection %>"
                        visibleFirstRow       = "<%= v_firstvisiblerow %>"
                        emptyTableText        = "No data found"
                        footerVisible         = "TRUE"
                        keepSelectedRow       = "TRUE"
                        sort                  = "SERVER"
                        filter                = "SERVER"
                        width                 = "100%"
                        table                 = "//vmodelsetup/m_reviewhead"
                        iterator              = "<%= v_tviterator %>" />
=======================
Now, with all the code in place, can you explain me where and how to implement this new class CL_HTMLB_CLIENT_ITERATOR so that we could use the page_context attribute and use the js function. If I simply try and replace the attributes's TYPE REF TO definition to this class then it doesn't work.
Your feedback will be appreciated.
Partho

Similar Messages

  • EXTREMELY URGENT: % Cost (out of Total Costs) Column in Report Painter

    Hi Gurus,
    I'm not new to Report Painter, but, am stuck at one thing.
    In report, Col 1 shows Costs by Administration (row 1), Labor (row 2), Others (row 3) and total (row 4 being formula as total of row 1, 2 & 3).
    Client wants col 2 to show % Cost of each row out of total Expenses (so totals row in this col. will have 100%)
    How to do it technically.
    Please help. It's EXTREMELY URGENT.
    I'll award points ASAP
    Regards,
    SB

    Its abit difficult to illustrate without having a screen dump, what you can do is make use of something called special cell definition. Now if you double click on the cell for column 1 of row 4 for total costs then the system identifies it as a cell Z001 which in fact will recognise a constant value of total costs , thereby you can define in Column 2 as a formula element with (X001/Z001)*100 thereby giving a value in %. Try it and see if it helps

  • TableView: OnClientRowSelection

    Hello Experts,
    i have a javascript problem.
    I want to pass the values of a selected tableview row via portal eventing to another iview.I have to use OnclientRowSelection.
    "onClientRowselection = portalFireEvent('myEvent','dataset' unknownjavascriptmethod);""
    For this i need the javascript coding to get values of the selected TableViewRow(not the index).
    Can anyonehelp me in this case?
    Regards
    Marco

    Hi Marco
       To me it doesnt seems that your problem will be solved by triggering javascript function on the event of <i><b>OnclientRowSlection</b></i>..
       As far as i Know, <b>This javascript code will be triggerd before on the client side, and without knowing the index of the selected row</b>
    You will not be able to get the values of selected TableView Row...And Index will only be availabe after triggering any server event...
    <b>We cannot get the selected index row by triggering just a client side script....</b>
    If you can elaborate your requirement a little bit and the Function of<b> portalFireEvent</b> then probably i can provide you another way of doing this...
    Regards..
    Mithlesh

  • TableView OnClientRowSelection Question

    Hi All,
    I implemented OnClientRowSelection for my tableview, however, the problem I have now is that after the javascript executes, the actual row selection does not take place.
    So, when I click on the row selection rectangle, my javascript works well, but then the processing stops and the row remains visually unselected.
    Do you know if there is a way to get around that?
    Thanks!
    Roman D.

    Hi,
    No need to use Client Row selection/triggering a JS in your case. You have an attribute: <b>p_edit_mode</b> which will be initial if that row is not initial. Using that you can display/hide the drop down list box. Try this code:
    method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START.
      CASE p_column_key.
         WHEN 'MATNR'.
          IF p_edit_mode IS NOT INITIAL.
            DATA: mat_help_row type IHTTPNVP.
            mat_help_row-NAME = '1316'     .
            mat_help_row-VALUE = '1316-LEOCITRAZINE-WM'.
            append mat_help_row to mat_help.
            mat_help_row-NAME = '1276'     .
            mat_help_row-VALUE = '1276-VALDECOXIB'.
            append mat_help_row to mat_help.
            get reference of mat_help into M_MAT_REF.
            p_replacement_bee = CL_HTMLB_DROPDOWNLISTBOX=>FACTORY(
                                  id                =  p_cell_id
                                  selection         = m_row_ref->MATNR
                                  table             = me->m_mat_ref
                                  nameOfKeyColumn   = 'NAME'
                                  nameOfValueColumn = 'VALUE'  ).
      ENDIF.
    ENDCASE.
    endmethod.
    Hope this helps,
    Regards,
    Ravikiran.

  • Clear TableView Selected rows - Urgent

    Hi All,
    I have a stateful BSP application. I have a tableview in that applications. I have the multiselect option in that table. Is there any way to clear the previous selected rows of the table. The table is getting new data without any problems but the previously selected line remain on the table Would appreciate if anyone could help me out as it is Urgent !!
    Best Regards,
    Sudhi

    Hi Sudhi,
    You can follow up using this sample code. Here you can set a flag variable which is updated in onInputProcessing event.
    Layout:
    <htmlb:form>
         <%
            if flag is initial.
          %>
          <htmlb:tableView id              = "tab1"
                           table           = "<%= itab %>"
                           visibleRowCount = "8"
                           design          = "ALTERNATING"
                           footerVisible   = "TRUE"
                           selectionMode   = "multiSelect"
                           keepSelectedRow = "true" >
          </htmlb:tableView>
          <%
            endif.
          %>
          <%
            if flag eq 1.
          %>
          <htmlb:tableView id              = "tab2"
                           table           = "<%= itab %>"
                           visibleRowCount = "8"
                           design          = "ALTERNATING"
                           footerVisible   = "TRUE"
                           selectionMode   = "multiSelect"
                           keepSelectedRow = "true" >
          </htmlb:tableView>
          <%
            clear flag.
          %>
          <%
            endif.
          %>
          <htmlb:button id      = "but01"
                        text    = "Click"
                        onClick = "myEvent" />
        </htmlb:form>
    OnInputProcessing:
    DATA: tv TYPE REF TO cl_htmlb_tableview.
    DATA: event TYPE REF TO cl_htmlb_event.
    event = cl_htmlb_manager=>get_event( runtime->server->request ).
    IF event->id = 'but01' AND event->event_type = 'click'.
      tv ?= cl_htmlb_manager=>get_data(
                      request      = runtime->server->request
                      name         = 'tableView'
                      id           = 'tab1' ).
      IF tv IS NOT INITIAL.
        DATA: tv_data TYPE REF TO cl_htmlb_event_tableview.
        tv_data = tv->data.
        DATA : itab2 TYPE TABLE OF selectedrow,
             ind TYPE selectedrow,
             row_s TYPE zdi_so.
        CALL METHOD tv_data->get_rows_selected
          RECEIVING
            selected_rows = itab2.
      ENDIF.
      IF itab2 IS NOT INITIAL.
        DATA :rw LIKE LINE OF itab.
        LOOP AT itab2 INTO ind.
               flag = '1'.
          DELETE itab INDEX ind-index.
        ENDLOOP.
      ENDIF.
    ENDIF.
    Hope this helps,
    Regards,
    Ravikiran.
    Message was edited by: Ravikiran C

  • I need help -extremely urgent!

    Hi there
    i have an assignment to submit in one month and i'm stuck using Java on my personal computer. I installed the lastest version 1.5 and when working with Textpad and compiling the code it leaves me with the following message:
    Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
    has value '1.5', but '1.3' is required.
    Error: could not find java.dll
    Error: could not find Java 2 Runtime Environment.
    Tool completed with exit code 2
    Please can someone help me out i'm really frustrated and lost. Thanx

    1) subject says "urgent" - STRIKE ONE
    2) message starts, "I have an asignment" - STRIKE TWO
    3) message states further, "I'm stuck using Java" - STRIKE THREE
    Mind you, I'd help you if I knew the answer, but unfortunately I don't. But as an FYI, a lot of potential helpers jusy went out the window with you 3 strikes mentioned above.
    Good luck.

  • Extremely Urgent : Transport of KM Content through ICE Protocol

    Hello Friends,
    This is really urgent.
    I have been transporting XML content in KM folders through ICE protocol.
    But of late the problem is that I am able to download the KM foledrs in .zip format in my Desktop but of late when I am trying to upload it in the TEST Server through Content Exchange it gives me a Page cannot be dispalyed error in the Content Exchange Window.
    Please help me out. Initially I had problems in downloading contents but now there is problem with uploading.
    I need to transport the KM contents to TEST and PRODUCTION servers immediately. If there are any other methods of doing the same do tell me.
    Wating for ur reply.
    Sweta.

    Hi sweta,
    u cn refer to these links....its useful to u........
    How to Export KM Contents by ICE protocol using Offline Channel :
    How to Export KM Contents by ICE protocol using Offline Channel
    How To…Distribute KM content using the ICE protocol(both online & offline scenario):
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/38effdbf-0d01-0010-c3ad-9d9547a492af
    Getting started with ICE:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0883c3b-ca84-2910-c0ad-80f8e8756275
    Regards
    Bhargava
    award if it helps

  • Organization Management Interview Questions and Answers  Extremely Urgent

    Hi,
    Please let me know Organization Management Interview Questions and Answers. MOST MOST URGENT
    Please do not post Link or website name and detail response will be highly appreciated.
    Very Respectfully,
    Sameer.
    SAP HR .

    Hi there,
    Pl. find herewith the answers of the questions posted on the forum.
    1. What are plan versions used for?
    Ans : Plan versions are scenarios in which you can create organizational plans.
    •     In the plan version which you have flagged as the active plan version, you create your current valid organizational plan. This is also the integration plan version which will be used if integration with Personnel Administration is active.
    •     You use additional plan versions to create additional organizational plans as planning scenarios.
    As a rule, a plan version contains one organizational structure, that is, one root organizational unit. It is, however, possible to create more than one root organizational unit, that is more than one organizational structure in a plan version.
    For more information on creating plan versions, see the Implementation Guide (IMG), under Personnel Management &#61614; Global Settings in Personnel Management &#61614; Plan Version Maintenance.
    2. What are the basic object types?
    Ans. An organization object type has an attribute that refers to an object of the organization management (position, job, user, and so on). The organization object type is linked to a business object type.
    Example
    The business object type BUS1001 (material) has the organization object type T024L (laboratory) as the attribute that on the other hand has an object of the organization management as the attribute. Thus, a specific material is linked with particular employees using an assigned laboratory.
    3. What is the difference between a job and a position?
    Ans. Job is not a concrete, it is General holding various task to perform which is generic.(Eg: Manager, General Manager, Executive).
    Positions are related to persons and Position is concrete and specific which are occupied by Persons. (Eg: Manager - HR, GM – HR, Executive - HR).
    4. What is the difference between an organizational unit and a work centre?
    Ans. Work Centre : A work center is an organizational unit that represents a suitably-equipped zone where assigned operations can be performed. A zone is a physical location in a site dedicated to a specific function. 
    Organization Unit : Organizational object (object key O) used to form the basis of an organizational plan. Organizational units are functional units in an enterprise. According to how tasks are divided up within an enterprise, these can be departments, groups or project teams, for example.
    Organizational units differ from other units in an enterprise such as personnel areas, company codes, business areas etc. These are used to depict structures (administration or accounting) in the corresponding components.
    5. Where can you maintain relationships between objects?
    Ans. Infotype 1001 that defines the Relationships between different objects.
    There are many types of possible relationships between different objects. Each individual relationship is actually a subtype or category of the Relationships infotype.
    Certain relationships can only be assigned to certain objects. That means that when you create relationship infotype records, you must select a relationship that is suitable for the two objects involved. For example, a relationship between two organizational units might not make any sense for a work center and a job.
    6. What are the main areas of the Organization and Staffing user interfaces?
    Ans. You use the user interface in the Organization and Staffing or Organization and Staffing (Workflow) view to create, display and edit organizational plans.
    The user interface is divided into various areas, each of it which fulfills specific functions.
    Search Area
    Selection Area
    Overview Area
    Details Area
    Together, the search area and the selection area make up the Object Manager.
    7. What is Expert Mode used for?
    Ans. interface is used to create Org structure. Using Infotypes we can create Objects in Expert mode and we have to use different transactions to create various types of objects.  If the company needs to create a huge structure, we will use Simple maintenance, because it is user friendly that is it is easy to create a structure, the system automatically relationship between the objects.
    8. Can you create cost centers in Expert Mode?
    Ans. Probably not. You create cost center assignments to assign a cost center to an organizational unit, or position.
    When you create a cost center assignment, the system creates a relationship record between the organizational unit or position and the cost center. (This is relationship A/B 011.) No assignment percentage record can be entered.
    9. Can you assign people to jobs in Expert Mode?
    10. Can you use the organizational structure to create a matrix organization?
    Ans. By depicting your organizational units and the hierarchical or matrix relationships between them, you model the organizational structure of your enterprise.
    This organizational structure is the basis for the creation of an organizational plan, as every position in your enterprise is assigned to an organizational unit. This defines the reporting structure.
    11. In general structure maintenance, is it possible to represent the legal entity of organizational units?
    12. What is the Object Infotype (1000) used for?
    Ans. Infotype that determines the existence of an organizational object.
    As soon as you have created an object using this infotype, you can determine additional object characteristics and relationships to other objects using other infotypes.
    To create new objects you must:
    •     Define a validity period for the object
    •     Provide an abbreviation to represent the object
    •     Provide a brief description of the object
    The validity period you apply to the object automatically limits the validity of any infotype records you append to the object. The validity periods for appended infotype records cannot exceed that of the Object infotype.
    The abbreviation assigned to an object in the system renders it easily identifiable. It is helpful to use easily recognizable abbreviations.
    You can change abbreviations and descriptions at a later time by editing object infotype records. However, you cannot change an object’s validity period in this manner. This must be done using the Delimit function.
    You can also delete the objects you create. However, if you delete an object the system erases all record of the object from the database. You should only delete objects if they are not valid at all (for example, if you create an object accidentally)
    13. What is the Relationships Infotype (1001) used for?
    Ans. Infotype that defines the Relationships between different objects.
    You indicate that a employee or user holds a position by creating a relationship infotype record between the position and the employee or user. Relationships between various organizational units form the organizational structure in your enterprise. You identify the tasks that the holder of a position must perform by creating relationship infotype records between individual tasks and a position.
    Creating and editing relationship infotype records is an essential part of setting up information in the Organizational Management component. Without relationships, all you have are isolated pieces of information.
    You must decide the types of relationship record you require for your organizational structure.
    If you work in Infotype Maintenance, you must create relationship records manually. However, if you work in Simple Maintenance and Structural Graphics, the system creates certain relationships automatically.
    14. Which status can Infotypes in the Organizational Management component have?
    Ans. Once you have created the basic framework of your organizational plan in Simple Maintenance, you can create and maintain all infotypes allowed for individual objects in your organizational plan. These can be the basic object types of Organizational Management – organizational unit, position, work center and task. You can also maintain object types, which do not belong to Organizational Management.
    15. What is an evaluation path?
    Ans. An evaluation path describes a chain of relationships that exists between individual organizational objects in the organizational plan.
    Evaluation paths are used in connection with the definition of roles and views.
    The evaluation path O-S-P describes the relationship chain Organizational unit > Position > Employee.
    Evaluation paths are used to select other objects from one particular organizational object. The system evaluates the organizational plan along the evaluation path.
    Starting from an organizational unit, evaluation path O-S-P is used to establish all persons who belong to this organizational unit or subordinate organizational units via their positions.
    16. What is Managers Desktop used for?
    Ans. Manager's Desktop assists in the performance of administrative and organizational management tasks. In addition to functions in Personnel Management, Manager's Desktop also covers other application components like Controlling, where it supports manual planning or the information system for cost centers.
    17. Is it possible to set up new evaluation paths in Customizing?
    Ans. You can use the evaluation paths available or define your own. Before creating new evaluation paths, check the evaluation paths available as standard.
    18. Which situations require new evaluation paths?
    Ans. When using an evaluation path in a view, you should consider the following:
    Define the evaluation path in such a manner that the relationship chain always starts from a user (object type US in Organizational Management) and ends at an organizational unit, a position or a user.
    When defining the evaluation path, use the Skip indicator in order not to overload the result of the evaluation.
    19. How do you set up integration between Personnel Administration and Organizational Management?
    Ans. Integration between the Organizational Management and Personnel Administration components enables you to,
    Use data from one component in the other
    Keep data in the two components consistent
    Basically its relationship between person and position.
    Objects in the integration plan version in the Organizational Management component must also be contained in the following Personnel Administration tables:
    Tables                    Objects
    T528B and T528T     Positions
    T513S and T513     Jobs
    T527X                    Organizational units
    If integration is active and you create or delete these objects in Organizational Management transactions, the system also creates or deletes the corresponding entries automatically in the tables mentioned above. Entries that were created automatically are indicated by a "P". You cannot change or delete them manually. Entries you create manually cannot have the "P" indicator (the entry cannot be maintained manually).
    You can transfer either the long or the short texts of Organizational Management objects to the Personnel Administration tables. You do this in the Implementation Guide under Organizational Management -> Integration -> Integration with Personnel Administration -> Set Up Integration with Personnel Administration. If you change these control entries at a later date, you must also change the relevant table texts. To do that you use the report RHINTE10 (Prepare Integration (OM with PA)).
    When you activate integration for the first time, you must ensure that the Personnel Administration and the Organizational Management databases are consistent. To do this, you use the reports:
    •        RHINTE00 (Adopt organizational assignment  (PA to PD))
    •        RHINTE10 (Prepare Integration (PD to PA))
    •        RHINTE20 (Check Program Integration PA - PD)
    •        RHINTE30 (Create Batch Input Folder for Infotype 0001)
    The following table entries are also required:
    •        PLOGI PRELI in Customizing for Organizational Management (under Set Up Integration with Personnel Administration). This entry defines the standard position number.
    •        INTE in table T77FC
    •        INTE_PS, INTE_OSP, INTEBACK, INTECHEK and INTEGRAT in Customizing under Global Settings ® &#61472;Maintain Evaluation Paths.
    These table entries are included in the SAP standard system. You must not change them.
    Since integration enables you to create relationships between persons and positions (A/B 008), you may be required to include appropriate entries to control the validation of these relationships. You make the necessary settings for this check in Customizing under Global Settings ® Maintain Relationships.
    Sincerely,
    Devang Nandha
    "Together, Transform Business Process by leveraging Information Technology to Grow and Excel in Business".

  • Weird JDBC - Works only for 6 ResultSets - Extremely Urgent !!!

    Hey there ! This is seriously an urgent issue .
    I can get succesful results for only 6 columns.
    When I attempt to get another Column( anything > 6),I obtain java.lang.ArrayIndexOutOfBoundsException error.
    DB :- Oracle 8.7
    JDBC :- CLASSPATH=%JAVA_HOME%\lib\tools.jar;
    C:\Program Files\Apache Tomcat 4.0\lib\classes12.zip;
         C:\Program Files\Apache Tomcat 4.0\lib\ojdbc14_g.jar;
    C:\Program Files\Apache Tomcat 4.0\lib\ocrs12.zip;
    Please help, guru`s !!!
    Attached is my code :-
    innerRset = statement.executeQuery("SELECT HBR_TEST_END_TIME,HBR_LOT_NUMBER,HBR_TEST_HEAD,HBR_DUT_SITE, HBR_BIN1, HBR_BIN2, HBR_BIN3 FROM TRDB_HBR WHERE HBR_TEST_END_TIME =TO_DATE('" + newDate +"', 'yyyy-mm-dd HH24:mi:ss')");
              while (innerRset.next())
              String[] columnsHBR = new String[6];
              columnsHBR[0] = innerRset.getString(1);
              columnsHBR[1] = innerRset.getString(2);
         columnsHBR[2] = innerRset.getString(3);
              columnsHBR[3] = innerRset.getString(4);
              columnsHBR[4] = innerRset.getString(5);
         columnsHBR[5] = innerRset.getString(6); //Works fine till here !
              columnsHBR[6] = innerRset.getString(7);// Generates the error if I try the 7th`
              vector.add(columnsHBR);
              /* Print HBR Results */
              Enumeration enum3 = vector.elements();
              while (enum3.hasMoreElements())
              System.out.println("Printing Vector Results");
              String[] columns3 = (String[]) enum3.nextElement();
              out.println(columns3[0] + columns3[1] + columns3[2] + columns3[3] + columns3[4] + columns3[5] + "<BR>\n");
    } // close HBR

    Okay !
    The error of java.lang.ArrayIndexOutOfBoundsException is Not there anymore !
    NOW, I can print more than 7 columns of values.
    BUT, it prints only to Console.
    I try printing to browser, it does NOT display.
    Console output :-
    Printing HBR Results
    T5696810052000-09-09 04:54:00.02000-09-08 19:38:35.0VN8AS32B30May200 SC5
    04062CFNR2 T569681005 J27F<BR>
    Printing HBR Results
    T5696810052000-09-09 10:37:49.02000-09-09 10:37:44.0CX8AS32B30May200 SC5
    04062CFNR2 T569681005 J27F<BR>
    Printing HBR Results
    T5696810052000-09-09 15:02:32.02000-09-09 10:37:44.0CX8AS32B30May200 SC5
    04062CFNR2 T569681005 J27F<BR>
    Printing HBR Results
    T5696810052000-09-09 15:04:09.02000-09-09 10:37:44.0CX8AS32B30May200 SC5
    04062CFNR2 T569681005 J27F<BR>
    Printing HBR Results
    Code :-
    /* Start of TRDB HBR query */
    System.out.println("I am gonna execute Query HBR");
              innerRset = statement.executeQuery("SELECT HBR_TEST_END_TIME, HBR_LOT_NUMBER, HBR_TEST_HEAD, HBR_DUT_SITE, HBR_BIN1, HBR_BIN2, HBR_BIN3 FROM TRDB_HBR WHERE HBR_TEST_END_TIME =TO_DATE('" + newDate +"', 'yyyy-mm-dd HH24:mi:ss')");
              //Query is SELECT HBR_TEST_END_TIME, HBR_LOT_NUMBER, HBR_TEST_HEAD, HBR_DUT_SITE, HBR_BIN1, HBR_BIN2, HBR_BIN3, HBR_BIN4, HBR_BIN5, HBR_BIN6, HBR_BIN7, HBR_BIN8 FROM TRDB_HBR WHERE HBR_TEST_END_TIME =TO_DATE('" + newDate +"', 'yyyy-mm-dd HH24:mi:ss')");
              while (innerRset.next())
              System.out.println("I am in innerRset of HBR");
              String[] columnsHBR = new String[13];
              columnsHBR[0] = innerRset.getString(1);
              columnsHBR[1] = innerRset.getString(2);
         columnsHBR[2] = innerRset.getString(3);
              columnsHBR[3] = innerRset.getString(4);
              columnsHBR[4] = innerRset.getString(5);
         columnsHBR[5] = innerRset.getString(6);
              columnsHBR[6] = innerRset.getString(7);
              //columnsHBR[7] = innerRset.getString(8);
              //columnsHBR[8] = innerRset.getString(9);
              //columnsHBR[9] = innerRset.getString(10);
              //columnsHBR[10] = innerRset.getString(11);
              //columnsHBR[11] = innerRset.getString(12);
              vector.add(columnsHBR);
              // Check No. of Rows in Vector
              int z = (vector).size();
              out.println("<BR>*******************************Element Position in HBR Array =" + z+"******************<BR>");
              /* Print HBR Results */
              Enumeration enum3 = vector.elements();
              while (enum3.hasMoreElements())
         System.out.println("Printing HBR Results");
              String[] columns3 = (String[]) enum3.nextElement();
         //HERE IS THE PROBLEM !!!!!!!!!!!!!!!!!!
              out.println(" HBR results are as follows :- " + columns3[0] + columns3[1] + columns3[2] + columns3[3] + columns3[4] + columns3[5] + columns3[6] +"<BR>\n");
         //PROBLEM ENDS HERE !!!!!!!!!!!!!!!!!!
              System.out.println(" I am Printing HBR Results ");
    System.out.println("Finish printing HBR Results");
    } // close HBR
    outerRset.close();
    innerRset.close();
    /* End of TRDB HBR query */

  • ResultSets works only for 6 ... Extremely  Urgent !!

    Hey there ! This is seriously an urgent issue .
    I can get succesful results for only 6 columns.
    When I attempt to get another Column( anything > 6),I obtain java.lang.ArrayIndexOutOfBoundsException error.
    Guys,I suspect its becoz of vector.
    Actually, this is my 3rd query and hence, after each query I push the ResultsSets into an array, then push into vector.
    I query 15, 5, and 12 columns respectively in my SQLs.
    Could it possibly be caused becoz I am pushing array`s of different size to the vector ?
    DB :- Oracle 8.7
    JDBC :- CLASSPATH=%JAVA_HOME%\lib\tools.jar;
    C:\Program Files\Apache Tomcat 4.0\lib\classes12.zip;
         C:\Program Files\Apache Tomcat 4.0\lib\ojdbc14_g.jar;
    C:\Program Files\Apache Tomcat 4.0\lib\ocrs12.zip;
    Please help, guru`s !!!
    Let me know , if my entire (short piece) of code it necessary !
    Attached is my code which generates the java.lang.ArrayIndexOutOfBoundsException error.:-
    innerRset = statement.executeQuery("SELECT HBR_TEST_END_TIME,HBR_LOT_NUMBER,HBR_TEST_HEAD,HBR_DUT_SITE, HBR_BIN1, HBR_BIN2, HBR_BIN3 FROM TRDB_HBR WHERE HBR_TEST_END_TIME =TO_DATE('" + newDate +"', 'yyyy-mm-dd HH24:mi:ss')");
              while (innerRset.next())
              String[] columnsHBR = new String[6];
              columnsHBR[0] = innerRset.getString(1);
              columnsHBR[1] = innerRset.getString(2);
         columnsHBR[2] = innerRset.getString(3);
              columnsHBR[3] = innerRset.getString(4);
              columnsHBR[4] = innerRset.getString(5);
         columnsHBR[5] = innerRset.getString(6); //Works fine till here !
              columnsHBR[6] = innerRset.getString(7);// Generates the error if I try the 7th`
              vector.add(columnsHBR);
              /* Print HBR Results */
              Enumeration enum3 = vector.elements();
              while (enum3.hasMoreElements())
              System.out.println("Printing Vector Results");
              String[] columns3 = (String[]) enum3.nextElement();
              out.println(columns3[0] + columns3[1] + columns3[2] + columns3[3] + columns3[4] + columns3[5] + "<BR>\n");
    } // close HBR

    Okay !
    The error of java.lang.ArrayIndexOutOfBoundsException is Not there anymore !
    NOW, I can print more than 7 columns of values.
    BUT, it prints only to Console.
    I try printing to browser, it does NOT display.
    Console output :-
    Printing HBR Results
    T5696810052000-09-09 04:54:00.02000-09-08 19:38:35.0VN8AS32B30May200 SC5
    04062CFNR2 T569681005 J27F<BR>
    Printing HBR Results
    T5696810052000-09-09 10:37:49.02000-09-09 10:37:44.0CX8AS32B30May200 SC5
    04062CFNR2 T569681005 J27F<BR>
    Printing HBR Results
    T5696810052000-09-09 15:02:32.02000-09-09 10:37:44.0CX8AS32B30May200 SC5
    04062CFNR2 T569681005 J27F<BR>
    Printing HBR Results
    T5696810052000-09-09 15:04:09.02000-09-09 10:37:44.0CX8AS32B30May200 SC5
    04062CFNR2 T569681005 J27F<BR>
    Printing HBR Results
    Code :-
    /* Start of TRDB HBR query */
    System.out.println("I am gonna execute Query HBR");
    System.out.println(" New date is " + newDate );
              innerRset = statement.executeQuery("SELECT HBR_TEST_END_TIME,HBR_LOT_NUMBER,HBR_TEST_HEAD,HBR_DUT_SITE, HBR_BIN1, HBR_BIN2, HBR_BIN3, HBR_BIN4, HBR_BIN5 FROM TRDB_HBR WHERE HBR_TEST_END_TIME =TO_DATE('" + newDate +"', 'yyyy-mm-dd HH24:mi:ss')");
              while (innerRset.next())
              System.out.println("I am in innerRset of HBR");
              String[] columnsHBR = new String[9];
              columnsHBR[0] = innerRset.getString(1);
              columnsHBR[1] = innerRset.getString(2);
         columnsHBR[2] = innerRset.getString(3);
              columnsHBR[3] = innerRset.getString(4);
              columnsHBR[4] = innerRset.getString(5);
         columnsHBR[5] = innerRset.getString(6);
              columnsHBR[6] = innerRset.getString(7);
              columnsHBR[7] = innerRset.getString(8);
              vector.add(columnsHBR);
              // Check No. of Rows in Vector
              int z = (vector).size();
              out.println("<BR>*******************************Element Position in HBR Array =" + z+"******************<BR>");
              /* Print HBR Results */
              Enumeration enum3 = vector.elements();
              while (enum3.hasMoreElements())
         System.out.println("Printing HBR Results");
              String[] columns3 = (String[]) enum3.nextElement();
         System.out.println(columns3[0] + columns3[1] + columns3[2] + columns3[3] + columns3[4] + columns3[5] + columns3[6] + columns3[7] + "<BR>\n");
         System.out.println("Gonna print HBR punye query");
    /* // Alternative print method
    for (int i=0; i < columnsHBR.length; i++)
              columnsHBR= innerRset.getString(i+1);
    System.out.println("Finish printing HBR Results");
    } // close HBR
    outerRset.close();
    innerRset.close();
    /* End of TRDB HBR query */

  • Extremely urgent concern about (potential) major privacy violation

    I opened up "Creative Cloud" in the notification area today. I never asked for that thing, but it's forced upon me. Anyway, I browsed around to see what the default settings are, and what do I notice?
    It's "syncing files" by default. And the default directory is... my user's master dir.
    I felt a cold sensation on my back. Literally. PLEASE tell me Adobe isn't fetching and archiving all my private files without having told me about it. I'm 99.99% sure that this is NOT the case, because it would be as big a news as Adobe going fully open source and freeware with no ads, but still... that's what it says. There is no indication as to WHAT files are "synced", I was not informed about this in any way, and I have no practical way of finding out. There is zero info about it in the application.
    So, please tell me what exactly it "syncs" by default. Why does it have my user's home/master dir by default? Is Adobe spying on my entire collection of private, LOCAL files that were never intended to leave my computer? If so, this is a nightmare. I really, REALLY hope I'm just being paranoid and this software is just extremely poorly designed and ambiguous.

    No files are being synced by default. There is a Creative Cloud Files folder in your user folder. Any files or folders placed there will be synced up. Currently it should be empty since you are not using it.
    You can open the Creative Cloud desktop application Preferences dialog and turn the file syncing off.

  • Extremely Urgent - Help Please - ( PA Interview Q & A )

    Hi Guys,
    I wanted to know Personnel Administration interview question And Answers , it is most urgent for me.
    Your detail response will be highly appreciated.
    Thanks – Sam
    Edited by: Sameer Sameer on Mar 6, 2008 10:07 PM

    1)     How the joining process is carried out in the concerned organization?
    2)      What are the different types of recruitment i.e. campus recruitment, employee ward, through consultant etc are carried out by the organization?
    3)      What are the different recruitment instruments i.e. ESS, newspaper, internet, job portals etc used by the company for the purpose of recruitment by the organization?
    4)      What are the different types of joining i.e. new appointment, on contract, re employment (transfer back from other company ) etc used by the organization?
    5)      Is there any probation period in the organization? If so, how long?
    6)     Is the salary structure same for newly joined persons from probation compared to that of the regular officers. If not so, then how is the salary structure different from regular employees?
    7)      What data are maintained for a newly joined person?
    8)      Is the joining process different for different employee subgroups?
    9)      Is there any one person-one position concept?
    10)      Is the joining process same for regular & contractual employees?
    11)      Do you need to intimate (Notification) any other division when a person joins?
    check this one and from these try to prepare questinonire by ur oown
    Edited by: Sikindar on Mar 7, 2008 9:43 AM

  • EXTREMELY URGENT!!!! Assistance required on recovery

    Need help urgently restoring DATABASES
    This script was run in error when pointing to ASM instead of oracle home
    Shutdown abort;
    shutodown mount restrict;
    drop database;
    now we have lost 3 databases
    Can anyone assist us in recovering ASAP please

    if you have a valid backup, restore and recover.
    we can say only this as you have not provided details of database and OS.also if it is so urgent contact oracle support. this forum is voulnteer's pool.

  • EXTREMELY URGENT : Reinstalling Portal

    By a twist of fate(actually screw-up of the 9iAS installer, wherein deinstalling Discoverer deinstalled everything under the sun), the Oracle Portal version that was installed was removed.
    The portlets and page-definitions are intact and safe in the 9i database luckily.
    How do I reinstall the portal without losing all of my data?
    Please please post your responses as this is very urgent for us.

    It sounds like the deinstall removed the middle tier portions of the portal and left the database installation intact. If that is the case, then you should be able to reinstall 9iAS, skip the portal install, and then make sure the DAD's to point to the portal and Login Server back ends. Note that all of the settings would have to be the same or you may have to use ssodatan to reconnect the login server to the portal.

  • Help with Batch Labeler (extremely Urgent)

    Good Afternoon Eeveryone,
    I am in need of help to create a Batch file to stamp the filename of the PDF document in the document itself.
    This is for audit and control purposes.
    i have the following javascript to add the filename as a header.
    app.addSubMenu({ cName: "Header",cUser: "Set/Remove Header", cParent: "File", nPos: 20 });
    app.addMenuItem({ cName: "(Filename)", cParent: "Header", cExec: "SetHeader(1)"});
    app.addMenuItem({ cName: "-------------------------------", cParent: "Header",cExec: "{}"});
    app.addMenuItem({ cName: "(Filename)", cParent: "Header", cExec: "RemoveHeader(1)"});
    //Set/remove Header
    function SetHeader(ARG)
    var re = /.*\/|\.pdf$/ig;
    var FileNM = this.path.replace(re,"")+".pdf";
    var Path = this.path;
    var AcDate = new Date();
    var AcDateFormat = "yyyy/mmm/dd  HH:MM"
    var Box2Width = 50
    for (var p = 0; p < 1; p++)
      var aRect = this.getPageBox("Crop",p);
      var TotWidth = aRect[2] - aRect[0]
      if (ARG<=3 || ARG==9)
       { var fd = this.addField("xftDate", "text", p, [20,1600, TotWidth-30-30,30]);
          fd.value = "Nº:" + FileNM;
           fd.textSize=12; fd.readonly = true;
           if (ARG==1){ fd.alignment="left" };
           if (ARG==2){ fd.alignment="center" };
           if (ARG==3){ fd.alignment="right" };
      if (ARG==4 || ARG==5 ||ARG==9)
       {  var hStart=(TotWidth/2)-(Box2Width/2)
           var hEnd=((TotWidth/2)+(Box2Width/2))
           if (ARG==5){var hStart=(TotWidth-Box2Width-30); var hEnd=(TotWidth-30);}
           var fp = this.addField(String("xftPage"+p+1), "text", p, [hStart,30,hEnd,1450]);
           fp.value = "Page: " + String(p+1)+ "/" + this.numPages;
           fp.textSize=12;  fp.readonly = true;
           fp.alignment="center";
    function RemoveHeader(ARG)
    if (ARG<=3 || ARG==9) {var x = this.removeField("xftDate");}
    if (ARG==4 || ARG==9)
       {  for (var p = 0; p < this.numPages; p++)
          {var x = this.removeField(String("xftPage"+p+1)); }
    I found this on another Thread and made some changes to suit my needs, now i need this to reproduce to a large ammount of pdf files, and that works with adobe reader.
    i have this batch file that i also took from another thread, if i click on it it works fine, i change the directory where it sends the files but when i drop a file on it it gives a error saying it cant "create object acroexch.app"
    '//////  User settings /////////////////////////////////////////////////////////
    fileSaveDir = "c:\Temp"    '/->state an existing folder for saving changed files
    mode = 1         '/->  0=work hidden; 1= show acrobat
    test = 1             '/-> 0= don't show messages; 1=show messages
    '    // set WSH objects
    set oWsh = CreateObject ("Wscript.Shell")
    Set oArgs = WScript.Arguments
    Set fso = CreateObject("Scripting.FileSystemObject")
    '    // test basic files/folders
    if not fso.FolderExists(fileSaveDir) then : msgBox("Folder """ &fileSaveDir &""" don't exist") : wscript.quit : end if
    if oArgs.Count = 0 then :    MsgBox("Drag & Drop files on this") : Wscript.quit : end if
    '    // set acrobat basic objects
    Set App = CreateObject("Acroexch.app")
    if mode > 0 then app.show
    Set AVDoc = CreateObject("AcroExch.AVDoc")
    Set AForm = CreateObject("AFormAut.App") 'from AFormAPI
    '    // write  acro-js to a variable for later executing
    Ex = "  // set Date and filename as footer  "&vbLF _
      & "  var re = /.*\/|\.pdf$/ig;  "&vbLF _
      & "  var FileNM = this.path.replace(re,"""")+"".pdf"";  "&vbLF _
      & "  var AcDate = new Date();  "&vbLF _
      & "  var AcDateFormat = ""yyyy/mmm/dd  HH:MM"";  "&vbLF _
      & "  for (var p = 0; p < this.numPages; p++)   "&vbLF _
      & "  {   "&vbLF _
      & "    var aRect = this.getPageBox(""Crop"",p);  "&vbLF _
      & "    var TotWidth = aRect[2] - aRect[0];  "&vbLF _
      & "    var fd = this.addField(""xftDate"", ""text"", p, [30,15, TotWidth-30-30,30]);   "&vbLF _
      & "    fd.value =  util.printd(AcDateFormat, AcDate) + ""   ("" + FileNM +"")"";   "&vbLF _
      & "    fd.textSize=6;   "&vbLF _
      & "    fd.readonly = true;  "&vbLF _
      & "    fd.alignment=""left"";  "&vbLF _
    '    // kernel: batch processing of js-code
    for each xFile in oArgs
        if test = 1 then : OK = msgbox("Change file: " & xFile,1) : if OK = 2 then WScript.quit : end if
        If not fso.FileExists(xFile) Then : msgbox("File doesn't exist") : wscript.quit : end if
        If AVDoc.Open(xFile,"") Then
            set PDDoc = AVDoc.GetPDDoc
            AForm.Fields.ExecuteThisJavaScript Ex
            outFile = fileSaveDir &"\" &mid(xFile,InstrRev(xFile,"\")+1)
            if test = 1 then : OK = msgbox("Script executed"&vbCr&"SaveAs: "&outfile,1) : if OK = 2 then WScript.quit : end if
            If fso.FileExists(outFile) Then fso.DeleteFile(outfile)
            PDDoc.save 1, outFile
            App.CloseAllDocs
        else
            msgbox("Coudn't open file!") : wscript.quit
        end if
    next
    OK = msgbox("Batchjob finished!" &vbCr &"Close Acrobat?",1) : if OK = 1 then app.exit
    Set AVDoc = Nothing : Set PDDoc = Nothing
    Set APP = Nothing : Set AForm = Nothing

    thanks for all the replies, the documents are forms usage rights, the first javascript is running fine and dandy doing exactly what i want, all i need is something to run that javascript on multiple pdf at once.
    since this is for audit purposes i really could use this otherwise i would have to manually write over 400 document filename/numbers on eveyr piece of paper..
    =X

Maybe you are looking for