Removing the dynamic attributes from view context

Hi,
I have added an attribute dynamically using the following line of code in wdDoModifyView():
wdThis.wdGetContext().getContext().getRootNodeInfo ().addAttribute(<attributename>, <datatype>);
Now I want to remove the dynamically created attribute from the context.
Pls suggest me in this regard.
Regards,
Ramesh.

Hi Ramesh,
You can use the following code to remove the attribute dynamically:
Iterator itr = wdContext.node<NodeName>().getNodeInfo().iterateAttributes();
<i>// If the node where you are making these attributes is a context node then just do:</i>
// <b>wdContext.getNodeInfo().iterateAttributes()</b>, <i>for iterator</i>
while(itr.hasNext()){
     IWDAttributeInfo attrInfo = (IWDAttributeInfo)itr.next();
     attrInfo.remove();
This will solve your problem.
Regards
Pravesh
PS: Please consider rewarding points if helpful and solved.

Similar Messages

  • How to Remove the Entity usage from View object at runtime

    Hi,
    A ViewObject can be created dynamically based on the Existing ViewObject Defintions. The newly created dynamic ViewObject will have all the defintion including Attributes, its structure along wtih Entity usage of the existing ViewObject definition.
    My requirement is i don't want to have the Entity usage alone whereas Remaining structure need to be retained.
    Can any body suggest on how to do it.
    regards.

    Hi,
    design time or runtime? At designtime, have you tried to just remove the entity reference? Given the disadvantage of removing the entity (and the changed behavior associated with it) what is the use case for which you want to disable the entity reference?
    Frank

  • Unable to delete the dynamic attribute of a VO

    Hi,
    I’m trying to create Dynamic attributes to the VO(view Object) in AMImpl.java with below code:
    Step 1:
    OAViewObjectImpl personCompVO = this.getEDPersonListVO();
    String attrName = "Attribute Test”;
    personCompVO.addDynamicAttribute(attrName);
    Step2: I’ve assigned a value to the above attribute at run time as:
    OAViewObjectImpl personCompVO = this.getEDPersonListVO();
    RowSetIterator personIterator = personCompVO.findRowSetIterator("personCompVO");
    personCurrentRow = (OARow) personIterator.next();
    String attrName = "Attribute Test”;
    String profLevel = “Test Value”;
    personCurrentRow.setAttribute(attrName,profLevel);
    Step3: I’ve attached the above create attribute as a column to a table and rendering on the page in CO as,
    OATableBean tableBean = (OATableBean)webBean.findIndexedChildRecursive("EDPersonListTableRN");
    String attrName = "Attribute Test”;
    OAMessageStyledTextBean column = (OAMessageStyledTextBean)createWebBean(pageContext,MESSAGE_STYLED_TEXT_BEAN,null,”Test Column”);
    column.setPrompt(”Test Column”);
    column.setViewUsageName("EDPersonListVO");
    column.setViewAttributeName(attrName);
    Step1,2&3 are successfully done.
    But, since I’ve created a dynamic attribute to the VO at run time; I want that created attribute to be deleted at run time too. I’m not able to find any method that can delete the dynamic attribute at run time.
    Please help me out.
    Regards
    Manikanta Panigrahi

    Hi Anand,
    I've tried the below two but not issue not got solved.
    1. vo.clearCache()
    2. Got the query bofore creating runtime attribute using vo.getQuery. Put it in session using pageCOntext.setTransactionValue()
    and set the query again when you want to remove the attribute using vo.setQuery()
    Regards
    Manikanta Panigrahi

  • Can we remove the Continue button from Quiz Results?

    Hi Everyone,
    Is there any way to remove the continue button from the Quiz Results page?
    I have a captivate file in which there is a Thank you slide at the end after the Quiz results slide. Now, here's the problem - The user is just finishing the quiz and closing the browser tab - which is not showing the completion status inside LMS. The user must need to view the Thank you slide  -  so that the LMS can respond as "Completed" status.
    Now, I want to remove the Continue button on Quizzes result slide so that user doesnot need to go ahead to next slide to complete the course. And i will put the Thank You message here in Quizzes result slide only.
    Can I remove the continue button from the Quiz Results page so that it can be the last slide?
    Regards
    Vikas Sharma

    Removing the Continue button from the Quiz Results slide is NOT a good idea in my experience.  Clicking the Continue button triggers functions in Captivate to terminate the quiz and commit the score to the LMS.  If this button is not clicked, Captivate may not be sure the person has decided they're done with the quiz and wants their score to be captured by the LMS at that point.  There are often other buttons on the Quiz Results slide to offer the user the option of Retaking or Reviewing the Quiz.  Only the Continue button is designed to take them further beyond the Quiz Result slide.
    Like yourself, I have also found learners often fail to grasp the importance of the Continue button and don't realise they need to do something extra (beyond reaching the Quiz Results slide) in order for their score to be captured.  So what I usually do is rename the Continue button to something more meaningful such as: Register Your Score, or Record Quiz Results Now.  Having a name like this (and making the button nice and large and bold so that it's not easy to miss) clearly tells people that they need to click this button if they want their score to be retained.  It's just a simple change, but it practically eliminated all issues we had with people just closing down their browser when they saw the Quiz Results.

  • Adding dynamic attributes to static context node

    Hi All,
    I have defined a context node LINES with several attributes. This is done staticly during developmenttime.
    During run-time node LINES is extended with several attributes dynamicly. See below:
    10     HEADER_GUID               ->
    11     DETAIL_GUID               ->
    12     EXTERNAL_ID               ->
    13     OBJECT_TYPE               ->
    14     IN_OUT_PLAN               ->
    15     TRAFFIC_LIGHT_1               ->
    16     TRAFFIC_LIGHT_2               ->
    17     TRAFFIC_LIGHT_3               ->
    18     TRAFFIC_LIGHT_4               ->
    19     _LOCATION          \TYPE=STRING     ->
    20     _ZZTOPGROUPING     \TYPE=STRING     ->
    21     _STATUS          \TYPE=STRING     ->
    22     _100000200          \TYPE=STRING     ->
    19..22 are added dynamicly.
    I have an internal table that matches de new context. This <fs_tb_tree_new> I want to bind like:
    *&- bind table
      lr_node->bind_table( new_items =  <fs_tb_tree_new>
                           set_initial_elements = abap_true ).
    In <fs_tb_tree_new> the dynamicly added attrbutes contains values e.g. (the static attributes also have values via <fs_tb_tree_new>):
                         _LOCATION   _ZZTOPGROUPING  _STATUS              _100000200                   
    5     Africa     0002     Reporting Entity     0.000
    6     Russia, CIS     0003     Identify                          0.000
    An ALV presents the values of the attribute. But.... only the values of the static part are presented, not the dynamic attributes added during runtime.
    Please advise what I forget or do wrong .
    Thanks in advance.
    John

    I solved the issue:
    If you use a combination of static attributes added with dynanic attributes (during runtime) for dynamic ALV, I advise to create a new node and bind the values to this new created node:
    Cheers, John
    wd_this->extend_context( EXPORTING im_struc_descr =  lr_cl_abap_structdescr
                               IMPORTING ex_node = lr_node_alv ).
    Method:
    *&- Create new dynamic context LINES_DYN
    Node for alv-table
      lr_node_info = wd_context->get_node_info( ).
      CALL METHOD lr_node_info->add_new_child_node
        EXPORTING
          name                  = 'LINES_NEW'
          static_element_rtti   = im_struc_descr
          is_static             = abap_true
          is_multiple           = abap_true
          is_multiple_selection = abap_false
        RECEIVING
          child_node_info       = lr_subnode_info.
    lr_node = lr_subnode_info->get_parent( ).
      lr_node = wd_context->get_child_node( 'LINES_NEW' ).
      ex_node = lr_node.
    *&- bind table for alv
      lr_node_alv->bind_table( new_items =  <fs_tb_tree_new>
                               set_initial_elements = abap_true ).

  • Issue on deployment: Solution Deployment : Missing one or more of the following attributes from the root node in solution .wsp: assembly '', type ''

    Hi,
    I have the following issue when deploying:
    Solution Deployment : Missing one or more of the following attributes from the root node in solution .wsp: assembly '', type ''
    The solution is a farm solution (was never sandbox) and it deploys fine.
    It was updated several times with success. We did not see this issue until recently when we had some other issue (unrelated) and looked at the logs. The solution is updated without problem and updates are available for the user. But we can see this error
    in the logs at the update time. 
    Any idea what might cause this?
    Pop Anisia

    Hi,
    This error is wide meaning, as it can come from differences between SP versions, variables types used, bad manifest file, WebConfiguration ...
    You can try to redeploy the solution.
    retracted the solution,removed all the previous ref, removed dll from GAC and folder from 14\features and reset the iis, deploying it again.
    Here are some similar issue post, you can use as a reference:
    https://social.technet.microsoft.com/Forums/office/en-US/72ac9a02-3a51-48b8-9e36-3b24a2d4da74/missing-one-or-more-of-the-following-attributes-from-the-root-node-in-solution-alertbdcwsp?forum=sharepointgeneralprevious
    https://social.technet.microsoft.com/Forums/office/en-US/331af288-5ba6-48a7-9e9d-ac4e4bc8f8fa/missing-one-or-more-of-the-following-attributes-from-the-root-node-in-solution-xxxwsp-assembly-?forum=sharepointdevelopmentprevious
    In additional, you can check the ULS log (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS) to get the detailed information.
    I hope this helpful.
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How do I remove the white space from the bottom and side of my document?

    How do I remove the white space from the bottom and side of my document? (I'm not talking about printing, just viewing it on the screen.) There are about 6 inches of white space at the bottom and at the right hand side. I don't like this. On a blank new spreadsheet it's triple that amount of white space.

    The infinite canvas convention doesn't make a lot of sense for Numbers. When I'm viewing a spreadsheet and mistakenly scroll into white, empty space I think, "this is ridiculous - all of my content is fits on one screen. there's nothing over there."
    A (relatively) infinite canvas is logical for Microsft Excel because it's one big table. There are 256(?) columns by default and hundreds of rows on a sheet - there are cells outside what a user is looking at to see. However, when viewing a Numbers spreadsheet with a single 10 column 10 row table that fits on the screen, there's nothing else on it to scroll to.
    Numbers should distinguish between viewing a spreadsheet and editing one. When I'm just viewing, when there's no content outside the window it shouldn't scroll there. This window behavior is beyond annoying for Numbers on my iPad and iPhone.
    (Adding user-defined canvas size setting to my view mode / edit mode thinking would probably be the most complete solution to this now that I think about it.)
    Until now the way scrolling worked in Numbers has defied logic. Actually it still does lol. That said, thank you Yellowbox for providing a clear explanation. Much appreciated.

  • How do I remove the acronym tags from menu items in Business Catalyst?

    Hello, can anybody answer this for me please? Not having any success googling or foruming it so far.
    How do I remove the acronym tags from menu items in Business Catalyst? 
    Thanks in advance
    Grant

    These are titles and in the dynamic menu will be the item description per item.
    These are actually important though and you do not really want to remove them but make them better and reword them other then the same as the link test. These are good for the user experience as well as SEO. A bot knowing a description of a link and where it is going coupled with the URL's and the title of an anchor are all important aspects of your sites SEO.

  • How to remove the Adobe logo from the player/skins area

    I would like to remove the Adobe logo from the player area.... how can I do that??

    Hi
    You can remove the logo and add your logo by doing the following
    1. Create a new file named logo.swf of dimension 47 x 27 pixels that contains your branding.
    2. Go to the templates folder under the Presenter 8 installation folder
    3. Add your custom logo.swf file to the Templates folder.
    4. In PowerPoint, publish the presentation to your computer.
    5. View the output to see the new logo.
    6. this logo will appear every time you publish any presentation
    If you want to replace the logo in already published presentation
    1. Create a new file named logo.swf of dimension 47 x 27 pixels that contains your branding.
    2. Go to the publiahed folder >> data >> resources and paste the logo here
    3. Go to the data folder and open vconfig.xml
    4. Search for <uireplace name="logo" value=""/>
    5. make value equal to "resources/logo.swf" and save vconfig.xml
    6. Launch viewer.swf
    There is no way to remove the logos completely. A workaround is to add an empty swf of dimension 47 x 27 pixels.
    Hope this helps
    Thanks
    Mahesh

  • How can we remove the following zeros from quantity field ?

    Hi All.
    how can we remove the following zeros from quantity field while populating ALV by using FM REUSE_ALV_GRID_DISPLAY ?
    eg:getting output zqty = 2.000
    but i need           zqty = 2.
    help me to reslove this issue.
    Regards.
    jay

    Hi,
      While populating the field catlog do the following thing to   avoid zeros.
      wa_fieldcat-tabname = 'I_OUTPUT'.    " Curr
      wa_fieldcat-fieldname = 'FWAER'.
      wa_fieldcat-seltext_l = text-023.
      wa_fieldcat-no_zero = 'X'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR  wa_fieldcat.
    Thanks,
    Khushbu.

  • My MacBook Air 13' (2013) will occasionally start the fan at full blast, not connect to any wifi or detect any wifi, and will remove the battery icon from my menu bad as well as tell me there is no battery connected. How do I fix this?

    My MacBook Air 13' (2013) will occasionally start the fan at full blast, not connect to any wifi or detect any wifi, and will remove the battery icon from my menu bad as well as tell me there is no battery connected. How do I fix this? I have restarted my computer multiple times, **** it down, and ran a diagnostic test to tell me nothing is wrong and my computer is not running any applications. There is no reason for the fan to be on full blast! when I try to set the option to show my battery icon in the menu bar, it will automatically uncheck. How do I fix all of this?

    Have you tried SMC and PRAM resets?
    http://support.apple.com/kb/HT3964
    http://support.apple.com/kb/ht1379
    Ciao.

  • Removing the business area from the WBS element

    Hi Experts,
    I have created the WBS element with business area. Then created the PR against that WBS element , converted the PR's to PO's.
    Now I want to remove the business area from WBS element.
    Now as Business area field become grayed out hence I canot remove the Business area from WBS element.
    Hence I have cancelled the PO's then Cancelled the PR's. So now there is no actual cost & no commitment exists against the WBS element.
    But still Business area field is grayed out for that WBS element.
    Could you please let me know how to remove the business area in this case ???
    Regards,
    Pradip

    Hi,
    Once BA is grayed out then you can not change the same, this is sap std. behavior. Here you can lock the existing wbse which having wrong BA to avoid further actual postings.
    Create new wbse with correct BA & then create pr & po.
    Regards,
    Sandeep

  • I had an iphone.  I have a new iphone and no longer use the old one.  How to do remove the old one from my icloud account?

    I had an iphone 4 on Sprint.  I switched to Verizon and purchased a 5S.  Kept the same phone number and affiliated the new phone to my existing icloud ID.  How do I remove the old device from my icloud ID? 

    and this if not already done
    iCloud: Remove your device from Find My iPhone

  • HT3702 how can i remove the authorization hold from my card...

    how can i remove the authorization hold from my card

    You can try contacting iTunes support : http://www.apple.com/support/itunes/contact/ - click on Express Lane, then iTunes > iTunes Store
    How much was the amount ? A 'normal' holding charge is a small amount (e.g. equivalent to about $1), and usually happens after you add or change credit card details on your account. Here in the UK it can take a few working days for it to disappear (so a weekend can extend the elapsed time).
    Edit : I don't know what a non-liability certificate is and/or whether Apple can do one.

  • How to remove the credit card from the Apple id?

    how to remove the credit card from the Apple id?
    plz ITS urgently

    If the option to select "None" isn't appearing when you attempt to edit your payment information, then there is likely a billing issue with your last iTunes Store purchase(iTunes didn't receive payment from your credit card company for that order). Before you can remove your credit card, you have to pay for the unpaid order. You can call your credit card company and troubleshoot the billing issue with them, or try another card, or if you live in a country that supports iTunes Gift Cards, you can redeem one of those to pay for the order. Once you have done that, you should be able to remove your credit card info as outlined in http://support.apple.com/kb/ht1918

Maybe you are looking for

  • The infamous problem of the Click Wheel getting frozen

    Since I've read a lot of stuff on the internet about this very common problem, and that nobody has found a solution, I wanted to start this topic in order to solve it through different experiences in the community. I live in Spain, but bought my iPod

  • How to pass the value of messageChoice as an argument to that of an lov

    Hi, I have a messageChoice item and an LOV item e.g Type---messageChoiceBean(Goods,Services) Catalogue--LOV(Moped,Computer,Healthcare,driving) So if in TYPE =Goods then in CATALOGUE only Moped and Computer should come for selection If i select TYPE=S

  • Folio Builder Sign-In Issues (yes, I know I'm the 1,000th person to post this!)

    I'm about to go insane... I can't sign into the Folio Builder panel in InDesign CC (v9.1 x64).  I must have been asked 12 times today to sign into CC, and accept the license agreement another 6 times.  I was signed into the Folio Builder panel most o

  • Can't delete some files because I get this error.

    It states that the file "could not be opened, because the original item cannot be found. I would like to delete it but I get that error message and won't let me do anything else.' PLEASE help!

  • Default WAN in RV042 Load Balancing

    If I choose the RV042 mode as load balancer and bind some protocol to specific WANs, what will happen to the protocols that I didn't bind to any specific WAN? will they go to WAN1 by default? Thanks