Initialization of nodes everytime the view is called

Hi experts
ABOUT: I am trying out a code in which I am displaying a table in First view with 2 buttons for edit and add. If the user clicks add button, Second view is called with blank input fields and a button to save. If the user clicks edit, input field with the values in lead selection of previous view should be displayed. I am able to do this. 
ISSUE:   But after saving the values I want the control again to go to the First view. Where I want the table to be updated with all the new values (values just saved in second view also). I know I canu2019t put the code for initialization in DO_INIT, as it is called only once in the lifetime of view controller. When I keep the code in DO_MODIFY_VIEW everything is fine but I am not able to change the lead selection. Where exactly should I put my code for initialization? Awaiting your valuable replies.
Thanx
Gaurav

What i would suggest is to consider using the component controller for your context. Do the context mapping to view1 and view2.
When ever you select a line, lead selection is set and fire a plug to view2. View2 just displays a form with selected record.
When you ready in view 2 , fire a plug to go back to view1. You do not have to do anything, the data is already updated in view2 , lead selection is not changed in view1.
So the solution is to have the context in component controller,context mapping in views. Use plugs to navigate between views.

Similar Messages

  • How to add a new element to a model node in the view controller?

    View Context
        myNode
             attri1
             attri2
    myNode is a web service model node. How to add a new element to this node?
    Regards,
    Hui
    Edited by: Hui Wang on Feb 15, 2008 12:05 PM

    Sudhir Gorantla wrote:>
    > Hi,
    >
    > myNode
    > attri1
    > attri2
    >
    > IMyNodeElement ele=wdContext.myNode().createMyNodeElement();
    >
    > ele.setAttri1("");
    > ele.setAttri2("");
    >
    > wdContext.nodeMyNode().addElement(ele);
    >
    > Regards,
    > Sudhir
    Hi we need a model as an input parameter when creating a element for a model node. How to get the instance of the model?
    Regards,
    Hui

  • How to find out the view that calls a pop-up window?

    Hi,
    The BP_HEAD_SEARCH component is a pop-up called by several other components (Contact, Activity, etc).
    So I need to customize it in according to which view called it (BP_HEAD or BT126H_APPT, for instance). I see OUTER_REP_VIEW attribute, however it has several protected attributes and, some times, it doesn't work because it hasn't parent attribute filled.
    Regards,
    André

    Xavier,
    However the value is always BuilHeaderAdvancedSearch.
    Let me explain again:
    Several views around the system use the BP_HEAD_SEARCH component to search up a partner. The most of them use the SearchHelp view and the configuration is object and subobject as . The component usage is always CUAccountValueHelp.
    For example, in the Activity (company field) or in the Organization - Relationship assignment block, if you use the pop-up to search a partner, the configuration is the same.
    But I need to know who called the pop-up: Activity module (BT126H_APPT) or Organization - Relationship (BPData)?
    Regards,
    André

  • Android Adobe DPS viewer. HTML form dropdown menu closes everytime the viewer navigation pops up.

    I have a web content page which contains a form dropdown menu: <select><option></option></select> ... and so on. I use this as a small filter to narrow a result.
    When I tap the screen, this dropdown menu is shown and works correctly on an iPad. As a side effect the navigation from the Adobe DPS viewer is also shown although this doesn't interfere with the dropdown menu in the HTML. Both are shown.
    On an Android tablet, the html dropdown menu is shown for a fraction of a second until the Adobe DPS viewer navigation pops up. The HTML dropdown menu just won't stay visible.
    My question: How can I solve this? How can I make the HTML dropdown visible on an Android tablet? Or how can I prevent the DPS viewer navigation from showing?
    Thanks

    This phenomenon does not happen on a Samsung Galaxy Tab 2. While not showing the dropdown menu as on an iPad it shows it as a scrollable menu at the bottom.

  • Mapping one node in a view context to many nodes in the component controlle

    Hi guys,
    I need to map an element (attribute) of a node in the View Context to an attribute of multi nodes of the same type:
    Context View:
    customer_no
          |
          | -> KUNNR
    Component Controller Context having two nodes:
      - Node1
         RFC1
            |
            |->KUNNR
      - Node2
          RFC2
             |
             |->KUNNR
    Above I need to map the (KUNNR) in customer_no node to KUNNR in the RFC1 RFC2 before i execute the two RFCs services.
    Note:
    if this is not possible would you mention another solution.
    Thanks,

    Hi,
       As per MVC you cannot map context from view controller to component controller.Mapping can happen from component
    controller to view controller.
    You cannot create mapping for context attributes. You can map nodes if both source node and destination node both has same structure and same number of attributes. If they dont contain same number of attributes the extra attributes from the source node gets copied to the destination node.
    In your case before the RFC execution you can read the value of attribute Kunnr from view and set it the RFC attribute Kunnr before the Function module execution.
    Regards
    Bala Baskaran.S

  • Can a 3D view be called from JavaScript

    I have spent many hours looking for this solution, but haven't found the answer yet. I want to have a Flash movie call a 3D view.
    Thanks in advance for your help.

    runtime.setView( 'viewname_goes_here', boolean_animate );
    e.g. in a doc-level context if the view is called "homeView" and you want to switch to it instantly (without the default camera animation):
    getAnnots3D(pageNum)[0].context3D.runtime.setView('homeView', false);

  • Reading Attributes from different context nodes in the same view

    Hi,
    I have added a new field as part of an enhancement for Trade Promotions. This field is a checkbox and part of the context node TRADE in the view TPMOE/HeaderEOF. This field will be checked or unchecked using a logic in the background.
    The logic will be based on an attribute (Fund Plan ID) which is part of another context node FUNDPLAN in the same view.
    How can I read the attribute of FUNDPLAN context node in TRADE context node?
    A sample code will be quite helpful as I am new to CRM 2007.
    Thanks,
    Abhishek
    Edited by: Abhishek  Periwal on Oct 16, 2008 2:35 PM

    Hi Abhishek,
    If I understand your question correctly, you would like to access the Fund plan ID (in a different context node) in the getter setter methods of the check box attribute which you have added.
    The code snippet mentioend by sudeep works perfectly fine when you are making any checks in the view implementation class. But since you are in the getter setter methods of the context class, this doesnot work as "me" always refers to the class instance in which you are present.
    Now in this case what you need to do is :
    1)  create an attribute <view_controller> in your context class. Here the context is TRADE. The type of this attribute wud be same as the view controller class CL_TPMOE_HEADEREOF0_IMPL
    2) Go to the view controller class and redefine the method
    DO_VIEW_INIT_ON_ACTIVATION. This method is called only once when the view is loaded for the first time.
    3) In this method, put the following code
    me->typed_context->(Trade)->[view_controller] = me.
    by the above code, you are setting the newly created attribute to the view controller instance.
    4) The next step would be, go back to your getter setter methods or what ever it may be, try referring to the Fund plan ID by the code snippet mentioned below
    data: lr_entity type ref to cl_crm_bol_entity.
    lr_entity ?= me->[view_controller]->typed_context->[the context node in which the fund plan id is present]->get_current().
    lv_field_value = lr_entity->get_property_as_String( **pass the field name here ).
    This should definitely resolve the problem.
    Thanks,
    Vinay

  • Apply XSLT  while importing the xml to the selected node in structure view

    Hi All,
    I would like to apply XSLT while importing the xml file to the selected node in the structure view.
    How to go about it?
    Thanks
    Sakthi

    Hi All,
       Got the solution,
                    UIDRef documentUIDRef = ::GetUIDRef(activeContext->GetContextDocument());
                InterfacePtr<IDocument> document(documentUIDRef, UseDefaultIID());
                InterfacePtr<IXMLImportOptionsPool> prefsPool( document->GetDocWorkSpace(), UseDefaultIID() );
                InterfacePtr<IK2ServiceRegistry> serviceRegistry(gSession, UseDefaultIID());
                InterfacePtr<IK2ServiceProvider> serviceProvider(serviceRegistry->QueryServiceProviderByClassID(kXMLImportMatchMakerSignal Service,     kXMLThrowAwayUnmatchedRightMatchMakerServiceBoss));
                InterfacePtr<IXMLImportPreferences> prefs(serviceProvider, IID_IXMLIMPORTPREFERENCES);
                XMLImportPreferencesInitializer initializer(prefs, prefsPool);
                bool16 prefBool = prefs->GetNthPrefAsBool(0);
                prefs->SetNthPref(0, kTrue);
    The above code set the import option "Delete elements, frames, and content that do not match imported XML"
    Thanks
    Sakthi

  • Everytime i click on the view in itunes button/link on the itunes website so that i can download apps, nothing happens. I accendentally  clicked on the button other than open itunes and now i cant fix it

    everytime i click on the view in itunes button/link on the itunes website so that i can download apps, nothing happens. I accendentally  clicked on the button other than open itunes and now i cant fix it

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Go to Settings>iTunes and App Stores and sifnout and sign back in
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.

  • Calling a method in the view controller from the component controller

    Hi
    Is there anyway to call a method in the view implementation from the component controller??
    Thanks
    jack

    Thanks for all your replies. I want this kind of a functionality because Im trying to invove a DC (Child DC) from a Parent DC such that the Child DC's view is displayed onto the view container of the Parent DC. I have embedded using 'interface view of a component instance' in the Parent Window and am able to create the component and set usage though the onPlugDefault of the Child View.
    But I observe that when i make a call from the parent, the flow is like this:
    1. The wdDoInit of the Child Component Controller gets triggered first.
    2. Then the wdDoInit of the Child's <b>VIEW</b> gets triggered
    3. and <b>THEN</b> the onPlugDefault of the Child Component Interface View
    What I had actually wanted was to Fire onPlugDefault where Im calling a method LoadData(), after which the Child DC's view must be triggered so it can display the fetched data.
    What is actually happening is the view gets displayed, but no data is displayed in the view.
    Right now I have just given a work around where Im triggering <b>LoadData()</b> of the <b>COmponent COntroller</b> from the <b>wdDoInit</b> of the <b>VIEW</b>.
    Is there a better way to do this? I find it strange that I have to load the Data from the view.
    Thanks
    Jack

  • What is wrong with my facetime,i am using an ipad everytime i placed a call i can't hear it ringing and the person i am calling can't recieve my call as well,i did everything possible forced off my ipad,on and of facetime on settings,change id's.

    What is wrong with my facetime,i am using an ipad everytime i placed a call i can't hear it ringing and the person i am calling can't recieve my call as well,i did everything possible forced off my ipad,on and off facetime on settings,change id's, mute,unmuted,reset network settings!! But nothing change,i mean is there a problem with my ipad or the facetime has a problem right now?my friend seems doesnt have a problem with her ipad,it just happen suddenly yesterday it was ok but today when i tried calling my husband this is what happens, can anyone please help me!!

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so.
    Try the following to rule out a software problem
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
    Apple Retail Store - Genius Bar
    Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPod Touch Repair – iFixit

  • 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

  • How to select the node in structure view from selected xml page item

    Hi All,
    I have imported the xml file. Now drag and dropped the root node in the documentt.Now i select a item from it.When i select an item, i need the node in the structure view to get selected.
    In Indesign we have an menu option "Select in structure".
    How to go about it?
    Regards
    Sakthi

    Hi All,
    I have imported the xml file. Now drag and dropped the root node in the documentt.Now i select a item from it.When i select an item, i need the node in the structure view to get selected.
    In Indesign we have an menu option "Select in structure".
    How to go about it?
    Regards
    Sakthi

  • An error occurred during the initialization of the view manager - Web IC

    We just upgraded our CRM Dev system from 4.0 to 5.0.  We've already done this once on our Sandbox.  However, in our Dev environment, I execute CRM_IC.  Select my profile and then get an exception.
    An error occurred during the initialization of the view manager
    An exception has occurred
    Exception Class CX_SY_REF_IS_INITIAL
    Text: Dereferencing of the NULL reference
    Program: CL_BSP_WD_VIEW_MANAGER========CP
    Include: CL_BSP_WD_VIEW_MANAGER========CM003
    Source Text Row: 86
    This is the line of code that the exception occurs.  I debugged through, but not sure what the problem is.    It seems like it should have something to do with the runtime profile, but I can't seem to find anything wrong.  This problem doesn't happen in the sandbox, but we are on a slightly higher support pack in our Development environment.
        get own initial rep view reference
          INITIAL_REP_VIEW = REPOSITORY->GET_INITIAL_VIEW( ).
    Any ideas?  I've already search OSS.
    Thanks, Cat

    Thirumala,
      Thank for your reply.  I already recompiled CRM_IC.  I'm trying to execute the standard Webclient and still getting the error.  I also reactivated CRM_IC_DT_REP and CRM_IC_RT_REP, but no luck.   I went to SICF and made sure all the services starting with CRM_IC were activated too.  Any other suggestions?
    Thanks,
    Cat

  • Call a special function in the dll using Call Library Function Node????

    Dear all,
          I am calling a special function in the dll using call library function node. There is a input parameter that it is a enum type in this function. I don't know how to deal this parameter for calling this function.Has anybody solved this problem?Please advise!
          I am appreciated of you anytime. 

    Most of the times an enum is just a U8/U16/U32, internally so probably you can call it with just a U8/U16/U32 or something. For the correct value you have to look at the definition.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

Maybe you are looking for