Urgent.. Making efficient editor

Hello java gurus,
Presently Iam building my own editor for a new language.I want to make this an efficient editor.
By an efficient editor i mean that when a very big file is opened into it, the whole file should not be there in the memory.I want only a part of it which is presently shown in the editor to be in memory.
I want to make a secondary storage based editor.
For that iam trying with java.nio 's memory mapped buffer.But i ve problems when mapping it with the scrollpane.
Hope u could understand the problem.
Please help me as soon as possible.
Thanks.

Crosspost!
http://forum.java.sun.com/thread.jsp?forum=57&thread=562875
http://forum.java.sun.com/thread.jsp?thread=562876&forum=57

Similar Messages

  • Very urgent friends.Making efficient editor

    Hello java gurus,
    Presently Iam building my own editor for a new language.I want to make this an efficient editor.
    By an efficient editor i mean that when a very big file is opened into it, the whole file should not be there in the memory.I want only a part of it which is presently shown in the editor to be in memory.
    I want to make a secondary storage based editor.
    For that iam trying with java.nio 's memory mapped buffer.But i ve problems when mapping it with the scrollpane.
    Hope u could understand the problem.
    Please help me as soon as possible.
    Thanks.

    Crosspost!
    http://forum.java.sun.com/thread.jsp?thread=562559&forum=57
    http://forum.java.sun.com/thread.jsp?thread=562876&forum=57

  • Urgent : Making heirarchy report by fetching data froma single table

    Hi,
    I am making a report in which i hae to display the data like this:-
    If there is a material and it contains batch and that batch furhter conatins sub-batches of it.
    The problem is dat all the data which is to be displayed is from the table CHVW  and i am  not able to display the data in hierarchy by fetching it from a single table.
    plzz guide me how to do dis as it is really urgent and points will be deinftely rewarded.
    help me out.
    reagrds,
    ric.s
    Edited by: ric .s on Apr 30, 2008 10:31 AM

    Hi,
    Check the sample Report.
    REPORT z_alv_hierseq_list.
    Program with FM REUSE_ALV_HIERSEQ_LIST_DISPLAY                      *
    TYPE-POOLS: slis.                    " ALV Global types
    CONSTANTS :
      c_x VALUE 'X',
      c_gt_vbap TYPE slis_tabname VALUE 'GT_VBAP',
      c_gt_vbak TYPE slis_tabname VALUE 'GT_VBAK'.
    SELECTION-SCREEN :
      SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max.    "#EC NEEDED
    PARAMETERS p_max(02) TYPE n DEFAULT '10' OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN :
      SKIP, BEGIN OF LINE,COMMENT 5(27) v_2 FOR FIELD p_expand. "#EC NEEDED
    PARAMETERS p_expand AS CHECKBOX DEFAULT c_x.
    SELECTION-SCREEN END OF LINE.
    TYPES :
    1st Table
      BEGIN OF ty_vbak,
        vbeln TYPE vbak-vbeln,             " Sales document
        kunnr TYPE vbak-kunnr,             " Sold-to party
        netwr TYPE vbak-netwr,             " Net Value of the Sales Order
        erdat TYPE vbak-erdat,             " Creation date
        waerk TYPE vbak-waerk,             " SD document currency
        expand TYPE xfeld,
      END OF ty_vbak,
    2nd Table
      BEGIN OF ty_vbap,
        vbeln TYPE vbap-vbeln,             " Sales document
        posnr TYPE vbap-posnr,             " Sales document
        matnr TYPE vbap-matnr,             " Material number
        arktx TYPE vbap-arktx,             " Material description
        netwr TYPE vbap-netwr,             " Net Value of the Sales Order
        waerk TYPE vbap-waerk,             " SD document currency
      END OF ty_vbap.
    DATA :
    1st Table
      gt_vbak TYPE TABLE OF ty_vbak,
    2nd Table
      gt_vbap TYPE TABLE OF ty_vbap.
    INITIALIZATION.
      v_1 = 'Maximum of records to read'.
      v_2 = 'With ''EXPAND'' field'.
    START-OF-SELECTION.
    Read Sales Document: Header Data
      SELECT vbeln kunnr netwr waerk erdat
        FROM vbak
          UP TO p_max ROWS
        INTO CORRESPONDING FIELDS OF TABLE gt_vbak.
      IF gt_vbak[] IS NOT INITIAL.
      Read Sales Document: Item Data
        SELECT vbeln posnr matnr arktx netwr waerk
          FROM vbap
          INTO CORRESPONDING FIELDS OF TABLE gt_vbap
           FOR ALL ENTRIES IN gt_vbak
         WHERE vbeln = gt_vbak-vbeln.
      ENDIF.
    END-OF-SELECTION.
      PERFORM f_display.
          Form  F_DISPLAY
    FORM f_display.
    Macro definition
      DEFINE m_fieldcat.
        ls_fieldcat-tabname = &1.
        ls_fieldcat-fieldname = &2.
        ls_fieldcat-ref_tabname = &3.
        ls_fieldcat-cfieldname = &4.       " Field with currency unit
        append ls_fieldcat to lt_fieldcat.
      END-OF-DEFINITION.
      DEFINE m_sort.
        ls_sort-tabname = &1.
        ls_sort-fieldname = &2.
        ls_sort-up        = c_x.
        append ls_sort to lt_sort.
      END-OF-DEFINITION.
      DATA:
        ls_layout   TYPE slis_layout_alv,
        ls_keyinfo  TYPE slis_keyinfo_alv,
        ls_sort     TYPE slis_sortinfo_alv,
        lt_sort     TYPE slis_t_sortinfo_alv," Sort table
        ls_fieldcat TYPE slis_fieldcat_alv,
        lt_fieldcat TYPE slis_t_fieldcat_alv." Field catalog
      ls_layout-group_change_edit = c_x.
      ls_layout-colwidth_optimize = c_x.
      ls_layout-zebra             = c_x.
      ls_layout-detail_popup      = c_x.
      ls_layout-get_selinfos      = c_x.
      IF p_expand = c_x.
        ls_layout-expand_fieldname  = 'EXPAND'.
      ENDIF.
    Build field catalog and sort table
      m_fieldcat c_gt_vbak 'VBELN' 'VBAK' ''.
      m_fieldcat c_gt_vbak 'KUNNR' 'VBAK' ''.
      m_fieldcat c_gt_vbak 'NETWR' 'VBAK' 'WAERK'.
      m_fieldcat c_gt_vbak 'WAERK' 'VBAK' ''.
      m_fieldcat c_gt_vbak 'ERDAT' 'VBAK' ''.
      m_fieldcat c_gt_vbap 'POSNR' 'VBAP' ''.
      m_fieldcat c_gt_vbap 'MATNR' 'VBAP' ''.
      m_fieldcat c_gt_vbap 'ARKTX' 'VBAP' ''.
      m_fieldcat c_gt_vbap 'NETWR' 'VBAP' 'WAERK'.
      m_fieldcat c_gt_vbap 'WAERK' 'VBAP' ''.
      m_sort c_gt_vbak 'KUNNR'.
      m_sort c_gt_vbap 'NETWR'.
      ls_keyinfo-header01 = 'VBELN'.
      ls_keyinfo-item01 = 'VBELN'.
      ls_keyinfo-item02 = 'POSNR'.
    Dipslay Hierarchical list
      CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
        EXPORTING
          i_callback_program      = sy-cprog
          i_callback_user_command = 'USER_COMMAND'
          is_layout               = ls_layout
          it_fieldcat             = lt_fieldcat
          it_sort                 = lt_sort
          i_tabname_header        = c_gt_vbak
          i_tabname_item          = c_gt_vbap
          is_keyinfo              = ls_keyinfo
          i_save                  = 'A'
        TABLES
          t_outtab_header         = gt_vbak
          t_outtab_item           = gt_vbap
        EXCEPTIONS
          program_error           = 1
          OTHERS                  = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                               " F_LIST_DISPLAY
          Form USER_COMMAND                                             *
    FORM user_command USING i_ucomm     TYPE sy-ucomm
                            is_selfield TYPE slis_selfield.     "#EC CALLED
      DATA ls_vbak TYPE ty_vbak.
      CASE i_ucomm.
        WHEN '&IC1'.                       " Pick
          CASE is_selfield-tabname.
            WHEN c_gt_vbap.
            WHEN c_gt_vbak.
              READ TABLE gt_vbak INDEX is_selfield-tabindex INTO ls_vbak.
              IF sy-subrc EQ 0.
              Sales order number
                SET PARAMETER ID 'AUN' FIELD ls_vbak-vbeln.
              Display Sales Order
                CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
              ENDIF.
          ENDCASE.
      ENDCASE.
    ENDFORM.                               " USER_COMMAND
    END OF PROGRAM Z_ALV_HIERSEQ_LIST ******************
    Regards,
    Raj.

  • URGENT: The hex editor

    Hey. First of all I would like to apologize for this post closely resembling my other post on the same topic from a while ago.
    The thing is that if I am going to get this working, I really need it working now. My deadline is this friday. I know this is cutting it very close, but I'm giving it a shot anyways.
    I need to find a way of customizing a textarea of some sort, to make it draw text in columns. The text should be editable, just as in an ordinary text component, and have most of the ordinary functionality.
    The text should be drawin in columns, but logically it is still just one large set of text without any spaces.
    This is because I need (there is no other way) the offset of the text caret to be calculated from the start while skipping the spaces.
    0000 0000 0000 0000 would be treated as 16 characters. So the last caret position would be 15, not 18, as would be suspected...
    I imagine this has something to do with the View and ViewFactory classes, but I just can't get it into my head how I am supposed to customize this.
    These classes are used by the EditorKit, so I would need that custom aswell...
    Well, I'm hoping someone can give me just the right hint to get things flowing. I'm really stuck, and that sucks big time.
    Thank you in advance, whatever the result of this thread yields
    //Fredrik

    Well, like I said, I'm sorry that it had to come to that, but I was sort of desperate. I'm not proud of having to ask for help in that manner, but I guess I was hoping for someone to notice the post sooner. It won't happen again, I assure you.
    The end result is very important to me, and even though the thing don't need to be awfully fast I'd still like it to be. Hence the need for some customization...
    On the JFormattedTextField. I dabbled a bit with that, but the thing is it works by parsing the text and inserting necessary delimeter characters and spacing, which is exactly what I'm doing right now. I parse the contents of a byte-array, formatting it to hexadecimal, and inserting spaces at key possitions, giving it the appearence of a hexeditor. This however makes the "real" offset in the byte array extremely difficult to calculate, since the calculation involves floats... and java isn't very exact when it comes to float arithmetics...
    Also, as with every hex editor, I need more than just one line.
    Again, I'm sorry for the blatant missuse of the word urgent. The procrastination was due to me trying to solve it on my own, and since it was of lower priority I chose not to ask for help until now. The project is finished; this optimization is optional. And it wasn't actually homework

  • Urgent: Making of vendor  payment  report

    Hi,
    I am making report in which i have to display whether payment is done or not ? In this report i am taking XBLNR field as common field to make  relatioship among BKPF  so that further among BSAS,BSIS,BSAK,BSIK tables as these tables consist of the data about the status that their payment is done or not?

    Hi,
    Try in dis way....I think it may work
    select <fld1> <fld2>....from BKPF into corresponding fields of table t_bkpf
    where <condn>.
    if not t_bkpf[] is initial.
    select <fld1> <fld2>....from MKPF into corresponding fields of table t_mkpf
    for all entries in t_bkpf where xblnr = t_bkpf-xblnr.
    try in such a way n see.........
    Reward if helpful.
    Thanks.

  • Urgent:  making multiple inspection characterstics in QP01 bdc

    Hi,
    I had made a BDC on QP01 in which i am able to upload 1 line for the
    inspection characterstic of a single Operation .
    Now the problem is there are around 10 to 15 lines for the inspection characterstic of a single Operation and i am not able to do it through it my bdc. now anybody can provide me some knowledge about it as how it is to be done?
    plzz help me out as it is really urgent to me and help will be definately rewarded.

    Hi,
    I had made bdc on transaction CA02. Its similiar to your requirement in which there are multiple inspection characterstics for single operation. Through BDC its possible. Please go through the below code.
    LOOP AT i_route_file INTO wa_route_file.
        AT NEW plnnr.
          PERFORM : zf_prepare_bdcdata_prg   USING 'SAPLCPDI'  '1010',
                    zf_prepare_bdcdata_value USING 'BDC_OKCODE' '/00',
                    zf_prepare_bdcdata_value USING 'RC271-PLNNR'
                                                   wa_route_file-plnnr.
    *--Conversion of date to internal format.
          PERFORM zf_conv_date.
          PERFORM zf_prepare_bdcdata_value USING 'RC271-STTAG' v_date.
        ENDAT.
        lv_arbpl = wa_route_file-arbpl.
        lv_steus = wa_route_file-steus.
        lv_ltxa1 = wa_route_file-ltxa1.
    *--Operation data
        AT NEW vornr.
          v_inscounter = 1.
          PERFORM : zf_prepare_bdcdata_prg   USING 'SAPLCPDI' '1400',
                    zf_prepare_bdcdata_value USING 'BDC_OKCODE' '/00',
                    zf_prepare_bdcdata_value USING 'RC27X-ENTRY_ACT' '1'.
    *--Conversion of vornr to internal format
          PERFORM zf_conv_vornr.
          READ TABLE i_opno INTO wa_opno WITH KEY plnnr = wa_route_file-plnnr
                                                  vornr = wa_route_file-vornr.
          IF sy-subrc <> 0.
            DESCRIBE TABLE i_opno LINES v_lines.
            v_num = v_lines + 1.
          ELSE.
            v_num = sy-tabix.
          ENDIF.
          CLEAR v_fieldnm.
          CONCATENATE 'PLPOD-ARBPL(' v_num ')' INTO v_fieldnm.
          PERFORM : zf_prepare_bdcdata_value USING v_fieldnm lv_arbpl.
          CLEAR v_fieldnm.
          CONCATENATE 'PLPOD-STEUS(' v_num ')' INTO v_fieldnm.
          PERFORM : zf_prepare_bdcdata_value USING v_fieldnm lv_steus.
          CLEAR v_fieldnm.
          CONCATENATE 'PLPOD-LTXA1(' v_num ')' INTO v_fieldnm.
          PERFORM : zf_prepare_bdcdata_value USING v_fieldnm lv_ltxa1,
                    zf_prepare_bdcdata_prg   USING 'SAPLCPDI' '1400',
                    zf_prepare_bdcdata_value USING 'BDC_OKCODE' '=QMUE',
                    zf_prepare_bdcdata_value USING 'RC27X-ENTRY_ACT' '1'.
          CLEAR v_fieldnm.
          CONCATENATE 'RC27X-FLG_SEL(' v_num ')' INTO v_fieldnm.
          PERFORM: zf_prepare_bdcdata_value USING v_fieldnm 'X'.
        ENDAT.
    *--Inspection Characteristics
        PERFORM: zf_prepare_bdcdata_prg   USING 'SAPLQPAA' '0150',
                 zf_prepare_bdcdata_value USING 'BDC_OKCODE' '/00'.
        CLEAR v_fieldnm.
        CONCATENATE 'PLMKB-VERWMERKM(' v_inscounter ')' INTO v_fieldnm.
        PERFORM: zf_prepare_bdcdata_value USING v_fieldnm
                                                wa_route_file-verwmerkm.
        CLEAR v_fieldnm.
        CONCATENATE 'PLMKB-MKVERSION(' v_inscounter ')' INTO v_fieldnm.
        PERFORM: zf_prepare_bdcdata_value USING v_fieldnm
                                                wa_route_file-mkversion.
        CLEAR v_fieldnm.
        CONCATENATE 'PLMKB-PMETHODE(' v_inscounter ')' INTO v_fieldnm.
        PERFORM: zf_prepare_bdcdata_value USING v_fieldnm
                                                wa_route_file-pmethode.
        CLEAR v_fieldnm.
        CONCATENATE 'PLMKB-PMTVERSION(' v_inscounter ')' INTO v_fieldnm.
        PERFORM: zf_prepare_bdcdata_value USING v_fieldnm
                                                wa_route_file-pmtversion.
        CLEAR v_fieldnm.
        CONCATENATE 'PLMKB-STICHPRVER(' v_inscounter ')' INTO v_fieldnm.
        PERFORM: zf_prepare_bdcdata_value USING v_fieldnm
                                                wa_route_file-stichprver.
        CLEAR v_fieldnm.
        CONCATENATE 'QFLTP-SOLLWERT(' v_inscounter ')' INTO v_fieldnm.
        PERFORM: zf_prepare_bdcdata_value USING v_fieldnm
                                                wa_route_file-sollwert.
        CLEAR v_fieldnm.
        CONCATENATE 'QFLTP-TOLERANZUN(' v_inscounter ')' INTO v_fieldnm.
        PERFORM: zf_prepare_bdcdata_value USING v_fieldnm
                                                wa_route_file-toleranzun.
        CLEAR v_fieldnm.
        CONCATENATE 'QFLTP-TOLERANZOB(' v_inscounter ')' INTO v_fieldnm.
        PERFORM: zf_prepare_bdcdata_value USING v_fieldnm
                                                wa_route_file-toleranzob.
        CLEAR v_fieldnm.
        CONCATENATE 'PLMKB-DUMMY10(' v_inscounter ')' INTO v_fieldnm.
        PERFORM: zf_prepare_bdcdata_value USING v_fieldnm
                                                wa_route_file-dummy10.
        PERFORM: zf_prepare_bdcdata_prg   USING 'SAPLQPAA' '1501',
                 zf_prepare_bdcdata_value USING 'BDC_OKCODE' '=ENT1',
                 zf_prepare_bdcdata_value USING 'PLMKB-VERWMERKM'
                                                wa_route_file-verwmerkm,
                 zf_prepare_bdcdata_value USING 'PLMKB-QPMK_WERKS'
                                                wa_route_file-qpmk_werks,
                 zf_prepare_bdcdata_value USING 'PLMKB-MKVERSION'
                                                wa_route_file-mkversion,
                 zf_prepare_bdcdata_value USING 'PLMKB-PMETHODE'
                                                wa_route_file-pmethode,
                 zf_prepare_bdcdata_value USING 'PLMKB-QMTB_WERKS'
                                                wa_route_file-qmtb_werks,
                 zf_prepare_bdcdata_value USING 'PLMKB-PMTVERSION'
                                                wa_route_file-pmtversion.
        PERFORM: zf_prepare_bdcdata_prg   USING 'SAPLQPAA' '1502',
                 zf_prepare_bdcdata_value USING 'BDC_OKCODE' '=ENT1',
                 zf_prepare_bdcdata_value USING 'BDC_CURSOR' 'PLMKB-PMETHODE',
                 zf_prepare_bdcdata_value USING 'PLMKB-PMETHODE'
                                                wa_route_file-pmethode,
                 zf_prepare_bdcdata_value USING 'PLMKB-QMTB_WERKS'
                                                wa_route_file-qmtb_werks,
                 zf_prepare_bdcdata_value USING 'PLMKB-PMTVERSION'
                                                wa_route_file-pmtversion.
        PERFORM: zf_prepare_bdcdata_prg   USING 'SAPLQPAA' '1502',
                 zf_prepare_bdcdata_value USING 'BDC_OKCODE' '=ENT1',
                 zf_prepare_bdcdata_value USING 'BDC_CURSOR' 'PLMKB-PMETHODE',
                 zf_prepare_bdcdata_value USING 'PLMKB-PMETHODE'
                                                 wa_route_file-pmethode,
                 zf_prepare_bdcdata_value USING 'PLMKB-QMTB_WERKS'
                                                 wa_route_file-qmtb_werks,
                 zf_prepare_bdcdata_value USING 'PLMKB-PMTVERSION'
                                                 wa_route_file-pmtversion.
        PERFORM: zf_prepare_bdcdata_prg   USING 'SAPLQPAA' '0150',
                 zf_prepare_bdcdata_value USING 'BDC_OKCODE' '=QMD1',
                 zf_prepare_bdcdata_value USING 'RQPAS-ENTRY_ACT' '1'.
        CLEAR v_fieldnm.
        CONCATENATE 'RQPAS-SEL_FLG(' v_inscounter ')' INTO v_fieldnm.
        PERFORM: zf_prepare_bdcdata_value USING v_fieldnm 'X'.
        PERFORM: zf_prepare_bdcdata_prg   USING 'SAPLQPAA' '0160',
                 zf_prepare_bdcdata_value USING 'BDC_OKCODE' '=QMAM',
                 zf_prepare_bdcdata_value USING 'PLMKB-STICHPRVER'
                                                wa_route_file-stichprver.
        PERFORM: zf_prepare_bdcdata_prg   USING 'SAPLQPAA' '0160',
                 zf_prepare_bdcdata_value USING 'BDC_OKCODE' '/00',
                 zf_prepare_bdcdata_value USING 'BDC_CURSOR'
                                                'PLMKB-PROBENR',
                 zf_prepare_bdcdata_value USING 'PLMKB-PROBENR'
                                               wa_route_file-probenr,
                 zf_prepare_bdcdata_value USING 'PLMKB-PMETHODE'
                                               wa_route_file-pmethode,
                 zf_prepare_bdcdata_value USING 'PLMKB-QMTB_WERKS'
                                      wa_route_file-qmtb_werks,
                 zf_prepare_bdcdata_value USING 'PLMKB-PMTVERSION'
                                       wa_route_file-pmtversion.
        PERFORM: zf_prepare_bdcdata_prg   USING 'SAPLQPAA' '1502',
                 zf_prepare_bdcdata_value USING 'BDC_OKCODE' '=ENT1',
                 zf_prepare_bdcdata_value USING 'BDC_CURSOR' 'PLMKB-PMETHODE',
                 zf_prepare_bdcdata_value USING 'PLMKB-PMETHODE'
                                                 wa_route_file-pmethode,
                 zf_prepare_bdcdata_value USING 'PLMKB-QMTB_WERKS'
                                                 wa_route_file-qmtb_werks,
                 zf_prepare_bdcdata_value USING 'PLMKB-PMTVERSION'
                                                 wa_route_file-pmtversion.
        PERFORM: zf_prepare_bdcdata_prg   USING 'SAPLQPAA' '0160',
                 zf_prepare_bdcdata_value USING 'BDC_OKCODE' '=QMBU',
                 zf_prepare_bdcdata_value USING 'PLMKB-PROBENR'
                                                wa_route_file-probenr,
                 zf_prepare_bdcdata_value USING 'PLMKB-PMETHODE'
                                                wa_route_file-pmethode,
                 zf_prepare_bdcdata_value USING 'PLMKB-QMTB_WERKS'
                                                wa_route_file-qmtb_werks,
                 zf_prepare_bdcdata_value USING 'PLMKB-PMTVERSION'
                                                wa_route_file-pmtversion.
        PERFORM: zf_prepare_bdcdata_prg   USING 'SAPLQPAA' '1502',
               zf_prepare_bdcdata_value USING 'BDC_OKCODE' '=ENT1',
               zf_prepare_bdcdata_value USING 'BDC_CURSOR' 'PLMKB-PMETHODE',
               zf_prepare_bdcdata_value USING 'PLMKB-PMETHODE'
                                               wa_route_file-pmethode,
               zf_prepare_bdcdata_value USING 'PLMKB-QMTB_WERKS'
                                               wa_route_file-qmtb_werks,
               zf_prepare_bdcdata_value USING 'PLMKB-PMTVERSION'
                                               wa_route_file-pmtversion.
        v_inscounter = v_inscounter + 1.
        AT END OF plnnr.
    *--Call transaction CA02- Change Routing
          CALL TRANSACTION 'CA02' USING i_bdcdata
                                  MESSAGES INTO i_messtab
                                  MODE 'N'
                                  UPDATE 'S'.
          COMMIT WORK AND WAIT.
        ENDAT.
      ENDLOOP.
    Please ask if any queries....

  • URGENT:Making a poplist value freezed based on another poplist value

    Hi,
    I have a requirement to make a poplist value freezed(should get disabled so that no further change can be done) based on another poplist value.
    for ex : poplist 1 : A,B.
    poplist2: yes,no
    if A is selected, yes,no should appear in the poplist2.
    if B is selected, only YEs should appear in the poplist2 and it should get greyed out(disabled for further changing).
    Please help.
    Thanks,
    Veena.
    Edited by: Veena. on Dec 31, 2012 4:00 AM

    Veena,
    there is nothing urgent on this forum!
    You know that you should provide your jdev version so that we can help you solve your problem.
    Next it would help if you provide the code (of the page) so that we see how you setup the 'poplist' (whatever that exactly is).
    If you mean a selectOnceChioce you can implement a valuechangeListener on poplist A and depending on the new value set the value of poplist B to yes and disable it.
    Timo

  • Need Help : Urgent : Making one of the record Bold in a Table

    Hi Frds,
    I am new to OAF.......
    I am  facing the issue that i have to make one of the record bold in a table...........
    By using the query, i m trying to display the payslip
    It contains the list of Earnings ,Deductions and NetPay amount..........
    this is the part of the query........
    select payment_date,element_name,arabic_name,val,balance from
      select '0' flag,assignment_id,null payment_date,'Payslip for the Month'  element_name,to_char(payment_date,'Month-YYYY')arabic_name,
       null val, null balance from xx_payroll_info
    where 1 =1
    and payment_date = last_day(:2) 
    and assignment_id = (select assignment_id from xx_people_reporting_info
        where person_id = :1)
    union all
    select '1'flag,assignment_id,payment_date,element_name,arabic_name,
       value val,null,balance
      from xx_payslip_details_mv
    where 1 = 1
    and payment_date = last_day(:2)
    and earn_deduct = ('E')
    and assignment_id in (select assignment_id from xx_people_reporting_info)
    union all
    select '2' flag,assignment_id,payment_date,'Earnings-Total',null,sum(value) val,null
      from xx_payslip_detail_mv
    where 1 =1
    and payment_date = last_day(:2)
    and earn_deduct = 'E'
    and assignment_id in (select assignment_id from xx_people_reporting_info
           where 1 =1
                and person_id = :1 )
    group by assignment_id,payment_date
    My Requirement is : I have to make the Payslip For the month of , Date, Earnings-Total  into Bold.....  How can i do this.... plz... help me out in this......
    Thanks &Regards,
    Jaya

    Hi Jaya,
    Set CSS Class property as  OraDataText for respectiveb column.
    OR
    /In Controller PR
                    import oracle.cabo.style.CSSStyle;
                    CSSStyle customCss = new CSSStyle();
                     customUnCss.setProperty("text-transform","uppercase");
                     customUnCss.setProperty("font","bold 16px \"Trebuchet MS\", Verdana, sans-serif");//# -red
                     OAMessageStyledTextBean styledTextBean =(OAMessageStyledTextBean)webBean.findIndexedChildRecursive("POCommentsItem");
                     if(styledTextBean!=null)
                      styledTextBean.setInlineStyle(customUnCss);
           Thanks,
            Dilip

  • Urgent: Making JTable detect a JButton event

    The GUI I'm working on displays a JTable along with an "Add" JButton. Upon launching the program there is already a list of things in the table. When "Add" is pressed a dialog box comes up. This dialog box has a JTextField, and the user enters the name of the new item s/he wishes to add. How can I "refresh" the table to add one more row, with the item added, when the "Confirm" button is pressed? The examples in the JTable tutorial seem to deal only with direct editing of cells. But this is sort of an indirect way of adding data...please help!
    James

    Work with the table's model (myTable.getModel()). In the default case, your working with an instance of DefaultTableModel. That class has all the modification methods you will need. Any changes to the model will cause the appropriate event to be thrown up to the table to cause it to change.

  • Help if possible for smart editor

    Hello java gurus,
    Presently Iam building my own editor for a new language.I want to make this an efficient editor.
    By an efficient editor i mean that when a very big file is opened into it, the whole file should not be there in the memory.I want only a part of it which is presently shown in the editor to be in memory.
    I want to make a secondary storage based editor.
    For that iam trying with java.nio 's memory mapped buffer.But i ve problems when mapping it with the scrollpane.
    Hope u could understand the problem.
    Please help me as soon as possible.
    Thanks.

    Crosspost!
    http://forum.java.sun.com/thread.jsp?thread=562559&forum=57
    http://forum.java.sun.com/thread.jsp?thread=562875&forum=57

  • How can  I  restrain the user login portal once, in the same time ???

    Hi
    I need to restrain the user can't repeat to login portal ....
    to reduce portal loading
    How can I restrain the user login portal once, in the same time???
    Which attributs in Identity Manager or amconsole I can do it to restrain the user ??
    tks

    Does your portal support anonymous access? If so, make sure you are using the authlessanonymous mode. This mode only creates one session that is shared for all anonymous users. This is much more efficient than anonymous access, which creates a session for each anonymous user.
    I have no other recommendation for limiting users to a single login. In general, web applications do not behave like this. What if a user closes their browser without logging out? Does the user have to wait until the session times out in order to log back in again?
    The same thing is true for users that are mobile. If a user leaves their office without logging out and then attempts to log in with a laptop in the conference room, then access will be denied in your implementation. Users do not expect this type of limitation being built into the system.
    If you are having problems scaling, then you need to look at your architecture and perhaps add some more resources. Also, make sure you are making efficient use of the authlessanonymous access mode as stated above.
    - Jim

  • How to  restrain the user login portal once, in the same time??

    Hi
    I need to restrain the user can't repeat to login portal ....
    to reduce portal loading
    How can I restrain the user login portal once, in the same time???
    Which attributs in Identity Manager or amconsole I can do it to restrain the user ??
    tks

    Does your portal support anonymous access? If so, make sure you are using the authlessanonymous mode. This mode only creates one session that is shared for all anonymous users. This is much more efficient than anonymous access, which creates a session for each anonymous user.
    I have no other recommendation for limiting users to a single login. In general, web applications do not behave like this. What if a user closes their browser without logging out? Does the user have to wait until the session times out in order to log back in again?
    The same thing is true for users that are mobile. If a user leaves their office without logging out and then attempts to log in with a laptop in the conference room, then access will be denied in your implementation. Users do not expect this type of limitation being built into the system.
    If you are having problems scaling, then you need to look at your architecture and perhaps add some more resources. Also, make sure you are making efficient use of the authlessanonymous access mode as stated above.
    - Jim

  • What is wrong with as3

    this is not a question about 'how i do X'. is rather a 'discussion' (flame or whatever, but to defend or argue about aspects, not people) about 'what is wrong with as3' and what aspects whould be taken into consideration for updates. right now i am using as3, and since i paid for this license, i choose this tool over some alternatives and i am using it to do stuff for other people who pay me to do it, i think it can be helpful for all of us if some actions are started in the right direction. i have already posted about 'all people in adobe are dumbasses that do not know how to make a scripting tool and are messing up my work', but i was pissed at the time (i still am pissed) but i believe this is not the right aproach. instead, if this goes to the right people in adobe, we all may get something in the future, like better and easier todo apps and web presentations.
    pre: not only about the as3 specification, but COMPLY with the specification that you set. for example, some time ago there were problems with matrix transforms. this was corrected later with a patch. but this means it is not even doing what is is supposed to do
    1. scriptable masks and movement, sprites and child sprites: there is a sprite with a mask, the mask is a shape drawn via script, something like
    somemask=new shape();
    somemask.graphics.beginfill();
    (...etc)
    somesprite.mask=somemask;
    just like that. now add some child sprites to 'somesprite', and make 'somesprite' move, scale and rotate. there you will have something like a kaleidoscope, but not what you expected to do with your script. as the child sprites move in the parent mask, you will see that the child sprites appear or dissapear kind of randomly, and if the child sprites are textfields, it may be that the text is rendered outside the mask, or partially rendered outside the mask (as in only part of the text), rendered with the wrongf rotation or in the wrong place. some child sprites are clipped correctly, some dissapear totally when only a part should dissapear (clipped) etc.
    way around: have not tried it yet, but i have the impression that bitmaps have different criteria for clipping, so i am thinking of trying this: appli an empty filter (a filter with params so it does not have any effect on the sprite or in the textfield) so the sprite is rendered as bitmap before doing anything else with it. as i said, i have not done it yet, but it may be a way around this problem, to avoid all this inconsistency with clipping
    1-b. inconsistency between hierarchy and coordinates, specially masks: you apply a mask to a sprite, yet the sprite has a set of coordinates (so 'x' in the sprite means an x relative to its container), yet the mask applied to the very same sprite, as another reference as reference for coordinates (like the stage)
    2. painting via script: in any other languaje, in any other situation, something like:
    beginFill(params);
    (...stuff 1)
    endFill();
    beginFill(params);
    (...stuff 2)
    endFill();
    (...etc)
    means: render region of block 1, then render region of block 2 etc, and no matter what, it should be consistent, since there is noplace for ambiguity. if you read it, you may think what that means, even if you dont run it you may have an idea of the picture you want to draw, but not with as3. as3 somehow manages to screw something that simple, and mixes all the blocks, and somehow uses the boundaries of one block as boundaries for other block. is like all blocks are dumped into whatever, and then uses all lines defined into it as boundaries for a unique block. it changes all boundaries and generates inconsistency between what is shown and redraw regions of the resulting picture, like lines that go to the end of the screen and then dont go away in the next frames, even tough the beginfill endfill block should prevent it
    3. event flow: i dont know what was the policy behind as3 event flow design. it is in no way similar or an extension to previous event flow, neither with any event flow in any other plattform. i dont know how most people start with as3; in my case, i unpacked, installed and when i tried to do something with what i already knew i could not, so i started reading the as3 docs, and since is like 800 pages long, i just read the basics and the rest i would 'wing it'. in the part of the event flow, there was something about bubbling and stuff, it was not clear at all and when i tried to do what is was said in the documentation (like preventing events to 'bubble', as is called in the documentation), i could not see any effect but i could see it was a mess. flash is not the only thing out there to work with pictures or to work with mouse events, but is the only one that deals with things like 'target' and 'currentTarget'. my first experience on needing this was when i was dealing with my own event handlers (so the only thing that had control over mouse was the stage, and i would admin everything via script). there were events generated everywhere, the stage got events that were not genrated directly over the stage, but got there not with stage coordinates but the coordinates relative to the sprite that generated the event. so if i hover the mopuse over the stage, and the stage has some things on it how does it work? i get multiple event calls, like it was hovering multiple times over the stage in a single frame, but in each call with different coordinates? and what if i set all child sprites as mouseenabled=false or compare like 'if (event.target != event.currenttarget)', what if i move the mouse over a child, does it prevent the move mouse event at all? or does it filter only the event call with only stage coordinates? in my case, every time i move over another clip (with mouseenabled = true), the stage gets it as 'mouse up', even tough there was never a mouse release, what the hell? do even the people at adobe know how to handle events with their own tool when they require it? why does an event 'bubble' when i have not specifically tell it to do it? mi thought is that this event flow was very poorly conceived, and tough the intention may have been that there were different cases and it shopuld cover all cases, they actually introduced new problems that were not present in traditional ways to handle it, and it is neither the easier way to handle things, and this way, a very simple problem turns into a very ugly thing because it must handle things that were not neccesary to handle, or were implicit in other situations.
    4. legacy: since as3, all interaction is different, and if you want to do things in the new plattform, using the new features, what you already knew just goes to the garbage can. when a new tool arrives, it should be an extension to previous tools (which is a reason to update instead of just buying a new tool from a different vendor). if everything i had or knew just means nothing from now on, then i can not say 'i know flash script', and my previous knowledge gives me no advantage when aproaching the new version. as3 is a new aproach that requires doc reading and stuff, even if you knew something about previous as specifications or other oo languajes. if you decide to change things from now on, like the things mentioned in this post, instead of just throwing away everything the users alerady knew about the tool, do like in java releases, they mark some things as 'deprecated', they keep working as they should, give a warning, but also a message saying this feature is deprecated, we suggest you use this library instead.
    5. lack of previous functionality: if you 'update' something, it meand all previos functionality is still there (probably improved, but not with bugs if it was working fine), plus something else. now it seems backwards, there are some things that could be done in previous versions but not in this one, like 'duplicatemovieclip'
    6. inconsistency with scripting/programming paradigms: (ok, fancy work, but fits perfectly here): as3 proposed ways to handle things, but the people who designed it got 'too creative', and they did something that is not consistent neither with previous versions of as or with other languajes. the documentations is full of things like 'it looks like x languaje or languaje family, but instead of using XXX word, you must use YYY'. great, what is this? namespaces 'work like', but 'differently' for example from java, .net, .c. its got the idea that a namespace means a grouped functionality but there are rules about where should be placed the file (ok, java has this also, .net takes care of it automatically if all files are registered in the project), but what you got is a mess that 'if you know other languajes you got the general idea, but nonetheless, even if you knew this or previosu versions of as, you still have to read whatever we decided arbitrarily just to be different'. namespaces, event handling, vars definition which is not like previous scripting neither like fully typed languajes.. is just a mess.
    7. lack of scripting and graphics integration: unlike flash and adobe tools that just got on the graphics side leaving all the scripting integratuion apart, most tools from other vendors integrate very well interacton with what is on the screen. the script editor: very poor. autocompletion? a drop down list that does not heklp at all, appears in the wrong places, and when you need it to go, it does not go (so if i want to move away from the uncalled drop down list, i have to click somewhere else, making developement slowewr instead of helping, so the drop down list does not capture all events when i dont want to). in other ides you double click somewhere and it will go to the part of code relevant to that event or whatever. for example microsoft tools, ok i am antimicrosoft, and one of the reasons was that when windows 95 got to market proposing itself as the ONLY pc os you could use if you wanted to keep useing the apps you already had, it was a lousy product full of flaws but you had to keep using it because you had no choice. what is so different from what is happening with flash just now? yet the ide of c# is awesome, works very well and seems reliable.
    adobe people: not all user are designers that just make pretty pictures. if it is not intended for scripting then why is it there. and if there are corrections to be done, they should patch all versions, not only the last one. previous version users also paid for their versions.

    Well, there is no point in arguing.
    I personally believe AS3 does exactly what it promises to do within limits (read: reasonable limits) of ECMA type of language. And sometimes it doesn’t do what we expect it to for it cannot possibly emulate everyone’s thinking process. The task, I guess, is to learn to think in terms of AS3 – not to try to make AS3 think like us. No language covers all the grounds. And no, it is not Java - with no negative or positive connotation. It is what it is. Period. I just hope that AS5 will be more Java like.
    You are right about the fact that it is not necessary to know all the aspects of language in order to perform the majority of tasks. But it is paramount to have a clear idea about such fundamental concepts as display list model and events. For instance, depth swap has no meaning in terms of AS3 because display list object stacking is controlled automatically and there is no need for all these jumping through hoops one has to perform in order to control depth in AS2. There no more gaps in depths and one always know where to find things.
    Similarly, there is no point in having duplicateMovieClip method. More conventional OOP ways of object instantiation accomplishes just that and much more. Just because OOP object instantiation needs to be learned doesn’t mean past hacks have place in modern times. duplicateMovieClip is a horse carriage standing next to SUV. What one should choose to travel?
    Events are implemented to the tee in the context of ECMA specifications. I consider Events model as very solid, it works great (exactly as expected) and never failed me. True, it takes time to get used to it. But what doesn’t?
    By the way, speaking about events, contrary to believe in Adobe’s inconsideration to their following. Events are implemented with weakly reference set to false although it would be better to have it set to true. I think this is because there are smart and considerate people out there who knew how difficult it would be for programming novices to deal with lost listeners.
    I think AS3 is million times better than AS2. And one of the reasons it came out this way is that Adobe made a very brave and wise decision to break totally loose from AS2’s inherent crap. They have created a totally new and very solid language. If they had tried to make it backward compatible – it would be a huge screw up, similar to how our friends at Microsoft are prostituting VB and VBA – extremely irritating approach IMHO.
    Also, Flash legacy issues shouldn’t be overlooked. Flash did not start as a platform for programmers. Entire timeline concept in many ways is not compatible with the best OOP practices and advancements. I think for anyone who is used to writing classes the very fact of coding on timeline sounds awkward. It feels like a hack (and AS2 IS a pile of hacks) – the same things can be nicely packaged into classes and scale indefinitely. As such I wouldn’t expect Adobe to waste time on hacking timeline concept issues by making smarter editor. They have made a new one – FlexBuilder – instead. Serious programmers realize very soon that Flash IDE is not for developing industrial strength applications anyway. So, why bother with channeling great minds into polishing path to the dead end?
    I would like to state that all this is coming form a person who knew Flash when there was no AS at all. And I applaud every new generation of this wonderful tool.
    I believe Adobe does a great job making transition from timeline paradigm to total OOP venue as smooth as possible. And no, they don’t leave their devoted followers behind contrary to many claims. They are working on making developing Flash applications as easy as possible for people of all walks. Welcome Catalyst!
    Of course there is not enough information about AS3 capabilities and features. But, on the other hand, I don’t know any area of human kind activities that does.

  • What's annoying about Events, Keyword Collections & Move to trash

    Today I was given a project to edit where the Event was already created, the media was optimized, keywords added and keyword collections created to split the media into folders. All I had to do was to sync the 2x cam's to separately recorded audio, and begin grabbing sound bites.
    Nothing unusual so far....
    To start my syncing, I began by finding all the clips from CAM-A and added the keyword SYNC 1 (CAM-A). I also added the separately recorded audio file within this keyword collection. Clicking on the SYNC 1 (CAM-A) keyword collection icon, I highlighted all the clips, right-clicked and chose Syncronize Clips.
    This is what I find annoying: When I choose Syncronize Clips, The synchronized compound clip doesn't automatically appear in my SYNC 1 (CAM-A) keyword collection folder, instead I need to click on the event and add the keyword for it to appeare in that keyword collection. Wouldn't one think that if I chose to create a Syncronized Clip in that keyword collection that FCPX knows thats where I want it to appear...!
    Anyway so in this particular case not all the clips synced, so what I then did was chose the un-synced clip + the audio clip and synced them alone. As i synced these clip separatley, what I was doing was moving the already synced clip to the trash, totally forgetting that these were also being deleted from my main event folder. Boy was I "P***'S'd"
    Again what I found annoying: if you move a clip to the trash in a keyword collection, you actually delete that from the event too. Persionally I'd like to see an option so that you can righ-click and delete a keyword rather than having to twirl down the triangle,  double clicking the keywords to activate the keyword editor, which you then have to select the keyword and hit delete to remove it out of that keyword collection.
    If for arguments sake a clip wouldn't sync, what I then did was find a small snippet of the same audio. I would make a range selection and add a keyword to both the clip and the audio file.
    What I also found annoying: when you open the Syncronized Compound Clip, your unable to stretch the clip to the left, instead I needed to use my "P" tool to move the clip to the right, which then gave me room to streatch the clip to the left.
    Sorry I just had to get that out of my system....

    andynick wrote:
    Yes - and I'm another who loves FCP X . . .
    (but doesn't it drive you round the BEND somitimes)?
    Absolutely Andy.... I won't go into what does and doesn't drive me mad, but your absolutely right, at times I have a smile from ear to ear, and other times I'm left scratching my head and spending valuable time trying to work out a workaround or workflow.
    andynick wrote:
    I think Apple's recommendation of 4GB RAM is a joke.
    True... I spent a day with a colleague editing side by side. He has a 17" MacBook Pro Quad 2.3Ghz with 4GB RAM, and I run on a 17" MacBook Pro Quad 2.3Ghz with 8GB RAM. You wouldn't believe the difference an extra 4GB's of RAM can make, I can only imagine how your system will run on 16GB
    BenB wrote:
    You can right-click a clip to remove keywords, but the only option as present it to remove all keywords at once (Cntr+0). Cmd+K to remove one keyword when you have multiple keywords seems pretty dang easy to me.  If you had more than one Keyword, what would the option in a menu be?  It could make for a very long menu, it'd have to be a dynamic menu, it'd get too convoluted.  So, Contrl+0 or Cmd+K seems pretty easy and efficient to me.
    Ben it was only a suggestion…! Anyway It's probably best we rest this here, it's clear we have different opinions on this one
    BenB wrote:
    As for workflow, no, FCP X is a totally different workflow than any other NLE, period.  You can't compare.  I've been training editors for years who have lots of experience, are from cable networks, and they still walk away faster, more efficient editors.  Thus, I have to say, how long you've been editing, and how many different systems you've use, really doesn't have any bearig when learning something, especially as radicallly different as FCP X.
    Who's comparing?
    The only reason I mentioned what software I've edited on in the past, was so you can see my ability to adapt. FCP X isn't that different! you still work with media, you still need to manage, organise  or name your bins, or in FCPX's terms keyword collections. The list could go on....
    Anyway I'm not here to boast about my experience or the software I've edited on, instead I posted a "personal" view in what I thought would make a nice enhancement, which at the end of the day is just my view…
    BenB wrote:
    I've worked with Larry Jordan a couple of times.  Good tips and tricks stuff.  But the Apple authorized training materials are best for learning from the begining and getting a good handle on things in general.  Nobody (and I mean nobody) knows FCP X like Steve Martin.
    I respect your advise and have just purchased, and am now downloading Steve Martin's tutorials.
    You've got me curious... I'd like to see how different Steve Martin explains FCP X as opposed to Larry Jordan's videos.
    I'll report back on this one as soon as I've viewed them all
    BenB wrote:
    Fill out the feedback page, as I have done a kazillion times already, and let Apple know we need these new Sync'ed Compounds to retian the keywords of their originals.  It would make for a faster workflow.  Seems it'd be easy for them to program in.
    Already done and let's hope so.....
    BenB wrote:
    Here's what I do when sync'ing a bunch of stuff.  I create a Smart Collection that is just a Text parameter that "includes" the word "Compound".  Then when I make the new Compound clips, I can get right to them.  It's a workaround.
    10 points for this tip Ben....
    This is a perfect example where someone (me) expresses his thoughts, then someone (you) finding a solution.
    Love your work mate....!
    BenB wrote:
    I don't do multiple syncs at once, because of bugs, that's all.
    Sorry to sound like a broken record, but an explanation as to why and what bugs would be wonderful.
    Ben, again please don'y take my response as being aggressive. I believe we all come to these discussion forums because some of us have questions, others idea's, and most importantly the ones that give us solutions. That's what makes this community a happy place to come too

  • Preview gobbling up all my hard drive space

    In preview under File>Revert to>Browse All Versions I see the following
    http://puu.sh/81Nh5
    the snapshots of a pdf in preview is taking WAY too much space, how do delete these old versions and how do i stop my mac from takingfrequent  snapshots of PDF documents I am editting, it is really frustrating and slowing my mac down.
    Time Machine is not turned on, this seems like an automated process done by preview

    According to this document: http://support.apple.com/kb/ht4753
    "OS X creates a new version of a document every hour while you’re working on it. OS X saves only the information that has changed since the last version, making efficient use of space on your hard drive. OS X manages the version history of a document, keeping hourly versions for a day, daily versions for a month, and weekly versions for all previous months."
    So you should only have one version for each week that you ever modified the document.
    How much space is the PDF taking?

Maybe you are looking for

  • Memory issues in java3d1.2(openGL ver) and 1.2.1-03 sdk(openGL ver)

    hi , i am working in java 3d and handling memory issues .I have made following observations. In java3d 1.2 version,when we close a primitive ,(transform group,point3d,transform 3d release) about 80% of memory used by the primitive when it was opened.

  • No contact with VCR

    hi saw a similar thread, but this is a little different, can not get any pic from my vcr, despite autotuning. i connect via antenna cable, i have no antenna connected to vcr only  the cable to my 651, i can get 2 channels without the antenna but not

  • SQL Developer - Adding a column comment via SQL

    When I add a comment in SQL*Plus via SQL, such as COMMENT ON COLUMN "MY_OWNER"."MY_TABLE"."MY_COLUMN" IS 'column comment' it works fine. When I try the same thing in SQL Developer I receive a message "No SQL statement entered". I realize this can be

  • Windows 7 Home Premium Remote Connect

    Is there a remote desktop connection that will work with Windows 7 Home Premium without a lot of required technical changes?

  • Error when running. / runInstaller to install clusterware

    I'm trying to install Oracle Clusterware 10.2 as a prerequisite for a new RAC environment, my installation is on oracle linux 5 U 7, but when I try to run ". / RunInstaller" an error occurs, i can not pinpoint the error, and I should correct, please