Tab index for htmlB controls for java

Hi,
How can we set the tab index for HtmlB Conrols for java.
Thanks,
Padmaja

Hi Padmaja,
I'd suggest you use the following:
TabStrip myTabStrip = new TabStrip("myTabStrip");
TabStripItem myItem = myTabStrip.addTab(1); <=== Tab index specified as 1
Index position can be specified using the addTab(<index>) method.
Regards,
Divya

Similar Messages

  • How to create tab indexing for jtextBox

    Dear Forum
    i am user of jDeveloper.
    And working on JClient/Swing application.
    In "Jframe.java" i add various cotrols such as jTextbox,jCombobox ,jlabel etc.
    So how to create tab indexing for these controls.
    Girdher

    Dear Forum
    i am user of jDeveloper.
    And working on JClient/Swing application.
    In "Jframe.java" i add various cotrols such as jTextbox,jCombobox ,jlabel etc.
    So how to create tab indexing for these controls.
    Girdher

  • Need to set the tab order in HTMLB controls

    I readed in another thread that it was not possible to set the tab order in HTMLB controls on BSP forms.
    However it was possible to do a little workaround, by setting the tooltip property, and put in the tabindex in that. Because Browsers do understand the property tabindex.
    Examble:
    <htmlb:inputField id="authorfname1"
    tooltip='tooltip1" tabindex="2'
    value = "<%= authorfname %>" />
    HTML Output would be like this:
    <input title="tooltip1" tabindex="2" class="sapEdfTxtEnbl"
    size="20" name="authorfname1" id="authorfname1" value="">
    <b>It works a little bit differently in my HTMLB controls.</b> Output is like this:
    <input title="tooltip1&quot; tabindex=&quot;2" class="sapEdfTxtEnbl"
    size="20" name="authorfname1" id="authorfname1" value="">
    <i>It doesn't work. " becomes &quot; <b>How do I solve this?</b></i>

    thanks for sharing the info.
    to handle your issue you could do the following
    <% data: replace_string type string .
    clear replace_string .
    replace_string = `<input  tabindex="2"`.
                  %>
                  <bsp:findAndReplace find    = "<input"
                                      replace = "<%= replace_string                  %>" >
                   <htmlb:inputField id="authorfname1"
    tooltip="tooltip1"
    value = "<%= authorfname %>" />
                  </bsp:findAndReplace>
    Hope this helps.
    Regards
    Raja

  • Proplem: Access HTMLB controls from java code

    Hi,
    I am new to iView development for EP6. So my problem should be easy to solve (for you ).
    I created in the NW Dev Studio a JSP DynPage.
    The following files were created or edited:
    1.     JSP file (created)
    2.     java file (created)
    3.     portalapp.xml (edited)
    In order to make the page running (proccessing) I changed the following things:
    1.     JSP file – Add taglib reference to HTMLB-class
    2.     portalapp.xml – Remove the „native“ property so the JSP file will not be accessed directly.
    Now I want to do the following:
    On the JSP page I placed severeal HTMLB controls (textViews).
    From the java code I try to access these controls in the „doProcessBeforeOutput“ method and change/set values.
    But I get all the time a null-Exception.
    Code (JSP)
    <%-- mcmsprovider.jsp --%>
    <%@ taglib uri= "tagLib" prefix="hbj" %>
    <hbj:content id="cntMcmsProvider" >
      <hbj:page title="MCMS Provider Dynpage">
       <hbj:form id="frmMcmsProvider" >
                 <hbj:textView id="tvwScript" encode="false"></hbj:textView>
                 <hbj:textView id="tvwStyle" encode="false"></hbj:textView>
       </hbj:form>
      </hbj:page>
    </hbj:content>
    Code (JAVA):
    public void doProcessBeforeOutput() throws PageException {
           this.setJspName("mcmsprovider.jsp");
           TextView tvw = (TextView) this.getComponentByName("tvwStyle");
           tvw.setText("Here the dynamic text");
    I also tried to add raw text to the form but also null excpetion:
    public void doProcessBeforeOutput() throws PageException {
           this.setJspName("mcmsprovider.jsp");
           Form frmCurrent = (Form) this.getForm();
           frmCurrent.addRawText("<h3>This comes from here</h3>");
    My goal is to dynamically add controls to the form, but until now I think it will be a dream:
    public void doProcessBeforeOutput() throws PageException {
           this.setJspName("mcmsprovider.jsp");
      Form form = (Form)this.getForm();
           TextView tvw  = new TextView("tvwDynamic");
           tvw.setText("Here the dynamic control");
           form.addComponent(tvw);
    The normal page processing runs:
    public void doProcessBeforeOutput() throws PageException {
           this.setJspName("mcmsprovider.jsp");
    Any help is greatly appreciated.

    Eike
    Here is the example straight from the PDK documentation. This should help you a little
    UsingAbstractPortalComponentWithHTMLB.java
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.DataType;
    import com.sapportals.htmlb.enum.GroupDesign;
    import com.sapportals.htmlb.event.Event;
    import com.sapportals.htmlb.rendering.IPageContext;
    import com.sapportals.htmlb.rendering.PageContextFactory;
    import com.sapportals.portal.prt.component.AbstractPortalComponent;
    import com.sapportals.portal.prt.component.IPortalComponentRequest;
    import com.sapportals.portal.prt.component.IPortalComponentResponse;
    public class UsingAbstractPortalComponentWithHTMLB extends AbstractPortalComponent {
        //Fill in your output for "normal" content creation mode here
        protected void doContent(IPortalComponentRequest request, IPortalComponentResponse response) {
            IPageContext myContext = PageContextFactory.createPageContext(request, response);
            if (myContext == null) {
                System.out.println("htmlb service did not start up as expected.");
            Form myForm = myContext.createFormDocument("First Experiment");
            Event lastEvent = myContext.getCurrentEvent();
            Group myGroup = new Group();
            myGroup.setWidth("350");
            myGroup.setTitle("First Experiment");
            myGroup.setDesign(GroupDesign.SAPCOLOR);
            myForm.addComponent(myGroup);
            GridLayout gl = new GridLayout();
            myGroup.addComponent(gl);
            if ((lastEvent != null) && (lastEvent.getComponentName().equals("submit"))) {
                String name = myContext.getDataForComponentId("USER_NAME").toString();
                TextView label = new TextView("Hi, " + name);
                gl.addComponent(1, 1, label);
                Button myButton = new Button("goback", "Go back");
                myButton.setOnClick("goBack"); // ignored anyway
                gl.addComponent(2, 1, myButton);
            } else {
                TextView label = new TextView("What's your name?");
                gl.addComponent(1, 1, label);
                InputField inf = new InputField("USER_NAME");
                inf.setType(DataType.STRING);
                gl.addComponent(1, 2, inf);
                Button myButton = new Button("submit", "Tell");
                myButton.setOnClick("submit");
                gl.addComponent(2, 2, myButton);
            myContext.render();

  • Tab Index for UI elements

    Hiii Everyone,
                   I have a view which is like an entry form and i want to set the focus for the elements in the series in which they are displayed on the view.
    e.g Firstly I have sat the focus on Name then when i press tab from the keyboard it should set the focus to  the Address input field.
    Can anyone tell me how this can be done???
    Thanks
    Ishita

    Hi ishita,
       On tab press the traversal happen as the order that you placed the controls in your view. And if you are using multiple Transparent Containers or any other containers in the view; that would give the same problem that you described before.
    Try with only one container and most likely use Matrix layout for good arrangement of UI elements. This time it will work.
    Regards
       - Vinod

  • How to disable the tab focusing for a JTextField object because those ...

    Hi All,
    Here I need some help. I want to disable the tab focusing( tab index) for a JTextField objects because those objects are set as setEditable(false). Also can u tell me about how to change the tab index orders for JTextFields.
    Many thanks,
    Vijaycanaan.

    I want to disable the tab focusing( tab index) for a JTextField objectsLook through the API and find methods with the word "focus" in the method name.
    Also can u tell me about how to change the tab index orders for JTextFields."How to Use the Focus Sub System":
    http://java.sun.com/docs/books/tutorial/uiswing/misc/focus.html

  • How to change the text for the tabs of a tabstrip control dynamically

    Hi Guys,
        I am having two screens in a transaction.
    1. 1st screen has material number as an input and submit push button
    2. 2nd screen has two tabs in a tabstrip control.
        I want to display material description and plant number as heading for the two tabs based on the material number entered by the user in the 1st screen. Means i want to change the text dynamically. Is there any possible way? If it is there please help me. Very urgent...
    Thanks in advance
    James.

    Hi,
    If you set the "Output field" attribute for a pushbutton/tab, you can also set its text dynamically in the ABAP program. To do this, you must create a field in the ABAP program with the same name as the pushbutton/tab. You must then assign the required text to the field before the screen is displayed.
    For example define a global field in your program called MATNUM(20) and use this as the name for the material number tab on the tabstrip. Then you can assign a text MATNUM = 'Material Number' and this will appear as the tab title. Don;t forget to set the "Output field" attribute on the tab.
    Hope it helps

  • Change tabbing shortcut for controls

    Is there a way to change the tabbing shortcut to the Enter key, instead of using the Tab key? And is it possible to set the tabbing order for controls?  
    Thanks,
    Chris
    Solved!
    Go to Solution.

    I would advise against it as using the Tab key for navigation has been standardized for a long time.  But you could use the Key Down? filter event in an event stucture to modify a keys behaviour.  Specifically if someone hits the enter key pass 9 to Char and ASCII to VKey.  You could also use this to disable the tab key.

  • Module pool ---Problem in finding the line index for the table control

    Hi Friends,
    I am working in Module pool programming.
    My requirement is when i select any record on the lead selection I need to find out the index of the line on which  row i have selected.
    Could any one please suggest me the proper solution how to get the line index for the table control in module pool programming.
    Thanks
    Satish Raju

    Hi Raju,
    Follow the steps
    <li>U should take one variable in your internal table or in structure which is used for table control fields.
          DATA :BEGIN OF itab OCCURS 0 ,
                mark TYPE c ,
                matnr LIKE mara-matnr ,
                matkl LIKE mara-matkl,
                maktx LIKE makt-maktx,
            END OF itab .
       controls: tabc types tableview using screen 100.
    <li>This mark variable should be given in Table control properties. follow the path
    double click on the table control-->attributes .->select w/SelColumn and in that give itab-mark.
    <li>Flow logic of the screen
       process before output.
         MODULE status_0100.
         LOOP AT itab with control tabc
         endloop.
       process after input.
         module cancel at exit-command.
         LOOP AT itab.
           MODULE read_table_control.
         ENDLOOP.
         MODULE user_command_0100.
    <li>read_table_control module code
         MODULE read_table_control INPUT.
         MODIFY itab INDEX tabc-current_line."this will update the itab table
                                             "mark field with 'X ' whatever we
                                             "have selected on table control
         ENDMODULE.
    <li>If you want to Delete some of the records from Table control follow this code u2026Create one pushbutton and give Fucnction code to that and write below code
       CASE okcode.
         WHEN 'DELETE'.
           LOOP AT itab WHERE mark = 'X'.
             DELETE itab.
           ENDLOOP.
       ENDCASE.
    I hope that it helps you.
    Thanks
    Venkat.O

  • Dynamic Object for Checkbox in HTMLB control

    Hi all,
    I want to create dynamic object for Checkbox in HTMLB control.
    I have created dynamic check box in JSP using JSPDynpage. I can select multiple values in the list of checkbox.After clicking the submit button , I have to read the value of checkbox.  For this first i want to create the object for checkbox in controller.
    How can i create the dynamic object?
    Help me in this regard.
    Thanks & Regards
    Hemalatha J

    Krish
      Will this link helps you ????
      <a href="http://help.sap.com/saphelp_nw04/helpdata/en/7d/9b0e41a346ef6fe10000000a1550b0/frameset.htm">Check Box</a>
    Thanks
    Jack
    Allot points if it helps

  • Right Source Control System for Java

    Could anyone tell me which Source Control System (like Visual SourceSafe for .NET) is perfect for Java Project?

    common misconception #1: sourcesafe is for microsoft languages only. it's not, anything can go in it
    common misconception #2: sourcesafe is worth using. it isn't. it's rubbish, and they have the cheek to charge real money for it
    my money is on [ur=http://subversion.tigris.org]subversion, it's open source and pretty useful. others are available, this is just my opinion

  • HTMLB control for displaying clientside error messages

    Hi all,
    I want to display client side validation error messages in a JSP DynPage.I have tried MessageBar but it can't be accessed from JavaScript file.Becuase of that i couldn't write error messages from .js file using MessageBar.Can U plz tell me is there any other HTMLB control or other way to display clientside error messages.
    Urgent
    Thanks
    Sampath.G

    Hi Sampath,
    I have an idea to use message bar in client side.
    1.First create a div at the begining of a page which is always visible.
    2.create some hidden div tags which contains message bars with different error or information messages.
    3. during the validation in javascript if u want to show error message just assign the content of hidden div tag
    to visible div tag.Now u will get error message as like real message bar.
    Then in javascript just write this code
    document.getElementById('sample').innerHTML=document.getElementById('Error').innerHTML
    where sample-->id of visible div
    Error-->id of hidden div inside which u need to write the code for messagebar
    this wiil show the error message at the place of visible div (sample).
    <b>Note:</b>
    If u want to change the messageBar text dynamically that can be possible only through server side only using bean to set and get error messages.
    I am not able to give some sample coding since the code button throws some script error.
    Ragards,
    Tamil K

  • Will there be Mission Control for Java 7?

    Will there be a release of Mission Control that works with Java 7? If so, when?
    I understand from this page, http://blogs.oracle.com/henrik/entry/java_7_questions_answers , that there will be no JRockit for Java 7 since it is being merged with HotSpot but I see no indication when Mission Control will support the new merged JDK.

    We're working on merging JRockit features into HotSpot, and supporting these with a new version of Mission Control.
    Flight Recorder will come in a JDK 7 update.
    JavaOne 2011 pres regarding this:
    https://oracleus.wingateweb.com/scheduler/eventcatalog/eventCatalogJavaOne.do , search for "HotRockit"
    Klara, Mission Control QA

  • Source Code Control for Java development in 6.20

    I am new to Java development. How do you control source code (versioning/transport) for Java development with the base R/3 is 6.20. I believe Java Development Infrastructure (JDI) is only available in 6.40. Is this the correct statement? Anyone that has work on 6.40 with Java can explain?
    Let say we have this setup:
    Applications are in 6.20
    Portal will be EP 6.0
    Do we need Web AS 6.40 to develop Java for Portal with base R/3 of 6.20. Or we can use Developer Studio to create Java accessing R/3 6.20 and display in Portal 6.0. If this is the case, how do you manage transport is you are not using JDI in 6.40.

    Hi Nablan,
    I believe you are development J2EE applications. JDI only runs with WebAS 6.40 which supports J2EE spec. 1.3. The developed J2EE archive will not be able to deploy to WebAS 6.20 which only supports J2EE 1.2 spec. So if you want to deploy the created software build from JDI and deploy it to WebAS 6.20, then the answer is unfortunately no.
    But, if you just want the Portal be able to display your application in an iView inside, then maybe you can just develop and deploy your application to the WebAS 6.40 system. Then create an iView in your EP to point to the app in the 6.40 system. That way your app will not need to deploy to WebAS 6.20.
    Regards,
    Marc

  • HTMLB Controls for Table Format

    How to display information in table format by using HTMLB
    controls in JSP Dynpage from Oracle

    Hi  Srikanth ,
    Here is the code in HtmlB for Displaying content in Table Format.
    You need to retrieve 1stColumn, 2nd Column,,,,, and Rows from the database using sql statements.  Connection con = DriverManager.getConnection(url);
                        ResultSet rs ;
                        String query ="Query to passed to DB";
                        Statement stmt = con.createStatement();
                        rs = stmt.executeQuery(query);
                        if(rs.next())
    private DefaultTableViewModel createNewTable
                                      (DefaultTableViewModel model) {
            Vector data = createData();
            Vector colName = new Vector();
            /* Define column names */
            colName.addElement("1stColumn");
            colName.addElement("2ndColumn");
            colName.addElement("3rdColumn");
            model = new DefaultTableViewModel(data, colName);
            return model;
        private Vector createData() {
            Vector dataVec = new Vector();
            Vector retVector = new Vector();
            /* 1st entry */
            dataVec.addElement("Row 1, Column 1");
            dataVec.addElement("Row 1, Column 2");
            dataVec.addElement("Row 1, Column 3");
            retVector.addElement(dataVec);
            /* 2nd entry */
            dataVec = new Vector();
            dataVec.addElement("Row 2, Column 1");
            dataVec.addElement("Row 2, Column 2");
            dataVec.addElement("Row 2, Column 3");
            retVector.addElement(dataVec);
            /* more entries */
            return retVector;
    private DefaultTableViewModel createNewTable
                                      (DefaultTableViewModel model) {
            Vector data = createData();
            Vector colName = new Vector();
            /* Define column names */
            colName.addElement("1stColumn");
            colName.addElement("2ndColumn");
            colName.addElement("3rdColumn");
            model = new DefaultTableViewModel(data, colName);
            return model;
        private Vector createData() {
            Vector dataVec = new Vector();
            Vector retVector = new Vector();
            /* 1st entry */
            dataVec.addElement("Row 1, Column 1");
            dataVec.addElement("Row 1, Column 2");
            dataVec.addElement("Row 1, Column 3");
            retVector.addElement(dataVec);
            /* 2nd entry */
            dataVec = new Vector();
            dataVec.addElement("Row 2, Column 1");
            dataVec.addElement("Row 2, Column 2");
            dataVec.addElement("Row 2, Column 3");
            retVector.addElement(dataVec);
            /* more entries */
            return retVector;
    private DefaultTableViewModel createNewTable
                                      (DefaultTableViewModel model) {
            Vector data = createData();
            Vector colName = new Vector();
           /* Define column names */
            colName.addElement("1stColumn");
            colName.addElement("2ndColumn");
            colName.addElement("3rdColumn");
            model = new DefaultTableViewModel(data, colName);
            return model;
        private Vector createData() {
            Vector dataVec = new Vector();
            Vector retVector = new Vector();
            /* 1st entry */
            dataVec.addElement("Row 1, Column 1");
            dataVec.addElement("Row 1, Column 2");
            dataVec.addElement("Row 1, Column 3");
            retVector.addElement(dataVec);
            /* 2nd entry */
            dataVec = new Vector();
            dataVec.addElement("Row 2, Column 1");
            dataVec.addElement("Row 2, Column 2");
            dataVec.addElement("Row 2, Column 3");
            retVector.addElement(dataVec);
            /* more entries */
            return retVector;
    Hope This will Be Helpful to you. Reward Points if this helps you.
    Regards,
    Eben Chella Metilda

Maybe you are looking for

  • BPEL Process in BPM Studio

    Hello, First, are there any examples, tutorials, or documentation on how to create and run a BPEL process within BPM Studio (5.7) ? I've gotten quite a ways by trial and error, but am having trouble running / testing out the process. I've tried doing

  • Connecting Mini to Phillips 55PP95 0217 HDTV

    So I am trying to connect a new Mini to a Phillips rear projection HDTV using a DVI-D duel link cable to the DVI port on the TV. When I first started it up, I could see the grey screen with the apple logo and the TV showed 480p, but as soon as it wou

  • Can't Open .aif File in SoundTrack

    I posted this in the SoundTrack forum, but didn't get any bites, so I thought I'd try it here. (I hope I'm not breaking protocol.) I assembled a multi-track soundtrack in ST. It's great, but now I need to make a few modifications. When I try to open

  • US Sales Tax - Some materials are taxable in some states and not others....

    We have lots of materials which are classified and grouped. All materials grouped are taxable somewhere so the material tax classificiation is set to 1. In some states, some material groupings are not taxable whilst others are so there is a State Tax

  • ORA-07445 core dump [kxscod()+30] [SIGSEGV]

    following errors are reported in alert.log database version is 10.2.0.4 on Linux x86-64 platform Wed Aug 3 15:57:47 2011 Errors in file /appl/oracle/admin/TWPPRD01/udump/twpprd01_ora_5444.trc: ORA-07445: exception encountered: core dump [kxscod()+30]