ADF:LOV declarative component not working inside table component.

Hi,
I have created a custome LOV control,I am using this custom LOV control inside the table component,I am passing the below values as the parameter
KeyValue="#{row.bindings.Value.inputValue}"
LovModel="#{row.bindings.Value.listOfValuesModel}"
Value- is the list of value attribute.
When i click on the LOV search icon, the popup displays the Query model(it displays the list name at the top in the search page.so it is able to recognise the LOVmodel) but it is not able to retrive the list values.I am getting Query page with no values
in the jspx page it is giving warning as "reference not found for row.bindings.Value.listOfValuesModel"
Please can anyone help me on this?
Thanks,
Harish

Hi Frank,
below is my actual requirement and the solution i tried till now.
I have a table and it has two columns let’s say “Columns” and “Values”. The first column i.e. “Columns” will be a dropdown and it will have predefined values, the other column “Values” will be a “List of value” control or similar kind of control in which the user can search and select multiple values from the popup list, and that list should dynamically bounded to the first column selected value.
For Ex: if I select a value “Product” from the dropdown of the first column “Columns” , the control in the other column “Values” should bound to “product” list and I should be able to search and select multiple values from the pop up. And the popup should return the multiple selected values as a comma separated string to the textbox.
In my requirement I have to use only VO’s to create the list and the control in the “Values” column should switch between these VO’s depending on the value selected in the first column.
The solution we tried till now.
I used a LOV switcher to achieve the above requirement. But we have a limitation in this approach as we could not do the multi select. Then we created a declarative LOV component in which we can select multiple values as a comma separated string from the popup.
I retained the LOV switch model , instead of binding LOV switch model to the basic “Input List of Value” control in the JSPX page ,I used the LOV declarative component. Below is the code snippet which calls the declarative LOV component from JSPX page.
<af:panelFormLayout id="pfl2">
<af:selectOneChoice value="#{bindings.Columns.inputValue}"
label="#{bindings.Columns.label}"
required="#{bindings.Columns.hints.mandatory}"
shortDesc="#{bindings.Columns.hints.tooltip}"
id="soc3" autoSubmit="true">
<f:selectItems value="#{bindings.Columns.items}" id="si5"/>
</af:selectOneChoice>
<mc:OraMultiSelect
KeyValue="#{bindings.Value.inputValue}"
LovModel="#{bindings.Value.listOfValuesModel}"
id="oms2"/>
</af:panelFormLayout>
Where Value attribute is having LOVModel.
The above code perfectly fine as I used it inside the “Form layout” and with the parameters passed as KeyValue="#{bindings.Value.inputValue}"
LovModel="#{bindings.Value.listOfValuesModel}"
The problem I am facing:
The actual problem comes when I use this control inside the table which I required in my implementation.
I called the declarative LOV control as shown below inside the table as I used to call the basic “Input List of value” control which works fine inside the table.
. <af:column sortProperty="Value" sortable="false"
headerText="#{bindings.OpPlanning1.hints.Value.label}"
id="c1" width="133">
<mc:OraMultiSelect KeyValue="#{row.bindings.Value.inputValue}"
LovModel="#{row.bindings.Value.listOfValuesModel}"
id="oms1"/>
</af:column>
Above code doesn’t works fine when I select value from the “Column” dropdown it displays the corresponding list model in the pop up but not able to retrieve the value of the list in the popup .
If I pass the parameters as
. <af:column sortProperty="Value" sortable="false"
headerText="#{bindings.OpPlanning1.hints.Value.label}"
id="c1" width="133">
<mc:OraMultiSelect KeyValue="#{bindings.Value.inputValue}" --instead of ="#{row.bindings.Value.inputValue}"
LovModel="#{bindings.Value.listOfValuesModel}"--}" --instead of ="#{row.bindings.Value.inputValue}"
id="oms1"/>
</af:column>
It works fine for the first row.The subsequent rows refers the value selected in the first row dropdown.
Thanks For the help,
Harish
Edited by: 886523 on Nov 3, 2011 8:04 AM

Similar Messages

  • Scroller Component not working with TabbedViewNavigator Component (Flex Mobile)

    SETUP:
    -The Application itself is a MobileApplication, not TabbedMobileApplication.
    -One of my pages/views (we'll call it "TabbedPage") incorporates the TabbedViewNavigator component, which calls on two other pages/views in my "views" folder; we'll call them "TabbedPageOne" and "TabbedPageTwo"; the other pages within the application are just regular View pages with components on stage, including a page that also incorporates the Scroller component, which functions properly without a hitch.
    -TabbedPageOne incorporates a Scroller component (followed by a VGroup component as required) that is constrained to the whole screen (left, right, top, & bottom all equal "0").
    -At runtime (on my desktop and device), when I navigate to the TabbedPage page -- consisting of TabbedPageOne & TabbedPageTwo -- the Scroller component will not scroll.
         ---Sidenote: I filled the page with components like buttons and labels to fill the page to the point of activating the scroll function, and although the buttons were still functioning (meaning they still respond to touch events), the Scroller still did not function.
    Is there something I'm missing or doing wrong, or is this a glitch within the Flex Framework?
    You help would be greatly appreciated!

    Sure!
    --------------------------------------------------- MAIN.mxml ------------------------------------------------------------
    <?xml version="1.0" encoding="utf-8"?><s:MobileApplication xmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s="
    library://ns.adobe.com/flex/spark"backgroundColor="
    #FFFFFF" firstView="views.TabbedPage"frameRate="
    60"splashScreenImage="
    @Embed('splashScreen.jpg')">
     <fx:Declarations>
     <!-- Place non-visual elements (e.g., services, value objects) here -->
     </fx:Declarations>
    </s:MobileApplication>
    -------------------------------------------------------------- TABBEDPAGE.mxml ---------------------------------------------------------------------
    <?xml version="1.0" encoding="utf-8"?><s:View  xmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s="
    library://ns.adobe.com/flex/spark"actionBarVisible="
    false" tabBarVisible="false" title="TabbedPage">
     <fx:Declarations>
     <!-- Place non-visual elements (e.g., services, value objects) here -->
     </fx:Declarations>
     <s:TabbedViewNavigator left="0" right="0" top="0" bottom="0">
     <s:ViewNavigator label="One" firstView="views.TabbedPageOne"/>
     <s:ViewNavigator label="Two" firstView="views.TabbedPageTwo"/>
     </s:TabbedViewNavigator>
     </s:View> </s:MobileApplication>  
    ---------------------------------------------------------------- TABBEDPAGEONE.mxml ------------------------------------------------------------------------
    <?xml version="1.0" encoding="utf-8"?><s:View  xmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s="
    library://ns.adobe.com/flex/spark"actionBarVisible="
    false" tabBarVisible="true" title="TabbedPageOne">
     <fx:Declarations>
     <!-- Place non-visual elements (e.g., services, value objects) here -->
     </fx:Declarations>
     <s:Label x="0" y="0" width="420" height="76" color="#000000" text="One"/>
     <s:Scroller left="0" right="0" top="40" bottom="0">
     <s:VGroup x="0" y="0" width="100%" height="100%">
    <!-- I just created these buttons so that the page scrolls--><s:Button label="Button"/>
    <s:Button label="Button"/>
    <s:Button label="Button"/>
    <s:Button label="Button"/>
    <s:Button label="Button"/>
    <s:Button label="Button"/>
    <s:Button label="Button"/>
    <s:Button label="Button"/>
    <s:Button label="Button"/>
    <s:Button label="Button"/>
    <s:Button label="Button"/>
    <s:Button label="Button"/>
     </s:VGroup>
     </s:Scroller></s:View>

  • Component not working

    JDEV 11.1.1.2.0 with adf 11g
    i have thow the exception in button commandToolbarButton of actionListener, after throwing exception , button commandToolbarButton working is stop , how to resolve , please help me,
    regards,

    Hello all,
    I am facing an issue with CommandToolbarButton. On Click of the button, I am not able to call the actionListener backingbean method. I have default PartialSubmit true and immediate to false. It does not throw any error but just does not call the method. Here is the code :
    <af:commandToolbarButton id="commandButton1"
    actionListener="#{backingBeanScope.xxxBean.addRecord}"
    icon="/add.gif"
    shortDesc="#{ViewControllerBundle.ADD}"
    partialTriggers="t5" immediate="false"/>
    However, with similar code on another fragment, I am able to call the action listener.
    Can anyone let me know what the issue could be with the component not working on this page ?
    Thanks,
    Victor

  • Layout adjustment not working with tables

    Hi all
    Why will layout adjustment not work with tables?
    I am trying to re-format from A4 landscape to A4 portrait.
    The text box containing the table will resize but not the table.
    Any clues why this might be, I don't want to manually resize every table in the document.
    Many thanks,
    Rob

    Thanks Jongware,
    Having resized the table and got the little red ovals, I tried various things like changing the font size etc but the best workaround I found was to select the table and change the cell inset value to 0, this got rid of all red ovals and I didn't need to change the font size.
    Cheers,
    Rob

  • Oracle equals_path condition NOT working with table and materialized view

    The user i am using is xdb with dba role.
    1.When i try to use the statement
    SELECT PATH FROM xdb.path_VIEW
    WHERE
    EQUALS_PATH(res, '/home/OE/PurchaseOrders/2002')=1
    the result is
    /home/OE/PurchaseOrders/2002
    2. When i drop the path_view and recreated it like materialized view with statement
    create MATERIALIZED view path_view as
    select /*+ ORDERED */ t2.path path, t.res res,
    xmltype.createxml(xdb.xdb_link_type(NULL, r2.xmldata.dispname, t.name,
    h.name, h.flags, h.parent_oid, h.child_oid),
    'http://xmlns.oracle.com/xdb/XDBStandard.xsd', 'LINK') link,
    t.resid
    from ( select xdb.all_path(9999) paths, value(p) res, p.sys_nc_oid$ resid,
    p.xmldata.dispname name
    from xdb.xdb$resource p
    where xdb.under_path(value(p), '/', 9999)=1 ) t,
    TABLE( cast (t.paths as xdb.path_array) ) t2,
    xdb.xdb$h_link h, xdb.xdb$resource r2
    where t2.parent_oid = h.parent_oid and t2.childname = h.name and
    t2.parent_oid = r2.sys_nc_oid$
    then the equals_path condition STOP working !!!
    3. The same experiment, but i recreate it like table
    create table path_view as .... using the rest of the statement ...
    Can someone help me to understand why equals_path is NOT working on table and materialized view !

    Thanks Jonah. I was under the impression that I already had it but seems like it has to be a direct priv - thru a role doesn't work.
    I granted the reqd privs and then it worked fine. Thx for your help!

  • I updated my mac's OS to Yosemite and now my eye drop tool will NOT work inside premiere pro. Can anyone help me fix this issue?

    The eyedropper tool for selecting colors to key out or to fill text will not work inside premiere pro, this error started when I updated my mac os to yosemite.

    Hi Transportation,
    Does the error occur in OS X 10.9? If not, why not remain at OS X 10.9? Is it necessary to run OS X 10.10?
    The general rule of thumb is that when you are running software that is no longer tested or supported on a new operating system, you have to prepare for anomalies like this. You may want to install a separate bootable hard drive with OS X 10.9 on it so you can continue running that software more reliably.
    Hope that helps,
    Kevin

  • The itunes ogg drop X component not working

    Hi there,
    I installed the itunes ogg drop X component not working from Ogg Drop X 1.0b5 and rebooted.
    I still cant play ogg streams. they play fine in a VLC player so I know they work.
    any body get the Ogg Drop X 1.0b5 itunes component working. How do I get it goin'?
    Cheers

    no response.

  • LOV /ADF UIX pages does not work on the older version od UIX page

    Hi
    I have recently migrated UIX project from the Jdeveoper 9i to Jdev10g version 1.0.1.2, everything work without any issue, however when I try to create a LOV or any component that are ADF-UIX based, but it does not work I don't even get any error, it just does not work based on the ADF-UIX (Expression base component),
    Any help to resolve this issue will be greatly appericated
    Thanks

    I too have problems with LOVs in UIX pages. I have
    some that you have to run twice to get back a value.To solve this problem,
    1) open your UIX page where you create a new row
    2) in the Structure window, click third tab "UI Model"
    3) double-click the control action binding corresponding to Create
    4) select CreateInsert from the list
    The problem is related to the fix we introduced for the "Blank Row Issue" (see http://www.oracle.com/technology/products/jdev/tips/muench/blankrow/index.html).
    If you have access to MetaLink, please refer to Note 299860.1 and Bug 4201020.
    Regards,
    Didier.

  • ADF JS API methods not working for the newly created rows in table

    Hi All,
    We need to make sure the focus goes back to the newly created rows first column's first component.
    Used findComponent and findComponentByAbsoulteId and even hard coded the id, but still the methods are returning null.
    Even tried ADFRichTable.getRowKey(index), by passing index as 0 for the first row, still the method is returning null.
    Tried ADFUITable.findComponent(Object scopedId, Object rowKey), but unable to pass client side rowKey as the above method is returning null.
    All our requirement is to make the focus back to the first row's component when the user clicks on the cancel button instead of save button. Appreciate your help. Thanks.
    P.S.: Rows will be created using CreateInsert method.
    JDEV Version: 11.1.2.0.0 and Table is in a region and we are using UI Shell Tab Template to launch regions.
    Raja.
    Edited by: RajaRamasamy on Feb 10, 2013 4:30 PM
    Edited by: RajaRamasamy on Feb 10, 2013 4:30 PM

    Thanks Frank,
    But some times even we use findComponentByAbsoulteLocator, its not working. So i followed the approach where you will get the rowID like the below and construct the client ID and pushing the JS to client using Service class. And it worked.
    String rowId = table.getClientRowKeyManager().getClientRowKey(facesContext, table, rowKey);
    But i am worried that even though we hard coded the client and executing the js function from the command button by keeping client listener's type as click, the focus is not setting. And i tried giving the id as tableId[rowIndex]:componentId in the findComponentByAbsoulteLocator.
    Can you let me know is there another way to make focus only using JS on click of command button, where the button does not have any action or actionListener.
    Raja.

  • ADF Custom error handler not working.

    Hi All,
    i am using jdev version 11.1.1.5.0. i have created one custom error handler class in model layer which extend DcErrorHandlerImpl class.
    and do the entry in Databinding.cpx file
    *<Application ErrorHandlerClass="mypackage.classname"/>*
    i have override getDisplayMessage(BindingContext ctx, Exception ex) method to show SQL Exception which comes from database table trigger.
    code is following-
    package com.in.jagran.view.services;
        import java.sql.SQLException;
        import oracle.adf.model.BindingContext;
        import oracle.adf.model.binding.DCErrorHandlerImpl;
        import oracle.jbo.JboException;
        public class AclasErrorHandler extends DCErrorHandlerImpl {
          public AclasErrorHandler(boolean setToThrow) {
            super(setToThrow);
            System.out.println("Inside Error Handler class");
          public AclasErrorHandler() {
              super(true);
           // this(true);
           * Returns the message that will be reported to JSF for each error that occurs.
           * Returning "null" is the way the custom error handler signals that a given exception
           * should not be reported to the client.
          @Override
          public String getDisplayMessage(BindingContext ctx, Exception ex)
            if (ex instanceof oracle.jbo.ValidationException) {
              return super.getDisplayMessage(ctx, ex);
            else {
              // Extract and return the error message that has to be displayed
              Exception exception = ex;
              String message = "";
              // If this exception is an instance of JboException,
              // try to find the cause by recursing over the eventual causing exceptions
              if (exception instanceof JboException)
                Throwable[] exceptionList = ((JboException)exception).getExceptions();
                while (exception instanceof JboException
                        && exceptionList != null && exceptionList.length > 0)
                  exception = (Exception)exceptionList[0];
                  if (exception instanceof JboException) {
                    exceptionList = ((JboException)exception).getExceptions();
              // *** Special processing of SQLExceptions
              if (exception instanceof SQLException) {
                message = exception.getMessage();
                // Ignore the lines in the error message that indicate the line number in the PLSQL code that the error resulted on.
                int ind = message.indexOf("ORA-06512");
                if (ind > 0)
                  message = message.substring(0, ind);
              // *** If the the reason for the JboException was data creation exception then display the message
              // of the top JboException (i.e. JBO-*****: Invalid numeric value, date format or time format)
              else if (exception instanceof NumberFormatException || exception instanceof IllegalArgumentException) {
                // Report the top exception
                message = ex.getMessage();
              // Otherwise report the message of the lowest exception in the hierarchy
              else {
                message = exception.getMessage();
              return message;
        }but it is not working for me.
    thanks in Advance.

    yes i have used dubugger.
    i have set break point to following line-
    return super.getDisplayMessage(ctx, ex);
    if (ex instanceof oracle.jbo.ValidationException) {
            return super.getDisplayMessage(ctx, ex);   
    }when atttribute validation done like i have attribute of type number and i have done the validation "must be greater than 0" now when i have given negative value control go to above line.
    and i have added following code also in handler class
            @Override
               public void reportException(DCBindingContainer dCBindingContainer,
                                           Exception exception) {
    System.out.println(exception.getMessage());
                       super.reportException(dCBindingContainer, exception);
                   }now when i have done commit operation control go to here and println statement print follwoing error on log window.
    JBO-26041: Failed to post data to database during "Rollback to Savepoint": SQL Statement "null".

  • Last_page button is not working in table control-urgent

    hi  all,
    iam displaying the data in table control.in my pf-status i have first_page,next_page,prev_page and last_page.out of 4 buttons 3 buttons are working finr except last_page. any body can send me the code for this program.iam sending my program below.
    REPORT ZMAHI_TABLE_CONTROL .
    TABLES : VBAK,VBAP.
    DATA : BEGIN OF ITAB OCCURS 0,
             VBELN TYPE VBAK-VBELN,
             ERDAT TYPE VBAK-ERDAT,
             ERNAM TYPE VBAK-ERNAM,
             ERZET TYPE VBAK-ERZET,
             REASON(40) TYPE C,
           END OF ITAB.
    DATA :   FILL TYPE I VALUE 1.
    DATA : N TYPE I .
    DATA      : BEGIN OF XVALUES OCCURS 50,
                  BUTXT LIKE  T001-BUTXT,
                END OF XVALUES.
    DATA      : BEGIN OF XFIELDS OCCURS 50.
            INCLUDE STRUCTURE HELP_VALUE.
    DATA      : END OF XFIELDS.
    DATA      : BEGIN OF SEL_VAL OCCURS 50.
            INCLUDE STRUCTURE HELP_VTAB.
    DATA      : END OF SEL_VAL.
    TABLE CONTROL DECLARATIONS------
    CONTROLS : CONTROL_DATA TYPE TABLEVIEW USING  SCREEN '100'.
    DATA : OK_CODE TYPE SY-UCOMM,
    LIN TYPE I,
    LIN1 TYPE I,
    LIN2 TYPE I,
    LIN3 TYPE I.
    DATA: LINES TYPE I,
          LIMIT TYPE I VALUE 1.
    DATA :   LINE_COUNT       TYPE  I,
             LINEI            TYPE  I,
             LINEJ            TYPE  I,
             LINE1            TYPE  I,
             LINE2            TYPE  I,
             LN1              TYPE  I.
    SELECTION-SCREEN : BEGIN OF BLOCK B1.
    SELECT-OPTIONS   : P_VBELN FOR VBAK-VBELN.
    SELECTION-SCREEN : END OF BLOCK B1.
    START-OF-SELECTION.
      SELECT VBELN
             ERDAT
             ERNAM
             ERZET
        FROM VBAK
        INTO TABLE ITAB
      WHERE VBELN IN P_VBELN.
      CALL SCREEN 100.
    *&      Module  F4_HELP  INPUT
    MODULE F4_HELP INPUT.
      FREE  :  XFIELDS,SEL_VAL,XVALUES.
      MOVE : 'ZMAHI'     TO XFIELDS-TABNAME,
             'REASON'    TO XFIELDS-FIELDNAME,
             'X'        TO XFIELDS-SELECTFLAG.
      APPEND XFIELDS.
      XVALUES = 'Non Trade F&F'.
      APPEND XVALUES .
      XVALUES = 'Non Trade Retention'.
      APPEND XVALUES .
      XVALUES = 'Oldbills Accnt cntmnt'.
      APPEND XVALUES .
      XVALUES = 'Non Trade Not claimed'.
      APPEND XVALUES .
      XVALUES = 'Non Trade Dispute'.
      APPEND XVALUES .
      XVALUES = 'Non Trade Payment Block'.
      APPEND XVALUES .
      XVALUES = 'N/T Subsntly Cleared'.
      APPEND XVALUES .
      XVALUES = 'N/T Unstld Advances'.
      APPEND XVALUES .
      XVALUES = 'N/T OThers'.
      APPEND XVALUES .
      XVALUES = 'Trade Non Receipt OF BOE'.
      APPEND XVALUES .
      XVALUES = 'Trade OEM Adjustments'.
      APPEND XVALUES .
      XVALUES = 'Trade Reject Of Material'.
      APPEND XVALUES .
      XVALUES = 'Trade NOt Claimed'.
      APPEND XVALUES .
      XVALUES = 'Trade Dispute'.
      APPEND XVALUES .
      XVALUES = 'Trade Payment BLock'.
      APPEND XVALUES .
      XVALUES = 'Trade Subsntly Cleared'.
      APPEND XVALUES .
      XVALUES = 'Trade Non Submission of bills'.
      APPEND XVALUES .
      XVALUES = 'Trade others'.
      APPEND XVALUES .
      CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE_EXT'
           EXPORTING
                CUCOL         = 0
                CUROW         = 0
                DISPLAY       = ' '
                FIELDNAME     = 'REASON'
                TABNAME       = 'ZIFIOD011'
           IMPORTING
                SELECT_VALUE  = ITAB-REASON
           TABLES
                FIELDS        = XFIELDS
                SELECT_VALUES = SEL_VAL
                VALUETAB      = XVALUES.
    ENDMODULE.                 " F4_HELP  INPUT
    *&      Module  STATUS_0100  OUTPUT
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS '0100'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    MODULE USER_COMMAND_0100 INPUT.
      CASE SY-UCOMM.
        WHEN 'CANCEL' OR 'EXIT' OR 'BACK'.
          LEAVE TO SCREEN 0.
       WHEN 'NEXT_LINE'.
         CONTROL_DATA-top_line = CONTROL_DATA-top_line + 1.
         limit = fill - lines + 1.
         IF CONTROL_DATA-top_line > limit.
           CONTROL_DATA-top_line = limit.
         ENDIF.
       WHEN 'PREV_LINE'.
         CONTROL_DATA-top_line = CONTROL_DATA-top_line - 1.
         IF CONTROL_DATA-top_line < 0.
           CONTROL_DATA-top_line = 0.
         ENDIF.
        WHEN 'NEXT_PAGE'.
          CONTROL_DATA-TOP_LINE = CONTROL_DATA-TOP_LINE + LINES.
          LIMIT = LIMIT + 1.
          CONTROL_DATA-TOP_LINE = LIMIT.
        WHEN 'PREV_PAGE'.
          CONTROL_DATA-TOP_LINE = CONTROL_DATA-TOP_LINE - LINES.
          LIMIT = LIMIT - 1.
          CONTROL_DATA-TOP_LINE = LIMIT.
       WHEN 'LAST_PAGE'.
         CONTROL_DATA-TOP_LINE =  FILL - LINES + 1.
        WHEN 'FIRST_PAGE'.
          CONTROL_DATA-TOP_LINE = 0.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  SCROLL_BAR  INPUT
    MODULE SCROLL_BAR INPUT.
      DESCRIBE  TABLE  ITAB  LINES  CONTROL_DATA-LINES.
    ENDMODULE.                 " SCROLL_BAR  INPUT
    thanks,
    maheedhar.T

    Hi Ravi,
    The code which u sent to me is not working for next page and previous page.
    can u plz resend me the code.
    iam sending my code below.
    REPORT ZMAHI_TABLE_CONTROL .
    TABLES : VBAK,VBAP.
    DATA : BEGIN OF ITAB OCCURS 0,
             VBELN TYPE VBAK-VBELN,
             ERDAT TYPE VBAK-ERDAT,
             ERNAM TYPE VBAK-ERNAM,
             ERZET TYPE VBAK-ERZET,
             REASON(40) TYPE C,
           END OF ITAB.
    DATA :   FILL TYPE I VALUE 1.
    DATA : N TYPE I .
    DATA      : BEGIN OF XVALUES OCCURS 50,
                  BUTXT LIKE  T001-BUTXT,
                END OF XVALUES.
    DATA      : BEGIN OF XFIELDS OCCURS 50.
            INCLUDE STRUCTURE HELP_VALUE.
    DATA      : END OF XFIELDS.
    DATA      : BEGIN OF SEL_VAL OCCURS 50.
            INCLUDE STRUCTURE HELP_VTAB.
    DATA      : END OF SEL_VAL.
    TABLE CONTROL DECLARATIONS------
    CONTROLS : CONTROL_DATA TYPE TABLEVIEW USING  SCREEN '100'.
    DATA : OK_CODE TYPE SY-UCOMM,
    LIN TYPE I,
    LIN1 TYPE I,
    LIN2 TYPE I,
    LIN3 TYPE I.
    DATA: LINES TYPE I,
          LIMIT TYPE I VALUE 1.
    DATA :   LINE_COUNT       TYPE  I,
             LINEI            TYPE  I,
             LINEJ            TYPE  I,
             LINE1            TYPE  I,
             LINE2            TYPE  I,
             LN1              TYPE  I.
    SELECTION-SCREEN : BEGIN OF BLOCK B1.
    SELECT-OPTIONS   : P_VBELN FOR VBAK-VBELN.
    SELECTION-SCREEN : END OF BLOCK B1.
    START-OF-SELECTION.
      SELECT VBELN
             ERDAT
             ERNAM
             ERZET
        FROM VBAK
        INTO TABLE ITAB
      WHERE VBELN IN P_VBELN.
      CALL SCREEN 100.
    *&      Module  F4_HELP  INPUT
    MODULE F4_HELP INPUT.
      FREE  :  XFIELDS,SEL_VAL,XVALUES.
      MOVE : 'ZMAHI'     TO XFIELDS-TABNAME,
             'REASON'    TO XFIELDS-FIELDNAME,
             'X'        TO XFIELDS-SELECTFLAG.
      APPEND XFIELDS.
      XVALUES = 'Non Trade F&F'.
      APPEND XVALUES .
      XVALUES = 'Non Trade Retention'.
      APPEND XVALUES .
      XVALUES = 'Oldbills Accnt cntmnt'.
      APPEND XVALUES .
      XVALUES = 'Non Trade Not claimed'.
      APPEND XVALUES .
      XVALUES = 'Non Trade Dispute'.
      APPEND XVALUES .
      XVALUES = 'Non Trade Payment Block'.
      APPEND XVALUES .
      XVALUES = 'N/T Subsntly Cleared'.
      APPEND XVALUES .
      XVALUES = 'N/T Unstld Advances'.
      APPEND XVALUES .
      XVALUES = 'N/T OThers'.
      APPEND XVALUES .
      XVALUES = 'Trade Non Receipt OF BOE'.
      APPEND XVALUES .
      XVALUES = 'Trade OEM Adjustments'.
      APPEND XVALUES .
      XVALUES = 'Trade Reject Of Material'.
      APPEND XVALUES .
      XVALUES = 'Trade NOt Claimed'.
      APPEND XVALUES .
      XVALUES = 'Trade Dispute'.
      APPEND XVALUES .
      XVALUES = 'Trade Payment BLock'.
      APPEND XVALUES .
      XVALUES = 'Trade Subsntly Cleared'.
      APPEND XVALUES .
      XVALUES = 'Trade Non Submission of bills'.
      APPEND XVALUES .
      XVALUES = 'Trade others'.
      APPEND XVALUES .
      CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE_EXT'
           EXPORTING
                CUCOL         = 0
                CUROW         = 0
                DISPLAY       = ' '
                FIELDNAME     = 'REASON'
                TABNAME       = 'ZIFIOD011'
           IMPORTING
                SELECT_VALUE  = ITAB-REASON
           TABLES
                FIELDS        = XFIELDS
                SELECT_VALUES = SEL_VAL
                VALUETAB      = XVALUES.
    ENDMODULE.                 " F4_HELP  INPUT
    *&      Module  STATUS_0100  OUTPUT
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS '0100'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    MODULE USER_COMMAND_0100 INPUT.
      CASE SY-UCOMM.
        WHEN 'CANCEL' OR 'EXIT' OR 'BACK'.
          LEAVE TO SCREEN 0.
       WHEN 'NEXT_LINE'.
         CONTROL_DATA-top_line = CONTROL_DATA-top_line + 1.
         limit = fill - lines + 1.
         IF CONTROL_DATA-top_line > limit.
           CONTROL_DATA-top_line = limit.
         ENDIF.
       WHEN 'PREV_LINE'.
         CONTROL_DATA-top_line = CONTROL_DATA-top_line - 1.
         IF CONTROL_DATA-top_line < 0.
           CONTROL_DATA-top_line = 0.
         ENDIF.
       WHEN 'NEXT_PAGE'.
         CONTROL_DATA-TOP_LINE = CONTROL_DATA-TOP_LINE + LINES.
         LIMIT = LIMIT + 1.
         CONTROL_DATA-TOP_LINE = LIMIT.
       WHEN 'PREV_PAGE'.
         CONTROL_DATA-TOP_LINE = CONTROL_DATA-TOP_LINE - LINES.
         LIMIT = LIMIT - 1.
         CONTROL_DATA-TOP_LINE = LIMIT.
       WHEN 'LAST_PAGE'.
         DESCRIBE TABLE ITAB LINES LIMIT.
         CONTROL_DATA-TOP_LINE =  LIMIT.
       WHEN 'FIRST_PAGE'.
         CONTROL_DATA-TOP_LINE = 0.
    WHEN 'P--'.
    CLEAR ok_code.
    PERFORM paging USING 'P--'.
    WHEN 'P-'.
    CLEAR ok_code.
    PERFORM paging USING 'P-'.
    WHEN 'P+'.
    CLEAR ok_code.
    PERFORM paging USING 'P+'.
    WHEN 'P++'.
    CLEAR ok_code.
    PERFORM paging USING 'P++'.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  SCROLL_BAR  INPUT
    MODULE SCROLL_BAR INPUT.
      DESCRIBE  TABLE  ITAB  LINES  CONTROL_DATA-LINES.
    ENDMODULE.                 " SCROLL_BAR  INPUT
    *&      Form  paging
          text
         -->P_0356   text
    *FORM paging USING    VALUE(P_0356).
    FORM paging USING code.
    DATA: i TYPE i,
    j TYPE i.
    CASE code.
    WHEN 'P--'.
    CONTROL_DATA-top_line = 1.
    WHEN 'P-'.
    CONTROL_DATA-top_line = CONTROL_DATA-top_line - line_count.
    IF CONTROL_DATA-top_line LE 0.
    CONTROL_DATA-top_line = 1.
    ENDIF.
    WHEN 'P+'.
    i = CONTROL_DATA-top_line + line_count.
    j = CONTROL_DATA-lines - line_count + 1.
    IF j LE 0. j = 1. ENDIF.
    IF i LE j.
    CONTROL_DATA-top_line = i.
    ELSE.
    CONTROL_DATA-top_line = j.
    ENDIF.
    WHEN 'P++'.
    CONTROL_DATA-top_line = CONTROL_DATA-lines - line_count + 1.
    IF CONTROL_DATA-top_line LE 0.
    CONTROL_DATA-top_line = 1.
    ENDIF.
    ENDCASE.
    ENDFORM. " PAGING
    *ENDFORM.                    " paging
    thanks,
    maheedhar.t

  • Flex Print Job not working with custom component

    Hi All,
    I have to print pages with header, body and footer. So the thought process was to create a custom component fro header, footer and body. Header component is based on Box, Body is a renderer (which will have fix value of items - and will decide the number of possible pages) and footer is again based on Box.
    But when i created a simple Custom component like this for header
    <?xml version="1.0" encoding="utf-8"?>
      <mx:VBox  xmlns:fx=http://ns.adobe.com/mxml/2009
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx">
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <mx:HBox>      <mx:Label id="testLabel" text="Test Container"/>
    </mx:HBox> 
    </mx:VBox>
    Then when i try to add this to FlexPrintJob, and save it as 'xps' to see the print output, i get error message that this file is in use or damaged.
        var myPrintJob:FlexPrintJob = new FlexPrintJob();
      if(!myPrintJob.start()){
          return;
    var header:Header = new Header();
    header.width = myPrintJob.pageWidth;
    header.visible = false;
    FlexGlobals.topLevelApplication.addChild(panierPrintHeader);
    myPrintJob.addObject(header);
    myPrintJob.send();
    FlexGlobals.topLevelApplication.removeChild(panierPrintHeader);
     But this does not work and i get the above mentioned exception. Now when i not use the custom component and just have a label or HBox or anything on stage before the print functionality is invoked, it works fine. And this too haapens only if you have a mxml component, i tried by creating a new Label component using actionscript and then provide the same to the printJob, which did not work either. I need help on this, else i will have to take print functionality to server side(Java) which has some business implications, the reason why i am spending time on flex for printing. 
    Thanks and Regards,
    Jigar
    Looks like custom component print is not working fine with flex or i am doing something terribly wrong.
    Looking forward for help.

    Is there nobody in flex community who can help on this....
    Looks like a toothless class that adobe actionscript team has provided, which is not liked across much

  • TableLayout and lov OAMessageLovInputBean is not working together

    Hi
    I am trying to make work a messageLovInput in tableLayout.
    The field and torch icon is rendered correctly. When I click on torch icon the lov window is opened.
    The torch onClick is working because controller class processFormRequest is executed but lov window does not open.
    I tried to change a tableLayout to advancedTable then the lov window opened and was working.
    This is not a option because the page seeded page in OA.
    Also I tried to use exactly same messageLovInput as search page field there it was also working.
    Any hints why lov is not working with tableLayout?
    Xml file looks like
    <oa:tableLayout childViewUsageName="InfoTemplatesDisplayVO" childViewAttrName="AttributeCode1" addChildren="true" controllerClass="oracle.apps.icx.por.req.webui.InfoTemplateRNCO" ....
    <oa:messageLovInput id="LOV1" viewName="InfoTemplatesDisplayVO" viewAttr="AttributeValue1" externalListOfValues="/oracle/apps/icx/lov/webui/InfoTempLOVRN">
    <jrad:lovMappings>
    <jrad:lovMap lovItem="Value" id="lovValueMap1" resultTo="LOV1" criteriaFrom="LOV1"/>
    <jrad:lovMap lovItem="FlexValueSetId" id="lovFlexValueSetIdMap1" criteriaFrom="FlexValueSetId1" programmaticQuery="false"/>
    </jrad:lovMappings>
    </oa:messageLovInput>
    Regards
    Ranno

    1. If its a seeded page, and its not working, why can't you raise an SR?Customization on top seeded page.
    2. I felt a bit confused
    "When I click on torch icon the lov window is opened."
    "The torch onClick is working because controller class processFormRequest is executed but lov window does not open."
    Does clicking on torch window, opens lov window or it doesn't open?If field is inside the tableLayout then clicking on torch window does not open the lov window.
    If field is outside of tableLayout then clicking on torch window does not open the lov window.

  • Sorting not working inside xml format

    Ok I know my title is not clear, but I have a table that is
    called with a spry if, inside another spry data set, and I have
    been having quite a bit of trouble with it. The sorting and even
    odd would not work....(though they work on the same table with the
    same source if it is not inserted within the spry data set) I
    worked on it quite a while yesterday (got it updated to 1.6 )and
    finally got the even/odd to work using the 'other' class from one
    of your examples....that is after trying every even odd combination
    I could think of....but I still can't get it to sort.
    <table id="sortable" width="100%"
    spry:if="'{formcriteria}'=='yes'">
    <tr>
    <th width="71%"
    spry:sort="dsAgentForms::formname">Form Name and Description
    </th>
    <th width="29%" spry:sort="dsAgentForms::formnum">Form
    Number</th>
    </tr>
    <tr spry:repeat="dsAgentForms" spry:even="dsAgentForms
    other" spry:hover="rowHover">
    <td height="28"><a
    href="{dsAgentForms::url}">{dsAgentForms::formname}</a></td>
    <td><a
    href="{dsAgentForms::url}">{dsAgentForms::formnum}</a></td>
    </tr>
    </table>
    you click on the "Forms & Applications" tab to see the
    table
    http://www.nmprc.state.nm.us/als2.htm
    I am using DW CS3 and it is fairly easy to insert a sortable
    table, but somehow, with this table being inside another spry data,
    it loses its sortability.
    you see in my code I am using
    spry:sort="dsAgentForms::formname" and I know this is not usual,
    the usual would be without the dsAgentForms:: part, but this was
    just the last thing I tried before posting. I thought that maybe
    because all the rest of the table needed the extra designation,
    that maybe the sorting did as well....

    I got it........it was the syntax of the spry:sort it needed
    the below instead of what I had
    spry:sort="dsAgentForms formnum">
    it was also the same error for the even odd, they now work
    with similar syntax
    thanks for the numerous examples you give us, I can get most
    anything I want to try to work if I have a working example
    :)

  • 1013 ADF project migration does not work

    I have previously developed a simple ADF application using Jdeveloper 1012 that contains the following components.
    1. a data page called start that contains a simple form where a user can input a name and a number
    2. this page then forwards onto a dataAction called doSomething that bings these values to a refresh method on a collection that I have written
    3. the refresh method then builds up the collection of test values, i.e. 1_David, 2_David, 3_David etc up to the number that the user entered on the form.
    4. I have used the invokeCustomMethod within the dataAction to manually force the itterator to refresh on the colleciton when the doSomething dataAction is called.
    5. this then forwards onto a dataPage called results that displays the contents of the populated collection as a read only table.
    please note that this colleciton is populated on-the-fly using a custom refreshMethod that I have written for the collection and does not retrieve data from a database.
    THIS WORKS FINE IN JDEVELOPER 1012.
    I have then tried to open this project in Jdeveloper1013. This wizard asks me if I would like to convert the project to the new format - to which I agree, but then when I try and run the program the application fails.
    I'd appreciate any help/suggestions that you may have as to why this happens.

    Hi Shay,
    I'm not getting any specific error messages when I do the conversion, the applicaiton just does not work anymore.
    As I have previously said the application I am trying to migrate from 1012 uses a collection that a dataAction populates when it is called using a refreshMethod that I have written.
    When I run the "converted" application in 1013 I don't get any errors at all but the applicaiton does not populate my collection any more. I think this may be down to the fact that I am manually resetting the itterator on the collection to -1 (therefore forcing it to be rebuilt when the dataAction is called). I have done this by using the invokeCustomMethod which is no longer supported in 1013.
    I am currently discussing this fact here:
    1013 - Force Collection To Refresh Different To 1012
    I'd appreciate any other ideas/suggestions that you may have as to why the migration process is not working correctly for ADF applications that have been developed in this manner, especially as I would like to convert a VERY large application that was developed in this way using JDeveloper 1012 into 1013 so that I can utilise the new enterprise manager within the OC4J 1013 server.

Maybe you are looking for

  • How to create authorization to access Query Print Layout?

    Hi again.. i have 10 query print layout, and not every user can view this layout. I assume, report 1-3 only for user A, report 4-7 only for user B, and report 8-10 only for user C. How to create autorization for Query Print Layout? Thankyou for the h

  • Photo uploading problems

    Hi, I am using an iPhone 4S with everything current, and it suddenly quit uploading photos to Facebook.  If I try to upload from the newsfeed, I get an error message. If I upload from my profile or directly to the album, it appears to upload normally

  • HT4623 have an ipod and wont get an the future update that is now and i need it so i can do things

    there is this ipod I have by yall and it wont be getting the update that is now and I need it now or soon cause it really needed for me

  • EDI 850 version 2000

    Hi All, How do we set up 850 EDI document version 2000 in B2B? Spec builder only supports version 2001 and above. We generated the ecs/xsd files based on version 2001 and changed the version number to 2000. Also created and added TD2 segment (which i

  • Your Remote Desktop Services Session Has Ended - Occurs when running in background

    Our remote desktop users are having an issues with the RD session ending whenever we are running it in the background. Namely the session will run as long as the computer is idle or I am actively working in RD. Within 4 minutes of leaving RD and work