Problems in Opening same jspx in different modes based on user selection

Hello,
I'm using JDeveloper 11.1.1.4.0
Following is my use case and problems with each of the solutions that I have tried so far.
1. Screen1 displays 4 af:tables. Right cilck of each table is a separate context sensitive menu.
2. Using context sensitive menu items, user should open ReplyScreen and ConfirmScreen. Each of these screens support different functinoality however,
they share quite a few common fields and functionality (variables).
3. User should be allowed to work with each of the screens simultaneously.
4. For simplicity, only 'Reply' and 'Confirm' modes are mentioned. However there are going to be 3 additional modes such as 'Correct', 'View' and 'Delete'.
From code maintenability perspective, each of the 'Mode' specific screens should be a result of a single JSPX and bean.
Solutions tried:
1. Create a single JSP. Maintain the common variables in session.
Problem: When user opens ReplyScreen, common variables are initialized. However, when he opens ConfirmScreen without closing ReplyScreen, common variables
get overwritten.
2. Create a single JSP. Maintain the common variables in Iterator, along with all the values fetched from DB.
Problem: Same iterator object is shared amongst both pages.
Question:
1. How to create a single JSPX and attach each of its 'modes' (ReplyScreen and ConfirmScreen) to different Iterator objects?
Any help will be appreciated...
Thanks,
Rohit
Edited by: rohit6699 on Nov 18, 2011 1:15 AM
Added tags

Try creating a bounded taskflow that relies on parameters to define what it shows and how it behaves.
The taskflow can use its own memory and transaction scope as needed and therefor you should be able to have multiple instances of it open with different behaviors.
Learn more about taskfllows and regions here:
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/adfinsider-093342.html#a2

Similar Messages

  • Output different data based on user select

    Hi everyone,
    Quick question, I would like to output different report columns based on user select, eg., users would be presented with two choices in a radiobutton list, eg., 1 and 2.
    I have query results that contain columns A, B, C, D, E, F, G.
    If user selects 1 then the output should be columns A, B, C, D, E.
    If user selects 2 then the output should be columns A, B, C, F, G.
    I am sure this is possible and easy? If so, what topic should I be reading/searching internet on?
    Please advise.
    Thanks!

    I would say that this is most often something that your user interface should be dealing with (i.e. which columns should be shown).
    There is no way to do that in SQL.
    In PL/SQL it is a simple situation of creating two cursors and simply deciding which one to open.
    <pre>declare
    l_cur sys_refcursor;
    begin
    if :user_selection = 1 then
    open l_cur for select A, B, C, D, E from tbl;
    else
    open l_cur for select A, B, C, F, G from tbl;
    end if;
    -- use the cursor
    close l_cur; -- or return to user interface
    end;
    /</pre>
    Hope this helps.

  • Redirect to different pages based on user input value

    Hello,
    Anyone please help.
    I am trying to redirect to different pages based on user inputs. I have a form in which I have one text item and a submit button. For example consider text item to be empno; So once the user enters a empno and hits submit button; I need to redirect to different pages based on this job.
    For Ex: if user inputs empno whose job is 'ANALYST' then redirect to page 1
    if user inputs empno whose job is 'MANAGER' then redirect to page 10
    For this scenario. i wrote a pl/sql process for the submit button; but no luck -- its not at all redirecting instead its in the same page. Below is the process.
    declare
    v_job varchar2(20);
    begin
    select job into v_job from emp where empno = :P9_EMPNO_R;
    if v_job = 'ANALYST' then
    OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:1:&SESSION.::&DEBUG.::', TRUE);
    end if;
    if v_job = 'MANAGER' then
    OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:10:&SESSION.::&DEBUG.::', TRUE);
    end if;
    end;Please help. I am using Oracle APEX version 4.2 and database Oracle 11g R2
    Thanks,
    Orton

    orton607 wrote:
    Hello,
    Anyone please help.
    I am trying to redirect to different pages based on user inputs. I have a form in which I have one text item and a submit button. For example consider text item to be empno; So once the user enters a empno and hits submit button; I need to redirect to different pages based on this job.
    For Ex: if user inputs empno whose job is 'ANALYST' then redirect to page 1
    if user inputs empno whose job is 'MANAGER' then redirect to page 10
    For this scenario. i wrote a pl/sql process for the submit button; but no luck -- its not at all redirecting instead its in the same page. Below is the process.
    declare
    v_job varchar2(20);
    begin
    select job into v_job from emp where empno = :P9_EMPNO_R;
    if v_job = 'ANALYST' then
    OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:1:&SESSION.::&DEBUG.::', TRUE);
    end if;
    if v_job = 'MANAGER' then
    OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:10:&SESSION.::&DEBUG.::', TRUE);
    end if;
    end;Please help. I am using Oracle APEX version 4.2 and database Oracle 11g R2
    Thanks,
    OrtonI have a similar scenario in my application and this is how I handle it.
    1. Create a page item on the page, say Px_PAGE_NUM
    2. Create a "On Submit - After Computations and Validations" page process to set the above page item. In your case, you can use the same logic that you have already in place (except the call to OWA_UTIL.REDIRECT_URL) :
    declare
    v_job varchar2(20);
    begin
    select job into v_job from emp where empno = :P9_EMPNO_R;
    if v_job = 'ANALYST' then
       :Px_PAGE_NUM := '1';
    end if;
    if v_job = 'MANAGER' then
       :Px_PAGE_NUM := '10';
    end if;
    end;3. Create a "On Submit: After processing" branch. Specify the "Target Type" as "Page in the application" and "Page Number" as &Px_PAGE_NUM. (with the dot).
    I hope the above helps.
    BTW, the following thread in the forum related to OWA_UTIL.REDIRECT_URL might help:
    issue OWA_UTIL.REDIRECT_URL with APEX 4.1.1

  • Problem in opening excel file in different window

    hi
    i want to open excel file in different window it open in same window properly on the bases of condition but when i try to open in different with window.open( )
    it give error that file has already used or path not exist OR requisted site either unavailable
    how can i rectified

    Hi.
    I am too facing the same problem. I am using Jakarta Poi to display my resultset in an excel sheet directly(and not into a jsp)
    The browser opens a window showing Open Save Cancel. If i click and save the excel sheet and then open, it opens. But clicking on Open directly doesnt open the excel sheet. Rather it gives the same error
    The file name or path name does not exist.
    The file you are trying to open is being used by another progrtam . close the document in other program and try again
    The name of the work book your tring to save is the same as name of another document that is readonly .try saving workbook with different name
    Can somebody please help me fix this problem, since its an urgent requirement. Mail me at [email protected]
    Thanks
    Hitesh

  • OBIEE report based on same criteria but different view based on filter

    Hi,
    I am trying to create a report in OBIEE 11.1.1.5 where In the same report using the same criteria, I can have different views which applies different filter.
    Suppose, I have a report criteria as
    Dim1, Dim2, Measure1, Measure 2.
    I want to create two pivot view based on the same data.
    One view will be showing data Dim1="Value1". The other view is duplicate of this view but will show data Dim1="Value2".
    Is it possible in OBIEE?
    basically what I want is work on the same dataset but different representation and show them in the same report. Please share your opinion.
    Regards,
    Tanveer.

    Hi,
    You create a new dim dummy column in criteria and in presentation level create new pivot table view use this dummy dimension column and filter with dim1=value2.
    give updates on this.
    Mark if Helpful/correct.
    Thanks.

  • Dynamic dropdown based on user selection of another dropdown on the same page

    hi all, ok, I have a table which contains use data, a name,
    and a userID. for the example lets say "Simon Bullen" and my userID
    is "999".
    on a form I have, there is a dropdown box, which is dynamic
    from this table, and allows me to select Simon Bullen, however, I
    have a hidden field on the form, which when the user selects "simon
    bullen" the hidden field populates with the appropiate U number
    from the same table.... no i thought this would do it:
    <cfquery name="userNumber" datasource="userList">
    SELECT userNumber FROM dbo.Users WHERE Name =
    <cfqueryparam value="#form.Name#">
    </cfquery>
    and then my dynamic form field (hidden) would reference to
    this query....
    but it doens't work, could somebody please enlighten me? I'm
    hoping its something silly
    Thanks in advance

    You could make the value of the option the UserID and the
    option display the name.
    If that isn't what you need, I think you'll need some
    javascript to populate your hidden field based on what is chosen in
    the select.
    I think you can modify this:
    http://www.javascriptkit.com/javatutors/selectcontent2.shtml
    ...to populate your hidden field instead of a new select
    list.
    If there's a way to do that without JS I'm not aware of it.
    A third possibility: look up the UserID (based on the name
    chosen) after the form is submitted then do with it whatever you
    need to.

  • Can't open same pdf to different page...

    I am creating a pdf document that contains hyperlinks to open other pdf files to specific pages by adding #page=pagenumber to the end of the url.  The problem arises when I've opened a pdf with one link, then click a link to the same pdf, but with a different page number specified.  Because that pdf is already open, it will not re-open and go to the second page.  It just sits there on the first page opened in that pdf and does nothing.
    I have found ond kludgey work around - adding additional forward slashes in one of the the urls will fool the system into thinking the urls are different and the same pdf can be opened to different pages one after the other, no problem.  I'm hoping someone has a more elegent solution.  Thanks for any advice you can give.

    I tried named destinations as you suggested, but didn't work.  Thanks for the suggestion, though.  I may have found a partial fix.  I'm creating my pdf in InDesign CS5 and, on a hunch, I tried setting two button actions: Go To Next View before Go To Url.  For some reason, when I export the document to a pdf, the links will now work as I wanted.  I'm not sure why this works since, from what I read, Go To Next View should only do something if you've gone to a previous view, giving it somewhere to return to.  I'll take it, though.
    To answer your first question, the reason I want to link one pdf to multiple pages in a second pdf is that we have many large pdfs containing our company's procedures - yes, they're so large that putting them all in one file is not practical.  So, when I need to refer readers to something in another pdf, I want to have them click a link or button and the second pdf will open in a new window to the page I specified.  One link on one page might take them to the Glossary clear at the back of the other pdf, and another link might take them to the Introduction at the start of the pdf.  I'm amazed from my searching that there isn't more about this issue online.  I have found a few people who experienced the same thing, but none of them have ever solved it.  It's not just limited to buttons in pdfs, either - creating links in an HTML document has the same problem of not being able to open the same document to two different pages successively using two links.

  • Link same column to different forms based on column value

    Hi All
    I have one report with column "STATUS" with values 'schedule' and 'Active'. I want to link this column to some forms based on these values if column value is 'schedule' then it will go to some other form or if value is 'Active ' then go to some other forms and also i want to send some parameters of particular column value so it will fetch data from table based on this status. how can i link same column to diffrent forms. please help me out.
    Thanks

    Hi,
    In the report query you can conditionally generate the links.
    Example.
    select
    case when status = 'schedule' then  '<a href="'||'f?p=&APP_ID.:150:&SESSION.::NO:150:P150_ITEM1,P150_ITEM2:'||
          value_for_item1||','||lvalue_for_item2||'">status </a>'
    when status = 'active' then  '<a href="'||'f?p=&APP_ID.:200:&SESSION.::NO:200:P200_ITEM1,P200_ITEM2:'||
          value_for_item1||','||lvalue_for_item2||'">status </a>'
    else status end column_title,
    ....Regards,
    Natarajan
    Edited by: Nattu on Mar 18, 2013 11:53 PM

  • Filling a table in Dreamweaver with different lists based on user decisions

    Hi, I'm very new to Dreamweaver and web design as a whole, so this might seem like a far fetched idea.
    What I want to do is have a situation where a user could click one of 4 buttons, upon which a predefined list would appear, presumably populating a table. As in, there are four lists (A, B, C, and D), and clicking on the respective button would make that respective list appear in a table. I only assume that a table is the appropriate option here. Furthermore, I want the user to be able to click on an element in the appearing list to make an image appear.
    Does anyone have any ideas on how I can do this? Am I on the right track with a table? I might be thinking too much in java...
    Thank you very much.

    I might be thinking too much in java...
    I believe you have confused Java with JavaScript. The two are very different, and usually when talking about web pages and interactive effects on them, it's the latter that would be relevant.
    You could do what you want most easily by building a page with all 4 tables (each containing the desired display effects already applied) explicitly coded (presumably one after the other). Each of these tables should be given a unique ID value (e.g., id="table1", id="table2", etc.) Then you would use CSS to hide all 4 tables using the style "display:none;". Then you would apply a javascript behavior to each of your buttons to change the CSS style on the table from "display:none;" to "display:block". That would make only that table appear. In addition, each of those buttons would have to set the style on the three other tables back to "display:none" to account for any table that may have been previously made visible.
    You can do this style changing using the DW behavior called "Change Property", by changing the display style on the desired table to "block", and on the other tables to "none;".
    This is a lot for a beginning user to absorb, so ask questions as you need answers. I don't think there would be any easier way to do this.

  • Usage of Different Prompt based on Users Role in OBIEE

    Hi
    I have a requirement(OBIEE Reports) as below.
    The Dashboard page will have a Prompt(Drop Down) Say for Geography where it will list all the countries available.When a global user(Role) logs in to the application he should see all the list of available countries along with "All Choice" option in the prompt.But when a Country user(Role) logs in he should see only the country available for him in the prompt without "All Choice" Option.Also if the Country user(Role) belongs to more then one country he should see all countries he belongs to along with the "All Choice" option in the prompt.
    Any help on this is Appreciated.
    With Regards
    Subhadipta Samantray
    Edited by: user635206 on Jun 11, 2009 10:22 AM
    Edited by: user635206 on Jun 11, 2009 10:23 AM

    Hi
    Like David points, you may use Security Groups to display 1 or more Countries to the User depending upon 'Global' or 'Country'. You will have to use content filters to reflect the scope of the user in session.
    Then 'All Choices' is a prompt front-end feature. You cannot restrict to 'Country' but 'Country' anyway cant see more rows that he is eligible. So, you may consider 'All Choices' for all users.
    Try and tell us if this worked for you

  • Branch to different page based on the selection of select list

    Hi All,
    I have to create an application in which i have a form containing a field with static lov's ...
    now i want that whenever i click on a save button it branches to some page based on the selected value of lov of that field...
    like if i select marketing from lov and press save button then it will branch me to marketing page...
    so how can i achieve that in my apex application
    please help if anyone knows the answer

    in the page branch, change the page to *&PX_LOV_NAME.*
    change X to page number and the LOV_NAME to the name of your select list
    Don't forget to add the . on the end
    Hope this helps

  • Displaying different reports based on user input.

    Hi,
    I have a requirement to display the invoiced amount and Ago amount on a dashboard. The ago amount will be dynamic in that if user selects the prompt 'compare with' as previous day, it should display day ago amount along with todays amount. It he chooses month, then it should display this month's amount and previous month's amount.
    Is there a way I can achieve this on a dashboard?
    Thanks,
    Vivek.

    Use guided navigation. And you need to have 2 reports (one for day level and the other for month level, eac has own AGO part). And some reports for guided navigation conditions.
    Regards
    Goran
    http://108obiee.blogspot.com

  • Unable to open same form with Multiple logins on Windows IE8

    Hello All,
    We recently upgraded our instance from Jinitiator to Java Plugin Version 1.6 U18.
    After that we are unable to open same form from different logins on a same windows machine.
    the following is scenario.
    1) Login as X user into EBS and open a sales order form. -- Every thing is fine.
    2) On the same machine in another browser window, login as X user again and open Sales order form. --- No issue here also,
    3) On the same machine in another browser window(Keeping the above forms open), login as Y user and open sales order form ---> Form opened from Y user is fine, but, both forms of X user are exiting Oracle applications with message" Your logon session become invalid. Exiting Oracle applications".
    we have encountered issues with opening an attachment from a form, and it is resolved by Unchecking "Enable the next generation java plugin" option in Java control panal --> Advanced -> Java plugin. This workaround done according to note: 290807.1
    But the multiple login issue is not resolved.
    THis isssue is in our PROD and we are loosing customers. Please Advice ASAP.
    THanks.
    Rama Krishna N K J

    Hi Rama;
    It was working before? If yes what have you been changed on your system?(patch etc) You have same error on IE 7 or firefox? Did you check apache log file for more details? You have any FRM error code?
    Please check those settings on your IE8:
    1 - Go to Tools > Internet Options > Security > Select Sites > click on button "Sites": add the url of ebs.
    2 - Go to Tools > Internet Options > Security > Select Sites > Custom Level > Disabled XSS filter.
    Also check:
    Recommended Browsers for Oracle E-Business Suite 11i [ID 285218.1]
    Regard
    Helios

  • [JS] Open TextFrame in "Text-Edit-Mode"...

    Hey guys,
    i use Javascript and InDesign CS4. And my simple question is how can i open
    an textframe in edit mode for the user ?
    Thx!

    Thanks! Thats just to simple

  • How to load and unload same SWF with different xmlFilePath?

    I have a slideshow on my homepage and try to load and unload same instance with different xmlFilePath based on language on the same page.
    var flashvars = {
            xmlFilePath: escape("http://www.bodto.com.tr/kik.aspx"),
            xmlFileType: "OPML",
            lang: swfobject.getQueryParamValue("lang")    
            //initialURL: escape(document.location)   
          var params = {
            bgcolor: "#000000",  
            allowfullscreen: "true",
            wmode:"transparent",
            allowScriptAccess: "always"
          var attributes = {}
              swfobject.embedSWF("/swf/slideshowpro.swf", "flashcontent", "550", "400", "10.0.0", false, flashvars, params, attributes);
    Actionscript3
    var langPath = root.LoaderInfo.parameters["xmlFilePath"]+root.LoaderInfo.parameters["lang"];
    my_ssp.xmlFilePath = langPath;
    var fileType = root.LoaderInfo.parameters["xmlFileType"];
    my_ssp.xmlFileType = fileType;
    Based on above informations, how could I achieve it?

    Suddenly that code in the following gives me some error
    var langPath = root.LoaderInfo.parameters["xmlFilePath"]+root.LoaderInfo.parameters["lang"];
    my_ssp.xmlFilePath = langPath;
    var fileType = root.LoaderInfo.parameters["xmlFileType"];
    my_ssp.xmlFileType = fileType;
    Access of possibly undefined property LoaderInfo through a reference with static type flash.display:DisplayObject.
    The only code snippet works is
    var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
    for (var param in paramObj) {
       if (param == "xmlFilePath") {
          my_ssp.xmlFilePath = paramObj[param];
       if (param == "xmlFileType") {
          my_ssp.xmlFileType = paramObj[param];

Maybe you are looking for

  • Unable to open Form Repsonse File

    Hello, I am unable to open a response file to one of my distributed forms. I have made no changes to my system or the file. I get the following error "To view the Flash technology content in this pdf file, please install this version of Flash Player

  • I don't want to lose all my data...Can someone walk me through???

    OK, so I got the 8800 (actually 8820) about November of 2007.Love it!! Wish it had a camera but not bothered.  For over the last year and 5 months I've stored everyone's birthday, addresses, cell, home, work, email, notes, etc and it's so great.  I g

  • Acrobat freezes up after being open approx 14 seconds

    Here are the issues that I  have found with my version of Adobe Acrobat: Adobe Acrobat Pro 9.0 Windows XP Adobe Acrobat Pro 9.0 Issues: After about 14 seconds, the Acrobat Pro 9.0 locks up.  The only way to stop it is to end the program.  There does

  • Make the currency field in SOCO editable

    Hi All: PDP Scenario I have a requirement to make the currency field in SOCO. I did try to control it in SPRO > SAP SRM > Cross-App > Extensions and Field Control > Configure Control for Fields on Item Level > Metadata for Fields on Item Levels, but

  • Can a Photo page be used as thumbnail links to movie pages?

    I've made a photo page with say 20 or so photo thumbnails. I have made separate movie pages for each movie. Dragged each movie page link to the related picture on the photo page and sized the button to be the same size as the thumbnail image. Checked