HTMLB Link Control

Hello All,
I am using a HTMLB Link Control,
Here my requirement i am generating the Link ID Dynamically and also it is in loop.How can i call onClientClick and jsObjectNeeded
<hbj:link
          id="<%=ID+i%>"
          text="link"
          reference=""
          target=""
          tooltip=""
          >
     <% *?*.setOnClientClick("myFunction()");%>
</hbj:link>
How can i call the ID for Link?
Regards,
Aksiti

Hi,
   I get your question. Can think of one solution. You can create JSP2 with new portal component. Create a dumy JSP. Now When else statement is called, call dummy JSP with javascript to open JSP2 in new window like this.
window.open(Project.portalcomponentname,title);
Let me know if it works.
Regards,
Harini S

Similar Messages

  • Accessing HTMLB Visible controls in Jspdynpage

    Hi
    I am new to portals, presently i am doing portal application with jspdynpage.Can anyone provide me sample application
    using HTMLB Visible controls(checkbox,radiobutton etc) and to access that controls in jspdynpage.

    Hi lalithavani,
    You can find the tutorials for PDK on help.sap.com On the left side navigation, under SAP Netweaver -> SAP netweaver 2004 -> english -> People Integration-> Portal-> Portal Developer Guide. In that you have sections Go and Create and Core Development Tasks* In that you have all the information given about PDK.
    you can access the same using the following link
    http://help.sap.com/saphelp_nw04/helpdata/en/a9/76bd3b57743b09e10000000a11402f/frameset.htm
    For information about the UI elements and the usage you can access the following link
    http://help.sap.com/saphelp_nw04/helpdata/en/fd/01f34026d70b06e10000000a155106/frameset.htm
    For JSP Dyn pages:https://www.avispublics.com/irj/portalapps/com.sap.portal.pdk.htmlb.htmlbmanuals/docs/dynpage-01.html
    In that you have sections which explains about the layouts, layout controls, visible controls(the UI elements which will be visible) and nonvisible controls(like bookmarks and timers). this sections provides both with the tablib usage and class lib usage and the code snippets are also given.
    If you have java developer role in your portal then under PDK starter & Viewer you can find all the examples given for the UI elements.
    there you can find codes also.
    provide your mailid so that i can send you some sample applications
    Hope this helps.
    regards,
    mrudula
    reward points if helpful
    Edited by: Mrudula Jarugula on Feb 21, 2008 3:36 PM
    Edited by: Mrudula Jarugula on Feb 21, 2008 3:37 PM

  • Nested controllers and htmlb:link

    Hi,
    I have an bsp application with the following architecture:
    Main controller and some subcontrollers created by <bsp:call> on the main page controlled by the main controller.
    Everything in these subcontrollers and main controller works fine, but when I add next subcontroller by calling it from main page using <htmlb:link> - reference to newController.do the application stops working properly.
    I have an instance of model class, created at the beginning in do_init of main controller and I'd like to have the same instance in all of my subcontrollers.
    I'm calling the model class in subcontrollers like this:
    DATA: lo_main_controller TYPE REF TO app_main_controller.
      lo_main_controller ?= m_parent.
      m_model = lo_main_controller->m_model.
    For subcontrollers created by <bsp:call> it works fine, but subcontrollers created by <htmlb:link> have this instance set to initial after every click on the link.
    It is crucial for me to have links in my application and also to have one instance of model for all my subcontrollers.
    Does anyone knows how to solve my problem, maybe creating links in different way?

    This application is really helpful, but I think that there is no <htmlb:link> example.
    My problem is that subcontrollers called by <htmlb:link> are  missing class instance created in the main controller.
    I was trying to create subcontrollers in do_init of main controller, but when I call them by <htmlb:link>, not by <bsp:call> the connection with the main controller is lost.

  • Regarding onClick event of htmlb:Link element.

    Hi All,
    We have a table in which we are displaying error messages.
    The requirment is that each message should be a link which , when clicked should set the focus on respective element in the form.
    I am displaying each message as link as follows:
    <%
      loop at itab_message into wa_message.
                  %>
    count = count + 1.
                  %>
                  </td>
                  <td bgcolor="#F0F0F0">
                  <htmlb:link id            = "link<%= count %>"
                              text          = "<%= wa_message-msg %>"
                              >
                  </htmlb:link>
                  </td>
                  </tr>
                  <%
      endloop.
                  %>
                  </table>
                  <%
      refresh itab_message.
                  %>
                  <%
      endif.
                  %>
    Displayng messages as links is fine , but how can i acchieve the functionality , that on clicking a particular link , the focus should be set on the respective field.
    For Ex:
    There are two error messages:
    1)Enter your name
    2)Select material group from drop down list box.
    If the user clicks 1st message the focus should be set on NAME element.
    Thanks,
    Anubhav.

    Hi,
    this is not gonna be easy but first, you´re not using
    <div class="jive-quote"> </div>
    so you should erase it.
    Second, you have to extend the use of label <htmlb:link> in this way:
    <htmlb:link id        = "link<%= count %>"
                      text          = "<%= wa_message-msg %>"
                      onClientClick = "set_focus('your_field')" >
    And then, some Javascript code:
        function setfocus(myfld) {
                if (document.forms.elements[myfld] != null) {
                    document.forms.elements[myfld].focus();
    Hope it helps.

  • Extended notification by email problems with htmlb:link

    Hi,
    Have problem with link
    using
    <htmlb:link id     ="action"
    reference= "<%= LINK_URL %>" >
    everything is fine till the END
    link is shown OK
    <a class="sapLnk" id="action" href="link" target="blank"> etc.
    but
    when i receive email
    link is with additional "D" char
    can`t get out where it is adding it.
    <a class="sapLnk" id="action" href=D"link"" target=blank"> etc.

    Did some investigation.
    After MHT file goes to SODD table (and all related ones, where page is parsed to HEX)
    In conversion from hex to soli
    all quotes in HTML e.g. " are converted to =3D=22 text =22
    3D is mark of '=' in HEX
    =22 is mark of " in HEX
    and in some part of document display soli table content all these 3D=22 are replaced by related ascii symbol.
    still can`t get why in all code those 3D=22 and =22 are replaced but in href not. Encoder (some where at point of hex-to-soli and vice versa )is adding only D after href in link (<a href="link">text</a>)
    tried to hardcode link without quotes
    e.g.
    <a href=link>text</a>
    encoder added "D" before link and quote after.
    <a href=Dlink">text</a>

  • Link control - open in new tab

    Hi all,
    I've defined a Link control with the following code:
    new sap.ui.commons.Link().bindProperty("text",
      "filename").bindProperty("href", "file").setTarget("_blank")
    everything works smoothly, only the link is being opened in the same window, instead of a different tab/window.
    This happens on both Chrome and IE9.
    Can anyone please suggest what I'm doing wrong?
    Thanks  a lot
    regards
    Vincenzo

    Hi,
    Please see this working example JS Bin - Collaborative JavaScript Debugging&lt;/title&gt; &lt;link rel=&quot;icon&quot; href=&quot;http://static.jsbin.…
    Regards,
    Chandra

  • Message no. DPR_FIN_GECCO024 Error occurred in accounting - see link controlling cockpit (cProjects)

    Hi, everyone
    I'm integrating PS( which is on IDES system ECC6 PH6) with cProjects( which is on DEV system ECC6 PH6 PPM 5.0). I've done customizing in DEV and IDES. The Controlling Method is Multilevel Controlling (Structure Element, Automatic).
    When I'm saving a project with status 'to be transferd', the warning message appeared and I'm failing to assign PS Project automaticlly. But manual assignment works fine.
    Error occurred in accounting - see link controlling cockpit (cProjects)
    Message no. DPR_FIN_GECCO024
    Diagnosis
    Errors occurred when transferring to accounting.
    System Response
    DPR_FIN_GECCO 024
    Procedure
    Choose the Controlling Cockpit (Project Management) link on the Accounting tab page. In the cockpit, you can create a variant with your Project Management project under Selection Variant Orders Project Management. The errors that occurred are then displayed. If no messages are displayed in the controlling cockpit, they have already been processed or deleted. If this is the case, trigger the transfer again.
    No more messages are displayed once the transfer has been carried out successfully (that is, no errors occurred).
    Here is the problem:
    In this Message, I was told to Choose the Controlling Cockpit (Project Management) link on the Accounting tab page. But actually, I can not find the Controlling Cockpit (Project Management) link on the Accounting tab page. It was missing.
    I don't konw what‘s the problem with the missing Controlling Cockpit and how to deal with this warning message getting automatic PS assignment done.
    By the way, I've done IDES test, cProjects and ERP system were integrated on the same system with RFC destination NONE. And that works fine on IDES, so I guess I've done the right customizing in the ERP system( IDES).
    Best Regards,Yemi

    Hi Yemi,
    Controlling cockpit is accessed to view the error details in the accounting integration. This can be accessed through two ways.
    1) In Project-->Accounting tab
    2) Through tcode - COCPCPR
    You can try the second method to view the error details.
    And coming back to your query on project profile config in PS, as Pramod said, by standard SAP delivers a standard profile in SAP PS for cProjects-->PS integration. You can find the same in the below SPRO path.
    Project System-->Structures-->Operative structure-->Work Breakdown structure(WBS)-->Create Project profile
    Project profile name : CPR0001
    This project profile is used when an automatic PS project is created through accounting integration.
    Hope this helps.
    Regards,
    Ravi

  • Link Controls Problem

    I am using RoboHelp HTML X5.0.2 and Word 2003 on Windows XP
    platform. Topics are created in Word 2003 and then link controls
    (See Also, Related Topics, Keyword Search) added in the WYSIWYG
    editor. Everything works fine until a topic is subsequently edited
    in Word 2003 after which all the link controls "disappear". The
    controls still show up in the WYSIWYG editor but will not work
    until I re-do the links. I am in the early stages of a huge project
    and am testing various options to see how future changes can be
    managed. The odd thing is that the first time I tried the procedure
    on a topic with Related Topics link I saw a large red "X" in Word
    and a topic with a Keyword Search link appeared to be unaffected.
    This makes me wonder if there is a setting in Word which can be
    adjusted to prevent this problem. Has anyone else encountered this
    issue? Does anyone have any suggestions?

    Hi Rick,
    Actually your questions is quite reasonable but I just spent
    a considerable amount of time explaining how I came to be using
    this method when everything "disappeared" aos I will have to start
    over!
    Currently, our reference and training documentation (which is
    created and maintained in Lotus Notes) is provided to our clients
    in the form of multiple printed binders. The goal is to now provide
    all this documentation on a single CD. Since the software we are
    documenting runs on a Unix platform and our clients have a wide
    mixture of computing environments, WebHelp seems like the best
    output format.
    The easiest means of exporting the documents from Notes is as
    PDF’s and since RoboHelp can import PDF’s it seemed
    like the best tool for the job. However, when the documents are
    imported into RoboHelp everything is fine except for the tables.
    Unfortunately, all of our screen prints are in table format and all
    of the spacing is stripped in the tables which makes the screen
    prints unreadable and useless. (We are talking about hundreds of
    documents and probably thousands of screen prints!) The problem
    seems to lie with the conversion process from PDF to HTML as I
    tried various other conversion tools and all had the same results.
    My first solution was to bring the PDF documents into
    RoboHelp as baggage files. Although a fairly tedious and
    time-consuming process, it seemed like the answer but there are a
    couple of major drawbacks. First of all, linking cannot be done at
    the document level to cross reference between reference and how-to
    documents. (I was able to work around this to some extent by
    creating navigation topics for each software module which could be
    linked to each other to provide linking at a “group”
    level.) But the biggest deficiency is the inability to do full-text
    searches which would be a major advantage of changing to the
    electronic format.
    At this point, since I already had exported the documents as
    PDF’s, I considered using Adobe Acrobat instead of RoboHelp
    but this did not turn out to be a workable solution.
    So, I decided to return to RoboHelp using a different method
    of getting the documents out of Notes. Notes can export documents
    to RTF format but it means opening each document individually
    (whereas multiple documents can be exported to PDF from a
    “View” without opening each document). I tried various
    methods including opening the RTF document in Word and saving as
    HTML (formatting got messed up), opening the RTF document in Word,
    saving as DOC and importing into RoboHelp (way too cumbersome a
    process when each document is separate and even using RoboHelp for
    Word to import the RTF documents directly (didn’t like it
    – sorry – and also had formatting issues).
    Finally, I devised a method of creating the topics (in
    RobobHelp TOC) using Word 2003. I would then copy the contents of
    the Notes document, paste into the Word topic and save it. (I did
    try pasting contents directly into WYSIWYG editor but all
    formatting was lost – which is why I am using Word!!!)
    Although that may sound tedious, time consuming and cumbersome, it
    actually took about the same amount of time as using the baggage
    file method and, more importantly, it worked great! Topics look
    fine, full-text searches work and links can be placed on individual
    documents for cross referencing – which of course needs to be
    done in the WYSIWYG editor.
    Before proceeding too far, I decided to test what would
    happen in the future when documents need to be replaced with
    updated versions. And that brings us to my current problem. If a
    document containing link controls is edited in Word, the link
    controls added in WYSIWYG will no longer function. It seems like
    the only way to fix this is to re-open the topic in the WYSIWYG
    editor, actually re-do at least one of the links and then re-save
    the topic.
    Sorry for this lengthy response but perhaps you will have a
    better understanding of why I am experiencing the problem. I am
    open to suggestions if anyone knows of a better approach to this
    project.
    Thanks.

  • Tableview tag in htmlb visible controls

    hi gurus,
    i am trying to create a table view using the "tableView" tag presents in the htmlb visible controls.
    i am using the"help.sap.com" as reference website.i understood the details given there partially.so i couldnt complete my task.
    if anybody completed these type of task please send me ur sample code for reference with the codes for  jsp file,model (bean) and controller (.java file).....
    regards,
    tamil

    Hi,
    In JavaDeveloper role you have working examples of TableView.
    I am pasting the code, incase you dont have JavaDeveloper on your server.
    TableViewExample.java
    import bean.TableViewBean;
    import com.sapportals.htmlb.event.Event;
    import com.sapportals.htmlb.event.TableNavigationEvent;
    import com.sapportals.htmlb.page.DynPage;
    import com.sapportals.htmlb.page.PageException;
    import com.sapportals.htmlb.table.TableView;
    import com.sapportals.portal.htmlb.page.JSPDynPage;
    import com.sapportals.portal.htmlb.page.PageProcessorComponent;
    import com.sapportals.portal.prt.component.IPortalComponentContext;
    import com.sapportals.portal.prt.component.IPortalComponentProfile;
    import com.sapportals.portal.prt.component.IPortalComponentRequest;
    public class TableViewExample extends PageProcessorComponent {
      public DynPage getPage() {
        return new MyDynPage();
      // JSPDynPage
      public class MyDynPage extends JSPDynPage {
        public TableView table;
        TableViewBean myBean;
        Used for user initialization. called when the application is started
        public void doInitialization() {
          // Get the request, context and profile from portal platform
          IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
          IPortalComponentContext myContext = request.getComponentContext();
          IPortalComponentProfile myProfile = myContext.getProfile();
          // Initialization of bean
          TableViewBean myBean = new TableViewBean();
          setBeanFromProfile(myProfile, myBean);
          // Put the bean into the application context
          myContext.putValue("myBeanName", myBean);
      Used for handling the input. Generally called each time
        after doInitialization
        public void doProcessAfterInput() throws PageException {
          // Get the request, context and profile from portal platform
          IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
          IPortalComponentContext myContext = request.getComponentContext();
          IPortalComponentProfile myProfile = myContext.getProfile();
          // Get the bean from application context
          table = (TableView) this.getComponentByName("myTableView");
          myBean = (TableViewBean) myContext.getValue("myBeanName");
          setBeanFromProfile(myProfile, myBean);
          myBean.setOldTableView(table);
      Used for handling the output. This method is always called.
        public void doProcessBeforeOutput() throws PageException {
          // set the name of your JSP page
          setJspName("tableview.jsp");
        public void onMyOnNavigate(Event event) throws PageException {
          // NAVIGATION - get the event to recover the actual position
          TableNavigationEvent tne = (TableNavigationEvent) event;
          // With the event we can use method getFirstVisibleRowAfter(); which gives
          // us the actual position (after the event)
          if (myBean != null) { // just for the first time, when there is no bean
            // set the new visibleRow
            myBean.setVisibleFirstRow(new Integer(tne.getFirstVisibleRowAfter()).toString());
        public void onMyOnHeaderClick(Event event) throws PageException {
        public void onMyOnCellClick(Event event) throws PageException {
        public void onMyOnRowSelection(Event event) throws PageException {
        private void setBeanFromProfile(IPortalComponentProfile myProfile, TableViewBean myBean) {
          myBean.setDesign(myProfile.getProperty("design"));
          myBean.setHeaderVisible(myProfile.getProperty("headerVisible"));
          myBean.setFooterVisible(myProfile.getProperty("footerVisible"));
          myBean.setFillUpEmptyRows(myProfile.getProperty("fillUpEmptyRows"));
          myBean.setNavigationMode(myProfile.getProperty("navigationMode"));
          myBean.setSelectionMode(myProfile.getProperty("selectionMode"));
          myBean.setHeaderText(myProfile.getProperty("headerText"));
          myBean.setVisibleFirstRow(myProfile.getProperty("visibleFirstRow"));
          myBean.setVisibleRowCount(myProfile.getProperty("visibleRowCount"));
          myBean.setRowCount(myProfile.getProperty("rowCount"));
          myBean.setTableWidth(myProfile.getProperty("width"));
    D:\usr\sap\J2E\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.pct.pdk.htmlbcontrols\pagelet\tableview.jsp
    <%--- TableView.jsp --%>
    <%@ taglib uri= "tagLib" prefix="hbj" %>
    <%--- Get the Bean named myBeanName from the application context --%>
    <jsp:useBean id="myBeanName" scope="application" class="bean.TableViewBean" />
    <hbj:content id="myContext" >
      <hbj:page title="Template for a portal component">
       <hbj:form id="myFormId">
        <hbj:tableView
                   id="myTableView"
                   model="myBeanName.model"
                   design="<%=myBeanName.getDesign() %>"
                   headerVisible="<%=myBeanName.isHeaderVisible() %>"
                   footerVisible="<%=myBeanName.isFooterVisible() %>"
                   fillUpEmptyRows="<%=myBeanName.isFillUpEmptyRows() %>"
                   navigationMode="<%=myBeanName.getNavigationMode() %>"
                   selectionMode="<%=myBeanName.getSelectionMode() %>"
                   headerText="<%=myBeanName.getHeaderText() %>"
                   visibleFirstRow="<%=myBeanName.getVisibleFirstRow() %>"
                   visibleRowCount="<%=myBeanName.getVisibleRowCount() %>"
                   rowCount="<%=myBeanName.getRowCount() %>"
                   width="<%=myBeanName.getTableWidth() %>"
                   onNavigate="myOnNavigate">
                   <% myTableView.setOnHeaderClick("myOnHeaderClick");
                      myTableView.setOnCellClick(1,"myOnCellClick");
                      myTableView.useRowSelection(myBeanName.getOldTableView());
                      myTableView.setOnRowSelection("myOnRowSelection"); %>
        </hbj:tableView>
        </hbj:form>
      </hbj:page>
    </hbj:content>
    TableViewBean.java
    package bean;
    import com.sapportals.htmlb.table.DefaultTableViewModel;
    import com.sapportals.htmlb.table.TableColumn;
    import com.sapportals.htmlb.table.TableView;
    // Bean for dataexchange between DynPage and JSP
    public class TableViewBean {
      public String design;
      public String headerVisible;
      public String footerVisible;
      public String fillUpEmptyRows;
      public String navigationMode;
      public String selectionMode;
      public String headerText;
      public String visibleFirstRow;
      public String visibleRowCount;
      public String rowCount;
      public String tableWidth;
      public DefaultTableViewModel model;
      private TableView oldtableview;
      public TableView getOldTableView() {
        return this.oldtableview;
      public void setOldTableView(TableView table) {
        this.oldtableview = table;
      public DefaultTableViewModel getModel() {
        return model;
      public void setModel(DefaultTableViewModel model) {
        this.model = model;
      public String getDesign() {
        return design;
      public void setDesign(String design) {
        this.design = design;
      public String isHeaderVisible() {
        return headerVisible;
      public void setHeaderVisible(String headerVisible) {
        this.headerVisible = headerVisible;
      public String isFooterVisible() {
        return footerVisible;
      public void setFooterVisible(String footerVisible) {
        this.footerVisible = footerVisible;
      public String isFillUpEmptyRows() {
        return fillUpEmptyRows;
      public void setFillUpEmptyRows(String fillUpEmptyRows) {
        this.fillUpEmptyRows = fillUpEmptyRows;
      public String getNavigationMode() {
        return navigationMode;
      public void setNavigationMode(String navigationMode) {
        this.navigationMode = navigationMode;
      public String getSelectionMode() {
        return selectionMode;
      public void setSelectionMode(String selectionMode) {
        this.selectionMode = selectionMode;
      public String getHeaderText() {
        return headerText;
      public void setHeaderText(String headerText) {
        this.headerText = headerText;
      public String getVisibleFirstRow() {
        return visibleFirstRow;
      public void setVisibleFirstRow(String visibleFirstRow) {
        this.visibleFirstRow = visibleFirstRow;
      public String getVisibleRowCount() {
        return visibleRowCount;
      public void setVisibleRowCount(String visibleRowCount) {
        this.visibleRowCount = visibleRowCount;
      public String getRowCount() {
        return rowCount;
      public void setRowCount(String rowCount) {
        this.rowCount = rowCount;
      public String getTableWidth() {
        return tableWidth;
      public void setTableWidth(String tableWidth) {
        this.tableWidth = tableWidth;
      public TableViewBean() {
        String[][] data = createData();
    // get a new array for the titles
        String[] colNames = {"LASTNAME", "FIRSTNAME", "STREET", "ZIP", "CITY"};
    // set titles
    /// By default the title also defines the column name - we use both methods to create a
    /// proper title and a column name that is better to work with. You should omit
    /// blanks or other special characters in the column name.
    /// The column name is important later (Part 2) to retrieve data from the tableView
        model = new DefaultTableViewModel(data, colNames);
        model.setKeyColumn(1);
        // To set the cell event we have to get the column and set the setOnCellClick
        // for every column.
        // Get the column with the specified column name.
        TableColumn column = model.getColumn("LASTNAME");
        // Set the event.
        column.setOnCellClick("onMyOnCellClick"); // set the TableCellClickEvent
        column.setTitle("Last Name");
        // Repeat that with the other column. Every cell can have its own onCellClick
        // method names of course. We use the same event method for all cells.
        column = model.getColumn("FIRSTNAME");
        column.setOnCellClick("onMyOnCellClick"); // set the TableCellClickEvent
        column.setTitle("First Name");
        column = model.getColumn("STREET");
        column.setOnCellClick("onMyOnCellClick"); // set the TableCellClickEvent
        column.setTitle("Street");
        column = model.getColumn("ZIP");
        column.setOnCellClick("onMyOnCellClick"); // set the TableCellClickEvent
        column.setTitle("ZIP - Code");
        column = model.getColumn("CITY");
        column.setOnCellClick("onMyOnCellClick"); // set the TableCellClickEvent
        column.setTitle("City");
      private String[][] createData() {
        // just a simple way to produce data, not real life indeed
        String[][] retVal = {
          {"Backer", "Melissa", "528 34th Ave", "94121", "San Francisco"},
          {"Hamilton", "Ann", "4752 17th St", "94117", "San Francisco"},
          {"Hudson", "Bree", "16 Hudson Ct", "94124", "San Francisco"},
          {"Watson", "David", "168 Cervantes Blvd", "94123", "San Francisco"},
          {"Eastwood", "Kenneth", "3367 Troy Dr", "90068", "Los Angeles"},
          {"Peter", "Smith", "524 Arvin St", "93308", "Bakersfield"},
          {"Antony", "Miller", "10430 Wilshire Blvd", "90024", "Los Angeles"},
          {"Moore", "Roger", "1815 W 82d", "90001", "Los Angeles"},
          {"Jackson", "Michael", "3450 Sawtelle Blvd", "90066", "Los Angeles"}
        return retVal;
    Greetings,
    Praveen Gudapati
    [Points are always welcome for helpful answers]

  • Htmlb chart control is not working

    Hi All
    I created chart using htmlb chart control as per documents  given in pdk. but it is not displaying any thing on the browser,I am attaching code ,Please tell me where will the wrong
    Thanks in advance
    Gopal
    Java:
    create a new JCO table
            JCO.Table table = new JCO.Table("DAX");
    //       add the info/header to the table. The header is defined by the column name,
    //       data type and length (see JCO table API for details).
            table.addInfo("GROUPID", JCO.TYPE_CHAR, 50);
            table.addInfo("X", JCO.TYPE_CHAR, 50);
            table.addInfo("Y", JCO.TYPE_CHAR, 50);
            table.addInfo("Z", JCO.TYPE_CHAR, 50);
            table.addInfo("COLOR", JCO.TYPE_CHAR, 50);
            table.addInfo("EXTENSION", JCO.TYPE_CHAR, 150);
    //       append a record to the table. setValue sets the value as string. The second
    //       parameter is the column. The numbers are according to the sequence of the
    //       definition of the header (see above).
            table.appendRow();
            table.setValue("07.2001",0);
            table.setValue("SAP",1);
            table.setValue("158",2);
            table.setValue("20",3);
            table.setValue("10",4);
            table.setValue("href=\"http://www.sap-ag.de/\"",5);
    //       create a JCOChartModel and set the JCO table
           IChartModel model = new JCOChartModel();
            ((JCOChartModel) model).setDataSrc(table);
    myBean.setModel(model1);
    JSP:
    <jsp:useBean id="myBean" scope="session" class="com.sap.barchart.ModelBean" />
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId" >
         <hbj:chart
               id="myChart1"
               model="myBean.model"
               visible="true"
               displayObjectValues="true"
               titleCategories="Company"
               titleValues="Turnover"
               title="Washers by Companies!"
               chartType="BARS_3D"
               colorOrder="DEFAULT"
               height="200"
         />
         </hbj:form>
      </hbj:page>
    </hbj:content>

    HI,
    Check if the bean is null.
    Try displaying it using classlib in the dynpage itself .
    Regards
    Bharathwaj

  • HTMLB Link : opening in new window

    Hello,
    I have a custom worksetmap component (which extends AbstractPortalComponent).
    In one scenario it renders a list of sap systems, on click of which, opens a saplogonpad.
    Now the issue we are facing is that when user clicks on one such link, worksetmap component screen goes blank.
    We are using following way to set HTMLB link properties: -
    titleLink.setReference(<link to sap system>);
    Is there any way to open this in a new window so that worksetmap component stays on its current state?
    Thanks & Regards,
    Amey

    Hi Amey,
    you can use titleLink.onClick="EPCM.doNavigate(targetUrl....);"
    see this page to understand the navigation API.
    Navigation API - Running an Enterprise Portal - SAP Library
    in your case you should either use navigation mode 1 (new window),
    3 (new headerless window) or 10 (new headerless window standards mode).
    according to your previous statement I think you need navigation mode 1.
    BR,
    Saar

  • HTMLB Link issue

    Hi all,
    We have a trouble using htmlb link object.
    How can I link an image?
    I'm using the following code but no work's:
             <hbj:link
                       id="search"
                       text=""
                       target="_TOP"
                       onClick="search_now" />
                    <hbj:image                
                    src="advanced.gif"
                    alt=""  />                  
             </hbj:link>
    Can anyone help us?
    Thanks in advance,
    David

    Hi Anto,
    it's a bug within HTMLB, see hbj:link without onClientClick ?
    I don't know if someone (e.g. MS) has opened an OSS for this, but it seems that this is not the case, for in EP6 SP2 P27 the bug still exists...
    It's not my trouble, it's yours, so I kindly ask you to help SAP getting rid of this one-thousand-years-old-wearing-white-beard-bug... and open an OSS message.
    Hope it helps &
    have a nice weekend
    Detlev

  • Htmlb link setOnClientClick giving NullPointerException

    I have a htmlb link tag in a JspDynPage that I'm trying to execute some javacript with when the link is clicked.  The problem I'm having is that when I run the component I get a NullPointerException.  Here is the code that is failing...
    <hbj:link id="link1" text="test link" reference="" tooltip = "This is a test link" target="_blank" >
         <%
         link1.setOnClientClick("alert('Click')");
         %>
    </hbj:link>
    The error is
    Caused by: java.lang.NullPointerException
    at com.sapportals.htmlb.event.EventManager.renderJavaScriptFragment(EventManager.java:436)
    at com.sapportals.htmlb.event.LinkClickEvent.renderJSFunction(LinkClickEvent.java:95)
    at com.sapportals.htmlb.unifiedrendering.ie5.LinkRenderer.render(LinkRenderer.java:42)
    at com.sapportals.htmlb.rendering.PageContext.render(PageContext.java:982)
    at com.sapportals.htmlb.taglib.LinkTag.doEndTag(LinkTag.java:95)
    I've also try the .setClientEvent(EventTrigger.ON_CLICK,"....") method with simular results.

    Hey Scott
    As it is a link the keyword should be
    onClientClick  and not setOnClientClick
    I guess  now u wont be getting this error
    Chk this
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/ep/sap%20htmlb%20guidelines">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/ep/sap%20htmlb%20guidelines</a>
    Swathi

  • Link/control

    Hi,
    What is the link/control b/w(between) sales,distribution&quality?
    Cheers,
    Govind.

    <b>QM in Sales and Distribution</b>
    <b><u><i>Purpose</i></u></b>
    The Quality Management (QM) component supports Sales and Distribution (SD) by processing quality inspections and creating quality certificates for deliveries. A quality inspection for a delivery allows you to check the quality of a material or product before it leaves the manufacturer's or vendor's premises.
    The Quality Management (QM) component supports your sales and distribution activities:
    With quality inspections for a delivery (based on sales organization, customer, and material)
    With quality certificates for a delivery (with reference to sales organization, customer, and material)
    By managing customer terms of delivery
    <u><i><b>Integration</b></i></u>
    If a delivery is created in SD for a product or material, the QM component automatically creates an inspection lot for the delivery items that must be inspected. A delivery item must be inspected if the corresponding control parameters are active in the SD and QM components. The delivery can be released for the goods issue posting, provided a usage decision to accept the goods is made for the inspection lot.
    When the system creates quality certificates, it accesses the data in Sales and Distribution (for example, customer master and sales order), Quality Management (for example, inspection specification and inspection results), and Materials Management (for example, batch specification).
    <u><i><b>Features</b></i></u>
    The R/3 System creates an inspection lot when a delivery is created. The system supports quality inspections for inspection lots with the following origins:
    <b>Delivery with reference to a sales order
    Delivery without reference to a sales order
    General delivery (without reference to a customer)</b>
    In the control data, you can specify that the inspection lot must be accepted as a prerequisite for the goods issue and you can also indicate whether the inspection should be carried out during the goods issue or by the ship-to party.
    If the stocks for a material are managed in batches, you can select suitable  batches on the basis of batch characteristic values.
    With the help of the where-used list, you can determine which raw material batches were included in which batches of a final product.
    You can identify which batches were dispatched to a customer with which deliveries.
    You can create customer-specific quality certificates together with the other shipping documents, print them out or transmit them by fax, and archive them in an optical archive using ArchiveLink. If customers have the required authorization, they can also create and retrieve quality certificates over the Internet.

  • HTMLB InputField Control

    Hi,
    I am using HTMLB inputField Control,its type is DATE.
    I am using JSP tagLibs.
    If the date entered by user is wrong it autimatically validates and makes the text of the inputfield red.
    When user enters correct date the text does not become red.
    I am using InputField Control for date and I have set the property of InputField showHelp="TRUE" so it is automatically showing Calendar Control next to the InputField.I can't make InputField disabled because the Calendar control also gets disabled when I disable the InputField.
    Now my problem is
    When I am using isValid() method for InputField class during programming it always returns true inspite of entering correct input.
    Can sombody help me on this?
    Parag.

    Hi Parag,
    Just try creating a string before the inputField declaration and then using that (htmlb doesnt like the mix and match in the id like you're trying to do).
    <%
    String tempId;
    for(int x=0;x<5;x++)
    { tempId = "a"+x;
    %>
    <tr>
    <td><hbj:inputfield id ="<%=tempId%>"/></td>
    <%}%>
    Hope this helps,
    Marty

Maybe you are looking for