How to add component dynamically to datatable row?

Hi,
I have a dropdown in one column of table.Depending upon selected value in that dropdown, I want to add some components dynamically only in that row.How to do this?
I have seen that findComponent() method doesnt accept clientId.Is there any other way to use clientId to search components. Because clientIds contain row numbers.
Thanks in advance,
Chitra.

Bind the component to the bean using its 'binding' attribute. Then use it instead.

Similar Messages

  • How to add column dynamically based on user input in oracle?

    **how to add column dynamically based on user input in oracle?**
    I am generating monthly report based on from_date to to_date below is my requirement sample table
    EMPLOYEE_CODE| Name | CL_TAKEN_DATE | CL_BALANCE | 01-OCT-12 | 02-OCT-12 | 03-OCT-12
    100001.............John...........02-OCT-12...............6
    100002.............chris...........01-OCT-12...............4
    Based on user input, that is, if user need the report from 01-OCT-12 TO 03-OCT-12, i need to add that dates as column in my table, like 01-OCT-12 | 02-OCT-12 | 03-OCT-12....
    below is my code
    create or replace
    procedure MONTHLY_LVE_NEW_REPORT_demo
    L_BUSINESS_UNIT IN SSHRMS_LEAVE_REQUEST_TRN.BUSINESS_UNIT%TYPE,
    --L_LEAVE_TYPE_CODE           IN SSHRMS_LEAVE_REQUEST_TRN.LEAVE_TYPE_CODE%TYPE,
    L_DEPARTMENT_CODE IN VARCHAR2,
    --L_MONTH                    IN SSHRMS_LEAVE_REQUEST_TRN.LVE_FROM_DATE%TYPE,
    L_FROM_DATE IN SSHRMS_LEAVE_REQUEST_TRN.LVE_FROM_DATE%TYPE,
    L_TO_DATE in SSHRMS_LEAVE_REQUEST_TRN.LVE_TO_DATE%type,
    MONTHRPT_CURSOR OUT SYS_REFCURSOR
    AS
    O_MONTHRPT_CURSOR_RPT clob;
    v_return_msg clob;
    BEGIN
    IF (L_BUSINESS_UNIT IS NOT NULL
    AND L_FROM_DATE IS NOT NULL
    and L_TO_DATE is not null
    -- AND L_DEPARTMENT_CODE IS NOT NULL
    THEN
    OPEN MONTHRPT_CURSOR FOR
    select EMPLOYEE_CODE, EMPLOYEE_NAME AS NAME, DEPARTMENT_CODE AS DEPARTMENT,DEPARTMENT_DESC, CREATED_DATE,
    NVL(WM_CONCAT(CL_RANGE),'') as CL_TAKEN_DATE,
    case when NVL(SUM(CL2),0)<0 then 0 else (NVL(SUM(CL2),0)) end as CL_BALANCE,
    from
    SELECT DISTINCT a.employee_code,
    a.EMPLOYEE_FIRST_NAME || ' ' || a.EMPLOYEE_LAST_NAME as EMPLOYEE_NAME,
    a.DEPARTMENT_CODE,
    a.DEPARTMENT_DESC,
    B.LEAVE_TYPE_CODE,
    B.LVE_UNITS_APPLIED,
    B.CREATED_DATE as CREATED_DATE,
    DECODE(b.leave_type_code,'CL',SSHRMS_LVE_BUSINESSDAY(L_BUSINESS_UNIT,to_char(b.lve_from_date,'mm/dd/yyyy'), to_char(b.lve_to_date,'mm/dd/yyyy'))) CL_RANGE,
    DECODE(B.LEAVE_TYPE_CODE,'CL',B.LVE_UNITS_APPLIED)CL1,
    b.status
    from SSHRMS_EMPLOYEE_DATA a
    join
    SSHRMS_LEAVE_BALANCE C
    on a.EMPLOYEE_CODE = C.EMPLOYEE_CODE
    and C.STATUS = 'Y'
    left join
    SSHRMS_LEAVE_REQUEST_TRN B
    on
    B.EMPLOYEE_CODE=C.EMPLOYEE_CODE
    and c.EMPLOYEE_CODE = b.EMPLOYEE_CODE
    and B.LEAVE_TYPE_CODE = C.LEAVE_TYPE_CODE
    and B.STATUS in ('A','P','C')
    and (B.LVE_FROM_DATE >= TO_DATE(L_FROM_DATE, 'DD/MON/RRRR')
    and B.LVE_TO_DATE <= TO_DATE(L_TO_DATE, 'DD/MON/RRRR'))
    join
    SSHRMS_LEAVE_REQUEST_TRN D
    on a.EMPLOYEE_CODE = D.EMPLOYEE_CODE
    and D.LEAVE_TYPE_CODE in ('CL')
    AND D.LEAVE_TYPE_CODE IS NOT NULL
    group by EMPLOYEE_CODE, EMPLOYEE_NAME, DEPARTMENT_CODE, DEPARTMENT_DESC, CREATED_DATE
    else
    v_return_msg:='Field should not be empty';
    end if;
    END;
    my code actual output
    EMPLOYEE_CODE| Name | CL_TAKEN_DATE | CL_BALANCE
    100001....................John............02-OCT-12.................6
    100001....................chris...........01-OCT-12.................4
    how to add column dynamically based on from_date to to_date?
    Thanks and Regards,
    Chris Jerome.

    You cannot add columns dynamically. But you can define a maximum number of numbers and then hide unused columns in your form useing SET_ITEM_PROPERTY(..,VISIBLE, PROPERTY_FALSE);

  • How to add Image dynamically in Webdynpro ABAP

    Hi Experts,
    How to add Image dynamically in Webdynpro ABAP.
    My requirement is i maintain all the images in a table.
    image source has to pick the table URl dynamically and display.
    is that possible in webdynpro?
    and also please give the suggesion,
    without using MIME objects is that anyway to get images?
    Thanks in advance.
    Regrads,
    Jeyanthi

    Hi,
      are those icons wou want to display then. he following code will be useful.
    data : lo_IMG type ref to CL_WD_IMAGE.
    LO_IMG = cl_wd_IMAGE=>new_IMAGE( id = img_id SOURCE = 'ICON_BW_APD_TARGET' tooltip = sts_tltp ).
    lo_cont->add_child( the_child = lo_img ).
    here lo_cont is the container where you want to add the image dynamically and source is the attribiute through which you can change the ICON image. this thing you can getit from data base table and change accordingly.
    Regards,
    Anil kumar G

  • How to Add the Dynamic List Wizard Form to a Spry Accordion Panel?

    Is it possible to add ADDT Dynamic Forms to the Spry Widgets?
    - I have been trying to add the Dynamic List Wizard to my existing Accordion but everytime I do, the Accordion turns into plain text?
    -Also, If it is possible then how do I target the Panels and have the detail record open up in Panel number 2?
    I plan on having the ADDT Dynamic Form in Panel 1, and want the Add, Edit, New, Delete form to open up in Panel 2.
    Thanks for your help,
    jlig

    I figured this out.
    1) First add all the Fields to the Form using the ADDT Insert Record Form Wizard.
    2) View the ADDT form in the browser to make sure the fields all display.
    3) In DW design view, move the cursor just to the left of the ADDT Form and hit Enter to Add a line just above the ADDT Table.
    4) With the cursor below the Red Form line and just above the ADDT table add the SPRY widget. (ex..Tabs)
    5) Now highlight the rows you want to move & hit Cut, then open up Tab1, highlight Content1 and hit Paste.
    I decide to leave my date_added, modified_By & date_modified fields below the SPRY tab widget so that these fields are visible all the time. When I click on the Insert button, the record was added correctly to my Table after Validation passed.
    Thanks,
    jlig

  • How to add a dynamic filter in query panel

    I want to display the data in recent week, is it possible to add a dynamic filter in query panel?
    eg. filter--> actionDate >= CurrentDate - 7
    BO version: BOX I 3.1

    We are still trying to get this filter to work. Can anybody give us an example of how it should look on the sensor?
    The sensor filter that we would like to create should “exclude” any source IP, any source port to specific destination hosts on all destination ports (icmp has none) from capturing events and storing them in the event store on the sensor.
    This is the filter that we have so far on the sensor. What’s the problem with it?
    service event-action-rules rules0
    filters edit icmp-w-echo-filter-sensor-sensor-0-D
    signature-id-range 2100
    subsignature-id-range 0-255
    attacker-address-range 0.0.0.0-255.255.255.255
    victim-address-range a.b.c.x,a.b.c.y
    attacker-port-range 0-65535
    victim-port-range 0-65535
    risk-rating-range 0-100
    no actions-to-remove
    deny-attacker-percentage 100
    filter-item-status Enabled
    stop-on-match False
    no user-comment
    exit
    filters move icmp-w-echo-filter-sensor-sensor-0-D begin
    exit

  • How to add  inputfield dynamically

    Hi,
    How to add Textfield and inputfield dynamically when i select  Radio button in webdynpro-abap.
    Can any one give example code of this requirement.
    Thanks
    Neelima

    Hi Neelima,
                     You can write code in wddomodify to create input field dynamically. you can use the class cl_wd_input_field for that. Using methods in the class u can create new input field.
    you have to write the code to create input field inside a condition that check your radio button select.
        i didnt tried with inputfield yet, but i tried creating radio button like this.i think it will work.
    Regards
    Sarath

  • How to add a dynamic table to a Crystal ReportViewer?

    Hi All,
    I'm trying to create my first crystal report, but I want to create the data dynamically. I want to create my table on the fly then, just dump the table into the crystal report.
    1. I'm not sure how to setup the fieldnames in the report to point to my dynamic table.
    2. How do I add the columns name in my dynamic table to my report?
            DataTable m_tExample = new DataTable();
            // Add Column Names
            m_tExample.Columns.Add("firstname", typeof (string));
            m_tExample.Columns.Add("lastname", typeof( string));
            // Add Test Data
            m_tExample.Rows.Add("MT","Long");
            m_tExample.Rows.Add("D", "Chiat");
            m_tExample.Rows.Add("Matdt", "Sdmith");
            m_tExample.Rows.Add("Kevin", "Cloley");
            m_tExample.Rows.Add("Maitt", "Diurkee");
            m_tExample.Rows.Add("Paam", "Duurkee");
            m_tExample.Rows.Add("William", "Never");
            m_tExample.Rows.Add("Tang", "Hong");
            m_tExample.Rows.Add("Mike", "Lopez");
            m_tExample.Rows.Add("Bill", "Chao");
            m_tExample.Rows.Add("Az", "Mattizra");
            m_tExample.Rows.Add("Raja", "Crash");
            m_tExample.Rows.Add("Jimmy", "Compton");
            m_tExample.Rows.Add("Ray", "Johnson");
            m_tExample.Rows.Add("Janice", "Howard");
            m_tExample.Rows.Add("Tony", "Scott");
        // Add DataSet to Viewer?
            CrystalReportViewer1.ReportSource = m_tExample.DataSet;
            CrystalReportViewer1.DataBind();
    NOTE: When I'm in the designer, I only see a text object to place in the report detail for a fieldname.
    VS 2005, Crystal Report 2008
    Thanks.

    Hello,
    Once you get the Data Set create save it as XML and then create a new report off the XML file. Then you can set the data set to the report and the XML is not required any more.
    First, to be able add fields to a report you need to use RAS. Report.Engine doesn't have the ability.
    If you search in this forum you will find lots of examples on how to...
    If you want to create the report then see these RAS samples:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples#NETRASSDKSamples-Exporting%2FPrinting
    Don

  • Apex 4.0 how to add a button to each row of a report

    Hi Everyone
    I have to a requirement where i need to add a button or link to each row of report dynamically and when a user clicks on it region has to display a region below.
    For example displaying report in region 1 and when a user clicks the link or button the region 2 has to appear based on the condition.
    Report display details of employee , employeename, emp no, manager, depto, sal,feedback and if the feedback is filled then the link should not appear and if feedback is not filled and the link or button should appear beside that row and allow the user to click and when it is clicked it has to show region 2 .
    I am new to Apex, please help me out how to do this.
    Thanks in advance
    Regards
    Sandeep

    Step 1:
    Add a new item to set ID principal in report 2. ex. "P2000_ID" (maybe hidden item)
    Step 2:
    in report 1 section "report Attributes" section "Link Column"
    -> Link Column = Link to Custom Target
    -> Link Icon: Select some Icon link.
    -> Target: Page in this Application
    -> Page: same page ex. 2000.
    -> Item 1: "Name" = select Item created (step 1) "P200_ID" "Value" = #NAME_OF_ID_COLUMN_IN_REPORT_1#
    -> Apply Changes
    Step 3:
    Create query to report 2
    Ex.
    select *
    from
    TABLE2
    where
    ID=:P2000_ID
    -> In Report2 condition
    * Condition Type = Value of item in Expression 1 Is NOT NULL
    * Expression1 = P2000_ID

  • How to add a comment for each row on the output of a report?

    I would like to add a comment (field) for each row on the output of report? This comment should to be saved as well. Is there a way i can do that?
    Regards,
    Ram

    Hi Dimitri,
    through the instead of trigger functionality i am able to update the view. This is view is based on different views which should be linked to a table (as you suggested) in which comments can be stored. Hower this table is empty and how to link this table with the view now? I face the following challenge.
    View consists the following columns, for example
    select name, sex, age from test_view
    name sex age
    John M 20
    Anton M 30
    Willy M 40
    shirley F 38
    sharon F 37
    The report has the following output, for example
    name     sex age
    John     M 20
    Anton     M 30
    Willy M 40
    Shirley F 38
    Sharon F 37
    Now i would like to add comment through a button.
    The report layout looks like
    name sex age
    John M 20 <add comment button>
    After submitting the <add comment button> you can enter text which deals with John
    text='John doesnot like me'
    Finally the report display the comment as well
    name sex age
    John M 20 'John doesnot like me' <update/delete comment button>
    Anton M 30 <add comment button>
    Willy M 40 <add comment button>
    Shirley F 38 <add comment button>
    Sharon F 37 <add comment button>
    After submitting the <update/delete button> you can change or delete the entered text.
    I hope this example clears things up.
    Regards,
    Ram

  • How to add a dynamic parameter with VB 6?

    I'm building a simply application that will open crystal 11 reports and add a single parameter. I've been able to get this working however I don't know how to set the parameter as dynamic and add to the list of values?

    Hi Jason,
    Please search Forums before posting a question. There are others doing the same whcih include samples on how to. Here's one of them: Loading a prompt list dynamically on an ASP.NET page in Crystal 11
    I assume you are using the RDC ( craxdrt.dll ). The RDC has been deprecated since version 9 meaning there have been no updated or new fucntionality added to it. Since Cascading Parameters were introduced in CR 11 the RDC has no API available and nor does the .NET components. Check the posting above for more info.
    Also the RDC is not supported in .NET so you should upgrade CR and move to .NET Suite.
    Thank you
    Don

  • How to add a dynamic where clause for a sql based VO with group by query?

    Hi,
    Here is my case, I have a sql query based VO with the query like "select status, count(*) StatusCount from my_table group by status". Now I used the following java code trying to dynamically add the where clause to my VO to filter the rows based the type attribute in my DB table.
    vo.setWhereClause("type='MyType1' ");
    vo.executeQuery();
    Then I got the sql syntax error. Looks like the ADF has added the where clause to the end of my sql so my sql becomes "select status, count(*) StatusCount from my_table group by status where type='MyType1' ". But what I expected was the correct syntax "select status, count(*) StatusCount from my_table where type='MyType1' group by status".
    Does anyone know if this is an ADF bug? Or is there any other way to achieve my goal?
    Thanks,
    Chunyang
    Edited by: Chunyang on Dec 13, 2012 9:09 PM

    Hi,
    When you use setWhereClause on the VO, it is applied on top of the VO query. I.e, assume your VO has the following query.
    select empno, ename from empNow, if you apply the where clause programatically, only the two attributes that you are using in the select statement could be used. I.e
    select * from (select empno, ename from emp) where ename='KING' - VALID
    select * from (select empno, ename from emp) where deptno=10  - INVALID (because the inner query - the one you've defined as query for your vo does not have deptno attribute selected)If you would need to set a dynamic where clause, you need to make them available in your select statement / use bind variables.
    -Arun

  • How to add a dynamic menu to the Portal?

    Dear all,
    I am restructuring the company's Intranet on which I plan to put a left-side vertical menu. On the menu, most links are accessible to all Intranet users except some KPI (key performance indicators) links which are only accessible to managers.
    I am evaluating a third-party dynamic menu builder so called "Sothink DHTML Menu" which is javascript based and provides features for connecting to database via JDBC in jsp.
    For static menu scenario, "Sothink DHTML Menu" is perfect for Oracle Portal in the sense of easy development and deployment.
    For dynamic menu scenario, if I really want to use "Sothink DHTML Menu", I need to put the codes in jsp file and then place the jsp file on the Portal page. Here is the tutorial http://www.sothink.com/product/dhtmlmenu/store/jspdb/jspdb.htm
    I still can't figure out how to do that. Can any experts here tell me how or suggest other alternatives for generating a dynamic menu on Portal?
    Thanks
    George (HK)

    Hi
    I also use SoThink menus in Oracle Portal, but for static menus (I upload them in the HtDocs of Apache and then refer to them with an URL Item).
    In my previous version of Portal I also had to display some kind of dynamic menus, some parts should only be visible to some users/groups. But I didn't use Sothink at this moment but "DHTML Menus" from an other company.
    Starting from an example and using their libraries I wrote my own menu in javascript. In this .js I wrote some functions
    - 1 that document.write(s) the start of the menu and the public part of the menu
    - 1 that document.write(s) the reserved part of the menu
    - 1 that document.write(s) the last part of the menu.
    Then in a navigation page I defined 3 regions, each region contains some jscript code that launchs the function/menu part of the same range. And I used the item level security to set right access to the second region/menu part.
    It worked fine, I just had to add some /* at the end of region 1 ent */ at the beginning of region 2 to remove the HTML code Portal writes between the regions.
    But it was very time consuming if your menu changes often.

  • How to add textboxes dynamically

    Hi,
    I want to add dynamic textboxes depending upon the user requirement.
    I am using struts framework.
    How do i code this in jsp page,formbean and action class

    Old thread here:
    http://forum.java.sun.com/thread.jspa?threadID=773363

  • How to add dropdownlist dynamically?

    Hi experts...
       I want  to add Dropdown list dynamically ,  i wrote bilow code for creating  dynamic dropdown  i dont know how to bind?
    can any one help me?
    " IWDTransparentContainer container1 = (IWDTransparentContainer)view.getElement("RootUIElementContainer");
                        IWDDropDownByIndex dropdown = (IWDDropDownByIndex)view.createElement(IWDDropDownByIndex.class, "DropDown1"); "
    Regards
    Sharada

    As you can read in the Javadoc, a DropDownByIndex UI element needs a context node with cardinality 0:n and an attribute of type "string" inside that node. Say your context already contains such a node named "Items" with an attribute named "text", then the code to bind the drop-down list is
    IWDDropDownByIndex ddList = view.createElement(IWDDropDownByIndex.class, "ddListID" /* may be null */);
    IWDNodeInfo nodeInfo = wdContext.nodeItems().getNodeInfo();
    IWDAttributeInfo attributeInfo = nodeInfo.getAttribute(IItemsElement.TEXT);
    ddList.bindTexts(attributeInfo);

  • How to : add commandMenuItem dynamically to af:menu

    I have af:menu and I need to add af:commandMenuItem dynamically,
    how would I do that ?
    any help is appreciated
    thank you all,

    Thanks for your response Simon,
    I was able to figure out
    RichCommandMenuItem newMenuItem1 = new RichCommandMenuItem();
    RichCommandMenuItem newMenuItem2 = new RichCommandMenuItem();
    menu1.getChilderen.add(newMenuItem1);
    menu2.getChilderen.add(newMenuItem2);
    if you want to add it to the af:group as a group items
    //create the group
    UIXGroup group1 = new UIXGroup();
    //set the parent
    group1.setParent(menu1);
    //add the group to menu
    menu1.getChilderen.add(group1);
    //set the attributes for new menu items
    newMenuItem.setText("group item 1");
    newMenuItem.setType("check");
    newMenuItem.setText("group item 2");
    newMenuItem.setType("check");
    group1.getChilderen.add(0,newMenuItem1);
    group1.getChilderen.add(1,newMenuItem2);
    Thank you
    //add the group to menu
    menu1.getChilderen.add(group1);
    Message was edited by:
    user626222

Maybe you are looking for

  • If statement in update query

    I was wondering if you could have a cfif statement inside of a update query.  See example below.  Is there a better way of doing it? thanks. <cfquery DATASOURCE="xxx" name="update">   UPDATE plant_gen_info         SET levels_complete = #URL.var0#    

  • Photos being duplicated and rearranged

    There are two issues I've been having with iWeb in regards to photos. The first is that whenever I make a slideshow it looks fine in iWeb, and it even works when I open up the index.html file in Safari, but it doesn't work when I actually upload my s

  • Motion. Compressor and FCP

    Really pleased that FCP now supports 720/50p but the ProApps 2007/02 update has broken Motion, FCP and Comprossor. In Motion I can't open the Library or File Explorer. In FCP the Motion Master Templates won't let me drop clips into the drop zones, wh

  • Assigning user in org model

    hi, Iam not able to assign user  under the position in my org model.Am i missing on somethning? Can any one plz help me thanks ajay

  • How to download a pristine Settings.sts file?

    I think I might have corrupted my settings.sts file in Frame 12. How do I download a new one without re-installing Framemaker? Thanks