This discussion is archived
2 Replies Latest reply: Oct 1, 2013 5:16 AM by user13424229 RSS

Issue with attachment in OAF

user13424229 Explorer
Currently Being Moderated

Hi All,

I have a issue with attachment functionality in OAF,

 

I have a custom OAF page, in the header part of the page i have one attachment button there i am attaching a file, so i am able to attach the file the issue is.

 

when the page loads for the first time it will populate a sequence in one of the field in the page , but when i am clicking the add attachment button i am able to aatched a file but the sequence getting chnaging, but i need the same sequence wht it was displayed during first page loads, so how i can restict page refreshing in attachment functionaly so that i can store the attachment file in the same sequence number what it was populared first time, please help me on this.

 

Thnaks

  • 1. Re: Issue with attachment in OAF
    user13424229 Explorer
    Currently Being Moderated

    Hi All,

     

    I tried something like below but still geeting the issue.

    in PFR  i have written as below:

     

    if ( OA_ADD_ATTACHMENT .equals(pageContext.getParameter(EVENT_PARAM)) )

    {

    aFlag="attachment";

    pageContext.putSessionValueDirect("xxretainAM", pageContext.getApplicationModule(webBean));

    }

     

    in process request have written like below:

     

    if (aFlag.equals("attachment")) {

     

     

    am=(OAApplicationModule)pageContext.getSessionValueDirect("xxretainAM");

     

     

    }

     

    so how i can retain the data when i navigate from attachment page to base page in OAF.

     

    Thnaks

  • 2. Re: Issue with attachment in OAF
    user13424229 Explorer
    Currently Being Moderated

    I could able to solve the issue by using the above code in an if else statement, in process request i kept

     

    like below:

     

    if (aFlag.equals("attachment")) {

     

     

    am=(OAApplicationModule)pageContext.getSessionValueDirect("xxretainAM");

     

     

    }

    else

    {

    rest of my code in process request

    }

     

    Thnaks

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points