Not getting VO attribute value

Hi
I added attribute 1.. attribute 7 PosChangePOPG using personalization option. I'm not using any context in this case. These attributes are from PosViewShipmentsVO view.
I'm also using my own controller using personalization option.
when I'm try to get the value of attribute7 entered by user using
posviewshipmentsvorowimpl.getAttribute7();
I'm not getting the value.
Any idea why the attribute7 value is not being returned?
In my case user is entering the value for only attribute7, other attribute columns are getting populated at the time of PO creation itself.
Thanks
Prasad

Hi ADF 7 ,
The "Auto Submit" and the LOV is binded to the bean. But still it is not working.
<font color="red">Tried using the Value change listener and getting the value and it is getting the value. But the Selected item disappears after pressing the Submit button.</font>
Thanks,
Nigel.

Similar Messages

  • How to get the attribute value of an XML file??

    How to get the attribute value of an XML file??
    For example, how to get name and age attributes?
    <student name="Joe" age="20" />

    What are you using to read the XML file??
    On the assumption of JDOM - www.jdom.org. Something along the lines of:SAXBuilder builder = new SAXBuilder(true);
    Document doc = builder.build(filename);
    Element root = doc.getRootElement();
    List children = root.getChildren();
    Element thisElement = (Element)children.get(n);
    String name = thisElement.getAttributeValue("name")
    try
         int age = Integer.parseInt(thisElement.getAttributeValue("age"));
    catch (Exception ex)
         throw new InvalidElementException("Expected an int.....");
    }Ben

  • In Jsp TagLib how can I get the Attribute value (like JavaBean) in jsp

    Dear Friends,
    TagLib how can I get the Attribute value (like JavaBean) in jsp .
    I do this thing.
    public void setPageContext(PageContext p) {
              pc = p;
    pc.setAttribute("id", new String("1") );
              pc.setAttribute("first_name",new String("Siddharth")); //,pc.SESSION_SCOPE);
              pc.setAttribute("last_name", new String("singh"));
    but in Jsp
    <td>
    <%=pageContext.getAttribute("first_name"); %>
    cause null is returing.
    Pls HELP me
    with regards
    Siddharth Singh

    First, there is no need to pass in the page context to the tag. It already is present. How you get to it depends on what type of tag:
    Using [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/SimpleTagSupport.html]SimpleTagSupport
    public class MyTag extends SimpleTagSupport
      public void doTag()
        PageContext pc = (PageContext)getJspContext();
        pc.setAttribute("first_name", "Siddharth");
        pc.setAttribute("last_name", "Singh");
        pc.setAttribute("id", "1");
    }Using [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/TagSupport.html]TagSupport or it's subclass [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/BodyTagSupport.html]BodyTagSupport the page context is aleady declared as an implicit object:
    public class MyTag extends TagSupport
      public void doStartTag()
        pageContext.setAttribute("first_name", "Siddharth");
        pageContext.setAttribute("last_name", "Singh");
        pageContext.setAttribute("id", "1");
    }In each case, this sort of thing should work:
    <mytags:MyTag />
    <%= pageContext.getAttribute("first_name") %>I

  • Runtime error to get the attribute value of an element

    mydoc.xml
    =========
    <?xml version = "1.0"?>
    <persons>
         <person name="Joe" age="22" />
    </persons>
    In mydox.xml, I want to get the attribute values of element person. Of course,
    in the actual XML file, it is more complicated.
    However, I get the following run-time error,
    Exception in thread "main" java.lang.NullPointerException
    at ParserTest.main(ParserTest2.java:18) on line element.hasAttribute("name")
    import java.io.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;
    import org.w3c.dom.*;
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    public class ParserTest2
         public static void main(String[] args) throws ParserConfigurationException, SAXException
              String xmlFile = "mydoc.xml";
              doc = getDocumentFromFile(xmlFile);
              Element element = doc.getElementById("person");
              //Exception in thread "main" java.lang.NullPointerException
              if (element.hasAttribute("name"))
              {     System.out.println("attribute = " + element.getAttribute("name"));
         public static Document getDocumentFromFile(String xmlFile)
                   try
                        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                        DocumentBuilder builder = factory.newDocumentBuilder();
                        Document doc = builder.parse(new File(xmlFile));
                        return doc;
                   catch(IOException e)
                   {     e.printStackTrace();
                        return null;
                   catch(SAXException e)
                   {     e.printStackTrace();
                        return null;
                   catch(ParserConfigurationException e)
                   {     e.printStackTrace();
                        return null;
         private static Document doc;
    any ideas? Thanks!!

    [url http://java.sun.com/j2se/1.4.2/docs/api/java/lang/NullPointerException.html]java.lang.NullPointerException
    Thrown when an application attempts to use null in a case where an object is required. These include:
    Calling the instance method of a null object.
    Accessing or modifying the field of a null object.
    Taking the length of null as if it were an array.
    Accessing or modifying the slots of null as if it were an array.
    Throwing null as if it were a Throwable value.
    You know what line it happens on, so you know which of these cases applies. So you know that variable "element" is null at that point. How could it come to be null? You assign to it only once, two lines above. How could that assignment be null? Check the documentation for [url http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Document.html#getElementById(java.lang.String)]org.w3c.dom.Document.getElementById().
    Repeat every time you get one of those exceptions.

  • How to get the attribute values out?

    Hi everyone,
    <root>
    <category name="Mens Clothing" id="0">
    <subcategory>Active/Baselayer Tops</subcategory>
    <subcategory>Active/Baselayer
    Bottoms</subcategory>
    </category>
    <category name="Womens Clothing" id="1">
    <subcategory>aaa</subcategory>
    <subcategory>bbb</subcategory>
    </category>
    </root>
    How to get the attribute values out? For example "Mens
    Clothing" and "Womens Clothing".
    // the line below returns "Active/Baselayer Tops" and
    "Active/Baselayer Bottoms"
    var myXml:XML = new XML(event.result);
    Thanks,
    May

    Here is attribute identifier operator from FB Help:
    @ attribute identifier Operator
    Usage myXML.@attributeName
    Identifies attributes of an XML or XMLList object. For
    example, myXML.@id identifies attributes named id for the myXML XML
    object. You can also use the following syntax to access attributes:
    myXML.attribute("id"), myXML["@id"], and myXML.@["id"]. The syntax
    myXML.@id is recommended. To return an XMLList object of all
    attribute names, use @*. To return an attribute with a name that
    matches an ActionScript reserved word, use the attribute() method
    instead of the @ operator.
    Operands attributeName:* — The name of the attribute.
    Example
    How to use examples
    The first example shows how to use the @ (at sign) operator
    to identify an attribute of an element:
    var myXML:XML =
    <item id = "42">
    <catalogName>Presta tube</catalogName>
    <price>3.99</price>
    </item>;
    trace(myXML.@id); // 42The next example returns all attribute
    names:
    var xml:XML =<example id='123' color='blue'/>
    var xml2:XMLList = xml.@*;
    trace(xml2 is XMLList); // true
    trace(xml2.length()); // 2
    for (var i:int = 0; i < xml2.length(); i++)
    trace(typeof(xml2
    )); // xml
    trace(xml2.nodeKind()); // attribute
    trace(xml2
    .name()); // id and color
    } The next example returns an attribute with a name that
    matches a reserved word in ActionScript. You cannot use the syntax
    xml.@class (since class is a reserved word in ActionScript). You
    need to use the syntax xml.attribute("class"):
    var xml:XML = <example class='123'/>
    trace(xml.attribute("class"));

  • Not getting the return value of a program though it has no  errors

    public static String giroReturnFileDate(String strType)throws IOException{
              try{
                   SimpleDateFormat getFormatDate = new SimpleDateFormat("yyMM");
                   Date date = new Date();
                   String str = getFormatDate.format(date);
                   System.out.println("Current Date is : "+ str);
                   System.out.println("Fetching the Giro file now");
                   if(strType.equalsIgnoreCase("WPD") || strType.equalsIgnoreCase("ISTD")) {
                   FileReader inputFileReader = new FileReader("giro2itcs_"+strType+".txt");
                   ArrayList list = new ArrayList();
                   ArrayList list1 = new ArrayList();
                   System.out.println("Reading the file");
                   BufferedReader inputStream = new BufferedReader(inputFileReader);
                   String inLine = null;
                   String str1 = null;
                   while((inLine = inputStream.readLine()) != null && inLine.length() < 2)
                        list.add(inLine);
                   System.out.println("Control Record for giro2itcs_"+strType+"is:"+ inLine);
                   inputFileReader.close();
                   inputStream.close();
                   for (int i=0; i<inLine.length(); i++ )
                        str1 = inLine.substring(19,23);
                   System.out.println("date of the transaction is:"+str1);
                   if (str .equals(str1)){
                        System.out.println("giro2itcs_"+strType+".txt file is created today");
                        return "true";
                   else{
                        System.out.println("giro2itcs_"+strType+".txt file is not created today");
                        return "false";
                   }// end of if
                   return "test";
              }// end of try
              catch(Exception e) {
              System.out.println("The Exception is ::::::::::::::"+e);
    return "one";
    }//end of giroReturnFileDate(...) method
    }//end of of the class
    main method is seperate. this program compiles fine but am not getting the return value for this. none of the return values. plzzz help me.

    can you send me the code complete one ...
    i will debug and solve the problem
    [email protected]
    By publishing your email address you are likely to get loads of spam.

  • In Which table can I get Customize attribute values?

    Hi All,
    I am new to Solution Manager. I have created customize attributes using std and non std ways. And i have used this attributes for create interface scenarios.
    My problem is, I am not able to get the value of attributes which has created using standard way. From which table I can get.
    While create this std attributes, i have added customize table name and corresponding field name in attribute properties.
    Can I get the attributes from this customize table?
    Kindly any one help for me.
    Thanks in Advance.
    -Thulasi

    Hi tulsi,
    I am also looking for the same solution please update me or the thread with the solution
    Saurabh

  • Analysis not getting the right value off ADM Tool

    Hello people,
    I'm trying to do one difficult thing, but, first of all the simple thing is not working.
    In ADM tool, I have this logic column: avg(Fact_AGR_ESCOPO_MEDIAPPM.MEDIA_PPM_TIPO)
    The physical table that have this attribute is: TFAGR_ESCOPO_MEDIAPPM
    When I do this Search:
    SELECT DISTINCT T3.TIPO_PTB, T2.NOME, T1.MEDIA_PPM_TIPO FROM TFAGR_ESCOPO_MEDIAPPM T1
    JOIN TD_ESCOPO T2 ON T1.ESCOPO_SK = T2.ESCOPO_SK
    JOIN TD_MOTIVO T3 ON T1.MOTIVO_SK = T3.MOTIVO_SK
    WHERE T2.ESCOPO_SK = 1;
    I get this TIPO_PTB:
    Complaint and Não Complaint.
    Now, when I go to the analysis and use the MEDIA_PPM_TIPO att, I got all the TIPO_PTB, not only the Complaint and Nao Complaint.
    Someone know whats is this or how I can search for the problem ?

    The problem was because I'm trying to use some aggregation rule.
    When I put none to aggregation rule, I got only the representation of the DB.
    But now, I have another problem and is my initial problem:
    How can I spread one value to anothers, always getting the last value by month ?
    Example:
    JAN FEB MAR
    10 20 5
    JAN FEB MAR
    5 5 5
    This is what I want. Always spread the last value base on month to the others (The filter is not a good solution because the prompt changes and the last month will not be the same)

  • Getting LastAuthTime attribute value

    Hi all,
    We are trying to get all the user's list from Directory server who have not accessed their account from last 2 years.
    For that we came to know that there is an attribute, pwdLastAuthTime, in DS 6 that stores the last authentication time of the user .
    This is an operational attribute that is not stored as a part of user profile but can be accessed only by using JNDI...
    Please suggest how can we get all the users from DS 6 who have not accessed their account from last two years.
    Also is it possible to convert the Java Date object into the format of DS date so that we can exactly find the required users because we think that we have to get the difference of current date and the pwdLastAuthTime attribute value.
    If possible, please some sample code for reference.
    Thanks
    Gaurav Jain

    It's possible pwdLastAuthTime may not work out for you here.
    We are trying to get all the user's list from Directory server who have not accessed their account from last 2 years.Sun's DS 6.x line has been publicly available for around 18 months, so that's about the maximum delta for pwdLastAuthTime you could possibly have.
    More importantly, pwdKeepLastAuthTime must be enabled in the directory server's password policy in order for pwdLastAuthTime to be maintained. Do you know if this is enabled on your server?

  • Unable to get VO attribute values from CO extension

    Hi All,
    I have extended a standard controller. Screen has view link. There are fields updatable in both master and child VOs'.
    If i change these fields (messageTextInput), Im able to get the modified values of master VO.
    But Child VO gives me the database value and not the modified value.
    this is the code im using to get values.
    OAViewObject vo = (OAViewObject)am.findViewObject("PosViewLinesVO");
    OAViewObject vo1 = (OAViewObject)am.findViewObject("PosViewShipmentsVO");
    Row row = vo.first();
    while(row != null)
    Number poLineId = (Number)row.getAttribute("PO_LINE_ID");
    Number lineTotal = (Number)row.getAttribute("Total");
    Row row1 = vo1.first();
    while(row1 != null)
    Number poLineId1 = (Number)row1.getAttribute("PoLineId");
    if(poLineId1.equals(poLineId))
    Number lineLocId = (Number)row1.getAttribute("LINE_LOCATION_ID");
    Number price = (Number)row1.getAttribute("NewPrice");
    row1 = vo1.next();
    row = vo.next();
    Please help. Am i missing sometihng.
    Thanks in advance

    are you getting any null pointer ??
    and check OAViewObject vo = (OAViewObject)am.findViewObject("PosViewLinesVO");// is this PosViewLinesVO or PosViewLinesVO1
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                               

  • ADF: How to get the attributes' values of one single row from a table?

    Currently I have a table with 3 attributes, suppose A,B and C respectively. And I've added an selectionListener to this table. That means when I select one single row of this table, I wish to get the respective value of A, B and C for that particular row. How do I achieve this?
    suppose the method is like:
    public void selectionRow(SelectionEvent se) {            //se is the mouse selection event
    .......??? //what should I do to get the values of A\B\C for one single row?
    Edited by: user12635428 on Mar 23, 2010 1:40 AM

    Hi
    Assuming you are using Jdev 11g.
    Try with this
    public void selectionRow(SelectionEvent se) {
    String val = getManagedBeanValue("bindings.AttributeName.inputValue");
    public static Object getManagedBeanValue(String beanName) {
    StringBuffer buff = new StringBuffer("#{");
    buff.append(beanName);
    buff.append("}");
    return resolveExpression(buff.toString());
    public static Object resolveExpression(String expression) {
    FacesContext facesContext = getFacesContext();
    Application app = facesContext.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = facesContext.getELContext();
    ValueExpression valueExp =
    elFactory.createValueExpression(elContext, expression,
    Object.class);
    return valueExp.getValue(elContext);
    Vikram

  • Why I can not get the email value?

    I tried to pull out the email address from database, but for some reason i could not get it. Here is the code.
    Javabean:
    public class ProgramBean {
    private String programId;
    private String programTitle;
    private String programDesc;
    private String sponsorId;
    private String sponsorName;
    private String providerId;
    private String provider;
    private String providerEmail;
    private String providerPhone;
    private String programStatus;
    private String receiveDay;
    private String receiveMonth;
    private String receiveYear;
    private String receivedDate;
    private String approvedDay;
    private String approvedMonth;
    private String approvedYear;
    private String approvedDate;
    private String approvedBy;
    private String notifyBy;
    private String expiredDay;
    private String expiredMonth;
    private String expiredYear;
    private String expiredDate;
    private String attachments;
    private String website;
    private String programComments;
    private String section;
    private String notes;
    private String requestedMaxCeu;
    private String approvedMaxCeu;
    private String whoAdded;
    private String dateAdded;
    private String whoChanged;
    private String dateChanged;
    public ProgramBean() {
    public ProgramBean(String programId,String programTitle, String programDesc, String sponsorId, String sponsorName,String providerId,String provider, String providerEmail, String providerPhone,String programStatus,
    String receiveDay,String receiveMonth,String receiveYear, String approvedDay, String approvedMonth, String approvedYear,
    String approvedBy,String notifyBy,String expiredDay,String expiredMonth,String expiredYear,String attachments, String website,String programComments,
    String section,String notes,String whoAdded,String dateAdded,String whoChanged,String dateChanged){
    this.programId = programId;
    this.programTitle = programTitle;
    this.programDesc = programDesc;
    this.sponsorId = sponsorId;
    this.sponsorName = sponsorName;
    this.providerId = providerId;
    this.provider = provider;
    this.providerEmail = providerEmail;
    this.providerPhone = providerPhone;
    this.programStatus = programStatus;
    this.receiveDay = receiveDay;
    this.receiveMonth = receiveMonth;
    this.receiveYear = receiveYear;
    this.approvedDay = approvedDay;
    this.approvedMonth = approvedMonth;
    this.approvedYear = approvedYear;
    this.approvedBy = approvedBy;
    this.notifyBy = notifyBy;
    this.expiredDay = expiredDay;
    this.expiredMonth = expiredMonth;
    this.expiredYear = expiredYear;
    this.attachments = attachments;
    this.website = website;
    this.programComments = programComments;
    this.section = section ;
    this.notes = notes;
    this.whoAdded = whoAdded;
    this.dateAdded = dateAdded;
    this.whoChanged = whoChanged;
    this.dateChanged = dateChanged;
    public void setProgramId(String b_programId){
              this.programId = b_programId;
         public String getProgramId(){
              return     programId;
         public void setProgramTitle(String b_programTitle){
              this.programTitle = b_programTitle;
         public String getProgramTitle(){
              return     programTitle;
    public void setProgramDesc(String b_programDesc){
              this.programDesc = b_programDesc;
         public String getProgramDesc(){
              return     programDesc;
    public void setProgramStatus(String b_programStatus){
              this.programStatus = b_programStatus;
         public String getProgramStatus(){
              return     programStatus;
    public void setApprovedDay(String b_approvedDay){
              this.approvedDay = b_approvedDay;
         public String getApprovedDay(){
              return     approvedDay;
    public void setApprovedMonth(String b_approvedMonth){
              this.approvedMonth = b_approvedMonth;
         public String getApprovedMonth(){
              return     approvedMonth;
    public void setApprovedYear(String b_approvedYear){
              this.approvedYear = b_approvedYear;
         public String getApprovedYear(){
              return     approvedYear;
    public void setApprovedDate(String b_approvedDate){
              this.approvedDate = b_approvedDate;
         public String getApprovedDate(){
              return     approvedDate;
    public void setProvider(String b_provider){
              this.provider = b_provider;
    public String getProvider(){
              return     provider;
    public void setProviderEmail(String b_providerEmail){
              this.providerEmail = b_providerEmail;
    public String getProviderEmail(){
              return     providerEmail;
    public void setSponsorId(String b_sponsorId){
              this.sponsorId = b_sponsorId;
    public String getSponsorId(){
              return     sponsorId;
    public void setSponsorName(String b_sponsorName){
              this.sponsorName = b_sponsorName;
    public String getSponsorName(){
              return     sponsorName;
    public void setProviderPhone(String b_providerPhone){
              this.providerPhone = b_providerPhone;
    public String getProviderPhone(){
              return     providerPhone;
    public void setProviderId(String b_providerId){
              this.providerId = b_providerId;
    public String getProviderId(){
              return     providerId;
    public void setReceiveDay(String b_receiveDay){
              this.receiveDay = b_receiveDay;
         public String getReceiveDay(){
              return     receiveDay;
    public void setReceiveMonth(String b_receiveMonth){
              this.receiveMonth = b_receiveMonth;
         public String getReceiveMonth(){
              return     receiveMonth;
    public void setReceiveYear(String b_receiveYear){
              this.receiveYear = b_receiveYear;
         public String getReceiveYear(){
              return     receiveYear;
    public void setReceivedDate(String b_receivedDate){
              this.receivedDate = b_receivedDate;
         public String getReceivedDate(){
              return     receivedDate;
    public void setApprovedBy(String b_approvedBy){
              this.approvedBy = b_approvedBy;
         public String getApprovedBy(){
              return     approvedBy;
    public void setNotifyBy(String b_notifyBy){
              this.notifyBy = b_notifyBy;
         public String getNotifyBy(){
              return     notifyBy;
    public void setExpiredDay(String b_expiredDay){
              this.expiredDay = b_expiredDay;
         public String getExpiredDay(){
              return     expiredDay;
    public void setExpiredMonth(String b_expiredMonth){
              this.expiredMonth = b_expiredMonth;
         public String getExpiredMonth(){
              return     expiredMonth;
    public void setExpiredYear(String b_expiredYear){
              this.expiredYear = b_expiredYear;
         public String getExpiredYear(){
              return     expiredYear;
    public void setExpiredDate(String b_expiredDate){
              this.expiredDate = b_expiredDate;
         public String getExpiredDate(){
              return     expiredDate;
    public void setAttachments(String b_attachments){
              this.attachments = b_attachments;
         public String getAttachments(){
              return     attachments;
    public void setWebsite(String b_website){
              this.website = b_website;
         public String getWebsite(){
              return     website;
    public void SetProgramComments(String b_programComments){
              this.programComments = b_programComments;
         public String getProgramComments(){
              return     programComments;
    public void SetSection(String b_section){
              this.section = b_section;
         public String getSection(){
              return     section;
    public void SetNotes(String b_notes){
              this.notes = b_notes;
         public String getNotes(){
              return     notes;
    public void SetWhoAdded(String b_whoAdded){
              this.whoAdded = b_whoAdded;
         public String getWhoAdded(){
              return     whoAdded;
    public void SetDateAdded(String b_dateAdded){
              this.dateAdded = b_dateAdded;
         public String getDateAdded(){
              return     dateAdded;
         public void SetWhoChanged(String b_whoChanged){
              this.whoChanged = b_whoChanged;
         public String getWhoChanged(){
              return     whoChanged;
    public void SetDateChanged(String b_dateChanged){
              this.dateChanged = b_dateChanged;
         public String getDateChanged(){
              return     dateChanged;
    public void SetRequestedMaxCeu(String b_requestedMaxCeu){
              this.requestedMaxCeu = b_requestedMaxCeu;
         public String getRequestedMaxCeu(){
              return     requestedMaxCeu;
         public void SetApprovedMaxCeu(String b_approvedMaxCeu){
              this.approvedMaxCeu = b_approvedMaxCeu;
         public String getApprovedMaxCeu(){
              return     approvedMaxCeu;
    Servlet:
    HttpSession session = request.getSession();
    ProgramBean updatedProgramInfo = new ProgramBean();
    try
    Class.forName("oracle.jdbc.OracleDriver");
    conn = DriverManager.getConnection("");
    stmt_get_classes = conn.createStatement();
    sql = "SELECT p.program_id,upper(p.program_title),upper(p.program_desc),p.sponsor_id,p.provider_id, upper(d.last_name||', '||d.First_name),p.program_status, "+
    " to_char(p.date_received,'mm/dd/yyyy'), to_char(p.date_approved,'mm/dd/yyyy'),upper(p.approved_by), Upper(p.notified_by), to_char(p.date_expiration,'mm/dd/yyyy'), nvl2(p.agenda_file,'AGENDA - '||p.agenda_file,'DON''T FORGET THE ATTACHMENTS!'),"+
    " p.website, upper(p.program_comments), p.section, upper(p.administrator_notes), upper(p.cre_user), to_char(p.cre_date,'mm/dd/yyyy hh:mm:ss PM'), upper(p.mod_user), to_char(p.mod_date, 'mm/dd/yyyy hh:mm:ss PM'),"+
    "d.email;
    rs = stmt_get_classes.executeQuery(sql);
    while(rs.next()){
    updatedProgramInfo.setProgramId(rs.getString(1));
    updatedProgramInfo.setProgramTitle(rs.getString(2));
    updatedProgramInfo.setProgramDesc(rs.getString(3));
    updatedProgramInfo.setSponsorId(rs.getString(4));
    updatedProgramInfo.setProviderId(rs.getString(5));
    updatedProgramInfo.setProvider(rs.getString(6));
    updatedProgramInfo.setProgramStatus(rs.getString(7));
    date =rs.getString(8);
    updatedProgramInfo.setApprovedBy(rs.getString(10));
    updatedProgramInfo.setNotifyBy(rs.getString(11));
    date =rs.getString(12);
    updatedProgramInfo.setAttachments(rs.getString(13));
    updatedProgramInfo.setWebsite(rs.getString(14));
    updatedProgramInfo.SetProgramComments(rs.getString(15));
    updatedProgramInfo.SetSection(rs.getString(16));
    updatedProgramInfo.SetNotes(rs.getString(17));
    updatedProgramInfo.SetWhoAdded(rs.getString(18));
    updatedProgramInfo.SetDateAdded(rs.getString(19));
    updatedProgramInfo.SetWhoChanged(rs.getString(20));
    updatedProgramInfo.SetDateChanged(rs.getString(21));
    updatedProgramInfo.setProviderEmail(rs.getString(22));
    System.out.print(rs.getString(21));
    session.setAttribute("ProgramBean",updatedProgramInfo);
    response.sendRedirect("UpdateProgram.jsp");
    JSP:
    <a href="mailto:<c:out value="${sessionScope.ProgramBean.providerEmail}"/>">Email <c:out value="${sessionScope.ProgramBean.provider}"/> </a>
    The problem is I could not ge tthe value: ${sessionScope.ProgramBean.providerEmail}, but I have no problem to get the value: ${sessionScope.ProgramBean.provider}.
    By the way, the original program was written by someone else, i am kind of new of jsp stuff. I just tried to add an email part which shows on the bold text. Did I do something wrong? Thanks.

    Mate,
    Two things...
    1. Please try just printing the email address with a straight: <c:out value="${sessionScope.ProgramBean.providerEmail}"/>, then do a VIEW SOURCE off the result... I SUSPECT that the @ in the email address is being translated by the c:out into a character entity... if that's the case just use escapeXml="false" in your c:out tag... but then you'll need to beware of crosssight scripting attacks, apparently.
    See: http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/c/tld-summary.html
    ... or just use the standard SQL tag library, and avoid the issue completely.
    2. When you post, format your code with the \[code\] \[\/code\] tags... and just remove all the superflious code (don't just bold the pertintant bits... It took me longer to read your code then you took to post it, and I won't bother again.
    Cheers. Keith.

  • Getting the attribute value from a table from page def using el expression.

    Hi,
    Am using Jdeveloper 11.1.2.0.0 and have a requirement as follows for which a sample is been created. Requirement is as follows..
    1. Have a Taskflow that has a readonly table Employee.
    2. On clicking of a button called "route" checks if the selected row , Manager id attribute value = 200 then navigate to first page else if manager id attribute value is 200 then navigate to second page.
    Through the page def , if it has form , then we can access the attributes like #{data.view_FirstPageDef.ManagerId} . In case of acquiring the same attribute value from table using page def ? is what am unable to get..
    Have achieved the routing concept using the Router activity on Taskflow. But am unable to get the selected row attribute value of a table from the employee page def.. Can someone suggest on the same...
    Thanks and Regards,
    Vinitha G

    On the router, right click its icon in the task flow and create a page definition. Then in the page def file, add an iterator based on the same View Object from the table in the first page, then add a value attribute mapped to managerId in the View Object iterator. Finally in the router you can write EL expressions along the lines of #{bindings.ManagerId.inputValue = 200} or #{bindings.ManagerId.inputValue != 200}.
    CM.

  • KINAK field in Table KONV not getting updated with value W

    Hi,
    I have a PO where I am deleting a line item.
    After I delet line item the field KINAK in table KONV gets updated with value W.
    But I am getting instance where in some cases the field KINAK is not getting updated.
    The result is deleted line item is getting populated in PO output also.
    Regards
    Nandiini

    KINAK is updated only when a Condition is inactive ! So when a item is deleted the condition becomes inactive and gets updated with 'W' which means statistical(not to be counted)
    A     Condition exclusion item
    K     Inactive due to calculation basis/shipping material type
    L     Condition exclusion header or inactive at header level
    M     Inactive due to manual entry
    T     Inactive at header level
    W     The document item is statistical
    X     Inactive via formulae of incorrect
    X     Inactive via formulae of incorrect
    Y     Inactive because of subsequent price

  • Getting invalid-attribute-value Error during Delta Import on Call-based ECMA2

    I'm developing an ECMA2 MA to which supports delta imports.  I have found very few samples of working code to do delta imports, so my attempts are created
    using a lot of trial and error... Any samples of working Call based MA's with delta support would be much appreciated :-)
    The data is located in a SQL server and the schema (for delta) is like this (simplified):
    EmpID string
    Status string
    UPDATESTATUS string (<-- This is the update column with values New/Update/Delete)
    For each EmpID, there may be multiple Status values, i.e. Status should be imported into a multi value attribute in FIM.
    For the full import this is working as expected, but I run into issues when attempting to do the delta imports
    The code for the delta import
    private
    GetImportEntriesResults GetImportEntries_Delta(GetImportEntriesRunStep importRunStep)
    GetImportEntriesResults importReturnInfo;
    List<CSEntryChange> csentries =
    new List<CSEntryChange>();
    string employeeID =
    null;
    string appStatus =
    null;
    string currEmployeeID =
    CSEntryChange csentry =
    null;
    List<string> appStatusList =
    new List<string>();
    string changeMode =
    for (int i = currentReadRecord; i <= da.Tables["AppStatus"].Rows.Count - 1; i++)
    if (currEmployeeID != da.Tables["AppStatus"].Rows[i].ItemArray.GetValue(0).ToString().Trim())
    if (currEmployeeID !=
    "") // this should be true except for the first run
    csentry.AttributeChanges.Add(AttributeChange.CreateAttributeUpdate("IdentityStores", appStatusList));
    csentries.Add(csentry);
    appStatusList = new
    List<string>();
    if (csentries.Count >= m_importPageSize)
                  currentReadRecord = i;
    importReturnInfo = new
    GetImportEntriesResults();
    importReturnInfo.MoreToImport = (i <= da.Tables["AppStatus"].Rows.Count - 1);
    importReturnInfo.CSEntries = csentries;
    return importReturnInfo;
    changeMode = da.Tables["AppStatus"].Rows[i].ItemArray.GetValue(2).ToString().Trim();
    csentry = CSEntryChange.Create();
    csentry.ObjectType = "ApplicationIdentity";
    employeeID = da.Tables["AppStatus"].Rows[i].ItemArray.GetValue(0).ToString().Trim();
    currEmployeeID = (string)employeeID;
    switch (changeMode)
    case "New":
    csentry.ObjectModificationType = ObjectModificationType.Add;
    csentry.AttributeChanges.Add(AttributeChange.CreateAttributeAdd("EmployeeID", employeeID));
    break;
    case "Update":
    csentry.ObjectModificationType = ObjectModificationType.Update;
    csentry.DN = employeeID;
    break;
    case "Delete":
    csentry.ObjectModificationType = ObjectModificationType.Delete;
                         csentry.DN = employeeID;
    break;
    default:
    throw new
    UnexpectedDataException(string.Format("Unknown modification type: {0}", changeMode));
    appStatus = da.Tables["AppStatus"].Rows[i].ItemArray.GetValue(1).ToString().Trim();
    appStatusList.Add(appStatus);
    // save the last object
    if (csentry != null)
    csentry.AttributeChanges.Add(AttributeChange.CreateAttributeUpdate("IdentityStores", appStatusList));
    csentries.Add(csentry);
    importReturnInfo = new
    GetImportEntriesResults();
    importReturnInfo.MoreToImport = false;
    importReturnInfo.CSEntries = csentries;
    return importReturnInfo;
    The code compiles and executes, but the delta import fails with the "invalid-attribute-value" message per csentry.
    From the eventlog I have the following message
    The server encountered an unexpected error while performing an operation for a management agent.
    "System.InvalidCastException: Unable to cast object of type 'System.Collections.Generic.List`1[System.String]' to type 'System.String'.
       at Microsoft.MetadirectoryServices.Impl.Ecma2ConversionServices.AddAttributeToDImage(CDImage* pdimage, String attributeName, AttributeModificationType
    attributeModificationType, IList`1 attributeValueChanges, Int32 escapeReferenceDNValues)
       at Microsoft.MetadirectoryServices.Impl.Ecma2ConversionServices.ConvertToDImage(CSEntryChange csEntryChange, CDImage** ppDImage, Int32 escapeReferenceDNValues)
       at Microsoft.MetadirectoryServices.Impl.ScriptHost.InvokeExtMA_ImportEntry(UInt32 cBatchSize, UInt16* pcszCustomData, UInt32 cFullObject,
    _OCTET* rgoctFullObject, UInt32* rgomodt, UInt32* pcpcszChangedAttributes, UInt16*** prgpcszChangedAttributes, Int32 fIsDNStyleNone, UInt16** ppszUpdatedCustomData, _OCTET* rgoctCSImage, Int32* rgextec, UInt16** rgpszErrorName, UInt16** rgpszErrorDetail, Int32*
    pfMoreToImport)"
    To me it seems as if FIM is unable to process the List of strings that is returned when processing the delta. Remember that this works OK when doing the full import. 
    Do you have any suggestions as to why this fails?
    Kjetil

    Hi,
    Thank you Søren! I got some good clues for the right direction from your answer. If anyone would be looking same answers the correct solution would be down below. I hope it would be help for someone else too.
    Get-Shema.ps1
    $obj
    = New-Object
    -Type PSCustomObject
    $obj
    | Add-Member
    -Type NoteProperty
    -Name "Anchor-Id|String"
    -Value 1
    $obj
    | Add-Member
    -Type NoteProperty
    -Name "objectClass|String"
    -Value "user"
    $Obj
    | Add-Member
    -Type NoteProperty
    -Name "IsLicensed|Boolean"
    -Value $true
    $Obj
    | Add-Member
    -Type NoteProperty
    -Name "FirstName|String"
    -Value ""
    $Obj
    | Add-Member
    -Type NoteProperty
    -Name "LastName|String"
    -Value ""
    $Obj
    | Add-Member
    -Type NoteProperty
    -Name "mail|String"
    -Value ""
    $Obj
    | Add-Member
    -Type NoteProperty
    -Name "immutableId|String"
    -Value ""
    $Obj
    | Add-Member
    -Type NoteProperty
    -Name "DisplayName|String"
    -Value ""
    $Obj
    | Add-Member
    -Type NoteProperty
    -Name "UsageLocation|String"
    -Value ""
    $Obj
    | Add-Member
    -Type NoteProperty
    -Name "ProxyAddresses|String[]"
    -Value ("","")
    $Obj
    | Add-Member
    -Type NoteProperty
    -Name "Licenses|String[]"
    -Value ("","")
    $obj
    Import.ps1
    #Always pass objects as hash table in pipeline
    foreach ($User
    in $Users)
    $obj = @{}
    $obj.Add("Id",
    $User.UserPrincipalName)
    $obj.Add("objectClass",
    "user")
    $obj.Add("IsLicensed",
    $User.IsLicensed)
    $obj.Add("FirstName",
    $User.FirstName)
    $obj.Add("LastName",
    $User.LastName)
    $obj.Add("mail",
    $User.UserPrincipalName)
    $obj.Add("immutableId",
    $User.immutableId)
    $obj.Add("DisplayName",
    $User.DisplayName)
    $obj.Add("UsageLocation",
    $User.UsageLocation)
    $obj.Add("ProxyAddresses", ($User.ProxyAddresses
    -ne ""))
    $obj.add("Licenses", ($User.Licenses.AccountSkuId))
    $obj
    Marti

Maybe you are looking for

  • How can I determine how many pages my Laserjet 1020 printer has printed in its lifetime?

    I am trying to be proactive in determining whether I need to plan to replace my Laserjet 1020 printer.  I know that I have seen printouts from resellers/refurbishers which show the number of pages that a printer has printed in its lifetime.  I am jus

  • Bluetooth not functioning correctly.

    Bluetooth not functioning correctly. I have version 10.10.2. How can I get it to connect and be stable?

  • Connecting iPad 2 to a projector

    I recently purchased an iPad 2 to use in the classroom with a projector.  I am using the VGA adapter sold by apple with a standard VGA male to male cable to make a connection to a wall plate.  I am getting a signal but it drops out periodically and t

  • RH8 web help not displaying in IE9

    Hi all, We've just encountered a problem where a customer could not open web help created from RH8 in the IE9 browser. To quote the reportee... "IE reports 'the address is not valid'. But, this only happens when calling the help files using the serve

  • Little semi-transparent Finder window icons, tabs

    When I move a Finder window, I sometimes accidentally grab the tab (because there's very little visual distinction between the two, poor UI IMHO). When I release the mouse, it leaves a semi-transparent icon version of the Finder window. You can liter