How to update a webdynpro context node from flex ?

Hi
I have an table in webdynpro and a datagrid in flex, both getting the value from the same context node. My requirement is to make the table fields editable and when I make changes in the datagrid, it should get reflected back in the webdynpro table.
So how can I access the internal table's context node from flex ?
Can anyone help me with this.

Hi,
As you are using a datasource, i assume you have set method in flex to read the datasource(context node). What you need to do is store the reference to this datasource in a local flex variable. Have a look at the below code:
private var refreshFlexUINode:ArrayCollection;
public function set refreshFlexUI(datasource:ArrayCollection):void
    refreshFlexUINode=datasource;
and say you want to edit one row of the table, get that row from ArrayCollection and assign the new value.
it would be like, if you want to save second row of the datagrid
Object obj = refreshFlexUI.getItemAt(1)
obj[<CONTEXT_ATTR_NAME>]=<new value>
Hope this helps!
Best Regards,
Srilatha
Edited by: Srilatha M on Jun 28, 2011 6:34 AM
Edited by: Srilatha M on Jun 28, 2011 6:35 AM

Similar Messages

  • How to read the attribute in another context node from setter method

    Hi,
    As part of the  requirement
    i need to read the STRUCT.E_MAIL ( attribute ) present  in  INDEPENDANTEMAIL context node  from  the SET_S_SRUCT method of the context node  HEADER.
    I tried th following but it didnt work out....
    Get the Custom Controller Path
    *lr_cuco ?= controller->get_custom_controller( controller_id = 'BP_HEAD/IndComm').
    *IF lr_cuco IS BOUND.
    Get the Entity
    *lr_entity ?= lr_cuco->typed_context->independantemail->collection_wrapper->get_current( ).
    *ENDIF.
    *CHECK lr_entity IS BOUND.
    Get the Trade Event Type.
    *lv_email  = lr_entity->get_property_as_string( 'E_MAIL' ).
    also i tried ...
    data:
    *lv_value type string,
    *lr_property type ref to if_bol_bo_property_access.
    *lr_property = collection_wrapper->get_current( ).
    *lv_value = lr_property->GET_PROPERTY_AS_STRING( importing iv_attr_name = 'E_MAIL'
                                                returining  ev_result    = lv_email ).
    but it didnt workout ......
    Any suggestions   ...................
    Regards,
    Sijo...

    Hi,
    Both Context node are available in view then refer this link.
    Reading Attributes from different context nodes in the same view
    Relationship name for context node INDEPENDENTMAIL is 'BuilIndependantEmailRel'
    Regards
    Gaurav

  • How to update my mac book pro from 10.5.8 to the leatest version

    how to update my mac book pro from 10.5.8 to the leatest version

    Upgrading to Snow Leopard, Lion, or Mountain Lion
    Upgrading to Snow Leopard
    You can purchase Snow Leopard by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. The price is $19.99 plus tax. You will receive physical media - DVD - by mail.
    Third-party sources for Snow Leopard are:
    Snow Leopard from Amazon.com
    Snow Leopard from eBay
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store.
    Before upgrading check that you computer meets the minimum requirements:
    Snow Leopard General requirements
      1. Mac computer with an Intel processor
      2. 1GB of memory
      3. 5GB of available disk space
      4. DVD drive for installation
      5. Some features require a compatible Internet service provider; fees may
          apply.
      6. Some features require Apple’s MobileMe service; fees and terms apply.
    Upgrading to Lion
    First, you need to upgrade to Snow Leopard 10.6.8 as stated above.
    You can purchase Lion by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
    Before upgrading check that you computer meets the minimum requirements:
    Lion System Requirements
      1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7, or
          Xeon processor
      2. 2GB of memory
      3. OS X v10.6.6 or later (v10.6.8 recommended)
      4. 7GB of available space
      5. Some features require an Apple ID; terms apply.
    Upgrading to Mountain Lion
    Be sure your computer meets the minimum requirements:
    Apple - OS X Mountain Lion - Read the technical specifications.
    Macs that can be upgraded to OS X Mountain Lion
      1. iMac (Mid 2007 or newer)
      2. MacBook (Late 2008 Aluminum, or Early 2009 or newer)
      3. MacBook Pro (Mid/Late 2007 or newer)
      4. MacBook Air (Late 2008 or newer)
      5. Mac mini (Early 2009 or newer)
      6. Mac Pro (Early 2008 or newer)
      7. Xserve (Early 2009)
    Are my applications compatible?
    See App Compatibility Table - RoaringApps - App compatibility and feature support for OS X & iOS.
    Am I eligible for the free upgrade?
    See Apple - Free OS X Mountain Lion upgrade Program.
    For a complete How-To introduction from Apple see Apple - Upgrade your Mac to OS X Mountain Lion.

  • HT5824 how to update contact info to icloud from my iphone

    how to update contact info to icloud from my iphone?

    If you are syncing contacts with iCloud on your phone, just edit the contact in the contacts app.  That edits it in iCoud.

  • [svn] 3292: Update Download text and link from Flex 2 to Flex 3.

    Revision: 3292
    Author: [email protected]
    Date: 2008-09-22 08:49:21 -0700 (Mon, 22 Sep 2008)
    Log Message:
    Update Download text and link from Flex 2 to Flex 3.
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/javascript/FABridge/samples/srcview/SourceIndex.xml

    I haven't done any charts, so I can't be much specific help,
    but start with the MigrationGuide, here:
    http://download.macromedia.com/pub/documentation/en/flex/2/flex2_migrationguide.zip
    Then run the example and debug it.
    You might also be able to find updated examples here:
    http://www.adobe.com/devnet/flex/
    Tracy

  • When trying to update and install Mountain Lion's 10.8.3 update from 10.8.2, the App Store will restart my computer but not install the update.  Any ideas on how to update my Macbook Pro 15" from 2008?

    I was wondering, does anyone have an idea on how to update my Macbook Pro 15" to Mountain Lion's 10.8.3 from Mountain Lion's 10.8.2 version?  When I attempt to use the App Store, it will restart my computer but it will not install the update.  The update also still shows up in the App Store as available and when going to "About my Mac," it still shows the current version being 10.8.2.
    Computer:
    Macbook Pro 15" Aluminum Body
    Purchased Late 2008
    Current OS: Mountain Lion 10.8.2
    Original OS: Leopard

    I will be attempting this fix this fix tonight:
    https://discussions.apple.com/message/21529499#21529499

  • Export  WebDynpro context node  to CSV format?

    I have successfully implemented exporting the context node to xml format then open through the Excel following the tutorial : Exporting Context Data into Excel Using the Web Dynpro Binary Cache.
    But now, I need to implement another version that export to CSV format, then open through Excel.
    I remembered I read a blog and some forum posts that mentioned about this solution, but I just could not locate where they are now through SDN search now.
    I will appreciate if someone can point me to those links again.
    Thanks.
    Kent

    Hi Kent,
    I am also developing the application wherein Table data needs to be exported to Excel.
    I am trying to download the WDExcelExport.zip from the foll. link
    https://wwwn.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/bad3e990-0201-0010-3985-fa0936d901b4 [original link is broken]
    But I am getting the error
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    The exception was logged. Inform your system administrator..
    See the details for the exception ID in the log file
    Can you please send me the Sample Application WDExcelExport.zip. My mail id is  [email protected]
    Regards
    Nikhil Bansal

  • How to go over a Context node

    Hello,
    I have a Context Node myNode which contains many attributes: first_name, last_name, phone ect.
    How do I go over the Node in a while/for loop and query each attribute for it's value for example?

    Hi,
    try something like this:
    public static void iterateThroughAttributes(final IWDNode node)
         final int size = node.size();
         final IWDNodeInfo nodeInfo = node.getNodeInfo();
         for (int i = 0; i< size; i++)
              final IWDNodeElement element = node.getElementAt( i );
              for (final Iterator it = nodeInfo.iterateAttributes(); it.hasNext(); )
                   final IWDAttributeInfo attributeInfo = (IWDAttributeInfo)it.next();
                   element.getAttributeValue( attributeInfo.getName() );
    Regards, Maxim R.
    Message was edited by: Armin Reichert
    corrected code

  • Accessing context nodes from DO_VALIDATE_INPUT

    Hello together,
    in Web-UI i want to set the CITY depending on the POSTAL-Code. This should be done automatically if the user saves a new business partner. I did some coding in the EH_ONSAVE, but there are some problems with the duplicate check. So i tried it in the DO_VALIDATE_INPUT but i can't access the context node. Does anybody know how i can change some field before EH_ONSEARCH()?
    Best regards
    Sascha Federau

    Sascha,
    If the context node is available on the view you are working, you should be able to access the the context node as DO_VALIDATE_INPUT is available in the IMPL class.
    Example:
    current ?= me->typed_context->product->collection_wrapper->get_current( ).
    Also you use DO_HANDLE_DATA, I remeber using it sometime back as it triggers on Save.
    Regards,
    Masood Imrani S.

  • How can I get the context-parm from a web.xml file using struts?

    Hello:
    I need get the context-param from the web.xml file of my web project using struts. I want configurate the jdbc datasource connection pooling here. For example:
    <context-param>
    <param-name>datasource</param-name>
    <param-value>jdbc/formacion</param-value>
    <description>Jdbc datasource</description>
    </context-param>
    and then from any Action class get this parameter.
    Similar using a simple server can be:
    /** Initiates new XServlet */
    public void init(ServletConfig config) throws ServletException {
              for (Enumeration e = config.getInitParameterNames(); e.hasMoreElements();) {
                   System.out.println(e.nextElement());
              super.init(config);
              String str = config.getInitParameter("datasource");
              System.out.println(str);
         public void doPost(HttpServletRequest req, HttpServletResponse res)
              throws ServletException, IOException {
              // res.setContentType( );
              System.out.println("Got post request in XServlet");
              PrintWriter out = res.getWriter();
              out.println("nada");
              out.flush();
              out.close();
    but only this works for init-params, if I use
    <servlet>
         <servlet-name>MyServlet</servlet-name>
         <display-name>MyServlet</display-name>
         <servlet-class>myExamples.servlet.MyServlet</servlet-class>
         <init-param>
         <param-name>datasource</param-name>
         <param-value>jdbc/formacion</param-value>
    </init-param>
    </servlet>
    inside my web.xml. I need something similar, but using struts inside the action class for that I can get the context-params and call my database.
    Thank you

    To get context parameters from your web.xml file you can simply get the ActionServlet object from an implementing action object class. In the perform (or execute) method make the following call.
    ServletContext context = getServlet().getServletContext();
    String tempContextVar =
    context.getInitParameter("<your context param >");

  • How to update Final Cut Pro 5 from 5.0.4 to 5.1.4. I'm having trouble doin

    I will appreciate any help. I'm trying to update my final cut siftware from 5.0.4 to 5.1.4, but I'm having trouble. When I tried a dialogue box appears saying that I need to use The Software Update in order to update my software. But when I go to the Software Update, there's nothing.
    Thanks;
    Ricky
    Power Mac G5   Mac OS X (10.4.8)  

    The upgrade from 5.0 to 5.1 is not free.
    You can find information about it here:
    http://www.apple.com/universal/crossgrade/
    If you have the full 5.0 Studio, it should be only $49US to get 5.1
    Time is running out on the deal, so don't wait if you are going to do the move.
    good luck.
    x

  • How to update to 10.6.4 from 10.5.8 macv=book (for trackpad?)

    Hi
    Can anyone please tell me how to update my OSX so i can use the new trackpad?
    I just spent 80 EUR's on a new apple trackpad and its a nightmare to upload which i never thought would happen with Apple.
    I am on 10.5.8 on a macbook and cannot update to 10.6.4 which is required. My system cannot see any updates. I have backed up and need to install the new OSX just to pair my trackpad with my mac.
    Please help!
    Macbook Mac OS X (10.5.8)

    Hi
    First purchase the Snow Leopard Installer DVD:
    http://store.apple.com/fr/product/MC573F/A?fnode=MTY1NDAzOA&mco=MTc1MTEzNjY
    Then install it.
    Tony

  • How to update date in a table from another database

    Hello,
    I am trying to code a way to Update my Testing database from another database. In the coding below the database that has the updated data ends in Restore.
    Use ClientDB_MASTER_Restore
    Truncate Table ClientDB_MASTER_Testing.dbo.Activity_Tracking_AZ
    GO
    SELECT * INTO ClientDB_Master_Testing.dbo.Activity_Tracking_AZ
    FROM Activity_Tracking_AZ
    Go
    I know with this Technique the table must be truncated if not deleted first.  There is probably a better way to do this which I'm very open to.  I'm also looking for coding that will roll back any changes made should an error occur.
      As always, any help is greatly appreciated.
    David92595

    USE ClientDB_MASTER_Testing
    go
    SET XACT_ABORT ON
    BEGIN TRANSACTION
    Truncate Table dbo.Activity_Tracking_AZ
    -- SET IDENTITY_INSERT dbo.Activity_Tracking_AZ ON
    INSERT dbo.Activity_Tracking_AZ (col1, col2, ...)
    SELECT col1, col2,
    FROM ClientDB_MASTER_Restore.dbo.Activity_Tracking_AZ
    -- SET IDENTITY_INSERT dbo.Activity_Tracking_AZ OFF
    COMMIT TRANSACTION
    If you find it boring to type the column lists, just find the table in Object Explorer, and drag the columns node to where you want the column list.
    You need the SET IDENTITY_INSERT command if the table has an IDENTITY column.
    By wrapping the code in a transaction, you are not left with an empty table if the INSERT fails. The command SET XACT_ABORT ON makes sure that the batch is aborted and rolled back in case of an error.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to update Records of SAP table from .CSV file

    Hi,
    I have written a code which takes a data from (,) delimited CSV file and adds it into the Internal table.
    Now I want to update the all fields in SAP table with the Internal table.
    I want to use Update statement.
    Update <table Name> SET <field needs to update> WHERE connditon.
    I don't want to iterate through thousand on record in sap table to check the where condition.
    Could you please tell me how to do it.

    Hi. I thing you will not workaround the iterating of the internal table.
    You can pre-load all the records into another internal table
    check lt_csv[] is not initial. " important, otherwise next select would read all records of the table
    select .... into lt_dbitab for all entries in lt_csv where key-fieds = lt_csv-key_fields...
    check sy-subrc eq 0 and lt_dbitab[] is not initial.
    then do in-memory update of the it_dbitab
    loop at it_dbitab assign <fs>.
      read table lt_csv assign <fs_csv> with key ... " lt_csv should be sorted table with key, or you should try to use binary search
      if sy-subrc eq 0.
        ...change required lt_dbitab fields: <fs>-comp = <fs_csv>-comp...
      endif.
    endloop.
    ant then you can do mass-update
    update dbtab from table lt_dbitab.
    From performance view, this solution should be much faster than iterating lt_csv directly and updating every single database record
    Br
    Bohuslav

  • How to update value in internal table from cdpos taking fname n value_new?

    hello everyone,
              i want to insert  value in internal table from cdpos table taking field name  from fname and value from value_new.but the problem is i am not getting how to map the corresponding field of internal table with fname value  which is the field name.
    for example
    i
    fieldname
    value
    name1
    raj
    name2
    sharma
    i want to update field name1. this name1 is there in fname with updated value in value_new  how to make name1 with fname value
    thanks and regards
    laxmikant soni

    Hi Laxmikant,
    If I have understood your requirement correctly, you need to update an internal table with latest 'value_new' from cdpos table where  'fname' = 'fieldname' .
    Hope the below logic will help you:
    FIELD-SYMBOLS: <wa_intab> LIKE LINE OF lt_intab.  "the internal table you want to change
    LOOP AT lt_intab ASSIGNING <wa_intab> .
       READ TABLE lt_cdpos INTO wa_cdpos           "lt_cdpos contains latest data selected from CDPOS
        WITH KEY fname = <wa_intab>-fieldname.
       IF sy-subrc = 0.
         <wa_intab>-value = wa_cdpos-value_new.    
       ELSE.
         "//logic if the name is not there in CDPOS
       ENDIF.
       CLEAR  wa_cdpos.
    ENDLOOP.
    If you wish to improve performance, I suggest using
    1. "transporting value_new" addition in READ TABLE,
    2.  select only the data which you require from CDPOS,
    3.  create the internal tables with only fields which you require,
    4.  when you are using SELECT,LOOP AT statements, limit records by using WHERE condition
    Regards,
    Kavya

Maybe you are looking for