Access to UI elements in onAction method

Hi everbody,
I have a really simple question:
how can I access UI elements of a view in onAction methods so that I can change their attributes?
(In the wdModifyView method I had no problem because I got access by the IWDView parameter).
Regards,
Christian

Hi Cristian,
Yes you can achieve by the way Anil has described.
What else you can do is, make context attribute related to the property of the UI element instead of saving whole view object in context.
Like, if you want to change visibility property of any UI element then, make one context attribute of type VISIBILITY and then onActionXXX method alter the value of this context attribute as you required.
Regards,
Bhavik

Similar Messages

  • How do I access array elements in one method from another method?

    Hi all!
    How do I access the array's elements from another method so that method 2 can have access to method 1's array elements? Thanks for any help!
    I am trying to create a simply program that will use a method to create an array and a SEPARATE method that will sort the array's elements (without using java's built in array features). I can create the program by simply having one method and sorting the array within that same method, BUT I want to sort the array from another method.
    Here's my code so far:
    public class ArraySort {
       public static void createArray(int size){
           double myArray[] = new double[size];    //create my new array
           for(int j=0; j < myArray.length; j++)
              myArray[j] = (200.0 * Math.random() + 1.0);   //fill the array with random numbers
       public static void sortArray(){
           // I WANT THIS METHOD TO ACCESS THE ARRAY ELEMENTS IN THE METHOD ABOVE, BUT DON'T KNOW
          //  HOW???? Please help!
        public static void main(String[] args) {
            createArray(4);    //call to create the array
    }Thanks again!
    - Johnny

    Thanks for the help all! I ve managed to get the program working, using java's built in array sort, but when i try to call on the array sort method from WITHIN my main method, nothing happens!
    Can somebody please tell me why I am not able to call on the sort method from within my main class???? Thanks!
    public class ArraySort {
       public void createArray(double[] arrayName, int size){
           double myArray[] = new double[size];  //create new array
           for(int j=0; j < myArray.length; j++)
              myArray[j] = (200.0 * Math.random() + 1.0);    //populate array with
           }                                                 //random Numbers
           sortArray(myArray); 
       } //Sort array(if I delete this & try to use it in Main method --> doesn't work???
       public void sortArray(double[] arrayName){
           DecimalFormat time = new DecimalFormat("0.00");
           Arrays.sort(arrayName);      //sort array using Java's built in array method
           for(int i = 0; i <arrayName.length; i++)
               System.out.println(time.format(arrayName)); //print arary elements
    public static void main(String[] args) {
    ArraySort newArray = new ArraySort(); //create a new instance
    double myArray[] = new double[0]; //create a new double array
    newArray.createArray(myArray,4); //build the array of indicated size
    //newArray.sortArray(myArray); //This will not work???? WHY?????//

  • Accessing a JSF element from a back bean method

    Hi,
    short question, can I access the JSF element from a back bean method?
    So, for example, if I have the following JSF code:
    <h:panelGroup id="test1" rendered="#{bean.someMethod}">...</h:panelGroup>
    <h:panelGroup id="test2" rendered="#{bean.someMethod}">...</h:panelGroup>
    <h:panelGroup id="test3" rendered="#{bean.someMethod}">...</h:panelGroup>
    Can I found out in some way, which element (esp. which ID) calls the someMethod-method?
    Kind regards
    Matthias

    There are more possibilities as well. If you depend it on for example the User's rights/groups, then you can also do for example:
    rendered="#{user.admin}" // getter = public boolean isAdmin()
    rendered="#{user.groupName == 'admin'}" // getter = public String getGroupName()
    rendered="#{user.groupId > 1}" // getter = public int getGroupId()
    rendered="#{fn:contains(user.groups, 'admin')}" // getter = public String[] getGroups() or public List<String> getGroups()
    etc..I think it's after all just a matter of learning about the capabilities of EL a bit more.

  • How can I access the selected element of a DropDownByIndex-box?

    Hi,
    I want to create a WebDynpro with two web services. I created the first request with the first web service and the results are displayed in a DropDownByIndex-Box. Now the user should choose one of the results and I would like to use this for the request with my second web service. How can I access the selected Element of a DropDownByIndexBox in the Code?
    Thank you!!
    Julia

    Hi Julia,
    when user select one element in drop down it automatically set lead selection of node binded to dropdown.
    For example if you bind a dropdown to node myNode with value attribute myAttribute the lead selection of node myNode is set in the position of element choose from user.
    So to take this chooised element use this code:
    wdContext.currentMyNodeElement.getmyAttribute()
    bye
    Andrea

  • Problems with the xsl element ---- xsl:output method="xml"/ ----

    Hy, my problem is the next, I am trying to read a xml file and transform it in itself but when I do with XSLT, Internet Explorer doesnt show a xml file, just show me the text nodes of the xml file. I have the element <xsl:output method="xml"/>" in the xsl file but I dont Know what Iam doing wrong.
    The next code is from the xsl file:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml"/>
    <xsl:template match="/">
    <xsl:copy-of select="catalog"/>
    </xsl:template>
    </xsl:stylesheet>
    The next code is from the xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Edited with XML Spy v2007 (http://www.altova.com) -->
    <?xml-stylesheet type="text/xsl" href="PlantillaXSL.xml"?>
    <catalog dni="4546545">
         <cd numero="2" id="5" color="red">
              <title>Empire Burlesque</title>
              <artist>Bob Dylan</artist>
              <country>USA</country>
              <company>Columbia</company>
              <price>10.90</price>
              <year>1985</year>
         </cd>
    </catalog>
    The result in internet explorer is:
    Bob Dylan USA Columbia 10.90 1985

    All right. I asked because it's unusual to use the ".xml" extension for an XSL file, so I thought it might be an error. But there's nothing wrong with that.
    Next debugging step: is that XSL file actually being used? Insert some debugging code in it so that you can tell.

  • Please log-in with an admin account to access adobe premiere elements

    I have bought Premier Elements but it will not start. Keeps asking me to: "please log-in with an admin account to access adobe premiere elements". Then it closes.
    ASUS laptop, 17" Processor: i7- 4700HQ @2.4 GHz
    RAM 8 GB,   Win 8.1 64
    My account is Admin, and have started the program "As administrator."
    Have reinstalled elements.
    The computer ran a trial of Adobe Premiere Pro CC perfectly. Have uninstalled it to see if it fixes the problem.
    Quicktime ver. 7.7.5  It is up to date.

    johnminkara
    What version of Premiere Elements are you using on your Windows 8.1 64 bit computer? For now I will assume Premiere Elements 12.
    If you are running the program from a User Account with Administrative Privileges, then please apply Run As Administrator
    a. by right clicking the desktop icon and clicking on Run As Administrator
    or
    b. by right clicking the desktop icon, selecting Properties, and then putting a check mark next to Run As Administrator found at the bottom of Compatibility Tab's
    "Privilege Level". You could also apply Run As Administrator to the Adobe Premiere Elements.exe file, but one or the other above should do the job.
    In the final analysis, you may probably end up with Premiere Elements 12 uninstall usual Control Panel route, free ccleaner run through (regular cleaner and registry cleaner parts), and reinstall with antivirus and firewall(s) disabled. Did you use a "Clean Tool" for the removal of Adobe Premiere Pro CC.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    We will be watching for your results.
    Thank you.
    ATR

  • Give comprehensive API to access gradient mesh elements!

    Illustrator's gradient-mesh feature is a powerful and has created a completely different type of artwork.   We can see some of it by searching with Google search engine "gradient mesh image".   There we can see what some people have done with the gradient-mesh feature.    However, working manually with gradient-mesh can be very time-consuming and that has block this form of art.   It's very time-consuming and not economically efficient.
    I suggest that you offer an extensive API to get access to key elements of gradient-mesh so users can create their own scripts to speed up whatever they are doing.

    Hi all,
    verry good suggestions. The note The specified item was not found. solved my problem, nearls ;-).
    How it came to this?
    It has been a propper installed and working PI 7.10 SPS 6.
    After or during patching to SPS 7 anything went wrong in communication with the SLD. During investigation the user registering to the SLD was not allowed to do this any more and the entries inside SLD Administration for the two RFC connections were not available any more:
    1. SLD setting: NoneUnicodeGatewayRegistrationId for SLD_NUC was gone (deleted during patch)
    2. SLD setting: UnicodeGatewayRegistrationId for SLD_UC was gone (deleted during patch)
    3. SLD setting: StartRfcServer for true was gone (deleted during patch)
    4. User for SLD access was not alowed to access SLD
    This Blog is quite good /people/venugopalarao.immadisetty/blog/2007/03/15/adapter-engine-cannot-be-found-in-integration-directory but did not fit 100% my problem as well.
    The problem on my side was based on the fact that my system was upgraded from PI 7.00. It looked like that the users had not all permissions needed for a PI 7.10 system with SPS 7. I changed the permissions of the following users: PIRWBUSER, PIREPUSER, PIDIRUSER, PIAPPLUSER und PIAFUSER and added the following roles but I think that the main role is this one: SAP_BC_WEBSERVICE_PI_CFG_SRV
    SAP_BC_WEBSERVICE_PI_CFG_SRV
    SAP_SLD_ADMINISTRATOR
    SAP_SLD_CONFIGURATOR
    SAP_SLD_CONTENT_SYNC
    SAP_SLD_DATA_SUPPLIER
    SAP_SLD_DEVELOPER
    SAP_SLD_ORGANIZER
    SAP_SLD_SUPPORT
    SAP_XI_ID_SERV_USER
    SAP_XI_ID_SERV_USER_MAIN
    Maybe I will check later which one was really the reason for my problems.
    BR Markus

  • Reading xml element outside onLoad method

    i want to read xml element outside onLoad method but i m unable to read can u plz give idea to solve this problem.................i m using this code..
    var linkData:XML = new XML();
    var linkXData:XMLNode;
    var serverName:XMLNode;
    var projectName:XMLNode;
    linkData.ignoreWhite = true;
    linkData.load("server.xml");
    linkData.onLoad = function(success:Boolean)
    if(success)
      trace("Link data loaded");
      serverName = linkData.firstChild.childNodes[0].firstChild;
      projectName = linkData.firstChild.childNodes[1].firstChild;
      linkXData = linkData.firstChild;
      trace("in success"+linkXData.childNodes.length)
    else
      trace("Failed to load link data");
    trace("ServerName="+ServerName)
    trace("projectName ="+projectName )
    this is giving ServerName=undefined
                        projectName =undefined
    my xml is
    <?xml version='1.0' encoding='UTF-8'?>
    <data>
    <servername>hyddtl900411</servername>
    <projectname>CCBCPC</projectname>
    </data>

    hi
    i am trying like that..............in that i want 2 use servername and projectname in navigation bar but sometimes it is working somtimes it is not working......
    i think due to loading of xml.can u give me some idea so that i can use that variable after loading of xml.
    var linkData:XML = new XML();
    var linkXData:XMLNode;
    var serverName:XMLNode;
    var projectName:XMLNode;
    var a;
    var b;
    linkData.ignoreWhite = true;
    linkData.load("server.xml");
    linkData.onLoad = function(success:Boolean)
    if(success)
      trace("Link data loaded");
      serverName = linkData.firstChild.childNodes[0].firstChild;
      projectName = linkData.firstChild.childNodes[1].firstChild;
      linkXData = linkData.firstChild;
      trace("in success"+linkXData.childNodes.length)
    else
      trace("Failed to load link data");
    id=setInterval(testvalue,1000);
    function testvalue():Void{
    a=serverName;
    b=projectName;
         trace("ServerName outside="+serverName)
         trace("projectName outside ="+projectName )
    setserver(serverName);
    clearInterval(id);
      var val;
    function setserver(val){
    trace("val="+val)
    init1(val);
    in init1() function...................................
    function init1(val){
    trace("val in init1="+val)
    trace("///////////////////////init1//////////////////////")
    trace("ServerName in init1="+serverName)
    trace("projectName in init1 ="+projectName )
    /*var localhost="hyddtl900411";
    var projectName="CCBCPC";*/
    var localhost=val;
    var projectName="CCBCPC";
    trace("localhost="+localhost)
    var links:Array = new Array();
    trace("link="+links[0])
    links[0] = "http://"+localhost+":8080/"+projectName+"/web/productOverview.html";
    links[1] = "http://"+localhost+":8080/"+projectName+"/web/Training.html";
    links[2] = "http://"+localhost+":8080/"+projectName+"/web/a.html";
    links[3] = "http://"+localhost+":8080/"+projectName+"/web/Case_studies.html";
    links[4] = "http://"+localhost+":8080/"+projectName+"/web/Team.html";
    links[5] = "http://"+localhost+":8080/"+projectName+"/web/offering.html";
    for(var i:Number = 0; i < links.length; i++)
    this["btn_" + i].pageRef = links[i];
    this["btn_" + i].onPress = function()
      getURL(this.pageRef);
    //highlight current button
    if(_root.activeBtn != undefined)
    this["btn_" + _root.activeBtn].enabled = false;
    this["btn_" + _root.activeBtn].useHandCursor = false;
    this["btn_" + _root.activeBtn].gotoAndStop(4);

  • Accessing fault string element

    I have successfully created and deployed a web service using the JDev 1033. When there in is an error how can we set the fault string in the response using the method in the Impl class ?
    I am able to set the fault details without any issue. How do I access the fault string object ?
    Thanks
    Edited by: mat on Dec 8, 2008 5:33 AM

    Hi
    If you want to access the value of an element with in the view. You have to create the required attributes as per your application.
    For perform data binding  select the UI element in the layout tab and go to properties assign the value property to the appropriate context attribute by choosing the Value properties.
    If you want to access the UI elemnt value of one view to another view then your data must exist in th component controller.
    Go through the simple tutorial it helps you understand the context mapping, data binding
    http://help.sap.com/saphelp_nw04/helpdata/en/fd/ed32a8c9994b4ba4a1645a764814db/content.htm
    regards
    ambicasony

  • Access Denied Error While invoking WebService Method

    Hi,
    When i am trying to invoke web service method from client machine, it throws an Error 401 - Access Denied (Detail Error Shown below)....
    Please let me know to set WindowsAuthentication UserName and Password in WebService calling through Java. Here Iam using Stub class to connect WebService through Java...
    AxisFault
    faultCode: {http://xml.apache.org/axis/}HTTP
    faultSubcode:
    faultString: (401)Access Denied
    faultActor:
    faultNode:
    faultDetail:
         {}:return code: 401
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    <html dir=ltr>
    <head>
    <style>
    a:link {font:8pt/11pt verdana; color:FF0000}
    a:visited {font:8pt/11pt verdana; color:#4e4e4e}
    </style>
    <META NAME="ROBOTS" CONTENT="NOINDEX">
    <title>You are not authorized to view this page</title>
    <META HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252">
    </head>
    <script>
    function Homepage(){
    <!--
    // in real bits, urls get returned to our script like this:
    // res://shdocvw.dll/http_404.htm#http://www.DocURL.com/bar.htm
         //For testing use DocURL = "res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar.htm"
         DocURL=document.URL;
         //this is where the http or https will be, as found by searching for :// but skipping the res://
         protocolIndex=DocURL.indexOf("://",4);
         //this finds the ending slash for the domain server
         serverIndex=DocURL.indexOf("/",protocolIndex + 3);
         //for the href, we need a valid URL to the domain. We search for the # symbol to find the begining
         //of the true URL, and add 1 to skip it - this is the BeginURL value. We use serverIndex as the end marker.
         //urlresult=DocURL.substring(protocolIndex - 4,serverIndex);
         BeginURL=DocURL.indexOf("#",1) + 1;
         urlresult=DocURL.substring(BeginURL,serverIndex);
         //for display, we need to skip after http://, and go to the next slash
         displayresult=DocURL.substring(protocolIndex + 3 ,serverIndex);
         InsertElementAnchor(urlresult, displayresult);
    function HtmlEncode(text)
    return text.replace(/&/g, '&amp').replace(/'/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
    function TagAttrib(name, value)
    return ' '+name+'="'+HtmlEncode(value)+'"';
    function PrintTag(tagName, needCloseTag, attrib, inner){
    document.write( '<' + tagName + attrib + '>' + HtmlEncode(inner) );
    if (needCloseTag) document.write( '</' + tagName +'>' );
    function URI(href)
    IEVer = window.navigator.appVersion;
    IEVer = IEVer.substr( IEVer.indexOf('MSIE') + 5, 3 );
    return (IEVer.charAt(1)=='.' && IEVer >= '5.5') ?
    encodeURI(href) :
    escape(href).replace(/%3A/g, ':').replace(/%3B/g, ';');
    function InsertElementAnchor(href, text)
    PrintTag('A', true, TagAttrib('HREF', URI(href)), text);
    //-->
    </script>
    <body bgcolor="FFFFFF">
    <table width="410" cellpadding="3" cellspacing="5">
    <tr>
    <td align="left" valign="middle" width="360">
         <h1 style="COLOR:000000; FONT: 13pt/15pt verdana"><!--Problem-->You are not authorized to view this page</h1>
    </td>
    </tr>
    <tr>
    <td width="400" colspan="2">
         <font style="COLOR:000000; FONT: 8pt/11pt verdana">You do not have permission to view this directory or page using the credentials you supplied.</font></td>
    </tr>
    <tr>
    <td width="400" colspan="2">
         <font style="COLOR:000000; FONT: 8pt/11pt verdana">
         <hr color="#C0C0C0" noshade>
    <p>Please try the following:</p>
    <ul>
    <li>Click the Refresh button to try again with different credentials.</li>
    <li>If you believe you should be able to view this directory or page, please contact the Web site administrator by using the e-mail address or phone number listed on the
         <script>
         <!--
         if (!((window.navigator.userAgent.indexOf("MSIE") > 0) && (window.navigator.appVersion.charAt(0) == "2")))
              Homepage();
         //-->
         </script>
         home page.</li>
    </ul>
    <h2 style="font:8pt/11pt verdana; color:000000">HTTP 401.2 - Unauthorized: Logon failed due to server configuration<br>
    Internet Information Services</h2>
         <hr color="#C0C0C0" noshade>
         <p>Technical Information (for support personnel)</p>
         <ul>
         <li>Background:<br>
         This is usually caused by a server-side script not sending the proper WWW-Authenticate header field. Using Active Server Pages scripting this is done by using the <strong>AddHeader</strong> method of the <strong>Response</strong> object to request that the client use a certain authentication method to access the resource.
    <p>
    <li>More information:<br>
    Microsoft Support
    </li>
    </p>
    </ul>
         </font></td>
    </tr>
    </table>
    </body>
    </html>
         {http://xml.apache.org/axis/}HttpErrorCode:401
    (401)Access Denied
         at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:2443)
         at org.apache.axis.client.Call.invoke(Call.java:2366)
         at org.apache.axis.client.Call.invoke(Call.java:1812)
         at engine.citynet_dta.IDTAEngineStub.sendMessage(IDTAEngineStub.java:219)
         at test.Test.main(Test.java:37)

    I hope the sun forum can help for me. Lets see

  • Help to access a JTextArea created in another method ?

    Hello, first I am a new to java although i am a very experienced PHP programmer ... i am having trouble figuring out why i cannot access the JTextArea created inside BuildContainer() in my program below from another method NewFile().
    I am sure its just a scope issue or something along those lines, can someone please help with this and also explain to me whay it does not work and why something elese if offered will ?
    Ive hit a roadblock, and its driving me nuts.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*; 
    public class JEditor implements ActionListener {
         public static void main (String args[])
              JEditor Obj = new JEditor ();
              Obj.BuildGui ();
         public void actionPerformed(ActionEvent e)
         public void BuildGui ()
              JFrame WindowFrame = new JFrame("JEditor");
              JMenuBar WindowMenuBar = BuildMenuBar ();
              BuildContainer(WindowFrame.getContentPane());
              WindowFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              WindowFrame.setJMenuBar(WindowMenuBar);
              WindowFrame.pack();
              WindowFrame.setVisible(true);
         public JMenuBar BuildMenuBar ()
              Action Action_MenuNew = new Action_NewFile();
              Action Action_MenuOpen = new Action_OpenFile();
              Action Action_MenuSave = new Action_SaveFile();
              Action Action_MenuExit = new Action_Exit();
              JMenuBar Obj = new JMenuBar ();
              JMenu MenuObj = new JMenu("File");
              JMenuItem MenuItemNew = new JMenuItem(Action_MenuNew);
              JMenuItem MenuItemOpen = new JMenuItem(Action_MenuOpen);
              JMenuItem MenuItemSave = new JMenuItem(Action_MenuSave);
              JMenuItem MenuItemExit = new JMenuItem(Action_MenuExit);          
              MenuItemNew.setText("New");
              MenuItemOpen.setText("Open");
              MenuItemSave.setText("Save");
              MenuItemExit.setText("Exit");     
              MenuItemNew.addActionListener(this);
              MenuItemOpen.addActionListener(this);
              MenuItemSave.addActionListener(this);
              MenuItemExit.addActionListener(this);
              MenuObj.add(MenuItemNew);
              MenuObj.add(MenuItemOpen);
              MenuObj.add(MenuItemSave);
              MenuObj.addSeparator();
              MenuObj.add(MenuItemExit);
              Obj.add(MenuObj);
              return Obj;
         public JToolBar BuildToolBar ()
              Action Action_ButtonNew = new Action_NewFile();
              Action Action_ButtonOpen = new Action_OpenFile();
              Action Action_ButtonSave = new Action_SaveFile();
              JToolBar Obj = new JToolBar ();
              JButton ButtonNew = new JButton (Action_ButtonNew);
              JButton ButtonOpen = new JButton (Action_ButtonOpen);
              JButton ButtonSave = new JButton (Action_ButtonSave);
              ButtonNew.setIcon(new ImageIcon("IconNew.png", "New"));
              ButtonOpen.setIcon(new ImageIcon("IconOpen.png", "Open"));
              ButtonSave.setIcon(new ImageIcon("IconSave.png", "Save"));
              ButtonNew.setToolTipText("New file");
              ButtonOpen.setToolTipText("Open file");
              ButtonSave.setToolTipText("Save file");
              ButtonNew.addActionListener(this);
              ButtonOpen.addActionListener(this);
              ButtonSave.addActionListener(this);
              Obj.add(ButtonNew);
              Obj.add(ButtonOpen);
              Obj.add(ButtonSave);
              return Obj;
         public void BuildContainer (Container Obj)
              Obj.setLayout(new GridBagLayout());
              GridBagConstraints C = new GridBagConstraints();
              JToolBar ToolBar = BuildToolBar ();
              JTextArea FormTextArea = new JTextArea(10, 50);
              FormTextArea.setLineWrap(true);
              FormTextArea.setWrapStyleWord(true);
              JScrollPane FormScrollPane = new JScrollPane(FormTextArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
              C.gridx = 0;
              C.gridy = 0;
              Obj.add(ToolBar, C);
              C.gridx = 0;
              C.gridy = 1;
              Obj.add(FormScrollPane, C);
         public void NewFile ()
              // Problem is here ? Cannot access the textarea from here, not sure why ?
              FormTextArea.setText("test");
         public class Action_NewFile extends AbstractAction {
              public void actionPerformed(ActionEvent e)
                   NewFile ();
    };

    first I am a new to java You should learn the standard Java naming conventions. Basically variable names and method names should be mixed lower/upper case on each word:
    windowFrame -not WindowFrame
    buildMenuBar() - not BuildMenuBar()
    For class names you do upper case the the first character of each word.
    Your code is confusing to read since everything is upper cased and therefore looks like a reference to a class.

  • How to call a view without event handler onaction method.

    Hi Experts,
    I have develop a WD application. It has three views let view1, view2 and view3.
    In view1 one button is there (onaction) which navigates to view2 through outbound plug  wd_This->Fire_Out_Screen1_Plg(   ). where Out_Screen1 is outbound plug of view1.
    Now view2 appears , I want that after 10 seconds view2 automatically call view3, without action on view2.
    I have written like  wd_This->Fire_OUT_SCREEN2_Plg(  ). where OUT_SCREEN2 is outbound plug of view2, which navigates to inbound plug of view3.
    But its not working. Please suggest how to and where to write code to call a view without action .
    for ur ref.

    Hi Bhagat,
    Yes, you can attach media objects into a view
    Using IFRAME ui element and html mime object.
         Please refer the below link
    To insert video in webdynpro - Web Dynpro ABAP - SCN Wiki
    Using Flash Islands
              Here, you need to have your audio/video file as flash object
         Please refer the below tutorial on flash islands( a generic example )
         Adobe Flash Islands for Webdynpro ABAP
    Hope this helps you.
    Regards,
    Rama

  • I received an order number, a product key, and a password but no serial number.  Now I cannot access Adobe Premiere Elements 13 because it asks me for a serial number.

    I bought and installed Adobe Premiere Elements 13.  The download email provided me with an order number, a product key and a password.  I never received a serial number.  When I attempted to access the software, it required a serial number.  I now cannot use this product because I never received a serial number.

    Burr Leonard please be aware you are posting in a public forum.  I have edited your previous responses to remove your personal information.  If you do wish to continue responding via e-mail then please turn off your e-mail signature prior to responding.
    The suggestion provided by Kglad is information on how to redeem your redemption code.  Did you purchase from Adobe directly?  If not then it is likely you received a redemption code as opposed to a serial number.
    If your order is from Adobe directly then you serial number will be located under your account at http://www.adobe.com/.  You can find additional details at Find your serial number quickly - http://helpx.adobe.com/x-productkb/global/find-serial-number.html.

  • To access context values in java util methods in webdynpro java

    My requirement is to access the wdcontext values in the my util classes.
    kindly  suggest how to access the context value in my util class
    Regards
    Priya

    The context reference must be passed to the .java class in order to access same in the .java
    for example,
    Change MyUtil.java - get the reference to this file.
    public class MyUtil {
    //make a local variable of context element type.
    private IPrivateCompView.IHashContextElement local_context;
    //add context type in Constructor
    public MyUtil (IPrivateCompView.IHashContextElement local_context, /*rest of params*/){
            this.local_context = local_context;
            //.... rest of initialization
    In Webdynpro, initialize the call by passing the context reference.
    IPrivateCompView.IHashContextElement hashmap = wdContext.currentHashContextElement();
    //initialize my class
    new MyUtil( hashmap, /*rest of params*/);
    regards,
    Nikhil

  • Accessing SAP:HopList element in message header from JAVA-mapping

    Dear Experts,
    Is it possible to access the SAP:HopList element from message header in JAVA-mapping? 
    I need this to get the list off all receivers of current message (I have a ReceiverDetermination with two receivers, without any conditions, so both receivers are receiving each message and in InterfaceDetermination to one of the receivers I have a JAVA-mapping, in which I need to know the name of another receiver. And the SAP:HopList is containing this information).
    Or maybe where is some other solution?
    Best Regards,
    Artsiom Anichenka

    That's tricky, since the proper way of doing it would be through BPM.
    Anyway, if you expose your XI interface as a WebService (Soap sender cc) you could access it through Mapping Lookup (lookup works for RFC, DB and Soap lookups). Check https://help.sap.com/javadocs/NW04S/current/pi/index.html
    But be aware that Mapping Lookup API is not intended for inserts/updates (since it doesn't contain any transacational handling), just mere lookups (selects in tables), so I'm not sure it is the best approach for your case.
    Regards,
    Henrique.

Maybe you are looking for

  • How can I stop iPhoto from opening everytime...

    OMG this is maddening. I am a photograher. I shoot tethered to a MBP in lightroom through a Canon 5D Mark III; I recently upgraded to YOSEMITE. Every lovingtime I plug the camera in to the MBP, IPHOTO starts, reads the contents of my 16GB card which

  • PDF printing error in some reports

    Hi, I am using apache-tomcat-6.0.26 + cocoon-2.1.11 as my PDF print server for Apex. I tested the server and found out that, for simple reports with very limited parameters, PDF download worked find. However, for reports that have certain parameters,

  • Pending Rentention amount payable to vendor

    Is any procedure or report where we can get the retention amount which is not paid to the vendor?

  • Can't remember my password

    NNeed help creating a new password to sign into my macbook

  • Error while maintaing olap 11g cube

    Hi, Iam getting the below error while trying to maintain the cube An error has occurred on the server Error class: Express Failure Server error descriptions: INI: Error creating a definition manager, Generic at TxsOqConnection::generic<BuildProcess>