Using One Context Node's Info in the Setter of Another

I am very new to WebUI.
I have a view.  In its context, it already uses context node BUILHeader .  I need to create a field based on BP_NUMBER info in BUILHeader and place the derived information on the screen.
I created a new context node that has a field  DerivedValue in it. I think I am supposed to populate it in it's P_Setter.  How do I make he information from BUILHeader available to my setter.
I think this is simple, but I'm new. so I need a good code example here.
Thank you .
...Mike

Hi
Like Amar pointed out if it is possible pleae make sure that the field is also in BUILHeader context nide itself.
If you want it to be in different context node then
you can use me->typed_context -> "<context_node name >"
create an attribute  "typed_context" pointing to the context class.
"<context_node name >" --- Here you can replace the any of the context node which is present in your view!! you can use
this anywhere inside the view. Hence you will be able to access other context nodes as well within the purview of the view.
Thanks
Abishek

Similar Messages

  • How to read the value from one context node in other in the same view.

    Hi,
    I am working on enhanced component ICCMP_BP_CP/BuPaContactPersonCreate ,  i need to read the partner_guid from Customer context node in  contactpersonaddress context node.
    Could you please guid me how to achieve this? if possible, please explain me with some sample code.
    i am trying this code in GET_FAXFAX method of contactpersonaddress-faxfax, but it is throwing me the type cast exception.
    data: lr_entity type ref to cl_crm_bol_entity.
    data: lv_test type string.
    lr_entity ?= collection_wrapper->get_current( ).
    lr_entity = lr_entity->get_related_entity( 'BuilContactPersonAddressRel' ).
    Thanks in advance.
    Regards,
    Kamesh Bathla
    Edited by: Kamesh Bathla on Jun 25, 2009 7:46 PM

    problem solved by writing the code in context node class CREATE_CONTPERSADDRESSVALNODE method
      coll_wrapper = customer->get_collection_wrapper( ).
      TRY.
          entity ?= coll_wrapper->get_current( ).
        CATCH cx_sy_move_cast_error.
      ENDTRY.
      IF entity IS BOUND.
    CONTPERSADDRESSVALNODE->on_new_focus( focus_bo = entity ).
        DATA: lr_collection TYPE REF TO cl_crm_bol_entity,
              lv_fax TYPE string,
              lv_fax_ext TYPE string,
              lv_tel TYPE string,
              lv_tel_ext TYPE string,
              entity_addr TYPE REF TO if_bol_bo_property_access, "#EC *
              coll_wrapper1 TYPE REF TO cl_bsp_wd_collection_wrapper.
         lr_parrent type
        lr_collection = entity->get_related_entity( 'BuilStandardAddressRel' )."'BuilContactPersonAddressRel' ).
        IF lr_collection IS BOUND.
          coll_wrapper1 = contpersaddressvalnode->get_collection_wrapper( ).
          TRY.
              entity_addr ?= coll_wrapper1->get_current( ).
            CATCH cx_sy_move_cast_error.
          ENDTRY.
    getting fax number
          CALL METHOD lr_collection->if_bol_bo_property_access~get_property_as_value
            EXPORTING
              iv_attr_name = 'FAXFAX'
            IMPORTING
              ev_result    = lv_fax.
    ***setting fax number
          CALL METHOD entity_addr->set_property
            EXPORTING
              iv_attr_name = 'FAXFAX'
              iv_value     = lv_fax.

  • How do I use one drop down list to refresh the list in another drop down?

    I am using a drop down list full of years (i.e. 2008, 2009..etc). When I make my selection from this drop down list (say for instance I select 2009) I want it to update the available data in the second drop down list. I have the query statement set up within the JSP page but it needs to be a dynamic SQL statement based off the value I selected in the first drop down.
    String sql = "SELECT GameId, GameDescription FROM Games WHERE Year = " + year;
    The variable "year" is the value I need to figure out how to assign. Now this variable is a Java variable (attribute) and Im unsure how to get the value from the previous drop down and assign it to that. Basically I need the JavaScript value from the first drop down assigned to the Java attribute "year".
    Anyone able to help me with this???
    Thanks,
    Jed

    Here are my two drop down lists. As you can see I build the second list dynamically based off the value of the year. I want to be able to assign my year to the value I select in this first drop down. How do I do that?? I only want to show games for the year I select. I currently have the year hardcoded to "2009" as you see below. How can i change that to be assigned to the JavaScript value i extract from the first select box?
    <select name="season">
    <option value='2009' selected>2009</option>
    <option value='2008'>2008</option>
    </select>
    <select name="gameselect">
    <%
    try
    String year = "2009";
    String connectionURL = "jdbc:mysql://localhost:3306/ElmwoodExpos";
    Class.forName("com.mysql.jdbc.Driver");
    Connection con = DriverManager.getConnection(connectionURL, "root", "thejedster");
    String sql = "SELECT GameId, GameDescription FROM Games WHERE Year = " + year;
    Statement s = con.createStatement();
    s.executeQuery(sql);
    ResultSet rs = s.getResultSet();
    while(rs.next())
    %>
    <option value="1"><% out.print(rs.getString("GameDescription"));%></option>
    <%
    catch(Exception e)
    %>
    </select>
    Thanks,
    Jed

  • How to call a method in IMPL class from one context node

    Hi, I´ve been only study the posibility to access a method in the IMPL class  from one context node class...CN## without using events, is there a way to call it ??? I don´t have it as requierement just learning thanks !.

    Hi,
    Try this by following this you can get the custom controller instacne in the view context nodes, for your requirement you can keep the view implementation class instance instead of cuco..
    To get the custom controller instance in Context node getter/setter method:
    1. Declare Cuco instance reference variable in ctxt class..
    2. Set this cuco ref. in the Create context node method of ctxt class:
    try.
    gr_cucoadminh ?= owner->get_custom_controller( 'ICCMP_BTSHEAD/cucoadminh' ). "#EC NOTEXT
    catch cx_root.
    endtry.
    you can avoid this step as this is not needed in case of view isntance
    3. Assign this instance to the respective context node Create method using:
    BTStatusH->gr_cuco ?= gr_cucoadminh.  " here assign the view implementation ref. " me" instead of gr_cucoadminh
    Here gr_cuco is the ref. variable of custom controller in the respective context node for eg. BtstatusH
    Sample implementation of this can be found in
    ICCMP_BTSHEAD/BTSHeader ->context node BTACTIVITYH-> attr ->GR_CUCO(instance of cuco)
    Cheers,
    Sumit Mittal

  • How to get value from one context node to otehr contect conde in diff views

    Hello Guru's
    We have a rek which is of getting the value from one context node to other context node,
    for example there is Total value in BT111H_OPPT/ITEMLIST (One context node) we need to have the same Total value in the in BT111H_OPPT/DETAILS (other context node) automatically
    Inputs are highly appricated.......

    Hello,
    Thanks for your Reply
    But my rek is i want to get value from different views
    eg BT111H_oppt/itemslist(contex node - BTADMINI) field net value to BT111h_opp/Details(Context node - BTopporth)
    for this which method should i use to chive this.
    Thanks..

  • TS1292 Purchased gift cards about a year ago. Misplaced two of them. Found them yesterday, tried to use one today. Invalid. If the money is tagged to the card code why is it invalid? Now have to take photos of both sides and find receipt? Guess out $20?

    Purchased gift cards about a year ago. Misplaced two of them, but Found them yesterday. i tried to use one today. Invalid. If the money is tagged to the card code why is it invalid? Now have to take photos of both sides and find receipt? Finding the receipt might take as long as .finding the cards. If I paid hard earned money for the card from a computer company why would that card not be in their data base waiting to be activated? I guess I am out $20 to Apple for not activating immediately! My account was hacked once so I won't put a credit card in and live with gift cards. Now I am getting hit for $20, two gift cards for ten each. I now question who and how people are making money?? Is my only solution, buy card, redeem code instantly, purchase item?

    Hi Oxfordataloss,
    Thanks for posting. I'm really sorry you've had such problems with BT, it's certainly not the kind of service we would hope to provide. I'll take your comments on board and if you don't receive the final bill as expected please drop me an email with the account details and a link to this thread for reference.
    Cheers
    David
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • I have 2 apple id's. But i want my music on iTunes common on both id's. I use one ID on my iPad and the other on my family iMac.  how do i do it?

    I have 2 apple id's. But i want my music on iTunes common on both id's. I use one ID on my iPad and the other on my family iMac.  how do i do it?

    Settings>Store...tap the ID shown...sign out...now sign back in with the ID you want to use.

  • I have 2 ipod touches. I backed up the new one with old's info. The old one will not unlock with the password I had wrote down and I tried my new ones password.  How can I reset the old ipod without affecting the new one and how can I unlock the old one?

    I have 2 ipod touches. I backed up the new one with old's info. The old one will not unlock with the password I had wrote down and I tried my new ones password.  How can I reset the old ipod without affecting the new one and how can I unlock the old one?

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software

  • Is it possible to use two context nodes in a single table view?

    Hi all,
    I have a window context node which is mapped to a dictionary structure. I have created a second node which contains some texts. I've mapped both nodes with the context  of a view. In this view I have created a table which shows lines of the first node (the one mapped to a dictionary structure). What I want is to show some text from the second node in a column of the table.
    Both of the nodes are populated upon initialization of the window. And they have a 1:1 mapping. (i.e the first line of the second node has some text for the first line of the first node ) . When the table is displayed what I get is the first line of the second node for all the lines of the first node. How can I change that? How can I make the second (text) node show the relevant text of the relevant line?

    HI
    You can make it work by using the logic of populating the node itself with modified values.
    i.e. during the population of the first node populate the text with the text from the second node by looping through its elements
    one by one.
    node 1  -- during its population or may be after its population loop though its elements and modify the value of text
    with the proper value taken from the corresponding value of text from the corresponding element of node 2.
    thanks
    sarbjeet singh

  • Using One Property Node For Multiple Controls/I​ndicators

    Question for all you LabVIEW gurus.  Is there a way to create 1 property node that is used for multiple indicators?  For example, if I wanted to display the same value on 10 different indicators using the property node - value function do I need to create 10 separate property node-value instances for each indicator?  Or is there a way to tie all of those indicators to only one property node?
    Thanks!
    Solved!
    Go to Solution.

    Hi hobby1
    You could create a cluster, and inside in it put all the indicators, see the image attached
    Attachments:
    capture1.JPG ‏14 KB

  • Achieving functionality of many preferences using one context index

    Hi Gurus,
    We have a table of following format
    SCOTT@orcl_11gR2> insert all
    2 into test_sh values (1, 'Mark Antony')
    3 into test_sh values (2, 'Mark-Antony')
    4 into test_sh values (3, 'markantony' )
    5 into test_sh values (4, 'markantony' )
    6 into test_sh values (5, 'Cleopatra' )
    7 select * from dual
    8 / We need to achieve following functionality in this table
    1) fuzzy
    2) stem
    3) synonym
    4) near
    5) soundex
    6) As mentioned in thread Text Search help using ndata section
    7) As mentioned in thread Re: Phrase Serach with special charaters in between using a lexer preference
    Please guide me as to how to achieve everything in one shot.
    I was thinking to write individual select statement and then do a distinct of id as given below but if we need to achieve #6 and #7 we need to add
    a preference and other queries for sundex,stem etc will not work properly. Please guide me how I can achieve all functionality using one index.
    > select * from test_sh where id in
    select distinct id from (
    select id from test_sh where contains (text_nm ,'markantony') > 0
    union
    select id from test_sh where contains (text_nm ,fuzzy('markantony')) > 0
    union
    select id from test_sh where contains (text_nm ,fuzzy('!markantony')) > 0
    select id from test_sh where contains (text_nm ,fuzzy('$markantony')) > 0
    ) Thanks & Regards,
    Vikas Krishna

    I do not get the errror that you get and I get the correct results, as shown below. Please post a copy and paste of a complete test case, run from SQL*Plus, as I have done below.
    SCOTT@orcl_11gR2> create table test_sh
      2    (text_id  number,
      3       text      clob)
      4  /
    Table created.
    SCOTT@orcl_11gR2> insert all
      2  into test_sh values (1, 'Mark Antony')
      3  into test_sh values (2, 'MARK ANTONY')
      4  into test_sh values (3, 'mark antony')
      5  into test_sh values (4, 'MarkAntony')
      6  into test_sh values (5, 'MA RK ANTONY')
      7  into test_sh values (6, 'm a r k antony')
      8  into test_sh values (7, 'Cleopatra' )
      9  select * from dual
    10  /
    7 rows created.
    SCOTT@orcl_11gR2> begin
      2    ctx_ddl.create_preference ('nd_mcds', 'multi_column_datastore');
      3    ctx_ddl.set_attribute ('nd_mcds', 'columns', 'text nd, text text');
      4    ctx_ddl.create_section_group ('nd_sg', 'basic_section_group');
      5    ctx_ddl.add_ndata_section ('nd_sg', 'nd', 'nd');
      6    ctx_ddl.create_preference ('test_lex', 'basic_lexer');
      7    ctx_ddl.set_attribute ('test_lex', 'whitespace', '/\|-_+');
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> create index ix_test_sh
      2  on test_sh (text)
      3  indextype is ctxsys.context
      4  parameters
      5    ('datastore  nd_mcds
      6        section    group nd_sg
      7        lexer         test_lex')
      8  /
    Index created.
    SCOTT@orcl_11gR2> variable search_string varchar2(100)
    SCOTT@orcl_11gR2> column text format a30
    SCOTT@orcl_11gR2> exec :search_string := 'Mark Antony'
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> select * from test_sh
      2  where  contains
      3             (text,
      4              'ndata (nd,' || :search_string || ') or
      5            syn (?!$' || replace (:search_string, ' ', ';?!$') || ')') > 0
      6  /
       TEXT_ID TEXT
             1 Mark Antony
             2 MARK ANTONY
             3 mark antony
             4 MarkAntony
             5 MA RK ANTONY
             6 m a r k antony
    6 rows selected.
    SCOTT@orcl_11gR2> exec :search_string := 'MARK ANTONY'
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> /
       TEXT_ID TEXT
             1 Mark Antony
             2 MARK ANTONY
             3 mark antony
             4 MarkAntony
             5 MA RK ANTONY
             6 m a r k antony
    6 rows selected.
    SCOTT@orcl_11gR2> exec :search_string := 'mark antony'
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> /
       TEXT_ID TEXT
             1 Mark Antony
             2 MARK ANTONY
             3 mark antony
             4 MarkAntony
             5 MA RK ANTONY
             6 m a r k antony
    6 rows selected.
    SCOTT@orcl_11gR2> exec :search_string := 'MarkAntony'
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> /
       TEXT_ID TEXT
             1 Mark Antony
             2 MARK ANTONY
             3 mark antony
             4 MarkAntony
             5 MA RK ANTONY
             6 m a r k antony
    6 rows selected.
    SCOTT@orcl_11gR2> exec :search_string := 'MA RK ANTONY'
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> /
       TEXT_ID TEXT
             1 Mark Antony
             2 MARK ANTONY
             3 mark antony
             4 MarkAntony
             5 MA RK ANTONY
             6 m a r k antony
    6 rows selected.
    SCOTT@orcl_11gR2> exec :search_string := 'm a r k antony'
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> /
       TEXT_ID TEXT
             1 Mark Antony
             2 MARK ANTONY
             3 mark antony
             4 MarkAntony
             5 MA RK ANTONY
             6 m a r k antony
    6 rows selected.

  • My husband and I both have iPhones . How do I use one account for purchases and keep the email separate when using iCloud?

    My husband and I both have iPhones . How do I use one iTunes account to share music, photos and apps, and keep our email accounts separate since all data will use the iCloud function.

    You shouldn't be using the same account on phone iphones. Have him setup his own and make sure his iCloud is logged in with that one

  • HT1495 I have just purchased a second ipod and have 2 computers can i use one ipod on each computer with the same account. I have a different playlist on my second computer. Thanks,

    I have just purchased a second ipod and have two computers w7 and xp, can i use one on each computer with the same account. I have a different playlist on my second computer. Thanks.

    Sorry to ask, how do I do it please. I have my first ipod with the same account on both computers that have different libraries one of which I am building now. Do I have to de-authorise my original ipod on the computer that I want to use my new ipod on with the new library and then register my new ipod. I would rather do this than have 2 libraries on one itunes, but keep the same account details. 

  • How to use a context between two components at the runtime

    Hi Experts,
    My Web dynpro component is over the Generation limit (size of generated load is > 2 MB) so it always gets Warning when I active it. That why I have separated my application into two components and use the ViewContainerUIElement in order to show views of each other.
    In the application, I use also the TimeTrigger to refresh pages, all views have a TimeTrigger and the DELAY property of TimeTriggers is bounden into the same context attribute. I use a component to set up (change) the value of context attribute that is mapped with the Delay property. I want to change the Delay value on a component and other component will understand the changing.
    My problem is how I can use the same context attribute between components at the runtime?
    Let give me your advice on this.
    Many thanks,
    Ken

    Hi Ken,
    You can use [external context mapping|https://cw.sdn.sap.com/cw/docs/DOC-27901] to share data between two or more components using context.
    Thanks,
    Duy

  • How to create a context node for "IBHeader" at the view "BuPaIBaseDetail"?

    hi, experts
    for the requirement, i have to get data from a root BO-IBHeader in the view of "BuPaIBaseDetail".But the view already has IBHeader's child object-"IBComponent", whose controller class is "CL_CRM_IC_BUPACONTROLLER_CN08", how can i create the context node for "IBHeader"?
    angerly wait for the answer. thanks a lot

    If you right click on an empty container or a container with an object in it, it has the same available choices to select. However, if you create a blank property node on the block diagram, and wire up the .net object to it, you will see a much different list of properties.
    So, the property node created from right clicking a .NET container will be for that container, even if there is an object inside. To create a property node for the object, you must wire the .NET object to an empty property node on the block diagram.
    Chris Van Horn
    Applications Engineer

Maybe you are looking for

  • How I can change the z-order of objects?

    Hi, I'm creating subform that contains "tabs", I want to change the z-order of the a tab when it's clicked to be on top of other tabs. it seems instanceIndex does not work or it wan not mint for this kind of visual effects.  Any idea on how this can

  • Problem with ORACLE 10g on VirtualBox ....

    Hi, Currently, I installed an instance of ORACLE 10g on Virtual Server with Windows Server 2K3 Enterprise x86, but after to turn off o restart the virtaul Machine, areceived an error of ORACLE "ORA-12514"... I had created the virtual server 3 times b

  • Can we restore deleted documents in the iphone?

    I have deleted a few images from my iphone and I would want to restore those images back but I do not know how.So I hope you can help me solve my problem.Thank you.

  • Subscribed Calendars Do Not Update

    My wife and I subscribe to each others schedules. However, there are constant problems with the updating. For example, when I delete an appointment from my schedule, it doesn't show up on her iCal--even after we refresh both computers and vice versa.

  • The black macbook converter cable failures

    I need to know which are the characteristics that generates the converter cable failure in the black macbook. If someone can give me information thereon, be them would greatly appreciate. Thanks a lot