Dynamic Values in OAM Header

Hi,
Is it possible to pass dynamic values like IPAddress in OAM Headers?.Thanks.

Not sure why you would since the IP Address is already on the Request object.
You can get at some of the request objects within a Custom Auth Plugin and then set it as a header dynamically. But again it already there, but you could set it to some other name if you needed it on a backend system names something else.
Hope this helps.

Similar Messages

  • Dynamic values for column header / "AS" using XMLFOREST

    Hello,
    I was wondering if it was possible to show data from a select statement into an AS column, e.g. SELECT col.a AS col.b.
    The reason I need this is for XMLFOREST, as I need the value of a SELECT statement to be the column name, so that it will be the value of the element. e.g. <col.b></col.b>
    Anyone know if/how I can do this?

    SQL> ed
    Wrote file afiedt.buf
      1  WITH t AS (SELECT 'fred' name FROM DUAL UNION SELECT 'bob' FROM DUAL)
      2* SELECT XMLELEMENT(EVALNAME name, name) FROM t
    SQL> /
    ERROR:
    ORA-19039: Keyword EVALNAME reserved for future use
    no rows selected
    SQL> ed
    Wrote file afiedt.buf**** Throws a bit of magic dust into SQL...... ****
    SQL> WITH t AS (SELECT 'fred' name FROM DUAL UNION SELECT 'bob' FROM DUAL)
      2  SELECT XMLELEMENT(EVALNAME name, name) FROM t
      3  /
    XMLELEMENT(EVALNAMENAME,NAME)
    <bob>bob</bob>
    <fred>fred</fred>
    SQL>This is an example of what you'll be able to do with 10.2.0.2 when it's released

  • 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.

  • Which OAM setting for passing values in HTTP header to application

    Experts, what is the setting in OAM 11gR2 that is set to pass a userid pulled from a LDAP directory (which is already configured with OAM) as a HTTP Header to an application.
    This is typically in cases where OAM is protecting or providing to protected resources on a Web Server or application.
    Is this setting (in OAM) by default set to userid? I wanted to know exactly where and how to set this value in OAM Console settings.

    In the protected resource policy and protected authorization policy in the responses tab set parameters to return headers for example if you want to return userid under name set header name like user_name, type header and the value as $user.userid. By default I guess OAM_REMOTE_USER is set in the http headers which contains the user id.

  • 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.

  • 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

  • Show the period value in column header using Text Variable

    We are using Posting Period & Financial Year to calculate YTD & MTD, for current year and previous years. These posting period and financial year characteristics are custom created characteristics we are using due to customer specific requirement.
    Input values are posting period, financial year and numeric value. To calculate previous year, I need to subtract numeric value from the input financial year. Every thing is working fine up to this.
    In the report I need to show the posting period and financial year values dynamically in each column header of the report for MTD, YTD for current year & previous year. I tried to achieve this using Text Variables, but I didn’t succeed. If some one can give me some idea to resolve this, it would be very helpful.
    I am excellent in ABAP coding. If you can specify me to code in User Exit, I can do it.
    Column headers should be 08.1999 Sales Qty, 08.2008 Sales Qty, 1999 Sales Qty, 2008 Sales Qty.

    Hi Abhinav,
    Try using the content text variables 0T_FYEAR and 0T_FPER3, when used in the head these variable should display the year and period specified in the RKF.
    e.g
    &0T_FPER3&. &0T_FYEAR& Sales Qty = 08.1999 Sales Qty
    If that doesnt work, try creating text replacement path variables referencing the variables you created for the year and period input. To do this click on the RKF and click on the dropdown by the yellow box next to the description on the general tab and select New Variable, enter the description, tech name and set processng by to Replacment Path, then select period as the ref. characteristic, then on the replacement path tab change replace variable with to variable and then select the variable you are using for the period input, save then hit ok, this is now a text representation of the variable your are inputing for period and can be used in the column headers, you will need to repeat the process for the fiscal year.
    Hope this helps
    Josh

  • Dynamic lenght in report heading

    Hi experts,
    I need to pass dynamic length in report heading.
    i.e.., REPORT zrep LINE-SIZE dyn_len NO STANDARD PAGE HEADING.
    So that my report output width will be in different length based on value dyn_len.
    Any solution or alternative in simple list display. Pls suggest ....
    Thanks in advance.
    Zak.

    Hello,
    Do not specify LINE SIZE in that case.
    Thanks,
    Jayant

  • File-adapter with Dynamic Directory/Filenames in Header-variables

    Hi,
    I have looked through the file-adapter documentation. And it says that you can use wildcards/regexpressions/dynamic file and directory names using the file-adapter-wizard. Also you can use the header-variables to specify the file and directory names at run-time.
    Is it also possible to use the dynamic names using the header-variables?
    I want to create a process that I can give in the file/directory-names at run-time and that it will look for a file using the wild-cards to pickup. Since at run-time I often do not know the name of the file, since it might contain a sequence or date/time-stamp. But I do know the location and the structure of the file name (that is specified at config-time).
    The same question for outbound: if I specify a name in the header-variables with forexample '%seq%' in the name, like 'filename_%seq%.XML', will it then create the file with the sequence?
    Thanks in advance.
    Regards,
    Martien

    Hi,
    I've been trhough this document over and over again, but did not find anything on how to do it actually. But I found out that the file-outbound-header wsdl does not contain a directory element after generation by the wizard. But you can add it afterwards.
    Also you can replace the location attribute in the jca:address element of the adapter-wsdl by mcf properties (host, username, password) and override them by copying the values to the partnerlink using bpelx:properties.
    I planned to put the details in my blog.
    Regards,
    Martien

  • 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

  • Corelating messages using the Dynamic Values

    Hi all,
    I want to collect message using BPM.I have sucessfully executed the same using corelation from one of the fields.The ID field was used for corelation
    I was able to sucessfully execute the senario the messages with same ID were going to same process ID and getting collected as well
    Now i wanted to have some dynamicconfiguration parameters for eg i thought i can use the filename.That is collate the messages using the filename.
    I changed the corleation and tried but for each messages even with the same file name its creating a different process ID and thus my messages are not collected at all.
    To tel you more about the senario i created its a file to file with BPM collecting the messages. i send the first file and then the second file also with the same file name.
    I have configured the AdapterSpecific Attributes and able to view the filenames in the XML Messages header
    Can anyone put some light as too why there are different Process IDs being created.I heard in some of the forums that its an error in some of the SPs
    I am on XI 7.0 SP11 and think it should not be a problem.
    Thanks in Advance
    Rgds
    Aditya

    thnks for ure replies
    But all of the above steps are checked
    It seems that i have given the right co-relation as well but still dnt knw y i'm not able to collect the messages
    The loop is defined to complete after a fixed count and the container variable increments by 1 after each loop
    The senario works perfectly if i use any field corelation to collect the messages but fails when i use a dynamic value like filename. And yes i have double checked the filename they are same
    Rgds
    Aditya

  • Read Table ITAB with key Dynamic Value = Value

    Here is sample Intenral table
    Columnname-C01 / C02 / C03
    Value-123 / 456 /789
    I would like to search value of the internal table according to dynamic value given by the code.
    i.e.
    read table ITAB with key <Dynamic Value> index 1.

    Hi Rupesh,
    Just try the following piece of code:
    TYPES: BEGIN OF str,
            A TYPE C,
            B TYPE I,
            C(2) TYPE C,
           END OF STR.
    DATA itab TYPE TABLE OF str WITH HEADER LINE.
    itab-A = 'X'.
    itab-B = '100'.
    itab-C = 'YZ'.
    APPEND itab.
    PERFORM c_itab_read USING 'A' 'X'.
    PERFORM c_itab_read USING 'B' '100'.
    PERFORM c_itab_read USING 'C' 'YZ'.
    FORM c_itab_read USING key TYPE ANY val TYPE ANY.
      READ TABLE itab WITH KEY (KEY) = val.
      IF SY-SUBRC IS INITIAL.
        WRITE: 'Hurray!'.
      ENDIF.
    ENDFORM.
    Hope this helps.
    Reqard points if query answered.
    Cheers,
    ~i1

  • How to correlate dynamic values in OATS

    We are getting error in response Header that "content length is zero".
    When we compared both resquest and response headers we found that in request content we have values and in response it shows 0 while replaying
    Please let us know how to proceed with this problem and as well how to correlate dynamic values in OATS

    we resolved ourselfs

  • Another question - using dynamic value body tag????

    Can this be done?
    I need to send an ASP dynamic value to my 'open browser
    window' pop up.
    Something like:
    <body
    onload="MM_openBrWindow('subscribe_pop.asp?email="&<%(Recordset1.Fields.Item("emailaddres s").Value)%>','','location=yes,width=400,height=200')">
    Any ideas?
    Thanks
    Andy

    Change what you have to this -
    <body onload="@@(onload)@@">
    The downside to this method is that your popup link WILL NOT
    BE MANAGED. If
    you change the name of the page or the location of the page,
    you will have
    to change the value of this Template parameter, and then save
    it to
    propagate through the site. Then, of course, you will have to
    upload your
    local files again.
    You do know that this popup will be blocked by modern
    browsers, right?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Andy" <[email protected]> wrote in message
    news:[email protected]...
    > Morning Dooza - Sorry it's me again ;-)
    >
    > Well i've part way through this but seem to have created
    another problem.
    > When i used the 'make attribute editable' the code
    generated on the page
    > that launches the pop up was:
    > -----------
    > <!-- InstanceEndEditable --><!--
    InstanceBeginEditable name="head" -->
    > <!-- InstanceEndEditable --><!-- InstanceParam
    name="onload" type="text"
    >
    value="P7_initPM(0,0,1,-20,10);MM_openBrWindow('subscribe_pop.asp?custemail=<%=(Customers RS.Fields.Item("CustomerEmail").Value)%>','','location=yes,width=400,height=200')"
    > -->
    > </head>
    >
    > <body onload="P7_initPM(0,0,1,-20,10)">
    > --------
    >
    > It didn't put the 'MM_openBrWindow' code in the Body
    Tag, only in the
    > 'InstanceParam name'
    > I opened the page up in note pad and added it manually
    and all the code
    > worked as it should.
    >
    > The problem now is that when i change the template, my
    page isn't updated
    > at all.
    >
    > Before i used 'make attribute editable' my Body Tag
    contained just the
    > <body onload="P7_initPM(0,0,1,-20,10)">
    >
    > Any ideas??
    >
    > Thanks
    > Andy
    >
    >
    >
    >
    > "Dooza" <[email protected]> wrote in message
    > news:[email protected]...
    >> Andy wrote:
    >>> Hi Dooza
    >>>
    >>> I'm still not getting the value passed to the
    pop up :-(
    >>>
    >>> I followed the steps below and the page passing
    the email address is
    >>> producing the correct email.
    >>> The subscriber page is still giving the Either
    BOF or EOF is True error.
    >>>
    >>> I tried the subscriber page (local url) using
    subscribe_pop.asp?ID=516
    >>>
    >>> 516 is my email address. The recordset on the
    subscribe_pop.asp page
    >>> pulls the email address based on the ID.
    >>>
    >>> For some reason this code just isn't sending the
    value.
    >>>
    >>>
    >>>
    "P7_initPM(0,0,1,-20,10);MM_openBrWindow('subscribe_pop.asp?ID=<%=(CustomersRS.Fields.Ite m("CustomerEmail").Value)%>','','location=yes,width=400,height=200')"
    >>>
    >>> Really scratching my head now
    >>
    >> When you view the page in your browser that launches
    the pop up, what
    >> does the source look like for the body tag?
    >>
    >> Hang on, your passing the email address as the ID?
    Are you sure you want
    >> to do that? Don't you want to pass the ID? Maybe
    thats where you are
    >> going wrong?
    >>
    >> Dooza
    >> --
    >> Posting Guidelines
    >>
    http://www.adobe.com/support/forums/guidelines.html
    >> How To Ask Smart Questions
    >>
    http://www.catb.org/esr/faqs/smart-questions.html
    >
    >

  • 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..

Maybe you are looking for

  • Can't install Palm Desktop 4.14, 4.2 or 6.2

    Help! I can not install any version of Palm Desktop.  I had a working version of 6.2, but with Palm support, tried to uninstall and reinstall 4.2 (for compatibility reasons).  After several weeks everyone has given up.  I run Windows XP Pro, SP3, am

  • The Favourite Content Portlet could not be populated.

    Hi all, I am new in PORTAL, I made an Instant portlet which was working fine. But then started an error occuring when I view the Portal Page: "The Favorite Content Portlet could not be populated.<br/><br/>Error Message<br/>." This error is show in a

  • Problem with "required" attribute in inputBox

    Hi , I have a requirement where a input field needs to be populated using lookup. I am using commandButton to populate the input field.Since I dont want user to type anything in this input Field , I have made this field readOnly. This is a mandatory

  • Still frames

    Can anyone suggest the best way to grab a frame from a video to then use it in an iDVD menu or print it for the cover of the DVD? There seem to be two ways but so far the only success I have had is to grab a frame as a still clip then remove .dv befo

  • Is this a legitimate firefox message popup?

    why do i keep on getting messages from this site to update my video player? how can i block this tab from popping up?