Is it possible to add/change a ViewContainerUIElement during runtime?

Hi all,
i want to add/change the content of a ViewContainerUIElement (VCUI) during runtime, but it doesn't work as expected (or hoped;). What i got working so far for an <b>already exising</b> VCUI is:
1. Find the IWDViewContainerInfo for the VCUI
2. If no default view usage exists, create an embedded view usage and set is as default.
3. Set the component usage to the IWDComponentUsageInfo requested.
4. Set the view to the IWDViewUsageInfo of the interface view, which should be the content of the VCUI.
This doesn't work, if it's done after the wdDoInit()s of the controller hierarchy has been processed. The component, which is represented by the usage, is deleted and recreated, but the visual representation doesn't get updated (e.g. no changes on the display) if it's done in an action handler for example. Why? If i change the component usage (cloned component usage) nothing happens too.
Even more problems arise, if i try to add a new VCUI. The steps are pretty the same as before, what is done additionally (and prior the steps above) is:
1. Creating a IWDViewContainerInfo from the IWDViewInfo of the "parent" view.
2. Creating a IWDViewContainerAssignmentInfo from the view usage of the "parent" view
3. Setting the created IWDViewContainerInfo as view container in the assignment.
4. Create the VCUI, set the view container name to the name of the created IWDViewContainerInfo and add the VCUI to an arbitrary container in the parent view.
But this doesn't work, i'm getting:
java.lang.NullPointerException
     at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.ViewContainerUIElementAdapter.getContent(ViewContainerUIElementAdapter.java:98)
What is wrong? What am i missing?
Thanks in advance.
Stefan

Hi,
I had the same problem with
"java.lang.NullPointerException at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.ViewContainerUIElementAdapter.getContent(ViewContainerUIElementAdapter.java:98)"
when I included ViewUsages dynamically in an action handler (outside wdDoInit()).
The code below fixed that problem.
This code creates a new OutboundPlug for the embedding view with the embedded view as target and fires the plug.
<i>// Create OutboundPlug
IWDOutboundPlugInfo outboundPlug = embedderViewInfo.createOutboundPlug();
//Create navigation link
rootViewUsage.createNavigationTarget(outboundPlug.getName(), interfaceViewUsage, "Default");
// fire navigation link
wdThis.wdGetAPI().firePlug(outboundPlug, Collections.EMPTY_MAP);
</i>
I hope I could help you. Probably you don't need the information anymore, but perhaps anybody else has the same problem.
Regards, Alex

Similar Messages

  • Change SWFLoader source during runtime

    Hi
    I am using SWFLoader  to load png images.
    Is it possible to change SWFLoader source  during runtime?
    Thanks
    Amir

    Yes,you can.Just assign the new source to the source property of swfloader.

  • To change view property during runtime

    Hi,
    I have a scenario where we have 2 views embedded in a window.
    First View's property is set to True and second View's property is set to false.
    We have a button say "show view" in first view and now we want to change the second view's property to True on click of that button i.e we want to change the view proerties to True during runtime.
    We are unabelt o achieve this thruogh plugs are first view is in another DC and second view is in other DC.
    Is there any other way to through which we can achieve this?
    Any help is this regard is highly appreciated.
    Regards,
    Richa Sinha

    Hi,
    I got your requirement,
    Yes if you want navigate back to source view, the problem is you cannot add the the Comp2 again in Comp1 as used comp. This will give cyclic dependancy error.
    Try like this.
    In Comp2,  create an additional view like NavigationView (for example).
    In NavigationView create two ViewContainerUIElements (ViewContainerUIElement1 & ViewContainerUIElement2).
    Embed this NavigationView into Comp2Window and remove View1's Inteface view & View2 from this window. Change the NavigationView property to true.
    And go the Comp2Window Navigation Modeler, embed View1's Inteface view in ViewContainerUIElement1  & View2 in ViewContainerUIElement2.
    Now create two context attributes View1Visibility & View2Visibilty in NavigationView and modify the type property to WDVisibility.
    Bind these two attributes to corresponding ViewContainerUI elements.
    Now in Navigation view, You can create one button and in that button action you can control the visibility of these views.
    Hope this info helps. If you need more clarification or info please let me know.
    Regards,
    Charan

  • Change SubScreen sizes during runtime

    Hello all,
    Here is another question.
    Is there a possibility to change the height of a user subscreen during runtime?
    Thank you in advance.
    Andreas

    Yes,you can.Just assign the new source to the source property of swfloader.

  • Changing Changing Database Location During Runtime

    I'm using Netbeans 6.0.1. My database location ALWAYS change in place. That's why I'm planning that there would be a "Database Settings..." inside my program. But I don't know how to change the current: user, password, url settings of my program DURING RUNTIME. Here's my persistence.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
      <persistence-unit name="LibraryPU" transaction-type="RESOURCE_LOCAL">
        <provider>oracle.toplink.essentials.PersistenceProvider</provider>
        <class>desktopapplication2.Books</class>
        <properties>
          <property name="toplink.jdbc.user" value="root"/>
          <property name="toplink.jdbc.password" value="password"/>
          <property name="toplink.jdbc.url" value="jdbc:mysql://localhost:3306/Library"/>
          <property name="toplink.jdbc.driver" value="com.mysql.jdbc.Driver"/>
        </properties>
      </persistence-unit>
    </persistence>

    To solve the "why the hell would I want that stuff inside a jar file" issue, I googled a bit and found this
    style of approach in a Oracle forum. Essentially think of the persistence.xml file as an template
    that the program uses.
    I use a properties file to set all local DB configuration aspects. Load the properties at application
    startup and set then extract the required fields into a Map to create the persistent unit.
    All the "examples" I seen always use a static xml which is never what you need in the real
    world.
    Map properties = new HashMap();
    properties.put(TopLinkProperties.JDBC_URL, dbProps.getString("abc.jdbcurl") );
    properties.put(TopLinkProperties.JDBC_DRIVER, dbProps.getString("abc.jdbcdriver"));
    properties.put(TopLinkProperties.JDBC_USER, dbProps.getString("abc.user"));
    properties.put(TopLinkProperties.JDBC_PASSWORD, dbProps.getString("abc.password"));
    EntityManagerFactory emf = Persistence.createEntityManagerFactory("abcPU", properties);
    entityManager = emf.createEntityManager();
    HTH Altimes.

  • Change Form Size during runtime

    Could someone tell me how to change the size of my VI form during runtime?
    I want the ability to click a button and have the height increase by 50 points or so, then go back to the original value after I click the button again.
    Thanks for the help!
    Angus Cattle from Pool Ranch and Steel Repairs via Joe's Welding.

    Ok, that got me on the right track.
    For some reason, though, my VI still does not change whenever I click the button.
    I have attached my VI, saved in 8.2 format.
    Does anyone see why my form doesn't grow by "98" whenever I click the "More >>" button?
    Angus Cattle from Pool Ranch and Steel Repairs via Joe's Welding.
    Attachments:
    Event Notifications.vi ‏44 KB

  • Is it possible to add / change frequency bands to ...

    Now this question may, after I have all my information, well, it may appear foolish even to ask but I was curious.  I am curious as to whether or not frequency bands can me added or modified on N series phones?  Is this an issue of hardware updates or can it be solved through a firmware update?
    I ask this since it seems that the GSM carriers of North America will have "their" frequency bands and despite the fact that the ENTIRE rest of the world (at least it seems that way to me...) is operating on a different set of frequency bands that they won't change for any reason. 
    Are they waiting for the rest of the world to go to their frequency bands of GSM? Or are they just loathe to change?  Will they change their GSM frequencies when they go to a 4G network?  Why are they different?  Just to be different and/or stubborn? 
    I'm not trying to pick on them I'm just trying to understand the reasoning behind their choice of frequency bands which makes it more difficult for me and many others to get a good Nokia N-series phone?  Could it be a fear of competition from outside phone manufacturers?
    Solved!
    Go to Solution.

    It all comes down to what was available in the country at the time the system was developed. In Europe before GSM came along, each country had their own system (TACS, NMT, C-NET etc...) and own bands, but ITU tried to get all countries to harmonise, EU went further and made all countries clear a few bands of radio spectrum and work on a common system, hence GSM. Other countries though like USA had different band requirements due to historical usage by the millitary and other organisations and so couldn't reserve the same bands.
    Today there are 4 GSM bands (5? if you count GSM railway) and most mid-range phones will support all 4, that allows you to contect in any GSM network. However if you have only a 2 or 3 band phone it isn't possible to change those bands as the hardware filters in the radio are fixed. When you go to 3G there is something like 9 bands defined. Some of these are in different areas of the radio spectrum, others use different channel numbering but very similar parts of the radio spectrum. In some cases those bands are the same as the standard GSM bands with the intention that in the future GSM in those bands might be switched off and 3G reused in those bands.
    This is very much a simple summary of 30+ years of cellular development.

  • Change application parameter during runtime

    Hello,
    I have a WD application that expects a parameter: system_name.
    The parameter is defined in the application parameter field and is correctly interpreted by the handledefault function of the startup event default.
    The handledefault event handle sets a context parameter mdm_system_name to the value of this input parameter.
    On the other side,
    I have an input field, where the context parameter mdm_system_name can be changed by the user.
    I would like to change the application parameter value in the URL , whenever the input field value has changed.
    Do you know whether this is possible?
    kind regards,
          Sahla

    Yes,you can.Just assign the new source to the source property of swfloader.

  • When creating a custom SearchPlugin, is it possible to add more code such as uppercase conversion of the SearchText and IF statements that change the URL depending on what is typed?

    When creating a custom SearchPlugin, is it possible to add more code such as uppercase conversion of the searchTerms and IF statements that change the URL depending on the searchTerms? Every time I try to add something firefox doesn't want to add it as a search plugin. I need to create a more powerful search tool for personal use.

    I've found some external software applications that will do it, so that leads me to believe its not possible within ID CC.

  • Is it possible to add or change OCR text in a batch process?

    Hello,
    This is my first submission.  Really hope you can help as if there's a solution to this it will significantly help our business.
    Is it possible to 'batch process' the adding or changing of OCR text in a PDF?
    This might sound like a strange process but let me explain what we do:
    1. We scan old, handwritten books and registers.  Typically these registers contain lists of information. Each page will be scanned to a filename like pge01.jpg, pge02.jpg, pge03.jpg etc.
    2. We transcribe the content of each page.  Each page will contain mulitple records (i.e. 20 records)  typical fields might be:
    Unique ID
    Surname
    Forename
    Year
    Address
    Filename (i.e. pge02.jpg)
    3. We provide this content back within database driven software so that when a user performs a search on say 'Surname=Jones' & 'Year=1945' then all of the scanned pages that match that contains handwritten text that matches that search criteria is displayed in a list.  The user can then click on a search result and see the scanned page containing that record.
    Rather than provide database driven software, we'd simply like to produce a standard PDF file.  Each page within the PDF will show each of the scanned pages (pge01.jpg, pge02.jpg, pge03.jpg etc.).  But where you would normally store the 'ocr recognised text' behind each image, we would like to show our transcribed content.
    If this is possible, then I realise that it's likely that you can't do field searches (i.e. 'Surname=Jones' & 'Year=1945') but at the very least I'd be able to type 'Jones' in to the search box and it would find all pages that contained the transcribed word 'jones'.
    If it's possible to add the transcribed data as 'ocrd text' then is it possible to do it in some sort of batch process?  We scan lots of big books and capture millions of records - so doing it manually is not an option.
    Any help that anyone can provide will be hugely appreciated.
    Thanks,
    Paul

    I don't think it's possible to manually add OCRd text, but you can add form
    fields with the text in them. And yes, it is possible to search the content
    of form fields, using a script.

  • Is it possible to add more input values for a payroll element?

    Hi All
    I have created an element with 1 default input value 'pay value' and another input value '1xx1'. I have linked this to payroll and attached to many employees. Now due to business requirment, I need to add one more input value '2yy2' and also I need to change the formula. Eventhough its a minor change in formula, without a new input value it will not work. I tried to add a new one by datetracking to the element creation date without sucess.
    Is it possible to add input values after saving an element?
    Regards
    Rahman

    You can Change the Required Input Value to Not-required
    Alter the Sequence of the Input Value to be displayed in the Element Entry Screen
    You can Change the Input Value Validation Rule minimum, Maximum, Lookup and Formula
    Change your specification of which input values create Database Items. Note, however, you cannot remove Database Items if they are used in any formulas or QuickPaint reports.
    You cannot remove existing input values or add new one if you have created any entries for the element
    For more details you can refer http://ramesh-oraclehrms.blogspot.com/2007/08/maintaining-element.html

  • Is it possible to add high resolution photos to an ipad2 without synchronising it?

    Hi,
    I'm looking in to offering potential clients an ipad with all their wedding photos pre loaded, but is it possible to add photos without synchronising each ipad to my mac? When I first got my ipad2, I couldn't use it for anything until I had connnected and registered it with Apple........I have got the camera connection kit, but haven't found a workaround for adding photos without synchronising yet?
    I haven't been able to find much info on the subject so far? There must be a workaround?
    Cheers,
    MacSlates

    The first thing that currently needs to be done with a new iPad is to activate it by connecting it to a computer that is running iTunes - it can't currently be used 'properly' until after that is done. After iOS 5 is released and is pre-installed on iPads then I think that should change and you will no longer need to first connect to a computer.
    The camera connection kit can be used to add high-resolution photos to the iPad, unlike syncing via iTunes where the photos get 'optimised' by the transfer process. If adding the photos to the SD card yourself then you need to create a DCIM directory off the root of the card with the photos underneath it, and the photo filenames need to be exactly 8 characters long (no spaces) plus the file extension i.e. in a similar format as if a camera had created/written them
    Otherwise there are third-party apps such as Simple Transfer which can copy photos to/from the iPad from your computer via your wifi network. But photos transferred this way will only go into the Saved Photos/Camera Roll album in the Photos app, not into a 'proper' album - and until iOS 5 is released and installed you won't be able to move the photos between albums on the iPad : from http://www.apple.com/ios/ios5/features.html#photos :
    Even organize your photos in albums - right on your device
    Also a problem with syncing photos to the iPad via iTunes is that they then need to be on the other person's computer when they then connect to it - otherwise the photos are likely to be removed from the device. Photos copied via the connection kit or copied via third-party apps shouldn't have that problem.

  • Is it possible to add a firewall Filter or Rule Set to the Extreme Router (802.11n)

    Is it possible to add a firewall Filter or Rule Set to the setting for the Extreme Router (802.11n) like the following:
    "ALLOW TCP/UDP IN/OUT to 208.67.222.222 or 208.67.220.220 on Port 53"  and
    "BLOCK TCP/UDP IN/OUT all IP addresses on Port 53"
    The goal of this is to create a firewall rule to only allow DNS (TCP/UDP) to OpenDNS' servers and restrict all other DNS traffic to any other IPs.
    Or, alternatively is there a way to configure same applied to the Network preferences on IMAC OS X?
    Thanks and much appreciation to anyone who has any clue about this.

    Sorry, I think you've got it backwards.
    The concern is NOT that the child can make changes to our hardware/AEBS, or even our network software on my IMAC - nothing's been changed.
    BUT, he changed the dns settings on his OWN device (ie chromebook) to google public server, accessed the AE using our home wifi network BUT bypassed our dns settings. Capeesh?
    See: http://www.pocketables.com/2013/03/how-to-use-change-the-dns-settings-on-your-ch romebook-and-use-googles.html

  • Is it possible to add a custom menu item to built-in apps like addressbook, safari etc in iPhone

    Is it possible to add a custom menu item to built-in apps like addressbook, safari etc in iPhone

    Apple expects the OS to remain constant for all users - helps to maintain a quality experience. Devs are not allowed to make changes to built-in apps.

  • How to add/change Job Options when saving a FrameMaker document as a PDF using Acrobat 9

    If you are logged on as a domain user you could have a problem if you want to add or edit .joboption files in Distiller 9 when it is opened by FrameMaker.
    After installing Acrobat 9 the action of saving a FrameMaker document as a PDF automatically starts Distiller 9 which then uses the "Job Options" files that are located in C:\Documents and Settings\All Users\Application Data\Adobe\Adobe PDF\Settings. Unless some changes have been made to the "Security" settings of the "Adobe" folder and the "Adobe PDF" folder under "All Users" it will not be possible to add or edit ".joboption" files in the "Settings" folder located in that "Adobe PDF" folder.
    This can be confusing because when Distiller 9 is started separately, from Programs, it then uses the job options located in your own user folder (C:\Documents and Settings\NLPW\Application Data\Adobe\Adobe PDF\Settings). In your own user folder (in my case: NLPW) you can add or edit the job option files.
    In order to be able to add or edit job option files under "All Users" you must be included in the "All Users" list and have the appropriate "Permissions" security setting. To set this, right click on the "Adobe" folder (C:\Documents and Settings\All Users\Application Data\Adobe) and select "Properties", then click on the "Security" tab and add yourself to the list. Finally, (important) check the "Full Control" box under "Allow" in the permissions field. Repeat this procedure on the "Adobe PDF" folder (C:\Documents and Settings\All Users\Application Data\Adobe\Adobe PDF). Now you have the ability to add or edit ".joboption" files located in the "Settings" folder and these will be available when Distiller is started by FrameMaker.

    Thank you so much for that tip. I don’t have exactly the same set-up (FrameMaker 8, Acrobat 8 Professional), but changing the permissions as you describe fixed the problem of not being able to save or change Distiller job options which has been bothering me for a while.

Maybe you are looking for

  • Oracle Service Bus 11g omit-xml-declaration="yes" not working in XSL-T

    I have the requirement of removing the XML header from xsl output. eg: <?xml version="1.0" encoding="UTF-8" ?> this part has to removed I tried using the following in XSLT: <xsl:output indent="yes" omit-xml-declaration="yes" />. It seems to work in a

  • [SOLVED] (Perl) Help Modifying Conky Weather Script

    I'm using buttons' excellent Conky weather script, but it has more information than I need. It displays both the current weather condition and the temperature: [condition]:[temperature]F so right now it's Clear: 46F All I need is for it to display th

  • Popup in pruchase order while saving

    Hi Gurus, I have checked in forum but didn't find any solution for my requirement, kindly help for resolving the issue, reqmt: I need a pop-up while saving the purchase order with some information text and two options (Yes/No), if i click on Yes syst

  • R/3 4.6C in a Solaris 10 UltraSPARC

    Hi forum, is it OK a system copy (due new hw) for a R/3 4.6C system from Solaris9/Oracle9.2 to Solaris10/Oracle9.2 ? Porblems ? Standard system copye procedure ? Regards. Ganimede Dignan.

  • PARAMETER ID VALUE NOT DEFAULTED in CREATE MATERIAL MASTER (MM01)

    Hi, Currently when we create material master we like to defualt the field material group, using PARAMETER ID (MKL-Material group). I have defined the parameter ID for MKL(material group) and assigned a material group value, log off and log in again.