Dynamic tab Interface User Shell - close the tab action & number of open tabs control

Hello
I browsed the forum, but could not get their hands on a concrete solution to the issue on how to capture the event action to close the tab and perform an action on this?
The thread below about my question, but doesn't seem to have a good solution
Re: Dynamic tab Interface User Shell: control icon close

And another question, currently in the TabContext the number of open tabs is at the limit of 15. How can I replace only such that I do not allow more than 7 tabs open at the same time?

Please help me with the two queries above. Thank you!

Kind regards
SS

Sorry for the delay so much. Finally got some time to play with the model and by downloading the source code for dynamicTabTemplate and substituting the closeIcon worked like a charm.
Let me summarize what I did to help someone who is looking for it :)
(1) download the source code for dynamicTabTemplate
(2) added and additional attribute to the model closeTab
++
+closeTab+.
+java.lang.String+.
++
true
+
+
+
+
(2) the dynamicTabShell.jspx edition, closeIcon commanlink actionListener to be linked to the "#{viewScope.tabContext.closeIcon}".
(3) implemented the method of closeIcon in TabContext
+@Override+
+ ' public void closeIcon (ActionEvent actionEvent) {+
CloseIconInterface bean = getBean().
bean.closeIcon (actionEvent);
+}+
(4) generated the jar.
(5) delete the oracle supplied jar dynamicTabTemplate by default and instead added my custom pot generated on demand
(6) implementing the new model
(7) set all attributes with attribute closeTab. It would take the name of BackingBean... example:
(8) xxxBean done to implement CloseTabInterface
(9) implementation of the method closeIcon with custom code to confirm the page close prior to removal of the tab.

However as you say, I will keep tab on the future updates of the default model tab updates fail bug fixes or improvements.

Thanks to all those who have looked into this for me and I hope this helps someone else :)... Good luck!

Tags: Java

Similar Questions

  • A challenge: combining dirty tab Interface User Shell + self-closing-BTF

    I find it difficult to use the facilities of the shell of the interface user ADF of the conduct of the stubborn self-closing-standalone task.

    What the Shell of the user ADF interface does well: in the Shell of the user interface, you can open a standalone BTF as an activity, and if the BTF closes itself (that is to say... given the user selects ok or cancel/close button, the BTF stand-alone navigates to a special return flow option), the BTF closes and the ADF UI Shell correctly closes the tab around the activity.

    My challenge is that I want to add installation tab 'dirty' shell ADF of the user interface for the task force, such as if the user inside the BTF selects a custom cancel/close button (not the Shell UI button close tabs) that accesses the task-flow-back option in the Working Group, they had the chance to confirm or cancel the closing via the ADF UI Shell dirty tab popup. (Note that task-flow-return options are crucial to BTF to self-latch because they not only allow the BTF of commit / rollback, as well as make them re-entering or playing with the functions of backup point).

    If the ADF UI Shell shellLauncher Bon we call method makeCurrentTabDirty on the opening of the BTF, activity of the BTF tab is italicized properly. Even if the user selects the BTF Cancel button, the BTF farm (she disappears in fact from the Shell of the user of ADF interface) but the Shell of the user activity tab interface is still visible, then watch the dialogue dirty tab, which is too late, the Working Group has already closed.

    So my solution is when the button close down BTF, before he navigates to the BTF task-flow-back option, I can get the ActionListener to the button close BTF to trigger an event that is contextual to the shell of the user ADF to capture interface "shut up" occurrence. The Shell of the user interface then has a chance to show the dirty tab dialog box by capturing the contextual event.

    Then, my sticking point is the class TabContext provided in the Shell of the user interface has no way to call the dirty tab dialog box without calling the removeTab method. It is not desirable for the Shell UI close the BTF as task-flow-return of the BTF activities must always be called... remember that they have an additional feature that is required for the BTF.

    Even if the TabContext method is a solution to display the dialog box dirty tab without closing the tab (TabContext is pretty easy to extend yourself if you have the source code), the problem to which I can't think a solution is, how to get the tab dialog box dirty to communicate with the BTF stand-alone version (yes/no) result such that it can take a decision on the abandonment of action close and let the user on the current page fragment, or accessing the task-flow-return node?

    We could suggest that I could expose the dirty to the BTF stand-alone tab dialog such that she could show the dialog box confirm himself. However the point being is the BTF is autonomous and should have no knowledge where it is used, in the Shell of the user interface or some other supershell application. Publish plans to close the BTF via a contextual event seems fine, but alternatively of loading in the components of the interface layer user seems to break the independent principle I-don't-know-or-care-about-what-my-parent-caller-is-doing BTF appears on the border of evil.

    Anyone pointers, suggestions or comments like you're-an-idiot-Chris,-do-it-this-way? Your help is appreciated.

    Kind regards

    CM.

    PS. JDev v11.1.1.2.0 with interface User Shell v1.02

    How to get the dirty tab dialog box to connect the result (yes/no) with the BTF stand-alone version, as it can take a decision on the abandonment of action close and leaving the user on the current page fragment or accessing the task-flow-return node?

    I hope that everyone interested in this challenge is useful the application at this link: http://soadev.blogspot.com/2010/08/loosely-coupled-bounded-task-flows.html

    Kind regards

    Rommel Pino
    http://soadev.blogspot.com

  • ADF Dynamic interface User Shell showing blank tab for the workflow

    Hello

    Jdev 11.1.2.0.0

    I tried application UI standard dynamic tab Shell in my application. Each tab in my application a taskflow.

    If I enable the ADF security, my tabs are displayed as empty. I did added Grant resource task flow.

    But if I disable the security of ADF, the tabs are correct content display.

    Checked under forums
    https://forums.Oracle.com/thread/2393963
    https://forums.Oracle.com/thread/1023619

    I also tried adding project sample Patterns (dynamic tabs) as the jar.
    And by assigning the role authenticated blank.xml. His does not work. Always to the Virgin poster.


    Grateful for the help on this issue.


    Thank you.
    Abhijit

    Issue slipped. After having authenticated the role to

    Blank.XML and dynamicTabShellDefinition

    Refer

    https://forums.Oracle.com/thread/2393963

  • How can I get my desktop page opens when I close the browser and then re open it?

    When I click on the red x to close the browser, when I come back to open the browser later, the last page I look at one. last session opens, even all the other tabs behind it, instead of my google page (my homepage)? This can be fixed) I know I just click on the word google in the search bar, but should not have to do!

    You can provide us with some troubleshooting information, we can help you better then

    See:
    Use the troubleshooting information page to help solve the problems of Firefox

    or you can try to reset Firefox:
    Firefox - modules to reset and refresh settings

  • Close the Wizard Action pane after you run the Action

    Hello

    Is it possible to run a few lines of JavaScript to close the Panel shares the wizard once finished running? Thank you.

    N °

    Tuesday, August 12, 2014, at 15:32, Shawnny Canuck [email protected]>

  • Closed: Interface User Shell: Rename title of label or launch new tab for the scenario?

    Hello

    I use the dynamic model shell user interface. I run tab area containing TF for research of Navigation area. Based on the record we can do different actions including CRUD (assumed that this requirement would be very common).
    1. now based on how action can we change the title to label without refreshing the area inside.
    2 OR how to launch the new tab from within the region and then get back/back to the previous tab, we could do without contextual event or even not at all.

    Thank you

    Hi amseth,

    You can try this one: http://soadev.blogspot.com/2010/07/adf-ui-shell-updating-title-of-current.html

    Kind regards
    Pino

  • Generator interface user Web supports the DSC Module?

    A simple question:

    Can I use the generator of the user Web interface for Web client access to a Windows-LabVIEW System with the DSC module or supportet has this tool user interface only the LabVIEW base for the objects in the front?

    For example: Can I use a web client to review historical data and alarms? Can I use a web client with full support for "The front panel security dialog box" (see http://zone.ni.com/reference/en-XX/help/371618F-01/lvdsc/front_panel_security_db/)?

    Best regards

    Frank

    Hi Frank,.

    Yes, you can use the generator of the user Web interface to access historical data and view the current alarms. The LabVIEW 2010 version of the ASN has several built-in RESTful web services that make the Citadel and alarm available via HTTP data. Here are some resources to provide details on how it works.

    Interact with Web Module DSC Services

    Here is an example that illustrates how to implement web service at the Citadel communication:

    Communication of data via Web Services in the Web of LabVIEW user interface Builder

    Kind regards

    Mike

  • How can I disable the guest user to close the PC while the Admin is connected?

    I'm running Windows 7 Ultimate. I found out how to disable the guest user closing at all via the local security policy, but then they can't stop even if the Admin account is offline.

    To clarify a bit, say I want to give my PC to someone, I usually click on change user and connect using the guest account. In this way, they can't access my account because it asks for a password. I want that in such a case, they should not be able to stop the PC as my admin account is always logged.

    However, if someone booted the PC themselves and use the guest account, then they should be able to close too, as my Admin account has not been connected.

    I'm running Windows 7 Ultimate. I discovered how to disable the guest user closing all through local security policy.

    It is the correct method. It is as robust as it is unconditional.

    If you want to have your cake and eat it the guest account must use a powerful "agent" to perform the functions of judgment. A scheduled task would be such an agent. It might work as follows:

    1. Create a scheduled task that runs Script1 to perform these tasks:
      -Check if the C:\Shutdown\Shutdown.txt file exists.
      -If not, the output of the script.
      -If this is the case, delete Shutdown.txt.
      -Check if there is an administrator session. If so, the output of the script.
      S ' there is no live administrator session, shut down the computer by using shutdown.exe.
      The task must run under an administrator account once every 3 minutes.
    2. Create a shortcut on the desktop for the Guest user calling Script2 for these tasks:
      -Check if there is an administrator session.
      -If this is the case, create a pop-up to inform the user that the machine cannot be stopped.
      -If it is not, create the C:\Shutdown\Shutdown.txt file. The scheduled task will 'see' this file and will stop the machine.
  • Photoshop Script - layout of the interface user access within the variable?

    Hello

    I have the following variable as a layout of the user interface of a window, I have button access to the btn_one , but without success.

    var w = new Window("dialog {  \
        margins: 15, \
            btn_one: Button { \
                text: 'Button', \
                size: [100,25], \
                alignment:['right', 'center'] \
            }, \
        }");
    

    Any help to achieve this goal? I need to try the following, it does not work.

    btn_one.onClick = function(){
    }
    

    Thank you

    In your case, this may work:

    w.btn_one. OnClick();

    Not sure because I never build windows like that. I first create the window, then add the button on a separate line.

  • Interface user tuner and the percentage of battery missing

    Hi, I turned on tuner UI on Marshmallow and after for its navigation tools and reaching their functions, I decided to turn it off at the time once again, to my surprise the battery % icon disappear in the battery bar. any solucions? I can't find to allow it without the tuner to the system but it worked without it before I used the system tuner.

    1 settings
    2. display
    3. system icons
    4. battery percentage

  • How to close the 5 windows which are open next to the URL?

    I tried to type 5. It shows the windows open, but they do not have an X to close each.

    Once you view the list of open tabs:

    • In portrait mode, it should be a black X on the far right next to the title of the tab. This can be difficult to see on a dark background.
    • In landscape mode, it must be a gray X next to the tabtitle below each thumbnail. Maybe it's a little trickier to operate with precision.

    You can also "drag" a tab off the screen to close - tap and hold on the thumbnail and drag it off the screen.

    • In portrait mode, drag to the left or the right.
    • In landscape mode, drag upward or downward.
  • Is possible to save the user who uses the download action in an interactive report.

    Hello

    In my application I want to save that downloads information from the interactive reports in any format, is this possible?

    Concerning

    Hi Eva,

    The event would be onClick of one of the download buttons (either CSV, HTML, PDF). Al of these download buttons have an id that starts with 'apexir_dl_' but including the suffix of ASD file extention (so the Download CSV link would be "apexir_dl_CSV").

    The PL/SQL procedure for the actual record is accurately described in the link Tony posted.

    Kind regards

    Vincent

  • Cloud of OPA - add the button to close the questionaire

    Hello

    I want to add in the last page of my questionnaire a button to close it. Unfortunately there is no way to do it through OPA.

    To top it off, add a button using javascript does not work in firefox and chorme. the error is: "Scripts can only close the windows that were opened by him."

    Here is a sample of the javascript used to add the button: $("#submit").after ("< input type ="button"class ="btn, btn-primary"id =" XXX "onclick ="self.close ()"; > ');

    I replaced "self. Close; "by"Window.Close ()"but it did not work.

    Is there another way to do this via OPA?

    You can configure the last screen to make a shipment and redirection to a URL of your choice, this screen may contain some javascript to try to close the window and displays an appropriate message asking the user to close the window if it does not automatically. Most of these problems are because the browsers must keep the user in control to try to prevent security problems.

  • Open and close the Panel the Subvi front

    Hi all

    Run LabVIEW 2011 on Windows 7 x 64.  I am trying to get a Subvi front to open from my main PC with the touch of a button, then close with a button press in the Subvi.  Here's the piece of my main FP who calls the VI and opens the FP

    Locations is defined in another loop and all loops are in a flat order.  I made this way because I want to start with the first press and not stop my main loop to run.  So I don't know if I can run in the same line as the event or not, I've moved the element to the left loop around a lot.  Anyway the VI of openness seems to work very well.

    The problem arises when you try to close the Subvi for the SECOND time.  The code is here:

    As I said, the first time I open and close the VI everything works as it should, hopefully.  Then, I am able to reopen but now 'empty' button does not work and I can't close the window or even to open the block diagram to probe anything.  I tried to understand this point for a while, any insite would be greatly appreciated!

    Thank you

    Found my problem, I had the wrong boolean on one of my other events.  If this seems to be a good way to open/close a Subvi if anyone is interested!

  • Monitor not turns off when I close the lid!

    I have a compaq evo n1015v running windows xp pro, and when I close the lid the monitor stays on! How can I do to the monitor turns off when I close the lid?

    I have a compaq evo n1015v running windows xp pro, and when I close the lid the monitor stays on! How can I do to the monitor turns off when I close the lid?

    This is probably controlled by the power settings. Once you enter the power settings there should be an option something similar to 'change the closure of the hood '. There are probably several options such as sleeping, ect...

    You can download the manual in PDF HERE.

Maybe you are looking for