To get current view/jsff

Guys,
My application is desinged using oracle dynamica tab shell. At some moments, i want to check programatically what is the page (jsff/view) being displayed (which is seen by the user). is there anyway to do it?
Basically i have the business requirement to find the logical context of the page which user is seeing...(accordingly we need to execute some kind of logic)
any pointers would be appreciated...

hi,
maybe this is useful:
http://biemond.blogspot.com/2009/03/some-handy-code-for-backing-beans-adf.html
http://biemond.blogspot.com/2011/01/some-handy-code-for-your-managed-beans.html
regards,
Brano

Similar Messages

  • Get current View in ViewNavigatorApplication

    Hello,
    How can I get the name of the Class for the current view in a ViewNavigatorApplication, please?
    Thank you.

    OK, this is what I've done,I'm not sure if it's the best way.
    Also, I have not been able to find a way to compare navigator.activeView to navigator.firstView.
    private function currentViewIsFirstView():Boolean
            if(navigator.activeView.className.toLowerCase()=='name_of_first_view_class'){return true;}
            return false;
    I'm doing this so I can exit the NativeApplication when the Back Button (Android) is pressed on the first view.

  • How to get current viewed task

    For an external synchronization requirement I need to maintain or be able to retrieve the current viewed task by a user. I'm hopeful that this has been solved before. Does anyone have any insight there? I'm considering setting up a table to maintain the current viewed taskid for the user, but even that is proving challenging with my lack of ADF exposure. I see the 'TaskSelectedEvent' in the wizard generated task form I'm using but I'm not sure how I might leverage that.
    Any help is appreciated.

    Yes. there is no API to get the current task.
    Try this:
    WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("wi_id");
    But i still say a bit confused with your requirement.
    The task id gets created only upon creation of a task. And you want this current task id in the BPM Process context? How is it possible unless and until some action takes place and the data is passed from WDJ to BPM Context?
    Please clear my doubt.

  • How to get current view name on clicking device back button?

    Hi,
    iam wriing a function for handling device back button(in android) press in my app.controller.js .How to get current viewname when clicking device back button.
    code samples will be helpful.
    my app.controller.js looks like below
    sap.ui.controller("com.opensap.App", {
      onInit : function() {
      document.addEventListener("deviceready", onDeviceReady, false);
      onBeforeShow : function(evt) {
      navButtonTap : function(evt) { 
    function onBackKeyDown(){
      //alert("hai");
      //sap.ui.getCore().byId("SalesDetail").app.backToPage("ProductList");
      //sap.ui.getCore().byId("ProductList").app.backToPage("Dashboard");
      //sap.ui.getCore().byId("SupplierDetail").app.backToPage("Dashboard");
    function onDeviceReady(){
       document.addEventListener("backbutton", onBackKeyDown, false);

    I somehow managed to find the solution
    function onBackKeyDown(){
      var app = sap.ui.getCore().byId("LoginDetail").app;
      app.back();

  • Getting current view via Javascript

    In a 3D model with multiple named views, when the user selects a view from either the Views pulldown on the 3D toolbar or from the View pane under the Model Tree, the model is oriented to selected view. Is there a method in Javascript to find which named view is the currently selected view? I don't see anything in the 3D Javascript API other than getting the camera position and trying to infer which view it could be.
    Thanks.

    Selecting a view from the toolbar fires a cameraEvent in the 3D API, but there is no access to the view which triggers it. In fact there's no exposure of the 'view' object except by name, because view presets define a whole bunch of parameters beyond the scope of the JSAPI.
    You're correct in saying the only way you could work out which view preset was chosen would be to compare the camera matrix immediately after the cameraEvent fires to a static array of exemplars in your code - you cannot dynamically read the presets from the toolbar.

  • Print "Current View" not avail in Acro 9

    I am trying to print a selected area on the page.  In prior versions, I could zoom in on the area, click print and then choose "Current view" under print range.  In Acrobat 9, I don't have "Current View", but I do have "Selected Pages".
    Is there a way to print the current view short of extracting the page, cropping it then printing it?
    The online help page at http://help.adobe.com/en_US/Acrobat/9.0/Standard/WS58a04a822e3e50102bd615109794195ff-7bde. w.html says it should be there, but it is not.

    Bernd,
    Just closing the "Pages" navigation panel does not do it.  What I figured out was that if a page is preselected in the "Pages" navigation panel, then I get "Selected Pages" in the print range. I get that even with the navigation panel closed.
    In order to get "Current View", I have to click off of the page in the navigation panel so that no page is preselected. Now I can print what is shown in the graphics window.
    Thanks for your help.
    Kirk

  • Q. 2:  Powerpoint for Mac 2011  Version 1     How do I get PRESENTER VIEW to work so I can see my notes and the audience only sees the slide show?  Currently PRESENTER VIEW shows up on the flatscreen and my laptop shows only the slide show....?!

    Q. 2:  Powerpoint for Mac 2011  Version 1     How do I get PRESENTER VIEW to work so I can see my notes and the audience only sees the slide show?  Currently PRESENTER VIEW shows up on the flatscreen and my laptop shows only the slide show....?!

    As PowerPoint it a Microsoft product, you may find that you get better answers to your question on their PowerPoint forums.
    Best of luck.

  • How to get the current view name is displaying?

    Hi Experts,
    I have a requirement that I have to know the current view is displaying. At the header of the page, there is a component (BTCHIST) which is fix and common for the all others. It has a button called Finish. When the user clicks on it, it has a different behavior depending on the current view.
    Does anyone know any method in order to get this information? I searched up in CRM_UI_FRAME, however I didnu2019t find anything.
    Regards,
    André

    Hi,
    You need to redefine the method IF_BSP_WD_HISTORY_STATE_DESCR~GET_STATE_DESCRIPTION of the controller class to change the view description. Unfortunately, the effort is huge and we cannot do it dynamically and needs to be done for each view in question.
    Regards
    Prasenjit

  • How to get activity (outcome) which navigated to current view

    Hi!
    Is there a way to get activity (outcome string) that was cause of navigation to current view? For example, I have a view named SearchPage and I can navigate to this page from two outcomes (success and failed) from some taskflow (for example, the EditItem taskflow). I want to detect from which outcome (success or failed) I have returned to SerachPage. How to get this? I know I can use output parameters from taskflow, but I would like to simplify the case so I don't have to deal with output parameters but to rely on navigation rules / outcomes.
    Thanks,
    Pavle

    Hello Pavle,
    Unless I misunderstand your use case, this should really be a task flow input parameter previously set using a method call activity preceding the task flow call. From what I understand, you have 2 options:
    Option 1
    EditItem task flow:
    state1
      someTransition
      --> state2
        success
        --> method call that set a request attribute to success
        --> call the task flow, passing the request attribute as an input parameter
        failure
        --> method call that set a request attribute to failure
        --> call the task flow, passing the request attribute as an input parameter
    Option 1
    EditItem task flow:
    state1
      someTransition
      --> state2
        success
        --> call the task flow, passing success as an input parameter
        failure
        --> call the task flow, passing failure as an input parameterPersonally I prefer the first option as I prefer to duplicate method call state than task flow calls for easier maintenance as I consider task flow call to be more complex activities than simple method calls and thus prefer to duplicate the latter over the former.
    Regards,
    ~ Simon

  • Get current playlist in iTunes

    I'm pretty sure this worked at one time, but I don't know what was changed.
    I need to get the name of the currently selected playlist.The following command doesn't work on 2 different computers (10.4 & 10.3).
    tell application "iTunes" to get current playlist
    Looking at the dictionary from both machines, this should work. I'm totally confused, hopfully I'm just missing something stupid.
    Oh ya, the "current track" property has the same problem.
    Both properties only return "unknown object" error
    iBookG4/eMac/iMacx2/G3300/G4400   Mac OS X (10.4.2)  

    Current track & playlist only return info about what's playing. If nothing is playing, you'll get an error. What you want is the visible selection, which is obtained thusly:
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">tell application "iTunes" to get view of front browser window</pre>You can also get the playlist from a visible track selection:
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">tell application "iTunes"
    set selected_tracks to selection
    set selected_playlist to container of first item of selected_tracks
    end tell</pre>

  • Get current LOCATION in ProcessFlow (PF) or Mapping

    How can I get current LOCATION from running PF or Mapping?
    I need to run PF.
    Name of PF passing via parameter of PF.
    I know about wb_rt_api_exec.run_task, but first parameter is LOCATION.

    It is possible to get location from ALL_RT_AUDIT_EXECUTIONS OWB public view (column OBJECT_LOCATION_NAME),
    if I understand your requirements properly.
    Filter rows from ALL_RT_AUDIT_EXECUTIONS via execution_audit_id, in processflow you can use predefined variable AUDIT_ID for currently running processflow audit id
    Regards,
    Oleg

  • How to get the view Object in UserDefined Action

    Hi  All,
       Any body tell me how to get the view object , like the view object avilable in the wdDoModifyView() method as parameter.
    I have requirement like, i want to change the , no of rows displaying in the table should be changed at the runtime based onthe no of rows  selected in the dropdown box.
    The action which i created will be assigned to that dropdown box, on select of the available option, i will get the view object and change the properties of the "maxrows" of the table .
    so for getting the view object in the  the Action methods tell me what is the procedure for getting the current view object.

    Hello Vishal,
    Simply create a value attribute (say rowCount) of type 'integer' and bind it to the 'visibleRowCount' property of your table. Then, in the actionHandler get the value from the UI element (in your case, I guess it is drop down) and set it to the attribute 'rowCount' like this.
    wdContext.currentContextElement.setRowCount(
        wdContext.current<nodeElement>.set<AttributeBound toDropDown>);
    Bala

  • How to get current PopUp Window

    Dear All,
    I am using NetWeaver 7.1 sp1 and facing a problem. Actually I want to show a view in popup window. The popup window works fine but i want to get currently popup window. How can i get it in View and controller ??
    I found a solution : wdContext.currentPopupElement().getWindowInstacnce();
    but in wdContext there is no method like .currentPopupElement(). plz help.

    Hi
    wdContext.currentPopupElement().getWindowInstacnce();
      Here PopupElement is a attribute of IWDWindow type where u have to put the window instances (say For close or life control of that popup)
    For further plz go through these doc
    1. [Dialog|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/903fed0d-7be4-2a10-cd96-9136707374e1&overridelayout=true]
    2. [Popup Window|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a04870c5-749b-2b10-06ba-d25515ef39e3&overridelayout=true]
    Best Regards
    Satish Kumar

  • Current View option in  the Print dialog box

    I have a PDF file, approximately 55 pages that is comrpised of 50+ .jpg images that were combined into a single PDF file. The images are various size screenshots from Facebook.
    I need to be able to print the entire file at 75% magnification in order for every page to be readable.  Only way in Adobe’s print dialog box that I can find to do so is select one page at a time, select “Current View” and then print. 
    When "All" is selected under Print Range in the Print Dialog box, the pages print at different magnifications, most below 10% and unreadable.
    Is there a way to get the entire document to print in the “Current View” setting or at a specified magnification?
    I’m using Adobe Acrobat 9 Pro.
    Any help would be greatly appreciated.
    Thanks

    duh...
    Figured out I had to tweak it in the "copies and Pages"

  • How to set Print...More Options...Current View in ActiveX control?

    I am using Visual Studio 2012 to develop an application that will open large PDFs (24" x 36") and allow the user to zoom to a particular part of the document. I want to give them a Print button on my application to simply print the Current View of the document to the default printer. I want limited customer options, so no showing the Print Dialog, etc... This will be for general customer use. I am trying to do this with the Acrobat Reader ActiveX control. If this cannot be done with the ActiveX control, I thins something I could do with the full Acrobat SDK? Thanks!

    The Reader control actually does what I want pretty well. I set the mouse wheel to allow zooming, the hand tool to drag the document around works easy and fast. I just need to turn off some of the Acrobat Toolbar options and set this Print Current View option.
    This is frustrating as back in Acrobat Reader 7 or 8 I think, you could set the Current View in the Print Dialog and the setting would stay until it was specifically changed. Now it reverts per print job, thus I now having to code against the Reader control, or other, to get around it, to keep the user from having to set this option each time (and the user will change frequently as they are walk-in customers)
    Anyway with this additional list of requirements, do you thihnk I still cannot do it with the Reader ActiveX control? If not, and I need to use the SDK, do you mean I would have to buy a full copy of Adobe Acrobat and install on that system for the application to work? If so, do I also need to buy another full copy of Adobe Acrobat for my development system so I can write code and test the application? If I need a full copy for the Dev computer, does Adobe have any kind of reduced pricing for a Dev version?
    Thanks!

Maybe you are looking for