DataModel dependent of values

Hi,
I have a jsf page using an inputText storing a value (such as a firstName), and a dataTable using a dataModel.
The data come from the DB with the request (EJBQL):
select p from Person p where p.firstName=:firstName
I don't wnat to store the dataModel into the session, so in the APPLY_REQUEST_VALUES phase, the model is built by the getModel method:
DataModel getModel() {
  if( _model == null ) {
    // Get the value of "firstName"
    // Create the model
    // execute the request
    // set the resulting list into the model
  return _model;
}But ... the value of "firstName" is null, not yet set.
Any solution?
How can I restore dynamically the dataModel using a value stored in the same page?
Tks !

Sabenah,
this question is best answered in one of the Portal forums on OTN. I can imagine that Portal has a way to dynamically populate Javascript.
Frank

Similar Messages

  • How could I pass parameter that depend on values in report from report to form?

    In my case, I want to pass 'gno' and 'qno' values of report
    to form. When click on the button then the form is showed.
    There are automatically values in gno field on form so that user
    don't complete this filed.
    So I create a button on the report . I enter Javascript in
    PL/SQL Code tab in '...after displaying the footer' as follow :
    htp.formOpen
    (owa_util.get_owa_service_path||'portal30.wwa_app_module.link?
    p_arg_names=_moduleid&p_arg_values=1736929105&p_arg_names=_show_h
    eader&p_arg_values=YES&p_arg_names=GNO&p_arg_values=1&p_arg_names
    =QNO&p_arg_values=2');
    htp.formSubmit(null,'New Answer');
    htp.formClose;
    The above code can pass only static value, while I want to
    pass values that depend on value in column of report to form.
    So please tell me how can I pass this value to form. I look
    forward to hearing from all of you. Please!!!!!!
    Thank You

    Thanks for the prompt reply.
    Yes. I am using a Custom Step Type.
    I have attached a trial code which contains the trial VI, sequence and the type palette ini file.
    Please have a look at it.
    Regards,
    Mirash
    Attachments:
    Injection trial.zip ‏35 KB

  • How to disable the link to subreports depending upon value

    Hi,
    We have a table in ssrs reports where we are showing failed, success and cancelled status. for come condition.
    now for failed we are going to subreports as we are passing some parameter from parent report.
    but for success and cancelled we don't want to go that subreport.(problem is its going to the subreport)
    this status are coming in the same cell depending some condition.
    any body has idea how to do it
    simanta

    Hi fanu987,
    As per my understanding, there is a field includes three values: failed, success and cancelled. If the value of field is failed, you want to jump to the subreport when you click the field. Otherwise, it will not jump to the subreport. If that is the case,
    we can use Go to URL action to achieve your goal. For detail information, please refer to the following steps:
      1. In design mode, right-click the text box and open Text Box Properties dialog box.
      2. Click Action in left pane, select Go to URL.
      3. Click (fx) button, and type the expression like below:
    =iif(Fields!FieldName.Value="failed ","http://ServerName/reportserver?/folderName/SubreportName","")
      4. Right-click the subreport in the project, then click deploy to publish the report to report manager.
      5. Right-click the master report in the project, then deploy the report to report manager. When you preview the report and click failed value, it will jump to the subreport.
    If there is any question, please feel free to ask.
    Thanks,
    Wendy Fu

  • Mapping a message in different types of messages depending field value

    Hi gurus!
    I need your help!, I need to create a scenario where I receive a message with a JMS adapter, for which I define an outbound service interface type, but depending on the value of a field (interface) to map in order to create different service inbound interface type.
    For example, I get the MT that is associated with a Service Interface SI_OUT:
    <MT_TRX>
       <interface> 101 </ Interface>
       <message>
             nombre="AVISO"> <campo 8500070609 </ field>
             nombre="ESTADO"> <campo PCDS </ field>
       </ MESSAGE>
    </ MT_TRX>
    As the interface has the value 101 with a Message Mapping I want to create the Service Interface SI_IN_101 whit message type MT_101.
    If interface = 102, the Service Interface should be SI_IN_102 and message type_102... etc.
    Can be mapped to different types of Service Interface, need different Operations?
    Thank you very much for your help, I don't know how to solve the problem!

    Hi Veronica,
    There are two clear options to approach the solution: be it 7.11 or earlier
    1. Go for 1..Onbounded Operation mapping. In your operation mapping on the target side add the different inbound interfaces. You have to define seperate message mappings for each of your target message types and use them in the operation mapping.
    2. The rather simplistic solution would be to go for conditional interface determination. A well know approach, if you have multiple interfaces to be mapped from a single interface for the same receiver system. Define seperate Message and Operation mappings for each of your Inbound Interfaces and then in Integration Directory use conditional Interface determination to call the appropriate operation mapping based on the condition checking on input payload (XPath).
    I will strongly suggest the second option for better maintainability and monitoring of your interface.
    You certainly dont need multiple operations, that's for different purpose altoghether
    Regards,
    Suddhasatta

  • Display Different reports depending on values in a User Selectable Dropdown

    Hello,
    I want to create a report which has a Drop-down and depending on the value selected from the drop-down, i want to display different reports.
    Say, a drop-down has 3 values, v1, v2 and v3. Now, if a user selects v1, he/she should see report r1. If v2 is selected, the user should see report r2. if v3 is selected from the drop-down, then report r3 should be visible. All the 3 reports have different structures (even different no. of columns). Also, v1, v2 and v3 are 3 different values belonging to a same picklist type field.
    Do you think this is possible? If yes, How ?
    Any sort of help will be highly appreciated. Thanks in advance.
    Regards,
    Ramil.

    The only way i could see this working would be to create a picklist on a object and then create your three reports placing them within the same folder and name the report something under 30 charters then place the same name in the picklist value and create a weblink to the report which at selection of the report will run either report.

  • ALV sums of lines depending on value of field of the line?

    Hi,
    We have an ALV and would like to get the sums depending on the value of a field of each line.
    For example: imagine we have an ALV, and there are two kinds of lines: one have a counter=1, and others have a counter=2. Is it possible to receive two totals in the ALV, one for the lines that have counter=1, and one for the lines that have counter=2? And that when a filter is being applied, the sums change automatically?
    Thx!

    Hi,
    Please the below code which ill help to change the subtotal text, you need do manula total and replace with the wa of the subtotal with you calculated sum. In the below code i replaced a break point where you need to add your coding
    *& Report  Z_ALV_SUBTOTAL
    REPORT Z_ALV_SUBTOTAL.
    *& Table declaration
    TABLES: EKKO.
    *& Type pool declaration
    TYPE-POOLS: SLIS. " Type pool for ALV
    *& Selection screen
    SELECT-OPTIONS: S_EBELN FOR EKKO-EBELN.
    *& Type declaration
    *Type declaration for internal table to store EKPO data
    TYPES: BEGIN OF X_DATA,
           EBELN  TYPE CHAR30,  " Document no.
           EBELP  TYPE EBELP,   " Item no
           MATNR  TYPE MATNR,   " Material no
           MATNR1 TYPE MATNR,   " Material no
           WERKS  TYPE WERKS_D, " Plant
           WERKS1 TYPE WERKS_D, " Plant
           NTGEW  TYPE ENTGE,   " Net weight
           GEWE   TYPE EGEWE,   " Unit of weight
           END OF X_DATA.
    *& Internal table declaration
    DATA:
         * INTERNAL TABLE TO STORE EKPO      DATA
    I_EKPO TYPE STANDARD TABLE OF X_DATA INITIAL SIZE 0,
    Internal table for storing field catalog information
    I_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
    Internal table for Top of Page info. in ALV Display
    I_ALV_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER,
    Internal table for ALV Display events
    I_EVENTS TYPE SLIS_T_EVENT,
    Internal table for storing ALV sort information
    I_SORT TYPE  SLIS_T_SORTINFO_ALV,
    I_EVENT TYPE SLIS_T_EVENT.
    *& Work area declaration
    DATA:
    WA_EKKO TYPE X_DATA,
    WA_LAYOUT     TYPE SLIS_LAYOUT_ALV,
    WA_EVENTS         TYPE SLIS_ALV_EVENT,
    WA_SORT TYPE SLIS_SORTINFO_ALV.
    *& Constant declaration
    CONSTANTS:
    C_HEADER   TYPE CHAR1 VALUE 'H',                    "Header in ALV
    C_ITEM     TYPE CHAR1 VALUE 'S'.
    *& Start-of-selection event
    START-OF-SELECTION.
    Select data from ekpo
      SELECT EBELN " Doc no
      EBELP " Item
      MATNR " Material
      MATNR " Material
      WERKS " Plant
      WERKS " Plant
      NTGEW " Quantity
      GEWEI " Unit
      FROM EKPO
      INTO TABLE I_EKPO
      WHERE EBELN IN S_EBELN
      AND NTGEW NE '0.00'.
      IF SY-SUBRC = 0.
        SORT I_EKPO BY EBELN EBELP MATNR .
      ENDIF.
    * TO BUILD THE PAGE HEADER
    PERFORM SUB_BUILD_HEADER.
    * TO PREPARE FIELD CATALOG
      PERFORM SUB_FIELD_CATALOG.
    * PERFORM TO POPULATE THE LAYOUT STRUCTURE
      PERFORM SUB_POPULATE_LAYOUT.
    * PERFORM TO POPULATE THE SORT TABLE.
      PERFORM SUB_POPULATE_SORT.
    PERFORM TO POPULATE ALV EVENT
      PERFORM SUB_GET_EVENT.
    END-OF-SELECTION.
      * PERFORM TO DISPLAY ALV REPORT
      PERFORM SUB_ALV_REPORT_DISPLAY.
    *&      Form  sub_build_header
          To build the header
          No Parameter
    FORM SUB_BUILD_HEADER .
      * LOCAL DATA DECLARATION
      DATA: L_SYSTEM     TYPE CHAR10 ,          "System id
      L_R_LINE     TYPE SLIS_LISTHEADER,   "Hold list header
      L_DATE       TYPE CHAR10,           "Date
      L_TIME       TYPE CHAR10,           "Time
      L_SUCCESS_RECORDS TYPE I,           "No of success records
      L_TITLE(300) TYPE C.                "Title
    Title  Display
      L_R_LINE-TYP = C_HEADER.               " header
      L_TITLE = 'Test report'(001).
      L_R_LINE-INFO = L_TITLE.
      APPEND L_R_LINE TO I_ALV_TOP_OF_PAGE.
      CLEAR L_R_LINE.
    * RUN DATE DISPLAY
      CLEAR L_DATE.
      L_R_LINE-TYP  = C_ITEM.                " Item
      WRITE: SY-DATUM  TO L_DATE MM/DD/YYYY.
      L_R_LINE-KEY = 'Run Date :'(002).
      L_R_LINE-INFO = L_DATE.
      APPEND L_R_LINE TO I_ALV_TOP_OF_PAGE.
      CLEAR: L_R_LINE, L_DATE.
    ENDFORM.                    " sub_build_header
    *&      Form  sub_field_catalog
          Build Field Catalog
          No Parameter
    FORM SUB_FIELD_CATALOG .
      *  BUILD FIELD CATALOG
      PERFORM SUB_FILL_ALV_FIELD_CATALOG USING:
                '01' '01' 'EBELN'  'I_EKPO' 'L'  'Doc No'(003) ' ' ' ' ' ' ' ',
                '01' '02' 'EBELP'  'I_EKPO' 'L'  'Item No'(004) 'X' 'X' ' ' ' ',
                '01' '03' 'MATNR'  'I_EKPO' 'L'  'Material No'(005) 'X' ' ' ' ' ' ',
                '01' '03' 'MATNR1' 'I_EKPO' 'L'  'Material No'(005) ' ' ' ' ' ' ' ',
                '01' '04' 'WERKS'  'I_EKPO' 'L'  'Plant'(006) 'X' ' ' ' ' ' ',
                '01' '04' 'WERKS1' 'I_EKPO' 'L'  'Plant'(006) ' ' ' ' ' ' ' ',
                '01' '05' 'NTGEW'  'I_EKPO' 'R'  'Net Weight'(007) ' ' ' ' 'GEWE' 'I_EKPO'.
    ENDFORM.                    " sub_field_catalog*
    *&     Form  sub_fill_alv_field_catalog
    *&     For building Field Catalog
    *&     p_rowpos   Row position
    *&     p_colpos   Col position
    *&     p_fldnam   Fldname
    *&     p_tabnam   Tabname
    *&     p_justif   Justification
    *&     p_seltext  Seltext
    *&     p_out      no out
    *&     p_tech     Technical field
    *&     p_qfield   Quantity field
    *&     p_qtab     Quantity table
    FORM SUB_FILL_ALV_FIELD_CATALOG  USING  P_ROWPOS    TYPE SYCUROW
                                            P_COLPOS    TYPE SYCUCOL
                                            P_FLDNAM    TYPE FIELDNAME
                                            P_TABNAM    TYPE TABNAME
                                            P_JUSTIF    TYPE CHAR1
                                            P_SELTEXT   TYPE DD03P-SCRTEXT_L
                                            P_OUT       TYPE CHAR1
                                            P_TECH      TYPE CHAR1
                                            P_QFIELD    TYPE SLIS_FIELDNAME
                                            P_QTAB      TYPE SLIS_TABNAME.
      * LOCAL DECLARATION FOR FIELD CATALOG
      DATA: WA_LFL_FCAT    TYPE  SLIS_FIELDCAT_ALV.
      WA_LFL_FCAT-ROW_POS        =  P_ROWPOS.     "Row
      WA_LFL_FCAT-COL_POS        =  P_COLPOS.     "Column
      WA_LFL_FCAT-FIELDNAME      =  P_FLDNAM.     "Field Name
      WA_LFL_FCAT-TABNAME        =  P_TABNAM.     "Internal Table Name
      WA_LFL_FCAT-JUST           =  P_JUSTIF.     "Screen Justified
      WA_LFL_FCAT-SELTEXT_L      =  P_SELTEXT.    "Field Text
      WA_LFL_FCAT-NO_OUT         =  P_OUT.        "No output
    WA_LFL_FCAT-TECH           =  P_TECH.       "Technical field
    WA_LFL_FCAT-QFIELDNAME     =  P_QFIELD.     "Quantity unit
    WA_LFL_FCAT-QTABNAME       =  P_QTAB .      "Quantity table
      IF P_FLDNAM = 'NTGEW'.
        WA_LFL_FCAT-DO_SUM  = 'X'.
      ENDIF.
      APPEND WA_LFL_FCAT TO I_FIELDCAT.
      CLEAR WA_LFL_FCAT.
    ENDFORM.                    " sub_fill_alv_field_catalog
    *&      Form  sub_populate_layout
          Populate ALV layout
          No Parameter
    FORM SUB_POPULATE_LAYOUT .
      CLEAR WA_LAYOUT.
      WA_LAYOUT-COLWIDTH_OPTIMIZE = 'X'." Optimization of Col width
    ENDFORM.                    "SUB_POPULATE_LAYOUT
    " sub_populate_layout
    *&      Form  sub_populate_sort
          Populate ALV sort table
          No Parameter
    FORM SUB_POPULATE_SORT .
      * SORT ON MATERIAL
      WA_SORT-SPOS = '01' .
      WA_SORT-FIELDNAME = 'MATNR'.
    WA_SORT-TABNAME = 'I_EKPO'.
      WA_SORT-UP = 'X'.
      WA_SORT-SUBTOT = 'X'.
      APPEND WA_SORT TO I_SORT .
    CLEAR WA_SORT."* SORT ON PLANT
    WA_SORT-SPOS = '02'.
    WA_SORT-FIELDNAME = 'WERKS'.
    WA_SORT-TABNAME = 'I_EKPO'.
    WA_SORT-UP = 'X'.
    WA_SORT-SUBTOT = 'X'.
    APPEND WA_SORT TO I_SORT .
    CLEAR WA_SORT.
    ENDFORM.                    " sub_populate_sort
    *&      Form  sub_get_event
          Get ALV grid event and pass the form name to subtotal_text
          event
          No Parameter
    FORM SUB_GET_EVENT .
      CONSTANTS : C_FORMNAME_SUBTOTAL_TEXT TYPE SLIS_FORMNAME VALUE 'SUBTOTAL_TEXT'.
      DATA: L_S_EVENT TYPE SLIS_ALV_EVENT.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          I_LIST_TYPE     = 4
        IMPORTING
          ET_EVENTS       = I_EVENT
        EXCEPTIONS
          LIST_TYPE_WRONG = 0
          OTHERS          = 0.
      * SUBTOTAL
      READ TABLE I_EVENT  INTO L_S_EVENT WITH KEY NAME = SLIS_EV_SUBTOTAL_TEXT.
      IF SY-SUBRC = 0.
        MOVE C_FORMNAME_SUBTOTAL_TEXT TO L_S_EVENT-FORM.
        MODIFY I_EVENT FROM L_S_EVENT INDEX SY-TABIX.
      ENDIF.
    ENDFORM.                    "SUB_GET_EVENT
    " sub_get_event
    *&      Form  sub_alv_report_display
          For ALV Report Display
          No Parameter
    FORM SUB_ALV_REPORT_DISPLAY .
      DATA: L_REPID TYPE SYREPID .
      L_REPID = SY-REPID .
    * THIS FUNCTION MODULE FOR DISPLAYING THE ALV REPORT
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM     = L_REPID
         I_CALLBACK_TOP_OF_PAGE = 'SUB_ALV_TOP_OF_PAGE'
         IS_LAYOUT              = WA_LAYOUT
          IT_FIELDCAT            = I_FIELDCAT
          IT_SORT                = I_SORT
          IT_EVENTS              = I_EVENT
         I_DEFAULT              = 'X'
         I_SAVE                 = 'A'
        TABLES
          T_OUTTAB               = I_EKPO
        EXCEPTIONS
          PROGRAM_ERROR          = 1
          OTHERS                 = 2.
      IF SY-SUBRC <> 0.
       MESSAGE i000 WITH 'Error in ALV report display'(055).
      ENDIF.
    ENDFORM.                    " sub_alv_report_display
          FORM sub_alv_top_of_page
          Call ALV top of page
          No parameter
    FORM SUB_ALV_TOP_OF_PAGE.                                   "#EC CALLED
    To write header for the ALV
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
       EXPORTING
         IT_LIST_COMMENTARY = I_ALV_TOP_OF_PAGE.
    ENDFORM.                    "alv_top_of_page
    *&      Form  subtotal_text
          Build subtotal text
          P_total  Total
          p_subtot_text Subtotal text info
    FORM SUBTOTAL_TEXT CHANGING
                   P_TOTAL TYPE ANY
                   P_SUBTOT_TEXT TYPE SLIS_SUBTOT_TEXT.
    Material level sub total
      IF P_SUBTOT_TEXT-CRITERIA = 'MATNR'.
        P_SUBTOT_TEXT-DISPLAY_TEXT_FOR_SUBTOTAL  = 'Materia  l'(009).
        BREAK-POINT.
    here calucate the total and change the p_total    
      ENDIF.
      * PLANT LEVEL SUB TOTAL
      IF P_SUBTOT_TEXT-CRITERIA = 'WERKS'.
        P_SUBTOT_TEXT-DISPLAY_TEXT_FOR_SUBTOTAL = 'Plant level total'(010).
      ENDIF.
    ENDFORM.                    "subtotal_text

  • LOV depending on value of field in report

    I have a report on a query. In one of the fields I want to have a Radio Group, Based on query based LOV. The values in the LOV depends on the value in the field in the report. Is this possible, and how do I define the LOV for it?
    Would it be something like:
    select disp_val d, id r
    from my_table
    where field_x = [value_of_this_field_in_my_report]
    order by 1What do I fill in for [value_of_this_field_in_my_report]?

    Please refer to Metalink note 825603.1.

  • Changing message medium of purchase order depending on value of po

    Hi,
    we want to send a purchase order via fax if the netvalue is lower than 1000 EUR. If the value is higher then the po should be printed.
    Is there any Exit or Badi to change the medium of a message depending on the value of a po?
    Regards
    Martin

    Hi Martin,
    Medium of a message is determined by the output condition record and I don't think you can use an exit. You could build a ouput new condition table but PO value is not available as a key.
    You can explore this option.
    Create a new condition table and include an unused field as a key from the list of allowed fields. Find a user-exit in the PO which can update the above field with unique data. Create OCR with for this key combination.
    Cheers !

  • Highlight rows depending on values

    I have a report (SQL Query PLSQL function body returning SQL query).
    In the report depending on the value of a column(delete_flag= 'Y' ) I want to set the
    color of the row to say red.
    Is is possible?.
    Dhiren

    Thanks a lot, i tried it out but i am making a mistake somewhere.
    I have given
    Column Template 1 condition (Use Based PLSQL Expression).
    Column Template 1 Expression (#DELETE_FLAG#=Y.
    Column Template 2 Condition -Select Condition-
    Attached this template to the report, added the CSS lines
    <style> </style> as per your link to the header.
    When i execute the report i still get an error
    ORA-01403: no data found
    Error ERR-1025 Error processing PLSQL expression. Y=Y.
    OK
    Am i missing out anything? Do I need to give "Y" , have tried various combinations.
    Dhiren

  • Setting color in 3D chart series depending on values

    Hi,
    I have a problem with a flash chart.
    Is it possible to set element color depending on element value?
    I mean, I have a 3D column chart with a serie ranging from 0 to 100 possible values.
    I would like to have blue color element (column) when element value is under 70 and red color element when element value is between 70 and 100.
    Anyone has any suggestion?
    Thank you very much
    matte

    Mateo -
    In that example that I sent you, which I did not write by the way, you will notice that there is some custom XML generated by the On Demand Process. Near the beginning of that xml is a line defining the series
    <series name="Salary Thresholds">The charting engine uses this name for the legend. You could either remove the name element or set the name="". I believe that would do the trick. You would also have to set the default color of the series to transparent.
    I have not actually attempted this so I am suggesting this as a theory. I sincerely do hope it works.
    Austin

  • Filter results in query depending on value radio button

    Hi all,
    I have a "y/n" radio button group along with other fields and when submitted, you should be able to see a certain column depending on what the user chooses.
    For "y" all records should be displayed, where the column value is not null and for "n" only the records where the column value is null should be displayed.
    I've tried with conditional display for the column, but still get the records where the value is null in my report for "y".
    Can anyone help me fix this?
    kind regards,
    Cleo
    Edited by: Cleopatra on Jan 27, 2011 11:56 AM

    What you want is
    AND {CONDTION}
    AND {CONDTION}
    AND {COLUMN FILTER CONDITION}so it should be
    WHERE
    AND {CONDITION 1}
    AND {CONDITION 2}
    AND  (
              ( :ITEM_NAME = 'Y' AND <COLUMN NAME> IS NOT NULL )
              OR ( :ITEM_NAME = 'N' AND <COLUMN NAME> IS NULL )
           )Hope you have understood the reason why the column filter have been made together into an additional clause , rather than adding them them directly.
    If you are confused about the logical structure of the query, try forming them into a sentence which you would be explaining the requirement.

  • Sort key too long error  depends on values supplied to query

    Please have a look at this query (Just given for guessing complications).
    This query works and gives output for pro_id=1 and other few values.
    But it fails for value 2.
    SELECT *
    FROM common_list_view_test
    WHERE che_id != 14
    AND(use_id = 299 OR iss_rec = 299 OR che_id IN
      (SELECT a.m_che_id
       FROM m_chk_pt a,    m_role_chk_pt b,    m_user c
       WHERE a.m_che_id = b.m_che_id
       AND b.m_rol_id = c.m_rol_id
       AND c.m_use_id = 299))
    AND pro_id = 2
    ORDER BY iss_dat,
      issue_stringFor pro_id = 2 it gives error:
    ORA-01467: sort key too long
    What do we mean by sort key?
    Is it depends on supplied information and the records to be fetched.
    If the query is going to fetch a lot of records then do this error occur?
    How to avoid this error and make the query to work got pro_id=2.
    -Sameer

    It is also not working for:
    SELECT COUNT(*)
    FROM common_list_view_test
    WHERE pro_id = 2Please tell me what i have to do?
    I can't rewrite common_list_view_test as i do not have enough priviledged to change its code, but this view is a lot complicated.
    But then why it works for one value and not for another one?
    Please help.
    -Sameer

  • Cell definitions depending on value of free characteristic

    Hello,
    I have the following requirement for one BEx query:
    Depending on the value of a free characteristic (material), values in certain cells shall be shown or not. Values in these cells are usually calculated by cell definitions. When the user selects certain materials (e.g. A1, C3) during query navigation the values in those cells have to be 0, i.e. the values that are calculatd by cell definitions should not be shown.
    When other materials are chosen by the user, those cells should show the calculated values.
    I tried to create a replacement path formula variable in order to create a 0/1-switch (find out the value of the selected material and compare it with predefined materials (A1, C3)).
    However, the value of a formula variable has to be a number. So that's no solution for my requirement.
    Do you have any ideas how to solve this requirement? Note that there is no entry variable for material.
    Thanks in advance!
    Thomas

    Hi,
    Make 3 restricted key figurs on market value restricting them with rating AAA, AA and A.
    Lets say RKF1 for rating AAA
    RKF2 for rating AA and
    RKF3 for rating A.
    Now you can use these 3 key figurs in your formula key figure which can simple be
    RKF10,4 + RKF20,3 + RKF3*0,2.
    In this way you are already sure that only one of the RKF's will have a value and depending on the rating it will be multiplied with the value you have in your logic.
    Hope this helps.
    Regards,
    Jadeep

  • Multi-record report: content LOV depending on value of current row

    I have a multi-record report based on a query.
    For each row in the report it should be possible to choose a value from lov.
    The content of the lov is depending on a field in the current row.
    Later on I will update a record based on the chosen value but that is not the
    issue right now.
    The problem I am facing is that I don't know how to refer in a list to a value
    from the current row.
    For example.
    In the example below it should be possible to choose (from the lov) a best buddy for
    an employee. The buddy should be an other employee working for the same department.
    So in the lov I must refer to the deptno from the current row. How is this possible???
    select empno
    , ename
    , deptno
    , htmldb_item.select_list_from_query
    ( 1
    , empno
    , 'select ename, empno from emp where deptno = #deptno# '
    ) buddy
    from emp

    Hi Scott,
    I've created this application "TestLov" at the site you mentioned.
    Application ID : 800
    Workspace Name : ANUWKSPC
    The first page has an employee report with the solution as suggested by Raju Mattamal in this thread. That query seems to work fine without any errors...(I'm surprised why I'm getting errors on my application with the same query, even though data appears?! Is it to do with some setting?)
    The second page has the report with my actual query. This is throwing errors.
    On the third page I've tried to implement the solution you've suggested in Tips & Tricks section of HTML DB Studio(Simulating a correlated sub-query in report LOVs)
    http://htmldb.oracle.com/pls/otn/f?p=18326:54:2188928890822530056::::P54_ID:1282
    This doesn't seem to work either.
    I'm unable to figure out the problem.
    Pls look into the application and let me know how I shld go abt this.
    Thanks in advance,
    Anu

  • JTable:  Howto: Row color depending on value

    Hi all
    I would like to write a cell renderer that changes the background color of a row (or indivicual cells) depending on the value in one of the table columns. For example, if the value in column 'recursive' of a given row is 'true' then make the row (cell) backgroundd grey. if 'false' make white.
    I ve been able to write a simple cell renderer:
    public class colorTableCellRenderer extends DefaultTableCellRenderer
    java.awt.Color recursiveBG = new java.awt.Color(240, 240,240);
    public colorTableCellRenderer()
    super();
    public void setValue(Object value)
    String text = (String)value;
    this.setBackground(recursiveBG);
    this.setText(text);
    But i am lost on how to actually check the value of the other column so I can determine which color to choose.
    Help is greately appreciated.
    Cheers,
    michael

    Hi Laszlo
    Ok, I think this needs an explanation. Here is what I want to do:
    1. Depending on the value of column 0 compared to an external value (referenced), I want to mark a row by setting the background of the row to recursiveBG. All others should have a white background.
            if(selectedPerson.equals(sourceID)) // row is not recursive
              this.setBackground(Color.white);
            else // row IS recursive
              this.setBackground(recursiveBG);
              }This should just set the background color of the cell. If I select the row, the 'normal' behaviour should mark the row blue (or whatever is standard). Your counting is right, these states should be accomodated for.
    Current full code is below:
    public class colorTableCellRenderer extends DefaultTableCellRenderer
      java.awt.Color recursiveBG = new java.awt.Color(240, 240,240);
      int recursiveColumn = 4;
      String recursiveID = null;
      Connect connectRef = null;
      public colorTableCellRenderer(Connect connectRef)
        super();
        this.connectRef = connectRef;
      public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
            java.awt.Color recursiveColor = new java.awt.Color(240,240,240);
            String myVal = (String)value;
            this.setText(myVal);
            recursiveID = (String)table.getValueAt(row, recursiveColumn);
            String selectedPerson = connectRef.getSelectedPersonPID();
            String sourceID = (String)table.getValueAt(row, 6);
            if(selectedPerson.equals(sourceID)) // row is not recursive
              this.setBackground(Color.white);
            else // row IS recursive
              this.setBackground(recursiveBG);
              return this;
    [/CODE]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • 4s ios 6.1.2 wifi disabled,grey

    4s ios 6.1.2  wifi disabled.grey.gone.what can i do?

  • SAP BW 3.5 Upgrade to Netweaver 7 with SEM-BW and FINBASIS

    Hi, We are currently planning the upgrade of our SAP Business Warehouse 3.5 environment to Netweaver 7.0 EHP2 SPS6. However our BW 3.5 environment also has FINBASIS 300 and SEM-BW 400. SAP Note 852448 discusses the requirements for upgrade FINBASIS a

  • Moving multiple scenes in to one timeline

    Is there a way to do this?  I am just now hearing of (and experiencing) all the downfalls of using scenes to create an interactive website.  I may have to start the whole thing over at the mid point if there isn't a way to convert it into one.  Any i

  • Managing multiple bluetooth devices at home (permanently disconnect some)

    Hi. Small apartment. Two rooms. Both have iMacs, and a wireless keyboard and wireless trackpad respectively. So 2 iMacs, 4 bluetooth devices. My iMac in my room keeps picking up the bluetooth keyboard and trackpad from the next room. I keep "disconne

  • AVCCAM Viewer and FCP 6

    I just found out that I can use AVCCAM viewer to pull out files from SDHC cards to desktop but problem I could not import to FCP. How?