Change webdynpro element position during runtime.

Hi Experts,
For one SAP standard screen there are 4 input field in the webdynpro view. Is it possible to change the position/order of these standard elements by enhancement or during run time?
Thanks

Hi Srinivas
Yes, this is possible !
You can create a component configuration(CC) from the context menu of the related Web Dynpro Component (Create/Change Configuration).
Enter an id for new CC eg., ZTEST and click Create.
In the next screen, click on the last tab labeled Web Dynpro Built-In. Hierarchy of UI elements will be displayed. Click on the Container UI element that contains your 4 input fields and then click on Re-sort link that appears on the right hand side. Now you can sort the input fields. Save your Comp Config. Run the standard WD application using newly created comp config by passing parameter 'ZTEST' in the URL.
Hope this helps.
Regards
Lorraine

Similar Messages

  • Changing type of process during runtime

    hi to all/Mike/Antony
    is there anyway to change a sync process to async during runtime?
    thnx in advance
    KAM

    hi
    sorry for making confusion by putting a (little) wrong question because of being in a hurry...
    it was supposed to be that " is there anyway to change the type of the process from async to sync after executing the process"
    i m sorry for taking ur time by putting a wrong question!
    actually i made a sync process of "HelloWorld " but mistakenly declared its type as "async" and it did not generate the required output, because it was an async process and i was treating it as a sync one!
    thanks for ur interest. i'll write, as i find the solution.
    KAM.

  • Change XSD / XML dataset during runtime and display texts in field explorer

    Hi there,
    I am changing the datasource of a report during runtime. Afterwards, I would like to change the texts of the fields appearing in the field explorer.
    I tried:
    CrystalDecisions.ReportAppServer.DataDefModel.XMLDataSetClass xmlDS =
    new CrystalDecisions.ReportAppServer.DataDefModel.XMLDataSetClass();
    byte[] xmlContent = reportContent.getXmlContent();
    byte[] xsdContent = reportContent.getXsdContent();
    CrystalDecisions.ReportAppServer.CommonObjectModel.ByteArray xmlData =
    new CrystalDecisions.ReportAppServer.CommonObjectModel.ByteArray();
    CrystalDecisions.ReportAppServer.CommonObjectModel.ByteArray xsdData =
    new CrystalDecisions.ReportAppServer.CommonObjectModel.ByteArray();
    xmlData.ByteArray = xmlContent;
    xmlDS.XMLData = xmlData;
    xsdData.ByteArray = xsdContent;
    xmlDS.XMLSchema = xsdData;
    rasDoc.DatabaseController.SetDataSource(xmlDS, "", "");
    rasDoc.Database.Tables[0].Description = "POMMES";
    for (int i = 0; i < rasDoc.DatabaseController.Database.Tables[0].DataFields.Count; i++)
    rasDoc.Database.Tables[0].DataFields.Name = "TEST";
    MessageBox.Show(rasDoc.Database.Tables[0].DataFields.Name);
    rasDoc.Database.Tables[0].DataFields.HeadingText = "HOORAY";
    rasDoc.Database.Tables[0].DataFields.Description = "NOPE";
    MessageBox.Show(rasDoc.Database.Tables[0].DataFields.Description);
    MessageBox.Show(rasDoc.Database.Tables[0].DataFields.HeadingText);
    When running this, the message boxes include the right strings I set before but when this is done, the filed explorer still shows no changes. What am I doing wrong?
    Also, I would like to change the field texts that are displayed in the field explorer. How can this be done?
    Thanks,
    Pascal

    Also, I do not understand why I am not able to change the display of the fields in the filed explorer.
    This coding does not change a bit, but why??
    //preparation
    string tableName = reportDataSet.Tables[0].TableName;
                  // Get the table definition exactly like the definition of my own dataset.
                  CrystalDecisions.ReportAppServer.DataDefModel.Table table = GetTable(tableName);
                  table.ConnectionInfo = connectionInfo;
                  //delete all existing tables if there are any
                  foreach (CrystalDecisions.ReportAppServer.DataDefModel.Table oldTable in rasDoc.DatabaseController.Database.Tables)
                      rasDoc.DatabaseController.RemoveTable(oldTable.Name);
                  //add my new table with the IDs of the XSD
                  rasDoc.DatabaseController.AddTable(table, null);
                  //now I want to change the displayed fields texts
                  CrystalDecisions.ReportAppServer.DataDefModel.Tables modifyTables =
                      rasDoc.DatabaseController.Database.Tables;
                  CrystalDecisions.ReportAppServer.DataDefModel.Table myTable =
                      (CrystalDecisions.ReportAppServer.DataDefModel.Table)modifyTables[0];
                  Fields fields = myTable.DataFields;
                  for (int i = 0; i < fields.Count; i++)
                      ISCRField field = fields<i>;
                      ResultFieldController resultFieldController =
                         rasDoc.DataDefController.ResultFieldController;
                      try
                          resultFieldController.Remove(field);
                          string sText = "";
                          sText = "Bäschreibung" + i.ToString();
                          field.Description = new string(sText.ToCharArray());
                          sText = "Häding" + i.ToString();
                          field.HeadingText = new string(sText.ToCharArray());
                          //sText = "Näme" + i.ToString();
                          //field.Name = new string(sText.ToCharArray());
                          resultFieldController.Add(-1, field);
                      catch (Exception exp)
                          MessageBox.Show(exp.Message);
    I am completely stuck.
    Thanks for any help.
    Pascal
    Edited by: Pascal Schmidt-Volkmar on Sep 30, 2008 9:31 AM

  • Change Chart background color during runtime

    I want to change the background color of my chart during runtime.
    I can set and read-out the color with a property node but the apperance on the frontpanel is not changing.
    After stopping the VI the chart suddenly gets updated.
    Please check my VI attached.
    Do someone knows a workaround?
    Attachments:
    chart.vi ‏9 KB

    Hello Robert,
    another option would be to place (for example) a vertical smooth box behind the chart and change the color of it.
    See my attachment.
    Best regards
    Attachments:
    Change chart background color.vi ‏12 KB

  • A question about how to change a button in a JPanel during runtime

    I am a beginner of GUI. Now I am trying to change a specific component, a button, when the application is running. For example, I have 3 buttons in a JPanel. Each button has its onw icon. If I click one of them, it will change its icon, but the other two don't change. I don't know if there is any method for changing a specific component during runtime. If any one knows please let me know, I will appreciate that very much!!!

    What you're going to have to do is loop inside the actionlistener but still have accessability to click while its looping. I don't know much about it, but I think you're going to need a thread. Try something like this... (it doesn't work yet, but I have to take off)
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    class buttonxdemo extends JFrame implements ActionListener{
      Buttonx mybutton;
      //set it all up, make it look pretty  =]
      public buttonxdemo()
           mybutton = new Buttonx("default");
           getContentPane().add(mybutton.thebutton);
           mybutton.thebutton.addActionListener(this);
           this.setDefaultCloseOperation(3);
           this.setSize(200,200);
      public void actionPerformed(ActionEvent ae){
        if (ae.getSource() == mybutton.thebutton)
             if (mybutton.keepGoing)
               mybutton.keepGoing = false;
                else if (!mybutton.keepGoing)
                     mybutton.keepGoing = true;     
          mybutton = new Buttonx(/*Icon,*/"My Button");
          //getContentPane().remove(mybutton);
          //getContentPane().add(mybutton.thebutton);
          mybutton.startstop();
      }//actionperformed
      static void main(String args[])
           new buttonxdemo().show();
    } //movingicondemo
    class Buttonx extends Thread{
      public boolean keepGoing;
      //public Icon ICx;            //perhaps an array, so you can loop through?
      public String strbuttonx;
      public JButton thebutton;     //may have to extend JFrame?
      public Buttonx(/*Icon IC,*/ String strbutton){
        //ICx = IC;
        strbuttonx = strbutton;
        thebutton = new JButton(strbuttonx);
      public void startstop()
        int i = 0;
        while (keepGoing)
          thebutton.setLabel(strbuttonx.substring(0,i));
          //if an array of Icons ICx
          //thebutton.setIcon(ICx);
    i++;
    if (i > strbuttonx.length() - 1)
    i = 0;
    try
         Thread.sleep(1000);
    catch (InterruptedException ie)
         System.out.println("sleep caught: " + ie);
    }//startstop()
    }//buttonx
    kev

  • How to change property file contents during run time?

    Hi everyone. First post so go easy on me please.
    I have a couple of properties that I want to read from a from a file. To achieve this I simply use:
    ResourceBundle.getBundle("my.package.MyItems").getString("MyProperty");
    This works like a wonder. The problem is, i want to change the property "MyProperty" during runtime. I've found the properties file (MyItems.properties) inside weblogic, but if a change its contents it does not reflect in the application.
    I can come up with a couple of justifications:
    * I'm not looking in the right folder/changing the wrong file in the server;
    * Weblogic caches the properties file, meaning that I have to redeploy the project (defeating the purpose of actually having a properties file).
    Can anyone help with this one?
    [EDIT] Forgot important info:
    * JDeveloper 11.1.1.4
    * Weblogic 11.3 (not 100% sure)
    * Both JDev and WebLogic running on Windows 7 64 bits
    Thank you in advance!
    Best Regards
    J. Peixoto
    Edited by: 868634 on Jul 12, 2011 9:37 AM
    Edited by: 868634 on Jul 12, 2011 10:21 AM
    JDeveloper 11.1.1.4, not 3

    I tried it all.
    Just an explanation of my context.
    I have 1 application with 2 projects in it. First project is called "CommonUI_ViewController" and the second one "FO_ViewController".
    The properties file I'm trying to change is located inside "CommonUI_ViewController", in package "PropertiesConfig" and the file is called "PhaseListener.properties".
    "FO_ViewController" is dependent on "CommonUI_ViewController". When I run "FO_ViewController" the integrated weblogic server log shows this (among other things):
    [10:25:55 AM] Wrote Web Application Module to D:\JDeveloper\dump\system11.1.1.4.37.59.23\o.j2ee\drs\SPV_BPM\FO_ViewControllerWebApp.war
    [10:25:57 AM] Wrote Web Application Module to D:\JDeveloper\dump\system11.1.1.4.37.59.23\o.j2ee\drs\SPV_BPM\CommonUI_ViewControllerWebApp.war
    Note: both lines above point to folders. "FO_ViewControllerWebApp.war" and "CommonUI_ViewControllerWebApp.war" are NOT war files, but folders that have that name.
    I tried changing the properties file in the following locations:
    * D:\JDeveloper\dump\system11.1.1.4.37.59.23\o.j2ee\drs\SPV_BPM\FO_ViewControllerWebApp.war\WEB-INF\lib\adflibSPVCommonUI.jar > PropertiesConfig\PhaseListener.properties;
    * D:\JDeveloper\dump\system11.1.1.4.37.59.23\o.j2ee\drs\SPV_BPM\CommonUI_ViewControllerWebApp.war\WEB-INF\lib\adflibSPVCommonUI.jar > PropertiesConfig\PhaseListener.properties;
    * D:\JDeveloper\dump\system11.1.1.4.37.59.23\o.j2ee\drs\SPV_BPM\CommonUI_ViewControllerWebApp.war\WEB-INF\classes\PropertiesConfig\PhaseListener.properties (no need to open any jar/war to get to this one).
    I changed all these files with different values but no change was shown in the application (using the method in the previous post).
    I believe that I'm still doing something wrong :/
    Thank you for your help so far vinod_t_krishnan!
    J. Peixoto

  • Change properties of UI Elements during runtime in Web Dynpro ABAP

    hey ,
    what is the convention for changing ui elements in runtime by method set_attribute_property ?
    for example :
    changing visibilty of text box :
    property= 1.
    *" call method set attribute property and pass value as 'X' to show
      call method lo_el_radio_node1_1->set_attribute_property
        exporting
          attribute_name = 'FIRST_NAME_1'
          property       = 1
          value          = 'X'.
    and in changing enable/disable  of text box :
    property = 4.
    *" call method set attribute property and pass value as 'X' to ENABLE
    call method lo_el_radio_node2_1->set_attribute_property
       exporting
         attribute_name = 'FIRST_NAME_2'
         property      = 4
         value         = 'X'.
    how the property value is defined ?
    link to full example :
    [link|http://wiki.sdn.sap.com/wiki/display/WDABAP/SimpleapplicationtochangepropertiesofUIElementsduringruntimeinWebDynpro+ABAP]
    Regards ,
    ASA

    Hi,
    I also need to change the read-only property of a field at runtime in webdynpro. The read only field should be enabled at runtime.
    I've used the  call method lo_nd_packslip->set_attribute_property
              exporting
               attribute_name = 'ZOPAK'
               property = '3'
               value = space .
    but I am not getting the desired output.
    Thanks,

  • 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

  • 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

  • How to disable UI element during runtime

    Hi!
    Can someone show me how to access the properties of ui elements during runtime?
    eg. in the method  WDDOINIT i want to enable/disable the GroupBox "Group"
    how to?
    thanks

    >
    Abhimanyu Lagishetti wrote:
    > ideal way is the one i specified,
    >
    > other way is you have to change it in WDDOMODIFYVIEW
    >
    > to get any UI element this is the code
    >
    > view->get_element( '<ID of the UI element>' ). which return the corresponding UI element reference
    >
    > the UI element classes start with CL_WD_*.
    >
    > for example: inputfield CL_WD_INPUT_FIELD
    > data: lr_input type ref to cl_wd_input_field.
    > lr_input ?= view->get_element( '<ID of the UI element>' ).
    > lr_input->set_enable( abap_true ).
    >
    > Abhi
    I would like to stress that this NOT the SAP recommended way of controlling the properties on UI elements - the first solution you were give would be the recommended approach.  The direct UI coding access should be used as a last resort when working with dynamically generated UI elements.  Otherwise you should always try and set the UI element properties via context binding. This makes your application more accessible to customizing/personalization, makes it easier to maintain over time and provides the best performance.

  • 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

  • How can i change/create F1 doku text during runtime

    Hi everybody,
    I have a problem.
    During runtime the user should be able to create a documentation. This documentation must be stored in the F1 help of a data type.
    It's easy to get the created help text out of the F1 help.
    But is there any possibility to set the help text of a data type during runtime without calling and displaying the document maintenance initial screen?
    Can anybody help me?
    Thanks & Regards

    Hi Max,
    thank you for your answer. But I think I don't realy understand.
    The documentation should be created for a pattern which is created by the user. I just schould be stored in the F1 help of a data type.
    So there is no field on the screen for which i can use this event.
    Is there a function or something like this i can call to open the document maintenance starting with the "change" screen?
    Thanks & Regards,
    Christian

  • SmartForms - Window position variable during runtime?

    Hello,
    is it possible to create one window in smartforms and set
    during runtime the position variable?
    Otherwise i have to create around 70 little windows
    The backround is: i create during a loop for each dataset a 2D-Barcodes. In our SAP system we create 2D-Barcodes like that:
    - the Title of a window must start with LS_BARCODE....
    - then in Lasersoft (thats a "printing"-software between SAP and the printer) this software reads this title LS_BARCODE and creates an 2D Barcode with the datas in the textfield below the window.
    best regards,
    jasmin

    Hello Jasmin,
    Perhaps note 359009 will address your problem or provide you with a workaround, using the "late processing" type window.
    Kind Regards,
    Martin

  • Change values in File physical schema during runtime?

    Is there any way to change the Directory in physical schema
    during runtime?
    This is needed so that we can dynamically get the files from
    different locations.
    Any help is highly appreciated.

    Hi,
    Yes there is:
    Create your physical schema to a parent directory and, at Physical Resourse (File Datastore) use a variable before the name of the file.
    Compose the variable with the "child" directory. I like to create the path on execution time.
    Does it help you?

Maybe you are looking for

  • Added Premiere Pro 2.0 to my laptop and it wont register program and does not find a burner

    I need some help. Im installing Premiere Pro 2.0 Educational Version on my new laptop (I work at school) and it will not register the program.  Tried calling the number and it says to come to this forum.  I purchased this program nearly 10 years ago

  • Firefox keeps crashing because of flash

    everytime i open firefox and go to a site like youtube or ign its immediately shuts down. im guessing it is because of flash or another plugin as some sites like google do not have this issue. would love some help as this is affecting every browser o

  • All my recordings gone

    Is there a way to get all my recordings back? I had to restart my system, but when it came back, all the recordings were gone.

  • Seems to capture but then won't quit after ESC pressed?

    We have new XRAID with Apple FC interface & running on Mac G5 and 10.3.9. We use FinalCutPro 4.5 and it all seems to capture but then won't quit after ESC pressed. The pinwheel spins and the Mac is unaccessible then after maybe 3 hours it finishes an

  • How can I accept the Software License Agreement?

    I have a Mac. I have had CS5 Design Premium Teacher and Student Edition for the last four years. A few weeks ago, I could no longer open up my product. Instead, a Software License Agreement popped up with the Adobe Application Manager. After I click