How to display the fields dynamically in OAF

Hi All,
I have developed a OAF Page and it has one table region and has 5 rows on it.One of the field on the table is Message Choice.
The requirement is,If I select "Parts" then Lov Field should be displayed and If I select "Services" then one text field should be appear on that perticular table row.
I have created a PPR on Message Choice and done the coding as follows,but it is not working;
Please help me to achive it.
if("lineChange".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
String rowReference =pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
OARow row = (OARow)am.findRowByRef(rowReference);
String claimCategory = (String)row.getAttribute("ClaimLineType");
if ("Parts".equals(claimCategory))
row.setAttribute("ClaimPartNoLovRender", Boolean.TRUE);
row.setAttribute("ClaimPartNoRender", Boolean.FALSE);
else
row.setAttribute("ClaimPartNoRender", Boolean.TRUE);
row.setAttribute("ClaimPartNoLovRender", Boolean.FALSE);
Please let me know if there are any other ways to achive the same.
Thanks in Advance..

You might have the wrong forum. This forum is on IOP.

Similar Messages

  • How to display the fields in ALV Output without using Field catalog?

    How to display the fields in ALV Output without using Field catalog?
    Could you pls tell me the coding?
    Akshitha.

    Hi,
    u mean without building field catalog. is it? I that case, we can use the FM REUSE_ALV_FIELDCATALOG_MERGE.
    data: itab type table of mara.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = sy-repid
    i_structure_name = itab
    CHANGING
    ct_fieldcat = lt_fieldcat[]
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    *Pass that field catalog into the fillowing FM
    call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_grid_title            = 'REPORTING'
                is_layout              = gt_layout
                it_fieldcat             = lt_fieldcat[]
           tables
                t_outtab                = itab.

  • How to display the field "Country" in the Address Book UI ?

    How to display the field "Country" in the Address Book UI ?

    Using an add-on, MoreFunctionsForAddressBook gives you that opportunity.

  • How to display the field name in the tabulated view for a content query web part

    I have added a content query web part changed the web part file to include custom columns imported and reffered itemstyle.xsl
    to include the tabulated view for the content query.
    However the way it is displayed is such that only the content is displayed.
    As i am using a tabular view wto display the data, i want to display their field names as well.

    Hi  ,
    According to your description, my understanding is that you need to display the field in the tabulated view for a content query web part.
    For your issue, please refer to the code as below:
    <xsl:template name="VendorCustomStyle" match="Row[@Style='VendorCustomStyle']" mode="itemstyle">
    <html>
    <table width="100%">
    <xsl:if test="count(preceding-sibling::*)=0">
    <tr>
    <td width="8%" valign="top"><div class="item"><b>Vendor ID</b></div></td>
    <td width="12%" valign="top"><div class="item"><b>Vendor Name</b></div></td>
    <td width="50%" valign="top"><div class="item"><b>Vendor Description</b></div></td>
    <td width="10%" valign="top"><div class="item"><b>Vendor Country</b></div></td>
    <td width="10%" valign="top"><div class="item"><b>Vendor Date</b></div></td>
    <td width="10%" valign="top"><div class="item"><b>Created By</b></div></td>
    </tr>
    </xsl:if>
    <tr>
    <td width="8%" valign="top"><div class="item"><xsl:value-of select="@VendorID" /></div></td>
    <td width="12%" valign="top"><div class="item"><xsl:value-of select="@Title" /></div></td>
    <td width="50%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Description" disable-output-escaping="yes" /></div></td>
    <td width="10%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Country" /></div></td>
    <td width="10%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Date" /></div></td>
    <td width="10%" valign="top"><div class="item"><xsl:value-of select="@Author" /></div></td>
    </tr>
    </table>
    </html>
    </xsl:template>
    For more information, please have a look at the blog:
    http://www.codeproject.com/Articles/756834/Customizing-the-Content-Query-Web-Part-and-Item-St
    http://msdn.microsoft.com/en-us/library/ms497457.aspx
    http://clarksteveb.hubpages.com/hub/Customized-Content-Query-Web-Part-CQWP-in-SharePoint-2007-with-results-Tabbed-Grouped-and-in-an-HTML-Table
    http://blog.sharepointexperience.com/customitemstyle/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to display the fields in effective

    i have 10 fields names as name,add,code,no.seats......
    I have two choices those are Table, and other one is add fields and JScrollpane to a panel and display it.
    Can any one have other choices to display the fields effectively.

    You are only limited by your imagination. What sort of answer are you looking for?

  • How to display the rows dynamically in the table display in web dynpro abap

    Hi experts,
                   There is a visible row count tab where you can give the no of rows to be displayed in the output table, but i want it to be done dynamically as the row count of my table may change dynamically at runtime.
    And i want to know how to reduce the width of a column as my table display is taking the length as per the binded table specifications.Can anyone please help me out in this issue.
    Thanks in advance,
    Anita.

    Hi Anita
    You can bind the visiblerowcount property to the a context attribute. and at runtime you can set the context attribute to the no of rows you want in your table,
    Regards
    Naresh

  • How to display the fields using field catelog in ALV Report

    Hi,
    I have rquiremrnt in ALV report.I would need to add the new fileld in the ALV output screen.I have added the field but its appearing in the layout set but not directly displaying in the output screen.
    I have written the below logic for field catelog.
    CLEAR wa_fieldcatalog.
      wa_fieldcatalog-fieldname   = 'LOGGR'.
      wa_fieldcatalog-ref_tabname = 'MARC'.
      wa_fieldcatalog-col_pos     = l_pos.
      wa_fieldcatalog-outputlen   = 13.
       wa_fieldcatalog-seltext_s   = 'Log. group'.
      wa_fieldcatalog-seltext_m   = 'Logistics group'.
      wa_fieldcatalog-seltext_l   = 'Log. handling group'.
       wa_fieldcatalog-reptext_ddic = 'Log. handling group'.
      APPEND wa_fieldcatalog TO it_fieldcatalog.
      l_pos = l_pos + 1.
    Please let me know why the added field was not displaying automaticaly in the output screen.
    Regards,
    Reddy

    hi,
             try this
    clear wa_fieldcatalog.
    wa_fieldcat-tabname       = 'ITAB' ( give the internal table which has the field LOGGR)
    wa_fieldcatalog-fieldname = 'LOGGR'.
    wa_fieldcatalog-ref_tabname = 'MARC'.
    wa_fieldcatalog-col_pos = l_pos.
    wa_fieldcatalog-outputlen = 13.
    wa_fieldcatalog-seltext_s = 'Log. group'.
    wa_fieldcatalog-seltext_m = 'Logistics group'.
    wa_fieldcatalog-seltext_l = 'Log. handling group'.
    wa_fieldcatalog-reptext_ddic = 'Log. handling group'.
    APPEND wa_fieldcatalog TO it_fieldcatalog.
    l_pos = l_pos + 1.

  • How to display the link dynamically on placing the cursor on a field?

    Hello Experts,
    I have a requirement like, if i place the cursor on the prospect name in the details window of opportunity, prospects' email id should appear as a link. (Example: as tool tip appears when we place cursor on a field). I should be able to click on that email id to navigate from opportunity window to compose mail window.
    How can I achieve this functionality?
    Regards
    DNR Varma

    It's an interesting question.
    And I plan to write blog or wiki post on it.
    But right now out of time to design it in a beautiful big-post-style.
    So I'll just give you some ideas and later I'll publish detail scenario for this.
    1. First of all you need to put a javascript function in your view htm page and include jquery and cluetip in it too as described in mentioned blog.
    2. Then you need to create your own bsp element (tag) which will create a link with attributes onmouseover and rel since there is no standard element with such attributes. For this create your own bsp extension and copy bsp element Link from THTMLB bsp extension into it (enharite classes from thtmlb:link too). Then add two attributes 'rel' and 'onmouseover' to z-element and redefine DO_AT_BEGINNING method of element handler class:
    some problems with posting the code so [take a look at screenshot here|http://twitpic.com/7cp563].
    3. Then you need to implement chtmlb form iterator interface in some class. Good place is your view controller class. Put the IF_CHTMLB_FORM_ITERATOR on its interface tab. And implement the only method it has IF_CHTMLB_FORM_ITERATOR~RENDER_CELL_START (remember that this is a quick example so you need to adjust the code to your needs):
    also [take a look at another screenshot|http://twitpic.com/7cp5ot].
    4. Set chtmlb form iterator for your page.
    <%@page language="abap" %>
    <%@extension name="thtmlb" prefix="thtmlb" %>
    <%@extension name="chtmlb" prefix="chtmlb" %>
    <%@extension name="bsp" prefix="bsp" %>
    //!!! here must be jquery and cluetip includes with definition of CallTooltip function
    <%
    * Form iterator
    cl_chtmlb_config=>set_iterator( controller ). //!!! here we set iterator for chtmlb form
    %>
    <chtmlb:config mode = "RUNTIME"
                  xml  = "<%= controller->configuration_descr->get_config_data( ) %>" />
    That's it!
    Hope this will help you.

  • How to display input fields dynamically in PCR

    Dear SDN Community,
      In Position Change PCR, I would like to display different wagetypes the employee has got. Some of the employees has got 1 and others has got 2,3,4. Can you please tell me how do I achieve displaying these wage types dynamically.
    Thanks!
    Surya.

    Hi Surya,
    Good that you have taken time to update the thread.
    Thanks and regards,
    - anto.

  • How to display the fields,chkbox and a button

    Hi All,
    Here is the screen shot I may .
    Can anyone let me know the code to display a chkbox, button, textfield and a Jlabel fields on the screen in swing.
    Thanks
    Smi

    Minimalist exampleimport java.awt.*;
    import javax.swing.*;
    public MyFrame extends JFrame {
      private JLabel label;
      private JButton button;
      private JTextArea textArea;
      public MyFrame() {
        super("frame");
        label = new JLabel("label");
        button = new JButton("button");
        textArea = new JTextArea(10,10);
        Container container = getContentPane();
        container.add(label, BorderLayout.NORTH);
        container.add(textArea, BorderLayout.CENTER);
        container.add(button, BorderLayout.SOUTH);
        pack();
        setVisible(true);
      public static void main(String[] argv) {
        new MyFrame();
    }

  • How to make the fields dynamic read only in live cycle designer

    hi folks
    I have created a form in Adove livecycle es. Some fields should be read only from the start. So i have set the property .access 'open'. In versions of Adobe 8 this works, but in the latest version  it won't so i think it should be done via another solution. Does anybody know how?
    kind regards,
    Anton Pierhagen

    May be the below code may help.. It loops thru all the pages in the PDF form and make them protected. So the user can not change any value in the form.
    for (var i = 0; i < xfa.host.numPages; i++)
    var oFields = xfa.layout.pageContent(i, "field");
    var nodesLength = oFields.length;
    //set the access type to be protected for all fields
    for (var j = 0; j < nodesLength; j++)
    var oItem = oFields.item(j);
    oItem.access = "protected";
    Thanks
    Srini

  • HOW TO DISPLAY THE FIELDS IN ORACLE

    MY PROBLEM IS
    I AM HAVING TWO TABLES IN DATABASE
    1 ST TABLE NAME IS POT_FORCAST_MST
    2 ND TABLE NAME IS POT_FORCAST_TRANS
    I WANT TO SELECT ALL FIELDS FROM 1 ST RECORD AND THE RECORD COUNTS FROM SECOND RECORD OF PARTICULAR FIELD
    WHAT IS THE QUERY PLS GIVE SOLUTION?

    > MY PROBLEM IS
    Your problems are:
    - the fact you write everything in CAPITALS. Please
    don't.
    - in all your previous post (only 4, but still) you
    never answered a question opposed by someone who was
    trying to help you, or thanked anyone who answered
    you.As long as we are correcting English, 'opposed' should be 'posed'. There should be a comma after your closed parenthesis. Your final clause does not require a comma before 'or'. The article 'a' should instead be 'the'.
    - Saish

  • How to display the editable fields in output of an ALV report?

    Hi all,
    I have a requirement of displaying values in ALV Grid format and above this grid display i have to put some fields , that are editable.
    I know making ALV grid fields as editable, but here requirement is to display some fields before displaying the ALV grid dispaly and to enable these fields editable to user and when printing this the values entered by user also has tobe printed.
    Please help me on solving this problem? Is it possible to do this with ALV function modules?
    Thanks,
    Vamshi.

    Hi all,
    Thanks for your replies.
    But this is not  my requirement. I mentioned in my question that i too know how to edit the fields in ALV grid report.
    Here my requirement is .
                                             name :_____________
                                             amount:____________
    alv grid display
    Like above i need to display.  after name the user can be enter value and after amount also the user can be enter some value at output . But this is not the header of ALV .
    Is this possible in classical ALV or Classical report? If not please specify alternative?
    Thanks,
    Vamshi.

  • How to display the PK which is it alreday database sequence in a text field

    hi alllllllllllllll how to display the PK which is it alreday database sequence in a text field in form instance???

    2 ways,
    1) select the item in your SQL query and call it item_display - then you can treat it as a normal item with no impact on the database.
    2) Set the item to a display only item.
    Hope this helps,
    Russell

  • How to Change the Fields from Input mode to display mode

    Hi experts,
    Here is my business requirement. I need to show certain fields in the PRICING TAB OF SALES ORDER  in display mode. Now for this i am using the BADI definition CRM_PRICING_BADI.
       Now, can anybody tell me how to change the field type from input mode to change mode?

    Hi Karan,
      In your BADI has a parameter CT_INPUT_FIELD_NAMES with one field called CHANGEABLE with values:
         Field Can Be Changed
    A     Field Cannot Be Changed
       Assing this values to your fields according with your requirements.
    Regards.
    Manuel

Maybe you are looking for

  • PDF printing with oc4j apache fop not working

    I am configuring PDF printing in Apex 3.1.1. I have set up a shared component report query with a simple query. I have implemented the oc4j standalone and implemented the fop.war as specified in the "pdf printing in Apex" documentation. When I use th

  • Can someone recommend a powerline adapter that works w/ Airport Express/AirPlay?

    I recently purchased the Netgear Powerline 500 Nano PassThru Dual Port (XAVB5602-100NAS) and it works fine when I connect it to another computer in my house, but when I connect it to my 1st Gen airport express to use AirPlay through my stereo receive

  • MM report MB5S

    Hello MM Experts, We are using report MB5S, to analyze outstanding po's, however this report displays standard price, as opposed to PO price. Is there a report that I can run where I can see PO price, instead of standard or contract price? The reason

  • Comparision betwwen no of running Service application to a fixed no of servicre application of a batch file application

    sir i   have a batch file contains fixed no of similar service application .exe  files after the booting i  have to check weather all the service application are running successfully or not .Compare between the no of running application and fixed no

  • First row trouble with datagrid component

    Dear all, I think my question is entirely explained in the topic summary of this post. I have a datagrid that uses a item renderer. The main app is defined like in the first part of the attached code. The itemrenderer looks like the second part of th