JDeveloper OAF: populate data for MessageTextInput based on MessageChoice

Gurus!
Does anyone know where I can find some sample code to invoke a VO when a messageChoice is chosen.
My form currently has a "building" poplist value. Once the building is chosen, I need to populate building address contents (underneath).
I'm using JDev 9i and I've searched through the tutorial and couldn't find my specific scenario. The closest thing I could find is in the PPR for cascading data and Dynamic Interface sections.
Any help would be appreciated.
Thanks,
-Scott

Use PPR, it is designed for use in this kind of case. Read dev guide for details of PPR.
Dependent poplist
Thanks,
--Anil                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • How to populate data for 2LIS_40_REVAL, 2LIS_43_POSCAS and 2LIS_44_POSREC

    Hi
    How to populate data for 2LIS_40_REVAL, 2LIS_43_POSCAS and 2LIS_44_POSREC datasources at RSA3?
    I'm very new to retail BI.
    I think there is no setup tables for Retail infosources.
    Any IDoc or BAPI activation is required or other procedure?
    We are in BI-700 SAPKW70015 support pack R/3 side
    and SAP_BW 700 Support pack SAPKW70016 &
    BI_CONT 703 Support pack SAPKIBIIP9 BI side
    Can anyone guide me how to load data?
    Points assured
    Thanks in advance
    Ramana P

    Dear Ramana,
    There is no setup table for POSCAS and POSREC.This has to be popuated with a BADI Implementation. 
    As of PlugIns 2002_1_470 and 2002_2_470, POS data is update into BW the 2LIS_44_POSREC and 2LIS_43_POSCAS extractors using a BADI. To be able to update data into BW, the relevant implementation for the BADI must be activated in each case. You can activate the implementation in transaction SE19. The implementations are as follows:
    POS_EX_REC_PI2003_1 for extractor 2LIS_44_POSREC
    POS_EX_CAS_PI2003_1 for extractor 2LIS_44_POSCAS
    Once the activation of BADI , create the back ground jobs for the 44 application and the data is pushed into Delta queue and it can be loaded into BI .
    Hope this helps you.
    Thanks,
    Krishna Charan

  • Bapi BAPI_REQUISITION_CREATE : how to populate data for sevices tab

    Hi all,
    I am creating a purchase requisition through bapi .I am using  bapi BAPI_REQUISITION_CREATE
    For creating purchase requisition. The bapi is  creating PR.
    I need to add item level services details also through bapi.i am Using structure BAPIESLLC to populate data. But the data is not getting populated in the services tab.
    For header data i am populating the following data.
    itab_bapiebanc-preq_item      =    '10'.
      itab_bapiebanc-doc_type       =    'NB'.
      itab_bapiebanc-short_text     =    'Blinding'.
      itab_bapiebanc-quantity        =    '1'.
      itab_bapiebanc-unit              =    'AU'.
      itab_bapiebanc-deliv_date      =    '20081027'.
      itab_bapiebanc-plant             =    '1000'.
      itab_bapiebanc-pur_group      =    '001'.
      itab_bapiebanc-preq_name    =    'tracking no'.
      itab_bapiebanc-trackingno     =    '2/C/1B'.
      itab_bapiebanc-mat_grp        =    '007'.
      itab_bapiebanc-acctasscat    =    'P'.
    itab_bapiebanc-ITEM_CAT      =    '9'.
    itab_bapiebanc-GR_IND          =    'X'.
    itab_bapiebanc-IR_IND            =    'X'.
    itab_bapiebanc-FIXED_VEND    =    ' '.
    APPEND itab_bapiebanc.
    itab_bapiebkn-wbs_elem        =    'E-2004'.
    itab_bapiebkn-g_l_acct  =  '0000417000'.
    APPEND itab_bapiebkn.
    itab_bapiebantx-PREQ_ITEM = '10'.
    APPEND itab_bapiebantx.
    when i am adding the above data the p,r is creating sucessfully in the system.
    I need to add data in the item level services tab also.
    I am populating for services tab .
    *----- this part is not working
    itab_bapiservices-SERVICE  = '100217'.
    itab_bapiservices-PCKG_NO  = '0000000001'.
    itab_bapiservices-LINE_NO  = '0000000001'.
    itab_bapiservices-EXT_LINE = '0000000010'.
    itab_bapiservices-short_text = 'BREAKFAST CNTR TOP; AS PER SPECS'.
    itab_bapiservices-QUANTITY  = '680'.
    itab_bapiservices-BASE_UOM  = 'M2'.
    itab_bapiservices-GR_PRICE  = '23.00'.
    itab_bapiservices-MATL_GROUP = '007'.
    itab_bapiservices-PRICE_UNIT = '1'.
    append itab_bapiservices.
    I am populating data for service tab like given above.But the value is not get updaing in purchase requisation.
    Please let me know how to populate the data for service tab.
    with regards,
    ambrose
    itab_bapiebantx-text_line      =    'Test for Purchase requisiton'.
    APPEND itab_bapiebantx.

    Hello
    Try this:
        CALL FUNCTION 'NUMBER_GET_NEXT'
             EXPORTING
               nr_range_nr                   = '01'
               object                        = 'SERVICE'
             IMPORTING
               NUMBER                        = pacno
             EXCEPTIONS
               INTERVAL_NOT_FOUND            = 1
               OTHERS                        = 8.
    itab_bapiservices-PCKG_NO = pacno + 1.
    Also Note 499626 - FAQ: BAPIs in the service

  • How to populate data for a field in data source

    Hi
      I have a field(VGBEL) in the data source 2LIS_11_VAITM, but i do not have data in it. I will have to populate data into it for that, I guess i need to write some  ABAP code .My question is where should i write the code.
    P.S If I have to write in the functional module or user exit how do i know the relavent functional module or user exit for the particular data source
    Thanks
    Sheetal

    HI sheetal,
    there will not be different user exit for each datsource. check this thread for the steps, which are general for any datsource.
    How to enhance datasources
    How to Data source enhancement i.e Transactional data
    you need to write your code in function module EXIT_SAPLRSAP_001 .
    hope it helps
    Regards
    Kiran
    *do assign points for helpfull answers.
    Message was edited by:
            ravi kiran naalla

  • Way to populate data for current quater months from last month of previous quater

    Hi  I have a requirement to load forecast data into the SSAS cube.
    My current data:
    Snapshot_M       Date         F_Quantities
    1/1/2014        1/1/2014    100
    2/1/2014        2/1/2014    90
    3/1/2014        3/1/2014    80
    4/1/2014        4/1/2014    23
    4/1/2014        5/1/2014    0
    4/1/2014        6/1/2014    0
    I want this two be shown as
    Snapshot_M       Date        F_Quantities
    1/1/2014        2/1/2014    100
    1/1/2014        3/1/2014    100
    1/1/2014        4/1/2014    100
    4/1/2014        5/1/2014     23
    4/1/2014        6/1/2014     23
    4/1/2014        7/1/2014     23
    Snapshot_M filed is the month when data was loaded.
    So to summarize, the data that is loaded in last month of fiscal Q1  (January) should serve as data for fiscal Q2 (Feb, Mar, APR), the data loaded on last month of Fiscal Q2 will serve as forecast data for Q3 an so on. ...
    Thanks  

    CREATE TABLE SAMPLEDATA(Snapshot_M DATETIME, Date DATETIME, F_Quantities INT)
    --fixed
    INSERT INTO SAMPLEDATA VALUES ('09/1/2013','09/01/2013',14)
    INSERT INTO SAMPLEDATA VALUES ('10/1/2013','10/01/2013',13)
    INSERT INTO SAMPLEDATA VALUES ('11/1/2013','11/01/2013',12)
    INSERT INTO SAMPLEDATA VALUES ('12/1/2013','12/01/2013',11)
    INSERT INTO SAMPLEDATA VALUES ('01/1/2014','01/01/2014',10)
    INSERT INTO SAMPLEDATA VALUES ('02/1/2014','02/01/2014',90)
    INSERT INTO SAMPLEDATA VALUES ('03/1/2014','03/01/2014',20)
    INSERT INTO SAMPLEDATA VALUES ('04/1/2014','04/01/2014',23)
    INSERT INTO SAMPLEDATA VALUES ('05/1/2014','05/01/2014',30)
    INSERT INTO SAMPLEDATA VALUES ('06/1/2014','06/01/2014',70)
    INSERT INTO SAMPLEDATA VALUES ('07/1/2014','07/01/2014',20)
    --Desired result set:
    Snapshot_M newdate F_Quantities
    2013-10-01 00:00:00.000 2013-11-01 00:00:00.000 13
    2013-10-01 00:00:00.000 2013-12-01 00:00:00.000 13
    2013-10-01 00:00:00.000 2014-01-01 00:00:00.000 13
    2014-01-01 00:00:00.000 2014-02-01 00:00:00.000 10
    2014-01-01 00:00:00.000 2014-03-01 00:00:00.000 10
    2014-01-01 00:00:00.000 2014-04-01 00:00:00.000 10
    2014-04-01 00:00:00.000 2014-05-01 00:00:00.000 23
    2014-04-01 00:00:00.000 2014-06-01 00:00:00.000 23
    2014-04-01 00:00:00.000 2014-07-01 00:00:00.000 23
    ;with mycte as (select *, lead(Date,1)Over(Order by date) newdate
    , Cast(Year(Snapshot_M) as char(4))+Cast(datepart(q, Snapshot_M) as char(1)) q
    , row_number() over(Partition by Cast(Year(Snapshot_M) as char(4))+Cast(datepart(q, Snapshot_M) as char(1)) order by date) rn
    ,count(*) over(Partition by Cast(Year(Snapshot_M) as char(4))+Cast(datepart(q, Snapshot_M) as char(1)) ) cnt
    from SAMPLEDATA
    ,mycte1 as (
    Select rn, q,
    (case when rn=1 then Snapshot_M end) Snapshot_M, newDate
    , (case when rn=1 then F_Quantities end) F_Quantities from mycte
    WHERE cnt=3)
    Select
    max(Snapshot_M) Over(partition by q) Snapshot_M
    ,newdate
    ,max(F_Quantities) Over(partition by q) F_Quantities
    from mycte1
    Order by newDate
    drop table SAMPLEDATA

  • Populate data for Invoice tab in UDM_SUPERVISOR transaction code.

    Hi All,
    I need to add new fields to invoice tab of tcode UDM_SUPERVISOR .
    For this i am appending new fileds to structure FDM_COLL_INVOICE.
    I need to calculate the new added fields and display it .
    The suggested solution was using BADI FDM_COLL_SEND_ITEMS, but this BADI can only update table UDM_COLL_ITEM and not passing any data to the structure FDM_COLL_INVOICE.
    can anyone help me me how to achieve this. Any BADI or exit available ?
    Is that the structure would get the values automatically in the suggested BADI ?

    My Query has been resolved using below option :-
    I have used an implicit enhancement at the end of the FM FDM_COLL_INVOICES_READ  to populate the additional fields added to structure FDM_COLL_INVOICE .

  • How to populate data for SharePoint Team Foundation Server web part burndown, bug progress chart

    Hi,
    We are configuring the Team Foundation Server web part to show dashboards associated with burndown, user stories, etc. I added some active but when I click on the Bug Progress link, the chart does not display any data. I click on the Burndown link to
    add some issues data. When I click on the Task burndown or the  user story progress, I get the following message
    "The error occured during an attempt to establish a connection to the external data source. The following connections failed to refresh:
    TfsOlaReport"
    I would like the see the data correctly populated in the chart. Any help is greatly appreciated.

    Hi Comicrage86, 
    Thanks for your post.
    What’s the version of your TFS and SharePoint?
    Do you mean the burndown report and bug progress chart in team project site? If yes, your current team project created using which process template?
    As far as I know team project Release Burndown report shows in team project site by default. How did you add the active to show Bug Progress chart and did you custom your Burndown in team project site? Please share the detailed steps here. And you can share
    your screenshots here, it will help us provide the better response.
    If reports cannot show correctly in your team project site, please check the default reports in your team project>>Reports, ensure that default team project reports working fine in your Reporting Service site first. Then follow the
    steps in this
    article to troubleshooting the SharePoint Dashboards data source issue.
    Or refer to the solution in this post:
    https://social.msdn.microsoft.com/Forums/en-US/af054ca3-110b-4414-85d8-f36ea2416b0c/new-sharepoint-portal-excel-refresh-issues?forum=tfssetup.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Update routine to populate value for field ZDOCCATG(Document category)

    Hi Experts,
       I need to populate  data for field ZDOCCATG(Document Category) based on the value of the below  two fields,
    1. 0deb_cre_lc(Debit / credit Amount)
    2. 0ac_doc_typ(Belegart)
    The logic is as follows:
    if 0deb_cre_lc > '0'.
         if 0ac_doc_typ == 'dz'.
          ZDOCCATG = Disputes.
         else
      ZDOCCATG = Invoices.
       end If.
    else
    if 0ac_doc_typ < '0'.
    ZDOCCATG = Credits.
    end if.
    I need to write the update routine to get the values assigned for Document category based on these two fields. When i open the routine for the field ZDOCCATG, i can see the below screen:
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    DATA:   ...
    $$ end of global - insert your declaration only before this line   -
    FORM compute_data_field
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
      USING    COMM_STRUCTURE LIKE /BIC/CS80FIAR_O03 - (Communication structure)
               RECORD_NO LIKE SY-TABIX
               RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
      CHANGING RESULT LIKE /BIC/AZOARFSCM00-/BIC/ZDOCCATG
               RETURNCODE LIKE SY-SUBRC "Do not use!
               ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line        -
    fill the internal table "MONITOR", to make monitor entries
    result value of the routine
      RESULT = .
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    ENDFORM.
    Please let me know the code to be inserted (based on the logic mentioned above) in the above screen . Thanks
    Regards,
    Kavitha Jagannath

    Hi Kavitha,
          Supposing the technical name of fields is /bic/0deb_cre_lc and /bic/0ac_doc_typ use the code below at the marked position.
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line -
    TABLES: ...
    DATA: ...
    $$ end of global - insert your declaration only before this line -
    FORM compute_data_field
    TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring
    USING COMM_STRUCTURE LIKE /BIC/CS80FIAR_O03 - (Communication structure)
    RECORD_NO LIKE SY-TABIX
    RECORD_ALL LIKE SY-TABIX
    SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
    CHANGING RESULT LIKE /BIC/AZOARFSCM00-/BIC/ZDOCCATG
    RETURNCODE LIKE SY-SUBRC "Do not use!
    ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line -
    fill the internal table "MONITOR", to make monitor entries
    result value of the routine                 
    <----- Paste the code below as shown here --->
    if comm_structure-/bic/0deb_cre_lc > 0.
      if comm_structure-/bic/0ac_doc_typ == 'DZ'.
       result = 'DISPUTES'.
      else
       result = 'INVOICES'.
      endIf.
    elseif comm_structure-/bic/0deb_cre_lc < 0.
      result = 'CREDITS'.
    end if.
    <----
    >
    if abort is not equal zero, the update process will be canceled
    ABORT = 0.
    $$ end of routine - insert your code only before this line -
    ENDFORM.
    Regards:
    Jitendra
    Edited by: Jitendra Gupta on Oct 15, 2009 3:05 PM

  • Populate data to column frm existing column

    Hi,
    I need to have 3 more columns and populate data from existing column rows.
    For example
    I want to have new columns based on int_bckt_1, char-bckt-2 and char_bckt_3
    int_bckt_1= raw score
    char_bckt_2= Pref
    int_bckt_2= Scaled score
    Raw score, pref and sacled score columns are new.
    The data is populated based on these columns int_bckt_1, char_bckt_2,int_bckt_2
    The rule is - i need to populate the data based on sub test id and char-bckt_2. we need to consider sub test id=200
    for english
    sub test id=200 and char_back_2 =T and subject is english then i need to populate data for all subtestid 500 and subject =english
    similar for Perf and Raw score
    For Math
    sub test id=200 and char_back_2 =T and subject is Math then i need to populate data for all subtestid 500 and subject =Math
    i want to do samething for char_bckt_2 =TR too.
    I herewith attached my excel sheet for more clear
    Raw score, Pref, Scaled score these column is not there in the table i need to have and populate data based on rule
    Could you please help me.
    Thanks
    Ram

    Another interpretation:
    OK, 3 new columns, so they're all null and you want to populate them and your last reply is your desired output.
    If that's correct you can use CASE:
    SQL> select * from t;
    STUD INT_BCKT_1 CHAR_BCK INT_BCKT_2 CHAR_BC SUBJECT  SUBTESTID      SCALE      A_RAW PR
    John         38 T               226 NI      English        200
    John         16 T               218 WF      Math           200
    John         82 reading         167 poetry  English        500
    John         82 Language        166 formal  English        500
    John         83 number          170 compu   Math           500
    John         83 geometry        172 spatial Math           500
    6 rows selected.
    SQL>  
    SQL> update t
      2  set scale = case when subject = 'English'
      3                   then (select int_bckt_2 from t where subject = 'English' and subtestid = 200)
      4                   when subject = 'Math'
      5                   then (select int_bckt_2 from t where subject = 'Math' and subtestid = 200)
      6              end
      7  ,   a_raw = case when subject = 'English'
      8                   then (select int_bckt_1 from t where subject = 'English' and subtestid = 200)
      9                   when subject = 'Math'
    10                   then (select int_bckt_1 from t where subject = 'Math' and subtestid = 200)
    11              end
    12  ,   pref = case when subject = 'English'
    13                   then (select char_bckt_3 from t where subject = 'English' and subtestid = 200)
    14                   when subject = 'Math'
    15                   then (select char_bckt_3 from t where subject = 'Math' and subtestid = 200)
    16              end;
    6 rows updated.
    SQL>
    SQL>
    SQL> select * from t;
    STUD INT_BCKT_1 CHAR_BCK INT_BCKT_2 CHAR_BC SUBJECT  SUBTESTID      SCALE      A_RAW PR
    John         38 T               226 NI      English        200        226         38 NI
    John         16 T               218 WF      Math           200        218         16 WF
    John         82 reading         167 poetry  English        500        226         38 NI
    John         82 Language        166 formal  English        500        226         38 NI
    John         83 number          170 compu   Math           500        218         16 WF
    John         83 geometry        172 spatial Math           500        218         16 WF
    6 rows selected.

  • Dynamically populating data for the drop down lists

    Hi,
    I am trying to have a mutually dependent drop down lists in my page.
    This is what I am trying to do -
    Lets consider there are 3 drop down lists (Choice - Select Many). A simple example lists are - Country, State, County. Now users selects country from drop down, I need to get all the states for that country as the data for the "State" drop down list. Then user selects a state, I need to populate data for the "County" drop down list.
    I am trying to do this. I added a ValueChangeListener method in the backing bean and tried to add this on the "Select Many Choice" component. But the method is never fired. I tried to change few other properties like - "immediate", "Auto Submit". but method is not fired.The method in backing bean is as shown below -
    public void onRegionSelect(ValueChangeEvent event) {
        System.out.println("Value changed ==>> "+event.getNewValue().toString());
    Need some help on how to do this.
    JDev: Version 11.1.2.3
    Thanks.

    Hi,
    I am trying to have a mutually dependent drop down lists in my page.
    This is what I am trying to do -
    Lets consider there are 3 drop down lists (Choice - Select Many). A simple example lists are - Country, State, County. Now users selects country from drop down, I need to get all the states for that country as the data for the "State" drop down list. Then user selects a state, I need to populate data for the "County" drop down list.
    I am trying to do this. I added a ValueChangeListener method in the backing bean and tried to add this on the "Select Many Choice" component. But the method is never fired. I tried to change few other properties like - "immediate", "Auto Submit". but method is not fired.The method in backing bean is as shown below -
    public void onRegionSelect(ValueChangeEvent event) {
        System.out.println("Value changed ==>> "+event.getNewValue().toString());
    Need some help on how to do this.
    JDev: Version 11.1.2.3
    Thanks.

  • How to populate data in the same table based on different links/buttons

    Hi
    I'm using jdeveloper 11.1.4. I have a use case in which i need to populate data in the same table based on click of different links.
    Can anyone please suggest how can this be achieved.
    Thanks

    I have a use case in which i need to populate data in the same table based on click of different linksDo you mean that you need to edit existing rows ?
    What format do you have the date in - table / form ?

  • Any date for jdeveloper 10.1.3 beta with adf features

    Hi Jdeveloper team,
    Is there any date we can expect the next jdeveloper 10.1.3 beta with more complete adf features ? I'm currently evaluating the technology stack+tool to use for our next project ( preferably jsf based ), the lack of an adf faces release with adf databinding and adf bc features means I can't do a complete evaluation of 10.1.3 now.
    Regards,
    Low

    Low,
    we don't have a date for a preview release of Oracle JDeveloper 10.1.3 with ADF. Our intention is to release a preview version on OTN as soon as possible and if possible.
    Frank

  • How to populate the data for additional fields in custom report of fbl5n tr

    hallo friends,
    i ha ve to add some fields to the output of custome report of transaction FBL5N.
    Till now i have only added the fields to the output.
    Now i have to write the code to populate the data for those fields in the program.
    1.     Customer Credit Group(ACM/RCM): (Table: KNKK; Field Name: VKORG )
    2.     Credit Representative Group: (Table: KNKK; Field Name: SBGRP)
    3.     Customer Account Number(CAN#): (Table: KNKK; Field Name: KNKLI)
    4.     Alternative Payer(ALTP#) : (Table: KNA1; Field Name: KUNNR)
    5.     Risk Category: (Table: KNKK; Field Name: CTLPC)
    6.     Credit Info Number: (Table: KNKK; Field Name: KRAUS)
    7.     Rating: (Table: KNKK; Field Name: DBRTG)
    8.     Payment Index: (Table: KNKK; Field Name: DBPAY)
    9.     Credit control area: (Table: KNKK; Field Name: KKBER)
    10.     Company code: (Table: KNB1; Field Name: BUKRS)
    11.     Sales Organization: (Table: KNVV; Field Name: VKORG)
    These are al fields i have to populate in the program..
    MY ATTEMPTS:
    I tried getting the data for KNKK table by GET KNKK ,but it is giving some garbage values...
    And Logical database used here is DDF,and i have to add the VKORG of KNVV too...but KNVV is not there in DDF...
    Can anybody tell me how should i proceed..
    thanks in advance.

    Thnx Andreas,
    i have following doubts again..
    I have to add sales organisation field to the selection screen...(this is given in the req.)
    now if i will say GET KNKK...it would not keep account of this 'sales organisation' field...so how should i fetch the data with these input data( i.e. 'compny code' and 'customer' are the fields given by LDB and 'sales oraganisation' is the field i put it on the selection screen)
    And what about the KNVV-VKORG ,because the KNVV is not present in the LDB.

  • How to populate data in TargetCube from SourceCube for a particular product/currency dimension selected in form1.

    Hi,
    Need help regarding Business rule scenario "How to populate data in "Target Form (plantype2)" from "Source Form(plantype1)" for a particular product/currency dimension combination selected in form1"
    Scenario 1) :  I have data for Product(Computer)/Currency(USD) dimension combination in Source Form
                        When i open Target Form and then select a Product(Computer)/Currency(USD) combination and then right click on form to invoke a Business rule to get data for this same                     product/currency combination from Source Form.
    Scenario 2) : If there isnt any data in Source Form for product(Computer)/Currency(USD) combination, then the data for product(computer)/Currency(Default Currency) to be populated into Target                     Form.
    The members in Currency Dimension (Shared Dimension) are USD & Default Currency.
    Can anyone please help.
    Thanks,
    Rajkumar

    Adding to what Celvin Kattookaran has said
    You can either write a Business Rule / Calculation script with @XREF function and also you can check condition if there is data in USD then populate USD else "Default currency"
    If you want that data in source to be available in target, then you can use @XWRITE in a rule from source cube to push the data to Target.
    Amarnath
    ORACLE | Essbase

  • How to set a default start and/or end date for New Events based on trigger date.

    I'm using the CalendarActivityListener to get current row when clicking on an existing event. As per previous posts this listener gives you access to event detail including Start Date, End Date, etc.
    However, what I want to do is to default the start (and end) dates for New Events based on the trigger date.
    I've tried the CalendarListener and can grab the Trigger Date from it - however, I can't see a way to pass this directly to the popup/dialog I'm using to create the new event.
    At present I'm putting the TriggerDate into the ADFContext session scope e.g. ADFContext.getCurrent().getSessionScope().put("TriggerDate",calendarEvent.getTriggerDate());
    Then, I've tried multiple approaches to try and "get" the TriggerDate from session scope to drop it into my new Calendar Event basically, I'm trying to default the InputField(s) associated with the Start Date using the value from the session - I've tried
    1. setting the default value for the InputField in the jspx using a binding expression i.e. value="#{sessionScope.TriggerDate}" - this actually sets the value appropriately when the jspx is rendered but, when I go to create I get a NPE and I can't debug. I assumed that it might be a Date type issue - it would appear that CalendarListener provides a date of type java.util.Date and that the StartDate attribute of my VO/EO/table is a DATE and therefore requires oracle.jbo.domain.Date so I tried casting it - to no effect
    2. Using a Groovy expression *(StartDate==null?adf.context.sessionScope.TriggerDate:StartDate)* in my calendar's EventVO to default the Start Date to the same result
    Any thoughts or ideas?

    John,
    Thanks for that suggestion - could not get it to work. However, I did manage a different approach. I finally determined the sequence of events in terms of how the various events and listeners fire (I think).
    Basically, the CalendarActivityListener fires, followed by the listener associated with the Calendar object's Create facet, followed finally by the CalendarEventListener - the final is where the TriggerEvent is available and then finally, control is passed to the popup/dialog in the Create facet. So, my approach of trying to set/get the TriggerDate in the user's HTTP session was doomed to failure because it was being get before it had been set :(
    Anyway, I ended up adding a bit of code to the CalendarEvent listener - it grabs the current BindingContext, navigates through the DCBindingContainer to derive an Iterator for the ViewObject which drives the calendar and then grabs the currently active row. I then do a few tests to make sure we're working with a "new" row because I don't want to alter start & end dates associated with an existing calendar entry and then I define the Start and End dates to be the Trigger Date.
    Works just fine. Snippet from the listener follows
    BindingContext bindingContext = BindingContext.getCurrent();+
    *if ( bindingContext != null )    {*+
    DCBindingContainer dcBindings = (DCBindingContainer) bindingContext.getCurrentBindingsEntry();+
    DCIteratorBinding iterator = dcBindings.findIteratorBinding("EventsView1Iterator");+
    Row currentRow = iterator.getCurrentRow();+
    if ( currentRow.getAttribute("StartDate") == null)+
    currentRow.setAttribute("StartDate", calendarEvent.getTriggerDate());+
    if (currentRow.getAttribute("EndDate")==null)+
    currentRow.setAttribute("EndDate", calendarEvent.getTriggerDate());+
    *}*

Maybe you are looking for

  • Why am I losing my Time Capsule connection?

    I keep getting this message every so often: Then I say, "use disk" and I get this message" So I can no longer rely on Time Machine to be backing up, which makes the whole excercise useless.  This is connected by ethernet, by the way, not wifi.  Also,

  • Copernicus crashes when after adding certain fields to a Webservice

    Hi Everybody, I am having a frustrating issue that is causing Copernicus to crash whenever I add certain fields to a Web service. For instance, if I create a web service for the ServiceRequest BO, and include the TextCollection field, once it is save

  • Print space

    Hi, would any mind helping me in solving this problem? Because I stuck now. The problem is to print a space in a binary tree (not binary search tree) import java.util.*; class BinaryTree     public static void main(String args[])         Scanner inpu

  • How do I cancel BT Sport

    Hello Community, I have the luxury of receiving BT Sport FREE via SKY due to me being a long standing Broadband customer with BT. Being in my senior years and always looking to reduce costs, I may decide to leave BT when my present contract expires o

  • Cannot connect to my email

    i have an error message that says you are not allowed to connect to webmail from (50.206.81.190) due to spam activity. please contact [email protected] for assistance.    What is going on?