Dynamic values in f:validateLongRange

In the code below, I'm having issues trying to dynamically set the maximum value for the long validation. I'm using apache MyFaces 1.1.1 on tomcat 5.5.12. When i use a normal number, it works, but when i try to use the expression, i get the following error:
java.lang.NullPointerException
     at org.apache.myfaces.convert.ConverterUtils.convertToLong(ConverterUtils.java:97)
public interface Sellable {
     public Long getPurchaselimit();
<h:column>
<f:facet name="header">
<h:outputText value="Quantity" />
</f:facet>
<h:inputText  value="#{q.quantity}" >
  <f:convertNumber integerOnly="true" />
  <f:validateLongRange  minimum="0" maximum="#{q.sellable.purchaselimit}" />
</h:inputText>
<h:outputText value="#{q.quantity}" rendered="#{q.sellable.purchaselimit == 1}" />
</h:column>

After some further investigation, i believe there might be a bug.
The code below works, where cartBean.limit returns a long. The value of q.sellable.purchaselimit is also valid and does appear properly in the h:outputText.
Any further help is appreciated.
<h:inputText id="quantity" value="#{q.quantity}" >
     <f:convertNumber integerOnly="true" />
     <f:validateLongRange minimum="0" maximum="#{cartBean.limit}" />
</h:inputText>
<h:outputText value="#{q.quantity}" rendered="#{q.sellable.purchaselimit == 1}" />
<htm:br />
<h:outputText value="#{q.sellable.purchaselimit}" />
<htm:br />
<h:outputText value="#{cartBean.limit}" />

Similar Messages

  • How to know the dynamic values for this :AND category_id_query IN (1, :3, )

    Hi Team,
    R12 Instance :
    Oracle Installed Base Agent User Responsibility --> Item Instances -->
    Item Instance: Item Instances > View : Item Instance : xxxxx> Contracts : Item Instance : xxxxx> Service Contract: xxxxx>
    In the above page there are two table regions.
    Notes.
    -------------------------------------Table Region---------------------------
    Attachments
    -------------------------------------Table Region---------------------------
    --the attachments are shown using the query from the fnd_lobs and fnd_docs etc...
    I want to know what are the document types are displayed in this page ?
    --We developed a custom program to attach the attachments to the  services contracts and the above seeded OAF page displays those ..as needed.
    But after recent changes..the Attachments--> table region is not showing the attachments.
    I have verified the query..and could not find any clue in that..
    but i need some help if you guys can provide..
    SELECT *
    FROM
    *(SELECT d.DOCUMENT_ID,*
    d.DATATYPE_ID,
    d.DATATYPE_NAME,
    d.DESCRIPTION,
    DECODE(d.FILE_NAME, NULL,
    *(SELECT message_text*
    FROM fnd_new_messages
    WHERE message_name = 'FND_UNDEFINED'
    AND application_id = 0
    AND language_code  = userenv('LANG')
    *), d.FILE_NAME)FileName,*
    d.MEDIA_ID,
    d.CATEGORY_ID,
    d.DM_NODE,
    d.DM_FOLDER_PATH,
    d.DM_TYPE,
    d.DM_DOCUMENT_ID,
    d.DM_VERSION_NUMBER,
    ad.ATTACHED_DOCUMENT_ID,
    ad.ENTITY_NAME,
    ad.PK1_VALUE,
    ad.PK2_VALUE,
    ad.PK3_VALUE,
    ad.PK4_VALUE,
    ad.PK5_VALUE,
    d.usage_type,
    d.security_type,
    d.security_id,
    ad.category_id attachment_catgeory_id,
    ad.status,
    d.storage_type,
    d.image_type,
    d.START_DATE_ACTIVE,
    d.END_DATE_ACTIVE,
    d.REQUEST_ID,
    d.PROGRAM_APPLICATION_ID,
    d.PROGRAM_ID,
    d.category_description,
    d.publish_flag,
    DECODE(ad.category_id, NULL, d.category_id, ad.category_id) category_id_query,
    d.URL,
    d.TITLE
    FROM FND_DOCUMENTS_VL d,
    FND_ATTACHED_DOCUMENTS ad
    WHERE d.DOCUMENT_ID = ad.DOCUMENT_ID
    *) QRSLT*
    WHERE ((entity_name    ='OKC_K_HEADERS_V'-- :1
    AND pk1_value          IN ( 600144,599046) --:2
    AND category_id_query IN (1, :3, :4, :5, :6, :7) )
    AND datatype_id       IN (6,2,1,5)
    AND (SECURITY_TYPE     =4
    OR PUBLISH_FLAG        ='Y')))
    --='000180931' -- 'ADP118'
    The above seeded query is the one which is used for table region to retrieve the data..
    how to know the dynamic values for this : AND category_id_query IN (1, :3, :4, :5, :6, :7) )
    --Sridhar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi Patricia,
    is it working for restricted key figure and calculated key figure ??
    Note Number Fisc Period Opening Days
    1 1 2
    2 1 3
    3 1 0
    because I have other restriction, so I create two restricted key figure..
    RK1  with restriction :  Total Number of Note,
    RK2  with restriction :  Total Opening Days ,
    then I Created a calculated key figure, average opening days in a period
    CK1 = RK2 / RK1..
    in this case, I am not sure if it will work or not..
    for example, during RK2 calclation, it might be this   2+3 = 5, the line with 0 will be ignored..
    during RK1 calcualtion, it might be 1 + 1 + 1 = 3. ---> Not sure in this case, the line with opening days 0 will be calculated or not..
    could you please confirm..

  • Dynamic value assignment to a particular column in a vertical ALV

    Hi Friends,
    In the present program ALV has 44 fields and output row is only one(with some field editable).
    My requirement is to change present output to vertical ALV and editable field should be available
    as editable.
    Now I have changed this to transposed ALV manually(not dynamically) with required fields editable.
    Now there is 44 rows and two column "FIELD and "VALUE'.Some values in the second column is editable.
    Previously output was like this:
    field1   field2  field3 ...
    val1     val2    val3   ...
    Now output is like:
    FIELD   VALUE
    field1  value1(type INT)
    field2  value2(type char5) Editable(need F4 help)
    field3  value3(type date)
    My present structure declaration is:
    types: begin of ty_itab,
            field type char 50,
            value type char70,
            celltab type lvc_t_styl,(for editing some values in VALUE column).
           end of ty_itab.
    data: itab type standard table of ty_itab.
    Now the second column i have declared as CHAR70 which contains only char
    values because to put all differt types of values to one single column named
    'VALUE'.
    But as field1 field2 field3... had differnt type of value like integer char date...I need to validate some values
    (specially those which are editable) before saving to custom DB table.
    So I need dynamic value assignment to VALUE column when preparing internal table for display.
    What I want to say is that VALUE column should be able to contain different type of values like INT, DATE, CHAR...etc
    Is the requirement is feasible?
    If yes then How should I declare the structure and populate different type of values within single column 'VALUE'.
    Also is it possible to have F4 helps in the second column (VALUE)???

    Hi Manab,
    I did something comparable: We have a very complex transaction with several subscreens with multiple fields to be filled with complex logic to create a very special contract. The requirement was to create a method to create a copy of this contract being able to apply some changes.
    I created a wizard (transaction SBPT_WIZARD_BUILDER - Wizard-Builder) to accomplish that. I grouped all the fields to just 3 logical groups and thius created 3 stesp where the user gets an ALV as you describe, but we have the rows like FIELD  with the new value editable. Additionally I have hidden fields with table name and field name so that I can determine the characteristics (datatype) at run time.
    The value fields are just strings (every ALV field is a text field on the surface).
    For editable fields, you have an event DATA_CHANGED. I used this method as a handler for the event:
    (I will leave out the wizard part here - maybe a good idea for a blog to explain that)
    METHOD handle_data_changed.
        CALL FUNCTION 'RS_CONV_EX_2_IN'
          EXPORTING
             input_external                     = <mod>-value
             table_field                        = ls_tabfield
    I also created handlers for F1 and F4
    Handler for CL_GUI_ALV_GRID->ONF1
    METHOD handle_f1.
        CALL FUNCTION 'HELP_OBJECT_SHOW_FOR_FIELD'
          EXPORTING
            called_for_tab   = lv_tabname
            called_for_field = lv_fieldname
          EXCEPTIONS
            object_not_found = 1
            sapscript_error  = 2
            OTHERS           = 3.
    Handler for CL_GUI_ALV_GRID->HANDLE_F4
    METHOD handle_f4.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
        EXPORTING
          tabname    = lv_tabname
          fieldname  = lv_fieldname
        TABLES
          return_tab = lt_return_tab
        EXCEPTIONS
          OTHERS     = 5.
        er_event_data->m_event_handled = abap_true.
    * if er_event_data->m_event_handled is not set to abap_true, system will handle it.
    * In this context the message 'Keine Eingabehilfe verfügbar' will be displayed
    ENDMETHOD.
    This is just an excerpt from my project. It shows that you can do more in ALV as you knew.
    I tried to post a little more but the formatting break down, possibly a result of the character limit
    Regards,
    Clemens

  • Store dynamic value in jsp

    hi,
    i have two page i pass value from one page to another and got it. now i want to store that dynamic value which i pass. i store it and got it my problem is that when page submit then value become null.
    i have three submit button.
    my code is
    <%@ page import ="javax.servlet.*;"  %>
    <%@ page import ="javax.servlet.http.*;" %>
    <%@ page import ="java.io.*;" %>
    <%@ page import ="java.sql.*;" %>
    <%!   Connection con = null;
        ResultSet rs;
        Statement stmt = null;
        String query = null;
        ResultSet rs1;
        Statement stmt1 = null;
        String query1 = null;
        ResultSet rs2;
        Statement stmt2 = null;
        String query2 = null;
    %>
    <input type="hidden" value="<%=request.getParameter("ID")%>" name="id_4_add" />
    <%String datamt = request.getParameter("id_4_add");%>
    <input type="hidden" value="<%=datamt%>" name="id_4_" />
    <%String datamt1 = request.getParameter("id_4_");%>
    <input type="hidden" value="<%=datamt1%>" name="id_4_1" />
    <%String datamt2 = request.getParameter("id_4_1");%>
    <%
                String data1 = request.getParameter("ID");
                String grp_name = request.getParameter("param1");
                out.println(data1);
                out.println(grp_name);
    %>
    <%    try {
                    String username = "root";
                    String password = "root";
                    String url = "jdbc:mysql://localhost/eureka_final?user=root&password=root";
                    Class.forName("com.mysql.jdbc.Driver").newInstance();
                    con = DriverManager.getConnection(url, username, password);
                } catch (Exception e) {
    // out.println("Sorry failed to connect to the Database. " + e.getMessage());
    %>
    <%
                java.util.Date utilDate = new java.util.Date();
                java.sql.Date sqlDate = new java.sql.Date(utilDate.getTime());
                String teacher_id = "";
                Object usr_name = session.getValue("Username");
                Object ur_type = session.getValue("Usertype");
                stmt = con.createStatement();
    ///Teacher user
                if (ur_type == "teacher") {
                    try {
                        String search_teacher = "select tchr_id from teacher where username = '" + usr_name + "'  ";
                        rs = stmt.executeQuery(search_teacher);
                        if (rs != null) {
                            while (rs.next()) {
                                teacher_id = rs.getString("tchr_id");
                            //      String teacher_Nm = rs.getString("username");
                    } catch (Exception e) {
                        out.println(e.getMessage());
                    } finally {
                        rs.close();
                        stmt.close();
    //Admin user
                if (ur_type == "admin") {
                    stmt = con.createStatement();
                    try {
                        String search_teacher = "select other_id from other_user where username = '" + usr_name + "'  ";
                        rs = stmt.executeQuery(search_teacher);
                        if (rs != null) {
                            while (rs.next()) {
                                teacher_id = rs.getString("other_id");
                            //      String teacher_Nm = rs.getString("username");
                    } catch (Exception e) {
                        out.println(e.getMessage());
                    } finally {
                        rs.close();
                        stmt.close();
    %>
    <%          if ("D".equals(request.getParameter("hidMode")) && con != null) {
                    String chk_value;
                    try {
                        stmt = con.createStatement();
                        query = "update student set groups = '' WHERE student_id='" + request.getParameter("hidSelDel") + "'";
                        stmt.executeUpdate(query);
                        response.sendRedirect("search_grp_try.jsp?ID1=" + datamt + " ");
                    } catch (Exception e) {
    // out.println("Sorry failed to delete values from the database table. " + e.getMessage());
                if ("U".equals(request.getParameter("hidMode")) && con != null) {
                    try {
                        stmt = con.createStatement();
                        query = "UPDATE create_group SET group_name = '" + request.getParameter("txtBookName") + "', group_type = '" + request.getParameter("txtSynopsis") + "', group_details = '" + request.getParameter("txtAuthorName") + "' WHERE group_id = '" + request.getParameter("hidBookID") + "'";
                        stmt.executeUpdate(query);
                        response.sendRedirect("search_grp_try.jsp");
                    } catch (Exception e) {
    //out.println("Sorry failed to delete values from the database table. " + e.getMessage());
                /*  if ("I".equals(request.getParameter("hidMode")) && con != null) {
                String gp_name  = request.getParameter("txtBookName");
                String gp_type  = request.getParameter("txtSynopsis");
                String gp_detail  = request.getParameter("txtAuthorName");
                String publishername = request.getParameter("txtPublisherName");
                try {
                if (gp_name.length() > 0 && gp_type.length() > 0 && gp_detail.length() > 0) {
                stmt = con.createStatement();
                query = "INSERT INTO create_group (group_name, group_type, create_date, group_details,group_creator_id) VALUES ('" + gp_name + "','" + gp_type + "','" + sqlDate + "','" + gp_detail + "','" + teacher_id + "')";
                //String query = "INSERT INTO create_group (group_name, group_type, create_date, group_details,group_creator_id) VALUES ('" + gp_name + "','" + gp_type + "','" + sqlDate + "','" + gp_detail + "','" + teacher_id + "')";
                stmt.executeUpdate(query);
                response.sendRedirect("search_grp_try.jsp");
                } else {
                out.println("Group creation details cannot be left blank.");
                } catch (Exception e) {
                //out.println("Sorry failed to insert values into the Database table. " + e.getMessage());
                out.println("<HTML>");
                out.println("<HEAD>");
                out.println("<SCRIPT LANGUAGE='JavaScript'>");
                out.println("function setMode() {");
                out.println("document.frmBook.txtBookName.value='';");
                out.println("document.frmBook.txtSynopsis.value='';");
                out.println("document.frmBook.txtAuthorName.value='';");
                out.println("document.frmBook.txtPublisherName.value='';");
                out.println("}");
                out.println("function setDelMode()");
                out.println("{");
                out.println("document.frmBook.hidMode.value='D';");
                out.println("formDeleteValues('hidSelDel');");
                out.println("}");
                out.println("function formDeleteValues(hidden)");
                out.println("{");
                out.println("var selValues = '';");
                out.println("for (i=0;i<document.forms[0].elements.length;i++)");
                out.println("{");
                out.println("if(document.forms[0].elements.type == \"checkbox\")");
    out.println("{");
    out.println("if (document.forms[0].elements[i].checked == true) {");
    out.println("selValues = selValues + document.forms[0].elements[i].value + \",\";");
    out.println("}");
    out.println("}");
    out.println("}");
    out.println("if (selValues.length < 1)");
    out.println("{");
    out.println("alert(\"Please choose records you wish to delete.\");");
    out.println("}");
    out.println("else");
    out.println("{");
    out.println("selValues = selValues.substring(0,selValues.length-1);");
    out.println("eval(\"document.forms[0].\"+hidden+\".value = '\" +selValues+\"';\");");
    out.println("document.forms[0].submit();");
    out.println("}");
    out.println("}");
    out.println("function setEditMode(BookID,BookName, Synopsis, AuthorName)");
    out.println("{");
    out.println("document.frmBook.hidBookID.value = BookID;");
    out.println("document.frmBook.txtBookName.value = BookName;");
    out.println("document.frmBook.txtSynopsis.value = Synopsis;");
    out.println("document.frmBook.txtAuthorName.value = AuthorName;");
    // out.println("document.frmBook.txtPublisherName.value = PublisherName;");
    out.println("document.frmBook.hidMode.value='U';");
    out.println("}");
    %>
    function copyField()
    document.forms["frmBook"].id_4_.value = document.forms["frmBook"].id_4_add.value;
    return true;
    <%
    out.println("</SCRIPT>");
    out.println("<TITLE>Create Group</TITLE>");
    out.println("</HEAD>");
    %>
    <BODY style="background-color:#EFEFEF; solid:#cccccc;">
    <FORM ACTION='search_grp_try.jsp' METHOD='get' NAME='frmBook' >
    <table style=" width:100%; " align="center" >
    <tr>
    <td height="20%" width="40%">
    <jsp:include page="../toparea1.jsp">
    <jsp:param name="" value="" />
    </jsp:include>
    </td>
    </tr>
    </table>
    <table style=" width:100%; height:250px;" align="center" >
    <tr>
    <td width="20%" valign="top" >
    <jsp:include page="../side_menu_bar.jsp" >
    <jsp:param name="side" value="sidemenu" />
    </jsp:include>
    </td>
    <INPUT NAME="hidMode" TYPE="hidden" VALUE="<%=request.getParameter("ID")%>">
    <%
    String id_passes = request.getParameter("hidMode");
    out.println("<INPUT NAME='hidSelDel' TYPE='hidden'>");
    out.println("<INPUT NAME='hidBookID' TYPE='hidden'>");
    out.println("<TD valign='top'>");
    out.println("</TD>");
    if (con != null) {
    try {
    stmt = con.createStatement();
    query = "select student_id,username,std_Fname,std_Lname,groups from student where groups LIKE '%" + data1 + "%'";
    rs = stmt.executeQuery(query);
    out.println("<TR ALIGN='center' WIDTH='30%' COLSPAN='10'>");
    out.println("<TABLE ALIGN='center' BORDER='1' BORDERCOLOR='skyblue' CELLPADDING='0' CELLSPACING='0' WIDTH='430px' NAME='tblSecondChild'>");
    out.println("<TR BGCOLOR='black'>");
    out.println("<TD WIDTH='12%' ALIGN='center'><INPUT NAME='cmdDelete' TYPE='button' VALUE='Delete' onClick='setDelMode();'></TD>");
    out.println("<TD><FONT COLOR='#FFFFFF'>Group Name</FONT></TD>");
    out.println("<TD><FONT COLOR='#FFFFFF'>Group Type</FONT></TD>");
    out.println("<TD><FONT COLOR='#FFFFFF'>Group Detail</FONT></TD>");
    out.println("</TR>");
    if (rs != null) {
    while (rs.next()) {
    out.println("<TR>");
    out.println("<TD><INPUT TYPE='checkbox' NAME='chk" + rs.getString("student_id") + "' VALUE='" + rs.getString("student_id") + "'></TD>");
    out.println("<TD STYLE=\"cursor:pointer\" onMouseDown=\"setEditMode('" + rs.getString("student_id") + "', '" + rs.getString("username") + "', '" + rs.getString("std_Fname") + "', '" + rs.getString("std_Lname") + "');\">" + rs.getString("username") + "</TD>");
    out.println("<TD STYLE=\"cursor:pointer\" onMouseDown=\"setEditMode('" + rs.getString("student_id") + "', '" + rs.getString("username") + "', '" + rs.getString("std_Fname") + "', '" + rs.getString("std_Lname") + "');\">" + rs.getString("std_Fname") + "</TD>");
    out.println("<TD STYLE=\"cursor:pointer\" onMouseDown=\"setEditMode('" + rs.getString("student_id") + "', '" + rs.getString("username") + "', '" + rs.getString("std_Fname") + "', '" + rs.getString("std_Lname") + "');\">" + rs.getString("std_Lname") + "</TD>");
    %>
    <% // out.println("<TD STYLE=\"cursor:pointer\" onMouseDown=\"setEditMode('" + rs.getString("group_id") + "', '" + rs.getString("group_name") + "', '" + rs.getString("group_type") + "', '" + rs.getString("group_details") + "') + "');\">" + rs.getString("PublisherName") + "</TD>");
    out.println("</TR>");
    out.println("</TABLE>");
    } catch (Exception e) {
    out.println("Sorry Failed to execute the query. " + e.getMessage());
    %>
    </tr>
    </table>
    <a href="cr_grp.jsp">back</a>
    <table>
    <%! String srch_name1 = "";%><% srch_name1 = request.getParameter("search_stu");%>
    <tr><td><input type="text" id="search_stu" name="search_stu" value="<%=srch_name1%>" size="42" /></td>
    <td> <input type="submit" id="cmSearchStu_group" name="cmSearchStu_group" value="Search Student" />
    </td></tr>
    </table>
    <input type="hidden" id="search_stu_store" name="search_stu_store" value="<%=request.getParameter("ID")%>" size="42" />
    <input type="hidden" id="search_stu_store_name" name="search_stu_store_name" value="<%=request.getParameter("param1")%>" size="42" />
    <%! String vl_data;
    String student_Nm1;
    String group_ID_from_student;
    PreparedStatement ps;
    %>
    <%
    //Pass Id and Group name
    ////////end pass value////////
    if (request.getParameter("cmSearchStu_group") != null) {
    String scondPass = request.getParameter("search_stu_store");
    String scondPassName = request.getParameter("search_stu_store_name");
    String srch_name = request.getParameter("search_stu");
    out.println(srch_name);
    stmt = con.createStatement();
    try {
    //student where groups LIKE '%" + data1 + "%'";
    String search_stud = "select username,student_id,groups from student where std_Lname LIKE '%" + srch_name + "%' or std_Mname LIKE '%" + srch_name + "%' or username LIKE '%" + srch_name + "%' or std_Fname LIKE '%" + srch_name + "%' or city_c LIKE '%" + srch_name + "%' or state_c LIKE '%" + srch_name + "%' or pincode_c LIKE '%" + srch_name + "%' or city_p LIKE '%" + srch_name + "%'or state_p LIKE '%" + srch_name + "%' or pincode_p LIKE '%" + srch_name + "%' or std_DOB LIKE '%" + srch_name + "%' or std_gender LIKE '%" + srch_name + "%' or std_bloodGroup LIKE '%" + srch_name + "%' or std_addmission_no LIKE '%" + srch_name + "%' or std_transport LIKE '%" + srch_name + "%' or std_medicalNotes LIKE '%" + srch_name + "%' or std_home_no LIKE '%" + srch_name + "%' or std_emergency_no LIKE '%" + srch_name + "%' or std_email LIKE '%" + srch_name + "%' or std_parentemail LIKE '%" + srch_name + "%' or std_nationality LIKE '%" + srch_name + "%' or student_id LIKE '%" + srch_name + "%' or groups LIKE '%" + srch_name + "%' ";
    rs = stmt.executeQuery(search_stud);
    if (rs != null) {
    while (rs.next()) {
    String std_id1 = rs.getString("student_id");
    student_Nm1 = rs.getString("username");
    group_ID_from_student = rs.getString("groups");
    // response.sendRedirect("search_grp_try.jsp?ID1="+scondPass+"&parameter1="+scondPassName+"#srch_grp_stud ");
    %>
    <input type="checkbox" name="<%=std_id1%>" value="<%=std_id1%>"/>
    <INPUT MAXLENGTH="255" NAME="txtstud_name" TYPE="text" VALUE="<%=student_Nm1%>" >
    <% String chkBxVal = request.getParameter(std_id1);
    out.println(chkBxVal);
    out.println(id_passes);
    out.println(std_id1);
    // out.println(m);
    if ((chkBxVal != null)) {
    try {
    query2 = "update student set groups = " + scondPass + " WHERE student_id='" + std_id1 + "'";
    ps = con.prepareStatement(query2);
    ps.executeUpdate();
    String sendTo = "search_group.jsp?id='" + request.getParameter("ID") + "' ";
    response.sendRedirect(sendTo);
    } catch (Exception e) {
    out.println(e.getMessage());
    } catch (Exception e) {
    out.println(e.getMessage());
    } finally {
    rs.close();
    stmt.close();
    // con.close();
    %>
    <% if (request.getParameter("Add_student") != null) {
    String scondPass = request.getParameter("search_stu_store");
    String scondPassName = request.getParameter("search_stu_store_name");
    %>
    <input type="hidden" id="search_stu_str_name" name="search_stu_str_name" value="<%=request.getParameter("param1")%>" size="42" />
    <%String srch_name = request.getParameter("search_stu");
    String valueGetd = request.getParameter("search_stu_str_name");
    stmt = con.createStatement();
    try {
    String search_stud = "select username,student_id,groups from student where std_Lname = '" + srch_name + "' or std_Mname ='" + srch_name + "' or username='" + srch_name + "' or std_Fname='" + srch_name + "' or city_c='" + srch_name + "' or state_c='" + srch_name + "' or pincode_c='" + srch_name + "' or city_p='" + srch_name + "'or state_p='" + srch_name + "' or pincode_p='" + srch_name + "' or std_DOB='" + srch_name + "' or std_gender='" + srch_name + "' or std_bloodGroup='" + srch_name + "' or std_addmission_no='" + srch_name + "' or std_transport='" + srch_name + "' or std_medicalNotes='" + srch_name + "' or std_home_no='" + srch_name + "' or std_emergency_no='" + srch_name + "' or std_email='" + srch_name + "' or std_parentemail='" + srch_name + "' or std_nationality='" + srch_name + "' or student_id='" + srch_name + "' or groups='" + srch_name + "' ";
    rs = stmt.executeQuery(search_stud);
    if (rs != null) {
    while (rs.next()) {
    String std_id1 = rs.getString("student_id");
    student_Nm1 = rs.getString("username");
    group_ID_from_student = rs.getString("groups");
    // response.sendRedirect("search_grp_try.jsp?ID1="+scondPass+"&parameter1="+scondPassName+"#srch_grp_stud ");
    %>
    <input type="checkbox" name="<%=std_id1%>" value="<%=std_id1%>"/>
    <INPUT MAXLENGTH="255" NAME="txtstud_name" TYPE="text" VALUE="<%=student_Nm1%>" >
    <% String chkBxVal = request.getParameter(std_id1);
    String symbl = " ; ";
    /* if((group_ID_from_student).equals(null)){
    group_ID_from_student="";
    else{                           
    */ String merge_grp = group_ID_from_student + symbl;
    String final_merge = merge_grp + datamt1;
    if ((chkBxVal != null)) {
    try {
    query2 = "update student set groups = '" + final_merge + "' WHERE student_id='" + std_id1 + "'";
    ps = con.prepareStatement(query2);
    ps.executeUpdate();
    } catch (Exception e) {
    out.println(e.getMessage());
    } catch (Exception e) {
    out.println(e.getMessage());
    } finally {
    rs.close();
    stmt.close();
    con.close();
    // response.sendRedirect("search_grp_try.jsp?ID1=" + id_passes + "&parameter1=" + scondPassName + "#srch_grp_stud ");
    %>
    <input type="submit" id="Add_student" name="Add_student" value="Add" />
    <table style="width:100%; height:100px; " align="center" >
    <td >
    <%@ include file="../pagefooter.jspf" %>
    </td>
    </table>
    <input type="text" value="<%=request.getParameter("ID")%>" name="id_4_add5" />
    <%String datamt4 = request.getParameter("id_4_add5");%>
    <input type="text" value="" name="id_4_" />
    <input type="submit" onclick="return copyField();" />
    <% out.println("</FORM>");
    out.println("</BODY>");
    out.println("</HTML>");
    %>
    reply me                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    This is a little hard to follow and want to make sure I understand:
    You can pass the value from page1 to page2. But when you submit on page2 to another page, the value is null?
    My first recommendation is: Pull all HTML code out of scriptlets that is using out.println.
    But to answer your question, you don't have the hidden fields in the <FORM> tag. They need to be places in the form tag in order for the form to pass the values when you submit.

  • How to assign the dynamic value of PV to Sip Header in ICM?

    Hi everybody,
    I would like to ask your help, please. We are working on Temporary IVR Handoff (ICM+CVP). I need to add/modify a customer Sip header in ICM transfer script. The value for that header is dynamic and stored in the one of ICM Call Peripherial Variables (PV9, for examle).
    Is it possible somehow to assign the value of that PV9 to Sip header (Set Variable Call.SipHeader)? I tried to do it but unfortunally without any success. I can assign any static string, but how to assign the value of the PV??? That's the question...
    For static string assignment the syntax of the Set Variable Node (Call.SipHeader) looks like that:
    "IVR-Handoff~add~It's Cisco"
    and it works fine.
    For dynamic value (PV9) I tried:
    "IVR-Handoff~add~Call.PeripherialVariable9" - it add Call.PeripherialVariable9 as a string, but not it's value;
    "IVR-Handoff"~add~Call.PeripherialVariable9 - returns a syntax error;
    Call.PeripherialVariable9 - no Sip header is added.
    What do you think? Is it doable at all?
    Any ideas, answers or examples how to do it would be much appreciated.
    Thank you in advance.
    Dmitriy.

    Hi Senthil,
    Yes! It works, but with the little difference. The right answer is:
    "IVR-Handoff~add~"&Call.PeripherialVariable9
    (Call.PeripherialVariable9 is without quotes, otherwise it insert the name of the variable, but not it's value)
    The other solution is shown here (thanks to Paul Tindall):
    http://developer.cisco.com/web/cvp/forums/-/message_boards/message/15627744?p_p_auth=6psgR8ML
    concatenate("IVR-Handoff~add~",Call.PeripherialVariable9)
    Thank you so much for the idea! I very appreciate your help and vote you.

  • How to assign a dynamic value to the value property of a button ?

    Hi Folks,
    I have a need, can i know how to assign a dynamic value to the value property of a button. Scenario is like follows...
    This is a struts based web application
    1. I have a file which consists of login user details (user name and his previlages) for a web application.
    2. I got those user details, into a List.
    3. When a user logged into the web app, in the home page there are few buttons. The type and number of buttons shown depends on the type of user/ user. (Buttons have different combination and the number of buttons available are not constant, they will vary from user to user).
    4. for each button, there will be a different action. I can pass the value of a button to an action class, but here button must have a dynamic value.
    Here is my test code:
    <%
    if (List != null)
    for (int i = 0; i <List.length; i++)
    %>
    <html:submit property="rduname" value= "<%=List%>" onclick="return submitRdu('<%=List[i] %>');"/>
    <%
    %>
    But my problem is how to assign a dynamic value to the value property of the button ( i know 'value= "<%=List[i]%>" ' will not work, just wanted show you guys).
    Thanks in advance,
    UV
    Edited by: UV_Dev on Oct 9, 2008 2:15 PM

    Let me try i know am not good at JSP but do we need double quotes here
    value= <%=List%>i think JSTL should help you about the dynamic thing                                                                                                                                                                                                                                                                                                                       

  • How to generate a PDF 417 Barcode by assigning a dynamic value at runtime?

    PDF 417 Barcode Description given in the Livecycle Designer 8.2
    : PDF 417 Non-Scriptable Barcode. Value must be assigned to this barcode at design time, and this barcode will not update after form object value changes.
    And my question is how to generate a PDF 417 Barcode by assigning a dynamic value at runtime?

    All the information you described points to the problem that reports seems can't generate to a file which already exist. You can verify that by simply doing
    r30run32 C:\AC_REPORT.REP DESTYPE = FILE DESFORMAT = PDF BATCH = YES' desname=c:\temp\ac_report.pdf
    several times. If first time the report is successfully generated in c:\temp\ac_report.pdf, but not the second, third time, then it looks like there is a bug on reports r30run32 executable.
    You may try to find any latest patch for Reports 3.0 to see if patch can solve you problem. But keep in mind Reports 3.0 is de-supported, you are better to move to 6i or 9i reports.
    Thanks,
    -Shaun

  • Dynamic value help for a table field to fill two fields, how to?

    Hi all gurus,
    In SRM 7 I defined a dynamic value help for a single field (ZZ_PROLE_R3) of my header custom table.
    That's the code from WDDOMODIFYVIEW in the webdynpro /SAPSRM/WDC_DODC_CT, view V_DODC_CT:
    DATA: lo_tabnode        TYPE REF TO IF_WD_CONTEXT_NODE.
          DATA: lo_tabnode_info   TYPE REF TO IF_WD_CONTEXT_NODE_INFO.
          DATA: tab_value         TYPE WDR_CONTEXT_ATTR_VALUE_LIST,
                wa_value          TYPE WDR_CONTEXT_ATTR_VALUE.
          lo_tabnode = wd_context->GET_CHILD_NODE( name = 'THCUS' ). "the custom table node
          lo_tabnode_info = lo_tabnode->get_node_info( ).
          wd_this->GET_VALHELP_ZZ_PROLE_R3( EXPORTING iv_guid = lv_guid
                                            IMPORTING ZZ_PROLE_R3_VALHELP = tab_value ). "this method returns the dyn value table
          lo_tabnode_info->set_attribute_value_set( name = 'ZZ_PROLE_R3'
                                                     value_set = tab_value ).
    The method GET_VALHELP_ZZ_PROLE_R3 dynamically builds the value help table tab_value; such table is made up by two fields:
    value : contains the value of the field
    text   : contains a description of the value
    The above solution works; now I'd like to enhance it. The custom table THCUS contains also a field called ZZ_PROLE_R3_DESC, which represents the description of ZZ_PROLE_R3. It is, exactly, the TEXT field in tab_value.
    So I'd like to do as follows:
    - the user clicks on the search help for ZZ_PROLE_R3 field of the table;
    - the above described value help appears;
    - after the selection, both ZZ_PROLE_R3 and ZZ_PROLE_R3_DESC are filled with the selected couple value - text chosen from the value help.
    Could anyone help me achieving such a behaviour?
    Again, a little request... when I open the above value help dialog box, the window itself has a label "Floorplan Manager application for OIF.." that obviously I'd like to redefine (e.g. "Role selection value help"). Is there any way to do that?
    Thanks in advance

    Chris Paine wrote:
    It seems to me - given that your code is in wddomodifyview that you are trying to have different dropdowns per row
    - I'm not sure where you are populating lv_guid - but I'd guess it is an attribute of the row selected? If it isn't then I can't see any reason that you would do this code in wddomodifyview and not wddoinit.
    Hi Chris and thanks for your help,
    lv_guid is the GUID of the document's header; I need to pass it to the method that populates my value help table because the values in it are derived from some fields on the document. (the situation actually is more complex; there's an RFC call on the backend for which the document is intended for to retrieve the data that populate the value help...).
    I'm quite unexperienced on webdynpro and terminology; if dropdown menus are fixed selection option that appears on a field, I guess this is not my case. I did a pair of screenshot to provide an idea of what the solution by now is, and what "I would like to have":
    [Pre-selection (F4 icon on the field in table)|http://imagebin.ca/view/npIsaqF.html]
    [Value Help popup for the field ZZ_PROLE_R3|http://imagebin.ca/view/8fZUh3T.html]
    [Result by now |http://imagebin.ca/view/3PaqdvE.html]
    [Result I'd like to have.|http://imagebin.ca/view/dExR0J.html]
    Chris Paine wrote:
    However - by your comment on the "value help dialog box" I am guessing you are using an input field? If this is the case then I would strongly suggest that you change/enhance the structure of the context node THCUS (btw, better coding practise to refer to it as wd_this->wdctx_thcus when using the get child node construct) so that you refer to an actual SAP ddic search help, if you then associate in the structure the value and text fields then populating the text field should happen automatically. Also you'd have the nice side effect that your value help dialog would be named after the associated ddic search help.
    Thanks for the code suggestion, I'll apply that. For what concerns the context node THCUS... It is, by standard, a node which I can't explictly find in the context for the view V_DODC_CT. The problem is that ZZ_PROLE_R3 and the corresponding description field ZZ_PROLE_R3_DESC of the table must be filled with data retrieved dynamically @ runtime from the backend. So I guess I can't populate a val help referring to a dictionary table/field; I'd rather do as follows:
    - retrieve what's the target backend for the document (to do so, I have to process the document .. that's why the header guid passed to my method);
    - RFC call to a custom method that extracts possible values for the specific backend;
    - bind the ammissible values to the value help.
    Chris Paine wrote:
    I realise that this is rather a lot - so if you have any specific question please do respond - hopefully I or someone else will be able to clarify.
    Thanks again for your help; additional info as well as code examples would be highly appreciated

  • Accessing DefaultValues for parameters with dynamic values

    We have a custom user interface we place in front of all Crystal Reports (to maintain look&feel) that reads the parameters from the report and dynamically generates controls for user input.  The only time this doesn't work is for parameters that have dynamically generated default values.  If there is a static list of default values then we get the list from the DefaultValues collection; but if the list is dynamic then the collection is empty.
    Is there a way to force this collection to be populated, or alternatively, a way to find out what SQL query is being used to populate the parameter list?

    I think you may be out of luck. Dynamic cascading parameters (DCPs) are a relatively late addition to the Crystal Reports product line, and the Crystal Reports SDKs haven't caught up to that yet. Currently we don't have SDK access to dynamic value collections, including the SQL queries made for them. The most we can do at the moment is determine whether the parameter field uses dynamic or static values.

  • Dynamic value mapping

    hi,
    can u plz explain about Dynamic value mapping and where it actually use this
    thanks
    guna

    Hi ,
    Dynamic value mapping.is nothing but
    It is FixValues and ValueMapping under Conversion Functions.
    Eg:
    You need such a requirement. Where the values in the source are mapped to someother value in the target as below.
    1--> Mr
    2--> MS
    3--> MRS
    FixValues is used when you know the entire set of Key value pair in the Design Time. You give the Key and the value in the FixValues and the mapping checks and maps the values to the target.
    In the case of Value mapping, you maintain this Key - Value pair in the Integration Directory and thereby make changes easily and also use them in the Mapping in IR
    Refer These blogs
    ValueMapping using the Graphical Mapping Tool -value mapping using grapic mapping tool
    Value Mapping replication - value mapping replication
    Accessing Value Mapping defined in Directory using Java functions - accesing value mapping
    Dynamic Date Conversion in Message Mapping - dynamic date conversion
    Dynamic Configuration of Some Communication Channel Parameters using Message Mapping - dynamic confighuration
    Dynamic file name(XSLT Mapping with Java Enhancement) using XI 3.0 SP12 Part -II - dynamic file name
    and also
    Refer this link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d7/e551cf896c3a49bb87bb4ce38c99c8/frameset.htm - external context mapping
    Regards,
    Suryanarayana

  • Error in Dynamic Value Change Using Java script

    Hi ,
    I am trying to put dynamic value sin tabular form report.
    I used the below code
    function updateLOV3(filter, listName,itemId,po_no){
    var xml = null;
    var list = document.getElementById(listName);
      var get = new htmldb_Get(null,$v('pFlowId'), 'APPLICATION_PROCESS=Update_Invoice_UOM',0);
    alert(po_no);
    alert(itemId);
    get.add('TEMPORARY_ITEM', po_no);
    get.add('TEMP_ITEM', itemId);
    alert(list);
    ret = get.get('XML');
    if(ret){
      var s = ret.getElementsByTagName("select");
      if(s){
       var o = ret.getElementsByTagName("option");
       oCount = o.length;
       if(oCount!='0'){
            var l_Opt_Xml = o[0];
            appendToSelect(list, l_Opt_Xml.firstChild.nodeValue);
    if(oCount=='0'){
    alert('entering');
       list.value=0;
    get = null;
    function appendToSelect(pSelect,pContent) {
    alert(pContent);
    pSelect.value=pContent;
    }my Application Process code is
    declare
    begin
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<data>');
    htp.prn('<select>');
    for rec in (SELECT UNIT_OF_MEASURE r ,UNIT_OF_MEASURE d FROM HOMES_RGP_PURCHASE_ORDER_LINES WHERE ITEM_ID = :TEMP_ITEM AND
    PURCHASE_ORDER_ID = :TEMPORARY_ITEM)
    loop
    htp.prn('<option value="' || rec.d || '">' || rec.r || '</option>');
    end loop;
    htp.prn('</select>');
    htp.prn('</data>');
    end;In my application process if i removed the PURCHASE_ORDER_ID = :TEMPORARY_ITEM then the value is coming.
    Java Script giving both values like item id and purchase order id.
    If i ran the sql query manually its giving values.
    i hope thers is some error in get.add method in java script.
    Its always going into the below condition
    if(oCount=='0'){
    alert('entering');
       list.value=0;
    get = null;but manually i have checked the database the value is present.
    Please anyone help me out in this.
    Regards,
    Shan...

    Hi all,
    The same i have checked with emp table but still i got the same problem.
    Its my application process
    declare
    begin
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<data>');
    htp.prn('<select>');
    for rec in (SELECT ename r,ename d FROM 
    emp
    WHERE  empno = :TEMP_ITEM)
    loop
    htp.prn('<option value="' || rec.d || '">' || rec.r || '</option>');
    end loop;
    htp.prn('</select>');
    htp.prn('</data>');
    end;My Javascript code is
    <script type="text/javascript">
    function setvalues(itemId,list)
    var s = $v(itemId);
    alert(s);
    var get = new htmldb_Get(null,$v('pFlowId'), 'APPLICATION_PROCESS=POPULATE_EMPNAME',0);
    get.add('TEMP_ITEM', s);
    ret = get.get('XML');
    if(ret){
      var s = ret.getElementsByTagName("select");
      if(s){
       var o = ret.getElementsByTagName("option");
       oCount = o.length;
       if(oCount!='0'){
            var l_Opt_Xml = o[0];
            appendToSelect(list, l_Opt_Xml.firstChild.nodeValue);
    if(oCount=='0'){
       list.value=0;
    get = null;
    function appendToSelect(pSelect,pContent) {
    pSelect.value=pContent;
    </script>Can anyone suggest me what i have missed???
    Cheers,
    Shan

  • Writing dynamic value to a text file in Openscript

    How to write the dynamic values which i captured in a variable into a text file in openscript ? I searched throughout the user guide and i don't find any option for that. Please help, thanks in advance..

    One method using Export Table to CSV
    import oracle.oats.scripting.modules.basic.api.*;
    // Class DOMTable
    //export table content to a CSV file.
    public void exportToCSVFile(String filePath, boolean overWrite) throws AbstractScriptException, IOException
         {return;}
    DOMTable maTable = null;
    maTable.exportToCSVFile("c:\\temp\\export.csv", false);
    OR to read & write in a file
    Read a file & write in another file
    String MonFichierSource = "C:\\Documents and Settings\\jmarzolf\\My Documents\\Clients\\CD-APPS\\DataBank\\CD-APPS-SBL.csv";
    String MonFichierDest = "C:\\Documents and Settings\\jmarzolf\\My Documents\\Clients\\CD-APPS\\DataBank\\CD-APPS-SBL-2.csv";
    Scanner MonScanSrc = new Scanner(new File(MonFichierSource));
    FileWriter MonFichierDst = new FileWriter(MonFichierDest);
    while (MonScanSrc.hasNextLine()) {
    String MaLigne = MonScanSrc.nextLine();
    if (MaLigne.contains("ALL USER RESPONSIBILITY")) {
         MonFichierDst.write(MaLigne);
         MonFichierDst.write("\r");}}
    MonScanSrc.close();
         MonFichierDst.close();

  • Pass dynamic values to search-query in wlp-syndication-config for RSS

    Hi All,
    I want to pass dynamic values to the <search-query> element for the <syndication-feed> node in the wlp-syndication-config.xml file for implementing RSS feeds.
    Here's a sample
    <syndication-feed>
              <name>RSSFeed</name>
              <search-query>cm_objectClassInstance=='Node' &amp;&amp; date == 'x'_</search-query>
              <search-type>pubmeta</search-type>
         </syndication-feed>
    I tried passing the parameter in the url but the feed doesn't read it. The only option i have is to manually put the value to get the content from the repository, which sucks...because the values can change any time. is there any way that I can avoid it
    Any help on this would be appreciated.
    Thanks,
    K

    James:
    Passing filters to an IR within the URL is described here
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/app_comp.htm#sthref989
    Varad

  • Passing dynamic values in WebElements

    Hi
    I have created a report with webelement using WESelect. For drop down values we are creating a sting of values with allelements.Is there a way i can get the values from a database column or dynamic values.
    For example a Week WESelect is created with values as follows:
    string allelements:= ("week","wk01|wk02","wk01|wk02",{?week},"")
    instead of this values can we get values from database column like {week.weeknumber} ?
    How can this be solved.
    Thanks & Regards
    Mahesh

    hello Mahesh,
    in the tips and tricks section of the webelements user guide there is the following information...
    Can webElements be used with live data?
    Yes. Controls such as select menus that require that data be rolled up or
    amalgamated before the control is created are populated by running a
    Report Header subreport that rolls the data up. The data is then passed
    to the main report via a shared variable which is used in the control.
    Please see the DCP reports in the webElements .zip package for ideas on
    how to do this.
    Controls such as check boxes or radio buttons can be populated by
    placing the formula containing the control in the Details section or the
    Group Header / Footer section where the control is needed. Ensure that
    the controls do not span more than one page. See the Requirements
    section of the User Guide for more information.
    i hope this helps,
    jamie

  • Dynamic Values in Business Graphics Tool Tip

    hi,
    I am using business graphics ui element in my webdynpro application.I am able to get the graghical output correctly.I want to have tool tip in my graph so when I place the cursor on a point, the tool tip should give the corresponding value.I have used the following code
    try
         String[] catLabels = {
                        "Team 1", "\1Tomoko Akino", "\1Hans Bosch", "\1Marvin Smith",
                        "Team 2", "\1Jose Vega", "\1Bao Yin", "Out of office" };
            String[][] pointCustomizing = {
                        { "approved", "cancelled", "approvedPartTime" },
                        { "approved" },
                        { "approved" },
                        { "sent", "approvedPartTime", "notsentPartTime", "notsent"},
                        { "approved", "zSeveralEntries", "zSeveralEntries",
                          "zSeveralEntries", "zSeveralEntries", "zSeveralEntries",
                          "zSeveralEntries" },
                        { "outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
                          "outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
                          "outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
                          "outOfOffice", "outOfOffice", "outOfOffice" }
            String[][] pointLabels = {
                        { "1", "2", "2", "2", "4", "3", "3", "3", "1", "1", "2", "1",
                          "2", "1", "1" }
            String[][][] timeValues = {
                        { { "20020528", "20020606" }, { "20020606", "20020608" },
                          { "20020610", "20020611" } },
                        { { "20020531", "20020606" } },
                        { { "20020607", "20020613" } },
                        { { "20020527", "20020601" }, { "20020606", "20020607" },
                          { "20020612", "20020613" }, { "20020617", "20020619"} },
                        { { "20020531", "20020606" }, { "20020531", "20020601" },
                          { "20020601", "20020602" }, { "20020602", "20020603" },
                          { "20020603", "20020604" }, { "20020604", "20020605" },
                          { "20020605", "20020606" } },
                        { { "20020527", "20020528" }, { "20020528", "20020529" },
                          { "20020529", "20020530" }, { "20020530", "20020531" },
                          { "20020531", "20020601" }, { "20020603", "20020604" },
                          { "20020604", "20020605" }, { "20020605", "20020606" },
                          { "20020606", "20020607" }, { "20020607", "20020608" },
                          { "20020610", "20020611" }, { "20020611", "20020612" },
                          { "20020612", "20020613" }, { "20020617", "20020618" },
                          { "20020618", "20020619" }}
            String s[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","a11","a12","a13","a14",};
            IPrivateSBusinessGraphicsSampleView.ICategoryNode catNode = wdContext.nodeCategory();
            for (int catIndex = 0; catIndex < catLabels.length; ++catIndex)
               IPrivateSBusinessGraphicsSampleView.ICategoryElement  catElement = catNode.createCategoryElement();
               catNode.addElement(catElement);
               catElement.setDescription(catLabels[catIndex]);
            // loop over series
            IPrivateSBusinessGraphicsSampleView.ISeriesNode seriesNode = wdContext.nodeSeries();
            for (int seriesIndex = 0; seriesIndex < timeValues.length; ++seriesIndex)
               IPrivateSBusinessGraphicsSampleView.ISeriesElement seriesElement = seriesNode.createSeriesElement();
               seriesNode.addElement(seriesElement);
               // set series attributes (...)
               IPrivateSBusinessGraphicsSampleView.IPointNode pointNode = seriesElement.nodePoint();
               // loop over points
               for (int pointIndex = 0; pointIndex < timeValues[seriesIndex].length; ++pointIndex)
                 IPrivateSBusinessGraphicsSampleView.IPointElement
                           pointElement = pointNode.createPointElement();
                 pointNode.addElement(pointElement); 
                 String ename = s[pointIndex];
                 wdComponentAPI.getMessageManager().reportSuccess("name:"+ename);
                 pointElement.setStartValue(timeValues[seriesIndex][pointIndex][0]);
                 pointElement.setEndValue(timeValues[seriesIndex][pointIndex][1]);
                 pointElement.setCuId(pointCustomizing[seriesIndex][pointIndex]);
                 pointElement.setLabel(pointLabels[seriesIndex][pointIndex]);    
                 pointElement.setToolTip(ename );
         catch(Exception e)
                 wdComponentAPI.getMessageManager().reportSuccess("exc2:"+e);
    By the above code ,I am getting the tool tip with the value "a" in all locations.
    But I need to have different values in the tooltip corresponding to the location.
    Please Help....
    Thanks in advance,
    Shamila

    hi,
    Still  I did not get the dynamic tool tip..........
    In wdDoInit() I have written the following code
    try
         String[] catLabels = { "Team 1", "\1Tomoko Akino", "\1Hans Bosch", "\1Marvin Smith",
                   "Team 2", "\1Jose Vega", "\1Bao Yin", "Out of office" };
            String[][] pointCustomizing = {
                        { "approved", "cancelled", "approvedPartTime" },
                        { "approved" },
                        { "approved" },
                        { "sent", "approvedPartTime", "notsentPartTime", "notsent"},
                        { "approved", "zSeveralEntries", "zSeveralEntries",
                          "zSeveralEntries", "zSeveralEntries", "zSeveralEntries",
                          "zSeveralEntries" },
                        { "outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
                          "outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
                          "outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
                          "outOfOffice", "outOfOffice", "outOfOffice" }  };
                    String[][] pointLabels = {{ " ", " ", " " },{ " " },{ " " },{ " ", " ", " ", " "},{ " ", " ", " ", " ", " ", " ", " " },
                                  { "1", "2", "2", "2", "4", "3", "3", "3", "1", "1", "2", "1", "2", "1", "1" } };
                  String[][][] timeValues = {{        { "20020528", "20020606" },
                          { "20020606", "20020608" },
                          { "20020610", "20020611" } },
                        {  { "20020531", "20020606" } },
                        {   { "20020607", "20020613" }  },
                        {   { "20020527", "20020601" },
                          { "20020606", "20020607" },
                          { "20020612", "20020613" },
                          { "20020617", "20020619"} },
                        { { "20020531", "20020606" }, { "20020531", "20020601" },
                          { "20020601", "20020602" }, { "20020602", "20020603" },
                          { "20020603", "20020604" }, { "20020604", "20020605" },
                          { "20020605", "20020606" } },
                        { { "20020527", "20020528" }, { "20020528", "20020529" },
                          { "20020529", "20020530" }, { "20020530", "20020531" },
                          { "20020531", "20020601" }, { "20020603", "20020604" },
                          { "20020604", "20020605" }, { "20020605", "20020606" },
                          { "20020606", "20020607" }, { "20020607", "20020608" },
                          { "20020610", "20020611" }, { "20020611", "20020612" },
                          { "20020612", "20020613" }, { "20020617", "20020618" },
                          { "20020618", "20020619" }}  };
            String s[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","a11","a12","a13","a14",};
            IPrivateSBusinessGraphicsSampleView.ICategoryNode catNode = wdContext.nodeCategory();
            IPrivateSBusinessGraphicsSampleView.ICategoryElement  catElement;
            for (int catIndex = 0; catIndex < catLabels.length; ++catIndex)
                catElement = catNode.createCategoryElement();
               catNode.addElement(catElement);
               catElement.setDescription(catLabels[catIndex]);
             // loop over series
            IPrivateSBusinessGraphicsSampleView.ISeriesNode seriesNode = wdContext.nodeSeries();
            for (int seriesIndex = 0; seriesIndex < timeValues.length; ++seriesIndex)
               IPrivateSBusinessGraphicsSampleView.ISeriesElement seriesElement = seriesNode.createSeriesElement();
               seriesNode.addElement(seriesElement);
               // set series attributes (...)
               IPrivateSBusinessGraphicsSampleView.IPointNode pointNode = seriesElement.nodePoint();
               IPrivateSBusinessGraphicsSampleView.IPointElement  pointElement;
               // loop over points
               for (int pointIndex = 0; pointIndex < timeValues[seriesIndex].length; pointIndex++)
                 //IPrivateSBusinessGraphicsSampleView.IPointElement
                 pointElement = pointNode.createPointElement();
                 pointNode.addElement(pointElement); 
                 String ename = s[pointIndex];
                  wdComponentAPI.getMessageManager().reportSuccess("name:"+ename);
                 pointElement.setStartValue(timeValues[seriesIndex][pointIndex][0]);
                 pointElement.setEndValue(timeValues[seriesIndex][pointIndex][1]);
                 pointElement.setCuId(pointCustomizing[seriesIndex][pointIndex]);
                 pointElement.setLabel(pointLabels[seriesIndex][pointIndex]);    
                  pointElement.setToolTip(ename );
    catch(Exception e){        wdComponentAPI.getMessageManager().reportSuccess("exc2:"+e);    }
    In wdDoModifyView() I have written the following code
    try
         IWDBusinessGraphics graph = (IWDBusinessGraphics)view.getElement("BusinessGraphics");
         IWDAbstractSeries allSeries[] = graph.getSeriesList();
         IWDSimpleSeries series;
         wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("length : "+allSeries.length+" value:"+allSeries[0]);
         for(int j=0;j<allSeries.length;j++)
           series = (IWDSimpleSeries)allSeries[j];
          for(int i=0;j<wdContext.nodeSeries().size();i++)
              wdContext.nodeSeries().setLeadSelection(i);
              series.setTooltip(series.getValue());
      catch(Exception e)
         wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("exc modify :"+e);
    The node structure is
    Root Node
    >Category>Description
    >Series>Point-->CuId
    >Series>Point-->endvalue
    >Series>Point -->Startvalue
    >Series>Point -->label
    >Series>Point --->Tooltip
    In BusinessGraphis seriesSource-Series node ,tooltip-Series.Point.ToolTip is mapped
    In Category description-Category.Description is mapped
    In Series pointsource-Series.Point, tooltip-series.point.tooltip is mapped
    In Point CustomisingId-eries.point.cuId.label-Series.label, tooltip-series.point.Tooltip,valuesource -series.point is mapped
    In Numericvalue value-series.point.startvalue is mapped
    In Numericvalue value-series.point.endvalue is mapped
    When I deploy my application I am getting <b>java.lang.ClassCastException</b> Exception at the line  <b>series = (IWDSimpleSeries)allSeries[j];</b>
    What is reaseon?.....
    Please help..............
    I want to get dynamic value in the tool tip of the graph.
    Thanks in advance,
    Shamila,

Maybe you are looking for