Setting data in the context

Ok, I will admit I'm very much a Web Dynpro newbie, and this whole context thing is really confusing for me, though I've been a Java programmer for 6 years.
Here's what's going on.  Basically, I'm trying to make a more simplified version of the spell checker (using Jazzy) that was written about in a weblog on here.  But, the part that's messing me up is the context.  In my Component Controller, I defined a couple things.  I defined a value attribute called "misspelledWord", a value node called "Suggestions", and under that a value attribute called "word"  (I have more defined than that, but for the purposes of this post, that's all you need to know)
I have a text area, and a "Check Spelling" button underneath it, and in the action for that button, I want to set all those context attributes so that I can display them in the pop-up screen that comes up, which shows the user a misspelled word and all the suggestions for it.  Or, at least, it's SUPPOSED to.
In my code I do the following:
wdThis.wdGetSpellCheckComponentController().wdGetContext().currentContextElement().setMisspelledWord(ew.getText());
"ew" is an object I defined called ErrorWord, which contains all the information about each misspelled word and gets populated in my spell checking class.
This works GREAT. misspelledWord gets populated and displayed on the pop-up screen.
My problem is getting all the suggestions.  I have them all in an ArrayList in my ErrorWord object, so I HAVE them, I just can't seem to store them in the context. Everything I try gives me a NullPointerException.
All I want to do is loop through my ArrayList, and assign the String value I have in there to the "word" attribute.
Thanks in advance for any help you are able to provide,
Jennifer

for (Iterator i = ew.getSuggestions().iterator(); i.hasNext() ; )
  String word = (String) i.next();
  ISuggestionsElement suggestion = wdContext.nodeSuggestions().createAndAddSuggestionsElement();
  suggestion.setWord(word);
The context node "Suggestions" should be able to store any number of elements (cardinality = 0:N).
About "context":
The context is a generic, hierarchical storage for the data accessible by a controller. Contexts may be mapped which means you get references to the context elements in used controllers or to the underlying model.
Armin

Similar Messages

  • MEREQ001 - set data in the screen when ME54N/ME53N/ME52N

    Hi Friends,
    I have implemented the user exit for PR 'ME51N' MERE001. Here ive defined a user subscreen in which i have a user field " ZZAAA". I got the field and even saved in the database EBAN.
    Now my problem is ... when the transaction ME52N/ME53N/ME54N is called this field is not geting populated. I do have to do something in EXIT - 001 (PBO)....  But what should i do???
    The code which i have done in PBO is as follows...
    Declaration of a 'type' of type IF_PURCHASE_REQUISITION_ITEM
    types : pur_req_item type ref to IF_PURCHASE_REQUISITION_ITEM.
    Declaration of an Object for the type.
    data : obj_pur_req_item type pur_req_item.
    To get the MEREQ_ITEM data
    data : l_item type mereq_item.
    For Display purposes
    data : l_mepo_doc type mepo_document.
    data : l_trans_type type trtyp.
    To determine the transaction type.
    obj_pur_req_item = IM_REQ_ITEM. " <-- i want to know Y this code should be given .. ???
    A method to get the data and get the data to a
    Local variable l_item.
    CALL METHOD obj_pur_req_item->GET_DATA
      RECEIVING
        RE_DATA = l_item.
    This is done to set the display properties of the customer screen
    like whether it has to be disabled ( display ) / enabled
    ( create / change )
    To get the header details and to update the get_transaction_state.
    types : pur_req_hdr TYPE REF TO IF_PURCHASE_REQUISITION.
    Declaration of an Object for the type.
    data : obj_pur_req_hdr type pur_req_hdr.
    Get header data using the method "GET_REQUISIION"
    CALL METHOD OBJ_pur_req_item->GET_REQUISITION
      RECEIVING
        RE_REQUISITION = obj_pur_req_hdr.
    To get the status of the transaction display /
    create / add / change using ex_document.
    CALL METHOD obj_pur_req_hdr->GET_TRANSACTION_STATE
    IMPORTING
    EX_DOCUMENT = l_mepo_doc
    EX_TCODE =
    EX_UNCOMPLETE =
    EX_PARKING_ALLOWED =
    EX_CHANGED =
    l_trans_type = l_mepo_doc-trtyp.
    if l_trans_type eq 'V' "change
    or l_trans_type eq 'A'. "display
    break-point.
      l_mode = 'X'.
      call method im_req_item->set_data
        EXPORTING
          im_data = l_item.
    endif.
    what am i missing?????
    thanks in advance !

    Hi,
    The following is my code in PBO (001)
    The code which i have done in PBO is as follows...
    Declaration of a 'type' of type IF_PURCHASE_REQUISITION_ITEM
    types : pur_req_item type ref to IF_PURCHASE_REQUISITION_ITEM.
    Declaration of an Object for the type.
    data : obj_pur_req_item type pur_req_item.
    To get the MEREQ_ITEM data
    data : l_item type mereq_item.
    For Display purposes
    data : l_mepo_doc type mepo_document.
    data : l_trans_type type trtyp.
    To determine the transaction type.
    obj_pur_req_item = IM_REQ_ITEM. " <-- i want to know Y this code should be given .. ???
    A method to get the data and get the data to a
    Local variable l_item.
    CALL METHOD obj_pur_req_item->GET_DATA
    RECEIVING
    RE_DATA = l_item.
    This is done to set the display properties of the customer screen
    like whether it has to be disabled ( display ) / enabled
    ( create / change )
    To get the header details and to update the get_transaction_state.
    types : pur_req_hdr TYPE REF TO IF_PURCHASE_REQUISITION.
    Declaration of an Object for the type.
    data : obj_pur_req_hdr type pur_req_hdr.
    Get header data using the method "GET_REQUISIION"
    CALL METHOD OBJ_pur_req_item->GET_REQUISITION
    RECEIVING
    RE_REQUISITION = obj_pur_req_hdr.
    To get the status of the transaction display /
    create / add / change using ex_document.
    CALL METHOD obj_pur_req_hdr->GET_TRANSACTION_STATE
    IMPORTING
    EX_DOCUMENT = l_mepo_doc
    EX_TCODE =
    EX_UNCOMPLETE =
    EX_PARKING_ALLOWED =
    EX_CHANGED =
    l_trans_type = l_mepo_doc-trtyp.
    if l_trans_type eq 'V' "change
    or l_trans_type eq 'A'. "display
    break-point.
    l_mode = 'X'.
    call method im_req_item->set_data
    EXPORTING
    im_data = l_item.
    endif.
    The follwoing is one in PAI (003)
    GET_DATA is a method which will capture the data given in the
    field Nature Of payment and update the variabl L_MEREQ_ITEM
        L_MEREQ_ITEM = IM_REQ_ITEM->GET_DATA( ).
        MOVE EBAN-ZZPAYMENT TO L_MEREQ_ITEM-ZZPAYMENT.
        IF NOT IM_REQ_ITEM IS INITIAL.
          IF NOT L_MEREQ_ITEM IS INITIAL.
            CALL METHOD IM_REQ_ITEM->SET_DATA( L_MEREQ_ITEM ).
            EX_CHANGED = 'X'.
          ENDIF.
        ENDIF.
    If not clear revert back ...

  • Set data for the x-axis

    Hi,
    I made a program which allows the user to configure and measure Temperature and voltage using a DAQ device. I also set a possibility for the user to save his data of his test to lvm file and then upload and read it on a waveform chart. My problem is that while the user  gets multiple plots represented in the y axis (the different Temperature/voltage channels signals of the DAQ), the x-axis is set to time by default.
    How can I change it? I would like to allow the user to change the x-axis from time to one of the plots of his tests data.
    for example, lets say I get 2 signals of temperature (mod1/ai0 and mod1/ai1) and 2 signals of voltage (mod2/ai0 and mod2/ai1) on the y axis (amplitude) during 3 hours (represented in x-axis) and I would like to allow the user the option to play with the data so he can see temperature on the y axis as a function of the voltage on the x axis (instead of time) and the option to configure any kind of combination while the program is running (set mod1/ai0 in the y-axis and mod2/ai0 in the x-axis, for instance).
    I have tried various things but nothing seems to work. It looks like it is very easy to change plots between multiple Y-axis with property node of "Active plot" and "Y scale index" but I can't figure out how to change plots from the Y-axis to X-axis and vice versa.
    I hope this clumsy message is somehow clear..
    Thanks a lot in advance,
    Shahar L.
    Detectomat Gmbh
    Hamburg, Germany

    Hi Shahar,
    You will have to use an XY graph, not a waveform chart, if you want to set the X-axis data.  Under "Find Examples", see "Fundamentals"..."Graphs and Charts" for some examples of XY-graphs and how to use them.  You can't change the X-axis data of a waveform chart, as you have discovered.
    Hope this is helpful...
    Diane

  • How to binnding the data in the adobe interactive forms for making a table?

    Hi, experts,
    Function:
    Through the sharing context node between adobe interactive form and a WDA for ABAP, display the data of the sflight_node in the ADOBE.
    version:
    Acrobat Reader 8.1.0
    currently both of the SAP-ABA and SAP-BASIS SP level: 9
    ADS : Successful.
    The following is my action:
    1.     Create a interface (Z_SFLIGHT_INTF) with a attribute node (SFLIGHT_NODE) that type is "sflight"  using the transaction code "sfp"
    2.     Create a form (Z_SFLIGHT_FORM) using the transaction code "sfp" with the interface Z_SFLIGHT_INTF.
    3.     Trag the sflight_node in the Z_SFLIGHT_INTF to the form( Z_SFLIGHT_FORM).
    4.     Open the layout tab in the form(Z_SFLIGHT_FORM), and create a table(table1). Click the table created just now, select the binding tab in the object tab, and in the Default Binding, select the SFLIGHT_NODE under the Z_SFLIGHT_FORM.
    Problem 1:
    Do you tell me whether is right for binding the context SFLIGHT_NODE using this way? If bind 3 context attributes in the sflight, how can I do it?
    5.     Create a WDA for abap (ZZ_02_SFLIGHT), and create a view(MAINVIEW) using transaction code "se80" in the sap-gui with adobe interactive form. Set the templatesource(Z_SFLIGHT_FORM) in the  adobe interactive form properties and saved, and then, datasource is "MAINVIEW_Z_SFLIGHT_FORM" automatically.
    6.     But I only found the attribute SFLIGHT_NODE under the context node(Z_SFLIGHT_NODE), and  I don't found the NODE ( SFLIGHT_NODE ) context in the context tab in the WDA for abap so that I don't set data to the context NODE (SFLIGHT_NODE).
    Problem 2:
    Do you tell me what can I do it so that I get the node SFLIGHT_NODE rather than attribute in the WDA for setting the data to the CONTEXT NODE (SFLIGHT_NODE)?
    Thanks a lot.
    Best regards,
    Tao

    Hi, experts,
    You can reply back to me via e-mail if you think we should discuss this internally at [email protected] or [email protected]
    Thanks a lot.
    Best regards,
    tao

  • Unable to set Data in MODEL NODE ??????

    Hello All,
    I have created a Web Dynpro application which makes  RFC or BAPI calls.
    I need to <b>pass data to the BAPI as input parameter, but am failing to do so.</b>
    The Context structure for the model node is as follow -
    Level1 - Z_Mm_XXX_Input
    Level2 - Output_Repo
    Level3 - T_Plants_Selected_Repo of structure type "Werks"
    and supplying function "T_Plants_Selected"
    This contains the model attribute as Werks.
    Now i need to send this Werks attribute and pass it to the BAPI
    I have written the following piece of code -
    Z_Mm_XXX_Input zbapi_ip =
                   new Z_Mm_XXX_Input();
    com.xxx.Werks plants_sel = new com.xxx.Werks();
    plants_sel.setWerks("4522");
    zbapi_ip.addT_Plants_Selected(plants_sel);
    wdContext.nodeZ_Mm_Cmet_Report_Contrctr_Cse4_Input().bind(zbapi_ip);     
    The attributes for the model node Z_MM_XXX_input node is -.
    cardinality - 0..1
    selection - 0..1
    singleton - true
    The attributes for the model node Output_Repo node is -
    cardinality - 0..1
    selection - 0..1
    singleton - true
    The attributes for the model node T_Plants_Selected_Repo node is -
    cardinality - 0..n
    selection - 0..1
    singleton - true
    Still am not able to pass data to the model node.
    Am really confused what could be the probable mistake.
    Please let me know what have i missed out.
    Thanks in advance,
    Samta

    hi,
    i've the same problem,
    i can't set my input data to the BAPI.
    i've you the solution ?
    thanks
    PS here is a part of my code
    public void executeBapi_Wd_Tut_Listuser_R3_Input( )
        //@@begin executeBapi_Wd_Tut_Listuser_R3_Input()
              try {
                   Bapi_Wd_Tut_Listuser_R3_Input input =
                        new Bapi_Wd_Tut_Listuser_R3_Input();
                   Zuname nom_start = new Zuname();
                   Zuname nom_end = new Zuname();
                   nom_start.setUname("P*"); //hard coded for the moment...
                   nom_end.setUname("Q*");
                   input.setUname(nom_start);
                   input.setUname_End(nom_end);
                   wdContext.nodeBapi_Wd_Tut_Listuser_R3_Input().bind(input);
                   wdContext
                        .currentBapi_Wd_Tut_Listuser_R3_InputElement()
                        .modelObject()
                        .execute();
                   // Synchronise the data in the context with the data in the model
                   wdContext.nodeOutput().invalidate();

  • Function of HOLD DATA in the settings for creation of a new screen.

    Hi,
    Since i'm new to ABAP and still learning my way through, i would really appreciate if somebody can help me out with the exact functioning of selecting the check box 'HOLD DATA' under the settings option while creation of a new screen.
    Thanks for any help extended.

    Take simple scenario of SE38. The Screen for the transaction has the Flag "HOLD DATA" as Ticked.
    Now enter some program name on the field and Click - Utilities-> User Profile -> Hold data.
    Now come out of the transaction, go back to the same transaction. The name of the Program that you entered earlier will appear on the input field.
    So if the screen doesn't have "Hold Data" set the functions of HOLD data, SET DATA, DELETE data will not work.
    Also try using SET DATA For the Program input field.
    SAP Help :
    If you activate this option, the following functions are supported for the screen at runtime:
    System -> User profile -> Hold data
    -> Set data
    -> Delete data
    The Hold data function allows you to hold onto any entries you have made on the screen. When the screen is next processed (even in a different mode), the system then automatically redisplays the data in the input fields.
    If the option is not activated, these functions are ineffective at screen runtime.

  • Set date Mask in Sapscript

    hi all,
    Requirement is to diplay todays date in MM.DD.YYYY format in a smartform layout.
    We have used the command
    /:SET DATE MASK = 'MM.DD.YYYY'
    /:SET COUNTRY 'US'
      &sy-datum&
    But the date appears in the user format DD.MM.YYYY.
    Whys the set date command not working here as expected ?
    Your ideas appreciated.
    Rgds,
    stock

    Hi  Stock Sys,
    Formatting Date Fields: SET DATE MASK
    To define the formatting of date fields, use the SET DATE MASK control command. Executing this command causes all subsequent date fields to be printed using the specified format.
    Syntax:
    /: SET DATE MASK = 'date_mask'
    In the date mask, you can use the following codes:
    DD: day (two digits)
    DDD: day name - abbreviated
    DDDD: day name - written out in full
    MM: month (two digits)
    MMM: month name - abbreviated
    MMMM: month name - written out in full
    YY: year (two digits)
    YYYY: year (four digits)
    LD: day (formatted as for the L option)
    LM: month (formatted as for the L option)
    LY: year (formatted as for the L option)
    All other characters found in a date mask are interpreted as simple text and are copied straight into the output.
    Assuming the current system date is March 1st, 1997.
    /: SET DATE MASK = 'Foster City, MM/DD/YY'
    &DATE& -> Foster City, 03/01/97
    /: SET DATE MASK = 'MMMM DD, YYYY'
    &DATE& -> March 01, 1997
    The date mask may be reset to the default setting by using an empty string:
    /: SET DATE MASK = ' '
    The abbreviated and full forms of the names of the days and months are stored in the language dependent TTDTG table under the following keys:
    %%SAPSCRIPT_DDD_dd: abbreviated day name
    %%SAPSCRIPT_DDDD_dd: full form of day name
    %%SAPSCRIPT_MMM_mm: abbreviated month name
    %%SAPSCRIPT_MMMM_mm: full form of month name
    dd: day number 01 = Monday,..., 07 = Sunday
    mm: month number 01 = January,..., 12 = December
    Regards.
    Eshwar.

  • Not able to get the context attribute set in ServletContextListener

    Hi all,
    I have written a simple ServletContextListener and set an attribute in it. when i am trying to retrieve the attribute value in my servlet, I am getting as null. Could anybody please let me know about this if i need to add any more changes.
    Below is the complete code of my sample application
    web.xml
    <web-app>
    <servlet>
    <servlet-name>myServlet</servlet-name>
    <servlet-class>com.mypackage.MyServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>myServlet</servlet-name>
    <url-pattern>/*</url-pattern>
    </servlet-mapping>
    <listener>
    <listener-class>
    com.mypackage.MyContextListener
    </listener-class>
    </listener>
    <context-param>
    <param-name>testMe</param-name>
    <param-value>TestedSuccessfully</param-value>
    </context-param>
    </web-app>
    ContextListener
    package com.mypackage;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletContextEvent;
    import javax.servlet.ServletContextListener;
    public class MyContextListener implements ServletContextListener{
    public void contextDestroyed(ServletContextEvent arg0) {
    public void contextInitialized(ServletContextEvent arg0) {
    ServletContext context = arg0.getServletContext();
    String testApplication = context.getInitParameter("testMe");
    context.setAttribute("myTest", "mkmmkmmkm");
    Servlet
    package com.mypackage;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.ServletContext;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class MyServlet extends HttpServlet{
    public void doGet(HttpServletRequest request, HttpServletResponse response){
    ServletContext context = getServletContext();
    if(context != null){
    response.setContentType("text/html");
    try {
    String output = (String) getServletContext().getAttribute("testMe");
    PrintWriter out = response.getWriter();
    out.print("The required value is... "+output);
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    OUTPUT
    When accessed with any url as below:
    http://localhost:8080/helloworld/u
    gettting output as "The required value is... null" . Because i set the context attribute, I am expecting not null. Can anybody suggest me on this.

    context.setAttribute("myTest", "mkmmkmmkm");
    String output = (String) getServletContext().getAttribute("testMe");You set "myTest" but try to get "testMe"

  • HT5706 I have not used my apple tv in a few years, and just got it out of the bag. I connected it up, and it cannot set date, time.  it also does not interact with the remote.  Could it be as simple as a new batter is needed for remote?

    I have not used my Apple TV in a few years, and just got it out of the bag to use on a new TV.  I connected it up to power and with an HDMI cable toTV.  It attempts to set date and time and cannot.  I cannot get the remote to interact with the box also.  Could it be something as simple as needing a new battery?

    Hi kybriar,
    Thanks for using Apple Support Communities.  This article has steps you can take to troubleshoot the remote itself:
    Troubleshooting the Apple Remote
    http://support.apple.com/kb/ht1722
    For the issue of setting the date and time, these articles may help:
    Apple TV: Basic troubleshooting
    http://support.apple.com/kb/ht1551
    Reset Apple TV by unplugging it from the power outlet, waiting about five seconds, then plugging it in again.
    Power off your TV, wait five seconds, then power it back on.
    Apple TV (2nd and 3rd generation): Troubleshooting Wi-Fi networks and connectionshttp://support.apple.com/kb/TS4546
    Ensure that Apple TV is within range of your Wi-Fi router or base station.
    Confirm that your Wi-Fi router and cable/DSL modem are connected to power and turned on.
    Make sure other devices (computers, iPhone, iPad, for example) are able to connect to the Wi-Fi network and access the Internet.
    Check your Wi-Fi network settings on Apple TV:
    Select Settings > General > Network > Wi-Fi and press the center button on the remote to display nearby networks.
    Choose your Wi-Fi network from the list.
    If your Wi-Fi network uses a password, make sure you are entering it correctly.
    Restart your Apple TV by selecting Settings > General > Restart.
    Try restarting your Wi-Fi router or modem by turning it off and then on again.
    If possible, connect an Ethernet cable and verify your Internet connection. If you can connect to the Internet using an Ethernet connection, verify that your Apple TV is using the latest software by selecting Settings > General > Software Update. If your Apple TV can be updated, install the update and then try the steps again.
    Cheers,
    - Ari

  • How to activate a different sub-report for each row in the data set as main report page breaks on each row of data in the main dataset

    I am going to try asking this same question a different way as I have yet to find a working solution to my problem.  I have a main report and then 8 sub reports.  My main report has one data set and returns one row of data per account number.  One
    of the fields in the main data set is called AccountProf.  My main report displays one page per Account number and then calls a different sub report based on that account's AccountProf value.  The sub reports take in the account number as a parameter
    and get multiple rows of data to display that accounts usage formatted differntly for each AccountProf (hence the 8 different sub report.  
    So far I can figure out how to do everything but setting the visibility property of each sub-reports when I have multiple accounts.  If I use the following expression for the visibility property on each sub report, it makes all the applicable sub report
    for all the accounts requested visible at once:
    =IIF(Fields!AccountProf.Value= "USE_PLUS_DMD",False,True)
    *The value in bold USE_PLUS_DMD  is different for each sub report.
    Here is a look at what the main report look like:
    Here is the main reports data set:

    Hi JasonDWilson77,
    According to your description, there is a main report and 8 sub reports in the report, you want to set visibility of sub reports, if no value is passed to the parameter of sub report, the sub report will not be displayed. If that is the case, please refer
    to the following steps:
      1. Create a new parameter named NewAccountNumber, set its data type the same as @AccountNumber, select Allow multiple values, set Visibility to be hidden, then set all available values to default values.
      2. Right-click the first sub report and open Subreport Properties dialog box, click Parameters in left pane, set name to AccountNumber, then click (fx) button, type the expression like below:
    =Parameters! NewAccountNumber(0)
      3. Click Visibility in left pane, select Show or hide based on an expression, then click (fx) button and type the expression like below:
    =IIF(InStr(Join(Parameters! AccountNumber.Value), Parameters!NewAccountNumber.Value(0))>0 , false,true)
      4. Modify parameter of other sub reports like step2.
      5. Set visibility of other sub reports like step3.
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

  • Set Data from a Dynamic Context in ALV

    Hi,
    I've created an dynamic context and have binded the data. When I want to show this data in an dynamicly table with the following code, it works well.
    cl_wd_dynamic_tool=>create_table_from_node( EXPORTING ui_parent      = lo_container
                                                              table_id       = 'DYN_ML_TABLE'
                                                              node           = lo_nd_dyn_ml
                                                    RECEIVING table          = lo_table ).
    Unfortunately when I want to show the context data in an ALV table with the method set_data I will see the structure, but the binded data are lost.
    lo_comp_alv = wd_this->wd_cpuse_usage_alv_dyn_ml( ).
      IF lo_comp_alv->has_active_component( ) IS INITIAL.
        lo_comp_alv->create_component( ).
      ENDIF.
      lo_comp_if_alv = wd_this->wd_cpifc_usage_alv_dyn_ml( ).
      lo_comp_if_alv->set_data( lo_nd_dyn_ml ).
    I've tested an manually created context node with this method, and I will see the data.
    Could anybody help me?
    Best Regards,
    Sascha

    I created the node with rtti. Now, it works:
    "Beschreibung zu interner Tabelle lesen
       lo_tab_descr ?= cl_abap_typedescr=>describe_by_data( it_matchlist ).
       "Zeilentyp zu interner Tabelle ermitteln
       lo_str_descr ?= lo_tab_descr->get_table_line_type( ).
       "Komponente der Zeile ausgeben, welche für die Erstellung der Knotenattribute benötigt werden
       lt_comp = lo_str_descr->get_components( ).
       data: ls_component type cl_abap_structdescr=>component,
             lr_type type ref to cl_abap_datadescr,
             lt_components type cl_abap_structdescr=>component_table,
             lr_structdescr type ref to cl_abap_structdescr.
       "Loop über Komponente und Einfügen in Attributenliste
       loop at lt_comp into ls_comp.
         lv_abs_name = ls_comp-type->absolute_name.
         "Folgende Zeichen werden entfernt: '/TYPE='
         shift lv_abs_name left by 6 places.
         lr_type ?= cl_abap_typedescr=>describe_by_name( p_name = lv_abs_name ).
         ls_component-name = ls_comp-name.
         ls_component-type = lr_type .
         append ls_component to lt_components.
       endloop.
       "Strukturtyp anhand der definierten Kompententen der internen Tabelle erzeugen
       lr_structdescr = cl_abap_structdescr=>create( p_components = lt_components ).
    *  "Neuen Kindknoten anlegen
       lo_nd_dyn_info = lo_nd_root_info->add_new_child_node( name                         = wd_this->gd_matchlist_nd_name
                                                             is_mandatory                 = abap_false
                                                             is_mandatory_selection       = abap_false
                                                             is_multiple                  = abap_true
                                                             is_multiple_selection        = abap_false
                                                             is_singleton                 = abap_false
                                                             is_initialize_lead_selection = abap_true
    *                                                        attributes                   = lt_attributes
                                                             is_static                    = abap_false
                                                             static_element_rtti          = lr_structdescr
                                                             "supply_method                =
                                                             "supply_object                =
                                                             "dispose_method               =
                                                             "dispose_object               =
                                                             "static_element_type          =

  • How to set the Context path to AAA/BBB in Weblogic 5.1?

    Hi folks,
              I want to deploy a web application and set the servlet context as:
              AAA/BBB. Put more simply, my application should be accessible via the
              following:
              http:localhost:7001/AAA/BBB/main.jsp
              where http://localhost:7001/AAA/BBB maps to my document root.
              One work around is to set the context to AAA:
              weblogic.httpd.webApp.AAA=WebAppLocation
              And in the deployment descriptor (web.xml) to register all servlets
              with a BBB/ prepended to the desired alias:
              <servlet-mapping>
              <servlet-name>main</servlet-name>
              <url-pattern>BBB/main.jsp</url-pattern>
              </servlet-mapping>
              But this solution does not work for me. Parts of the application refer
              the context root (AAA) and create URLs relative to that. These URLs
              will not have the BBB part. Searching for it in the code and replacing
              it is not desirable (we do not own the code). Does anyone have any
              suggestions?
              Thanks in advance,
              Musafir
              

    What you have done for changing the context root to "/" is all fine but it is important to know that there is a ROOT.war in the deploy folder of JBoss which by default gets bound to "/" context. You must be getting the error message like "Web mapping already exists for deployment" when you would be starting your JBoss server after changing your context root to "/". So either you can completely remove the ROOT.war from the deploy folder or change the context-root of ROOT.war by updating its web.xml like:
    <web-app>
    <display-name>Welcome to JBoss</display-name>
    <description>
    Welcome to JBoss
    </description>
    *<context-param>*
    *<param-name>context-root</param-name>*
    *<param-value>/jboss-root</param-value>*
    *</context-param>*
    <servlet>
    <servlet-name>Status Servlet</servlet-name>
    <servlet-class>org.jboss.web.tomcat.service.StatusServlet</servlet-class>
    </servlet>
    </web-app>
    and also update the jboss-web.xml of ROOT.war:
    <jboss-web>
    <security-domain>java:/jaas/jmx-console</security-domain>
    *<context-root>/jboss-root</context-root>*
    </jboss-web>
    I hope this serves your purpose.
    There can be a workaround also by modifying the index.html of ROOT.war in the deploy folder of your server and redirect request to your web application using meta refresh like:
    <meta http-equiv="refresh" content="0;URL='/store'">

  • When I sync my iPhone 4S to my computer, where is the baseline data and documents coming from? Is the iPhone's set of apps and data the default set or are the apps and data on the computer (in the backup? in iTunes?) the default set?

    I am having a great deal of trouble with the upgrade to ios 7 on my 4S. The syncing and the software updates always leave generic icon apps that I have downloaded in the past but have deleted from my phone. But they keep reappearing. A restart of the phone fixes the icons but they are loaded not at the last page of the home screen but on completely random pages, screwing up my app and folder layout.
    I want to completely wipe the phone and restore the apps one by one, but I am concerned about whether the data and documents for those apps that I reinstall will be intact. Does the syncing for the apps on the phone retrieve the data from the last backup on the computer? If so, does it only sync the apps on the phone or does it try and reinstall all the apps that there is data for in the backup? In other words, does the resulting set of apps and data reflect the current state of the phone or the saved state of the backup?

    Apple guys are deleting posts. I have found my posts have been deleted. Apple should MUST let us downgrade at least to previous release from current which was working fine.

  • The value in flexfield context reference web bean does not match with the value in the context of the Descriptive flexfield web bean BranchDescFlex. If this in not intended, please go back to correct the data or contact your Systems Administrator for assi

    Hi ,
    We have enabled context sensitive DFF in Bank Branch Page for HZ_PARTIES DFF , We have created Flex Map so that only bank branch context fields are only displayed in the bank branch page and  as we know party information DFF is shared by supplier and Customer Page so we dint want to see any Bank Branch fields or context information in those pages.
    We have achieved the requirement but when open existing branches bank branch update is throwing below error message :
    "The value in flexfield context reference web bean does not match with the value in the context of the Descriptive flexfield web bean BranchDescFlex. If this in not intended, please go back to correct the data or contact your Systems Administrator for assistance."
    this error is thrown only when we open existing branches, if we save existing branch and open then it is not throwing any error message.
    Please let us know reason behind this error message.
    Thanks,
    Mruduala

    You are kidding?  It took me about 3 minutes to scroll down on my tab to get to the triplex button!
    Habe you read the error message? 
    Quote:
    java.sql.SQLSyntaxErrorException: ORA-04098: trigger 'PMS.PROJECT_SEQ' is invalid and failed re-validation
    Check the trigger and it should work again.
    Timo

  • How do I set an email to send at a specific time/date in the future e.g. tomorrow at 9am. I am on an iMACX using apple's version of windows

    how do I set an email to send at a specific time/date in the future e.g. tomorrow at 9am. I am on an iMAC using apple's version of windows

    apple don't have a version of windows
    only microsoft have windows
    as how one automatate windows to send mails at a time
    googled it for you
    http://www.howtogeek.com/125045/how-to-easily-send-emails-from-the-windows-task- scheduler/
    more options in the search
    https://www.google.dk/search?client=opera&q=automatically+send+email+in+windows& sourceid=opera&ie=UTF-8&oe=UTF-8

Maybe you are looking for

  • Playing Smart Shape Audio Only When Clicked

    I'm working on a project in Captivate 6 that has a lot of audio usage. When a slide begins, an audio file plays automatically. There are also two visible buttons per slide, made from smart shapes, that each contain a different audio file. After the l

  • Wireless capability fail?

    Last night my Time Capsule began acting strangely. It cut out my wireless internet connection but was still transmitting signal to those devices wired through ethernet cables. I attempted to reboot the cable modem and TC and this did not resolve the

  • .pdf Image to Excel

    I have PDF file contains an Image in tabular form. I want to convert tabular image into excel.

  • RELATED TO TRANSACTION IVIEWS

    where system objects related to ess and mss are stored in enterpriseportal? HOW WE  WILL DISABLE THE BUTTONS  ACTION PRESENT IN FORM16 WHICH IS CALLED AS TRANSACTION IVIEW INTO PORTAL?

  • Phone labels don't stick when edited

    I have had this problem since the first version of Address Book. When I go into edit mode on an address card and change the label on a phone number (from Home to Mobile let's say), then exit edit mode, the label change doesn't stick. It just reverts