I want to add DataGrid in my custom component as a child component,

I want to add DataGrid in my custom component as a child component, can we ?? or should i generate HTML for table creation in my custom component's renderer ?

I did that:
for example, if i want to add a Button control in my custom control:
public void encodeChildren( FacesContext context ) throws IOException
         super.encodeChildren( context );
        //createComponent raises exception.... invalid component type     
        //UIComponent field = FacesContext.getCurrentInstance().getApplication().createComponent( javax.faces.component.html.HtmlInputText.class.getName() );
         HtmlInputText input = new HtmlInputText();
        getChildren().add( input );
    public boolean getRendersChildren()
        return true;
    }Can you give me any example, i want to add child components at run time basically..

Similar Messages

  • ADF: want to add multiple instance of .jsff page in af:region dynamically

    Hi,
    I am having following requirement.
    We have one .jsff page, and we want to add multiple instance of this fragment page in <af:region> at runtime.
    Basically our requirement is anyhow we want to add multiple panel which is having many other child component at run time.
    Your suggestion will be very helpful.
    Regards,
    Deepak Parmar

    Vinod,
    Hmm.. only option left is i should add component at run time. but i am facing following issue...
    I am trying to add child component into RichPanelStretchLayout object at runtime, but getFacetCount() and getFacet() method of RichPanelStretchLayout is returning 0 and null respectively.
    can you please suggest me how can i add child component into RichPanelStretchLayout object?, i have directly added component using getChildered.add() method. but it wont work as i must need one facet object ( either START,BOTTOM or CENTER).
    Regards,
    Deepak

  • Want to add rows from database in custom table model

    Hello all,
    I have written custom table model which has single blank row intially.
    Once user clicks on button, i want to add more rows in custom table model and display them in JTable.
    I have created JTable object as shown below.
    Jtable patientTable = new JTable( new DiagnosticTableModel());
    My custom tabel model is as shown below.
    import javax.swing.table.AbstractTableModel;
    public class DiagnosticTableModel extends AbstractTableModel
         private String[] columnNames = {
                         "Date",
                                              "Diagnosis",
                                              "Severity",
                                              "Medications"};
         private String[][] data = {
          public int getColumnCount()
             return columnNames.length;
          public int getRowCount()
               return data.length;
          public String getColumnName(int col)
             return columnNames[col];
          public Class getColumnClass(int col)
             return getValueAt(0, col).getClass();
          public Object getValueAt(int row, int col)
             return data[row][col];
          public boolean isCellEditable(int row, int col)
          return true;
          public void setValueAt(Object value, int row, int col)
             data[row][col] = value.toString();
             fireTableCellUpdated(row, col);
    }Thanx a lot in advance.

    I have written custom table model which has single blank row intially.Why did you write a custom TableModel? The DefaultTableModel will work fine and it has methods that allow you to dynamically add rows to the table.

  • How to add more fields to Customer sales report

    I want to add some fields to customer sales report generating through S_ALR_87012186 like,Invoice number,Invoice date,Tax registration number,tax amount,before tax amount..etc.
    Please let us know the best possible method to add these details.

    It is not suggested to alter a standard SAP report. Still if the requirement persists, then copy the standard program into a zprogram and add required fields.

  • I already have creative cloud Photography plan and just want to add dreamweaver, is this possible?  Alternatively, I have tried purchasing the Complete - For CS Customers but it asks me to contact customer support and then sends me through to the forums!!

    I already have creative cloud Photography plan and just want to add dreamweaver, is this possible?  Alternatively, I have tried purchasing the Complete — For CS Customers but it asks me to contact customer support and then sends me through to the forums!!

    yes.
    contact adobe support by clicking here and, when available, click 'still need help', https://helpx.adobe.com/contact.html

  • FBL3n tcode output i want to add customer filed, need details steps

    Hi All,
    I want to add customer number to the output for the tcode FBL3n, Kunnr(ZZkunnr) added to RFPOS and RFPOSX structures, and then regenerating the RFPOSXEXTEND program and added this entry in the table T021S. after that written coe in the BTE 00001650.
    But while regenerating the RFPOSXEXTEND program I am getting error - END OF PHASE 002 with Message No D0 322.
    Can you give me the right steps.
    Regards
    Ajay.

    Hi Ajay,
    Please check special fields definition table T021S and check that
    fields are correctly defined. Review that 'field names' and
    'table name' are filled and input correctly.
    Please also review notes 984305 and 215798.
    RFPOSXEXTEND is aborted with error message D0 322 because of wrong
    entry in T021S.
    Also check the following wiki page:
    http://wiki.sdn.sap.com/wiki/display/ERPFI/VendornameFBL*N or
    http://wiki.sdn.sap.com/wiki/x/fg3cCw
    Also I recommend you to check the following thread:
    Vendor & Customers in FBL3N
    Kind Regards,
    Fernando Evangelista

  • Want to add Custom text after Product Branding Image for application

    Hi
    Can we add any text after Product Branding Image for application
    By default it will show the responsibility function name
    My requirement is after company logo I want to add Text at the top of application
    with center align
    Need suggestions
    Regards
    Krishna

    Hi Anoop
    If I done what u suggested then the function responsibilty name will also come
    and the application will be disturbed
    Is their a way to edit the text at the top
    Regards
    Krishna

  • How can I add a new message(custom text message) to the holiday approval em

    How can I add a new message(custom text message) to the holiday approval email-notification sent to the manager?
    TIA

    The answer is 'not very easily', unless the information you want to display is the employee's leave balances. In 12.1.3 Oracle have delivered functionality that allows you to include the leave balances in the approval notifications out-the-box, ie, without customization.
    For any other information you're probably going to have to customize the standard delivered HRSSA workflow. Within this workflow, the Leave of Absence functionality uses the Notify Approver (Embedded) (HR_APPROVER_NTF) notification. The body of this notification is set to the Notify Approver (Embedded) (HR_NTF_EMBEDDED_REGION) attribute. This in turn defaults to:
    JSP:/OA_HTML/OA.jsp?OAFunc=-&HR_EMBEDDED_REGION-&NtfId=-&#NID-
    So essentially you can change the HR_APPROVER_NTF notification. The problem with changing this notification is that it's generic - it's used for all SSHR functions and not just Leave of Absence. That means you have to make other, more substantial, customizations to the workflow to ensure the changes you make only applies to LOA.
    The other option is to personalize the review page (ie, the region referenced in &HR_EMBEDDED_REGION) to include whatever messages you want. But that means they'll appear on the Review page and all LOA approval notifications and that might not be what you want.
    It's usually better to live with what Oracle deliver and find an alternative solution! What's the content of the message you want to include?

  • Want to add a new field in VA05N

    Hi,
    I would want to add an extra field Employe responsible in VA05N.This field is populated at the time of sales order creation in the partner tab.
    Is there any way I can add this field in the output layput of VA05N transaction?

    Hi Jignesh.
    No.I have not entered the person resonsible number in the selection screen.My basic business requirement is that on entering the SO number or the customer number in VA05N, it should give me the person resonsible field in the o/p screen.Which is not appearing at the momoent even if I enter the partner Function (ER).Though the field is present in the o/p layout but somehow seems like the system is not populating it.
    Hi Krishna,
    The selction screen fileds are the filter parameters.I agree your point but being a part of o/p screen layout I think person responsible field should get populated on running the transaction.
    Pl suggest

  • Add custom field to af:query component?

    Anyone had any experience overriding af:query copmonent? I need to add my custom search field (to query component), which would have a search icon next to it, and on click, a popup widow would open containing my custom task flow where I could select a record with certain value and on return that custom field (in query component) would get populated with selected value. I hope I'm being clear. Please point me to any useful information. Is that even possible? I use JDeveloper 11.1.2.3.4.0 Regards, Marko

    Hi,
    af:query is a component that comes as is. Its not designed for customization in that you can add your own fields. If you have a requirement for this then
    1. expose a method on the VO Impl or AM Impl that expect arguments (your query parameters)
    2. Use the arguments to populate bind variables used by a ViewCriteria
    3. Apply the View Criteria to the View Object
    4. Execte the View Object
    5. Drag and drop the method from the DC panel as a parameter form
    6. Ensure the result table PartialTrigger property is pointing to the button ID of the parameter form
    7. Change whatever UI component you want to change in the parameter form
    This gets you going ...
    Frank

  • In iPhoto slide show I want to add notes to each slide. Following the directions, I press VIEW but I don't see "Show Notes". How do I do it?

    In iPhoto slide show I want to add notes to each slide. Following the directions, I press VIEW but I don't see "Show Notes". How do I do it?

    hello louise, the firefox button will only be displayed in case the menu bar is hidden (''view > toolbars''), but you can access the options through ''tools > options'' as well in order to set a custom homepage...
    [[How to set the home page]]

  • Want to add 2 fields in report ARXAGMW.rdf

    Hi,
    I want to add to fields in the report ARXAGMW.rdf.
    The fields are:
    - ps.trx_date transactiedatum, --transactiondate
    - ps.amount_due_original factuurbedrag, --transactionamount
    I changed the function below. I pasted not the whole code.
    But when i run the report i get the error:
    MSG-01001: after build_invoice_select
    ORA-01789: query block has incorrect number of result columns
    ==> select rpad ( 'a' , 50 , '-' ) cust_name_inv , rpad ( 'a' , 30 , '-' ) cust_no_inv , rpad ( 'a' , 4000 , '-' ) sort_field1_inv , rpad ( 'a' , 4000 , '-' ) sort_field2_inv , 0 inv_tid_inv , 0 contact_site_id_inv , rpad ( 'a' , 60 , '-' ) cust_state_i
    FUNCTION BUILD_INVOICE_SELECT
    RETURN LONG IS
    l_inv_sel LONG;
    l_inv_sel1 LONG;
    l_inv_sel2 LONG;
    l_inv_sel3 LONG;
    l_inv_sel4 LONG;
    l_inv_sel5 LONG;
    new_line VARCHAR2(10) := '
    BEGIN
    -- BUILD FIRST SELECT STATEMENT
    srw.message('1000','inside build_invoice_select');
    srw.message('1001','*** BUILDING SELECT #1 All outstanding transactions ***');
    l_inv_sel1 :=
    'select substrb(party.party_name,1,50) cust_name_inv,
    cust_acct.account_number cust_no_inv,';
    l_inv_sel1 := l_inv_sel1 || new_line;
    if (:p_rep_type = 'ARXAGS') then
    l_inv_sel1 := l_inv_sel1 || 'decode(upper(:p_in_sortoption),''CUSTOMER'',NULL,
    arpt_sql_func_util.get_org_trx_type_details(ps.cust_trx_type_id,ps.org_id))';
    elsif (:p_rep_type = 'ARXAGL') then
    l_inv_sel1 := l_inv_sel1 || 'col.name';
    elsif(:p_rep_type = 'ARXAGR') then
    l_inv_sel1 := l_inv_sel1 || 'sales.name';
    elsif(:p_rep_type = 'ARXAGF') then
    l_inv_sel1 := l_inv_sel1 || :lp_accounting_flexfield;
    end if;
    l_inv_sel1 := l_inv_sel1 ||
    ' sort_field1_inv,' || new_line;
    l_inv_sel1 := l_inv_sel1 ||
    'arpt_sql_func_util.get_org_trx_type_details(ps.cust_trx_type_id,ps.org_id) sort_field2_inv,' || new_line;
    if (:p_rep_type = 'ARXAGS') then
    l_inv_sel1 := l_inv_sel1 ||
    'decode(upper(:p_in_sortoption),''CUSTOMER'',-999,ps.cust_trx_type_id)';
    elsif (:p_rep_type = 'ARXAGL') then
    l_inv_sel1 := l_inv_sel1 || 'col.collector_id';
    elsif(:p_rep_type = 'ARXAGR') then
    l_inv_sel1 := l_inv_sel1 || 'nvl(sales.salesrep_id, -3)';
    elsif(:p_rep_type = 'ARXAGF') then
    l_inv_sel1 := l_inv_sel1 || 'c.code_combination_id';
    end if;
    l_inv_sel1 := l_inv_sel1 || ' inv_tid_inv, ';
    l_inv_sel1 := l_inv_sel1 ||
    ' site.site_use_id contact_site_id_inv,
    loc.state cust_state_inv,
    loc.city cust_city_inv,
    decode(:format_detailed,NULL,-1,acct_site.cust_acct_site_id) addr_id_inv,
    nvl(cust_acct.cust_account_id,-999) cust_id_inv,
    ps.payment_schedule_id payment_sched_id_inv,
    ps.class class_inv,
    ps.due_date due_date_inv,
    amt_due_remaining_inv,
    ps.trx_number invnum,
    ceil(to_date(:as_of_date) - ps.due_date) days_past_due,
    ps.amount_adjusted amount_adjusted_inv,
    ps.amount_applied amount_applied_inv,
    ps.amount_credited amount_credited_inv,
    ps.gl_date gl_date_inv,
         ps.trx_date transactiedatum,
         ps.amount_due_original factuurbedrag,
    decode(ps.invoice_currency_code, :functional_currency, NULL,
    decode(ps.exchange_rate, NULL, ''*'', NULL)) data_converted_inv,
    nvl(ps.exchange_rate, 1) ps_exchange_rate_inv, '
    l_inv_sel1 := l_inv_sel1 ||
    ' arpt_sql_func_util.bucket_function(:bucket_line_type_0,
    dh.amount_in_dispute,ps.amount_adjusted_pending,
    :bucket_days_from_0,:bucket_days_to_0,
    ps.due_date,:bucket_category,to_date(:as_of_date)) b0_inv,
    arpt_sql_func_util.bucket_function(:bucket_line_type_1,
    dh.amount_in_dispute,ps.amount_adjusted_pending,
    :bucket_days_from_1,:bucket_days_to_1,
    ps.due_date,:bucket_category,to_date(:as_of_date)) b1_inv,
    arpt_sql_func_util.bucket_function(:bucket_line_type_2,
    dh.amount_in_dispute,ps.amount_adjusted_pending,
    :bucket_days_from_2,:bucket_days_to_2,
    ps.due_date,:bucket_category,to_date(:as_of_date)) b2_inv,
    arpt_sql_func_util.bucket_function(:bucket_line_type_3,
    dh.amount_in_dispute,ps.amount_adjusted_pending,
    :bucket_days_from_3,:bucket_days_to_3,
    ps.due_date,:bucket_category,to_date(:as_of_date)) b3_inv,
    arpt_sql_func_util.bucket_function(:bucket_line_type_4,
    dh.amount_in_dispute,ps.amount_adjusted_pending,
    :bucket_days_from_4,:bucket_days_to_4,
    ps.due_date,:bucket_category,to_date(:as_of_date)) b4_inv,
    arpt_sql_func_util.bucket_function(:bucket_line_type_5,
    dh.amount_in_dispute,ps.amount_adjusted_pending,
    :bucket_days_from_5,:bucket_days_to_5,
    ps.due_date,:bucket_category,to_date(:as_of_date)) b5_inv,
    arpt_sql_func_util.bucket_function(:bucket_line_type_6,
    dh.amount_in_dispute,ps.amount_adjusted_pending,
    :bucket_days_from_6,:bucket_days_to_6,
    ps.due_date,:bucket_category,to_Date(:as_of_date)) b6_inv,';
    l_inv_sel1 := l_inv_sel1 || :lp_acct_flex_bal_seg || ' company_inv,';
    l_inv_sel1 := l_inv_sel1 || :lp_query_show_bill || ' cons_billing_number, ';
    l_inv_sel1 := l_inv_sel1 || ' arpt_sql_func_util.get_org_trx_type_details(ps.cust_trx_type_id,ps.org_id)'
    || ' invoice_type_inv ';
    IF upper(:p_mrcsobtype) = 'R' then
    l_inv_sel1 := l_inv_sel1 ||
    ' from hz_cust_accounts cust_acct,
    hz_parties party, ';
    /*Bug 3487101 : Incorporated the logic of COMP_AMT_DUE_REM_INVFORMULA() in the main query itself */
    l_inv_sel1 := l_inv_sel1 ||
    '(select a.customer_id,
    a.customer_site_use_id ,
    a.customer_trx_id,
    a.payment_schedule_id,
    a.class ,
    sum(a.primary_salesrep_id) primary_salesrep_id,
    a.due_date ,
    sum(a.amount_due_remaining) amt_due_remaining_inv,
    a.trx_number,
    a.amount_adjusted,
    a.amount_applied ,
    a.amount_credited ,
    a.amount_adjusted_pending,
    a.gl_date ,
              a.trx_date ,
    Where do i have to add to two fields?
    Regards,
    thijs

    This code is not formatted and therefore very hard to read. Please use the <pre></pre> tags to format code.
    Error: ORA-01789: query block has incorrect number of result columns
    Cause: You tried to execute a SELECT statement (probably a UNION or a UNION ALL), and all of the queries did not contain the same number of result columns.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Want to add new field in QA32/QA11 transaction under inspection lot stock

    Dear Experts,
    I want to add new field in QA32 transaction under inspection lot stock tab or under characteristic tab.
    The reason behind is: Depends upon UD decision i want to assing customer name. So already we are having one Z Report for all the lots against this lot we have to display customer name.
    So in order to fetch customer name in the Z report we want to assing customer through F4 selection in the usage decision  screen.
    I know this is possibe for Make to order scenario, but our senario is make to stock.
    Please advice your valuable inputs.
    Regards.

    Hi Sujit,
    Can you please elaborate it,coz i'm using the same but if i place the break-point in PBO of sub screen,the break-point won't be triggered.and is there any additional step to get the data from function group? if yes, please explain me indetail.
    If possible please provide the sample code for this.
    Thanks Inadvance.
    Madan
    Edited by: Madan.ngt on Mar 3, 2011 7:16 AM
    Edited by: Madan.ngt on Mar 3, 2011 7:17 AM

  • Add new field in customizing of define layout keys

    hi
    i want to add new table & field in customizing of define layout keys of capacity leveling.
    pls guide
    If you are asking a question, please mark your thread as a question. Otherwise you cannot award points for appropriate answers.
    -Paul
    (Moderator)
    Edited by: Paul Meehan on Mar 9, 2012 10:49 AM

    Hi,
         In spro -->produciton -->Capacity requirements planning -->Capacity levling and evaluation -->Strategy -->Define sequence and layout keys .. here u can add a field ..this layout key is later used in Planning profile and this planning profile is used in Overall profile .. thus while executing capapcity leveling selecting that particular Overall profile ..

  • I want to add Tax indicator colomn in script for PO

    Hi Gurus,
    I want to add Tax indicator colomn in script in customized objects for Purchase order. How to give the condition for tax indicator. if the tax is applicable in item level  it should give YES or NO, Please provide some possible solutions.
    Thanks,
    V.V.

    Hello,
    If tax is not applicable at PO line, it will be blank or 'U0' at field EKPO-MWSKZ. In the customized print program, you may read this and pass the value to the script.
    Thanks,
    Venu

Maybe you are looking for