Changing activ tab with button click
Hello,
I have a tabstrip with several tabs. On Tab2 I have a list of invoices. If the user clicks on the copy button I want to copy several fields into a form on tab1. That is working well. I also want to change the activ tab from Tab2 to Tab1 so that the user is facing the formular but I do not know how to do it.
regards
stefan
Hi Stefan,
There is property for TabStrip UI element "selectedTab" (http://help.sap.com/saphelp_nw2004s/helpdata/en/f0/e5a8411fdbcc46e10000000a155106/frameset.htm). Bind it to context attibute and change in action handler accordingly.
Best regards, Maksim Rashchynski.
Similar Messages
-
Hi,
i have the ADF component Tabbed Panel in use, works fine.
but i want to change the active tab with an link or something like this... is this possible??
thanks,
hannesHi,
I think JavaScript should be used if there is no native way of doing so or if the native way is overly expensive. In the mentioned usecase, set the command link to have partialSubmit = true, then create a JSF binding to the managed bean that handles setting the disclosure change on command link action. call RequestContext.getCurrentinstance().addPartialTarget(tab_component reference) to refresh the page
Frank
Edited by: Frank Nimphius on Oct 20, 2008 4:47 PM -
Changing JPanel with button click.
Hi, I have a class call TOC(Table of Content) which contains all the buttons. One class call MainController. All buttons I add an actionListener which the MainController class will handle. Anothe class which is the main one which contain a JPanel.
When I click on the button in TOC class, it will go through the MainController class and display the respective JPanel associate with the button.
Now the problem is how do I change the JPanel in the main class with a click on the button in TOC class?
Please advise. Thanks in advance.Not sure what you mean exactly. However,
Assuming that your view class is a JPanel, when you create your controller,
ViewPanel view = new ViewPanel();
MainController controller = new MainController(viewPanel);
In MainController track a reference to your viewPanel. Also in viewPanel have a method called setCurrentPanel(JPanel panel). then int he controller's action listener
public void actionPerformed(ActionEvent ev) {
JPanel pnl = (JPanel) panelMap.get(ev.getSource().getName());
viewPanel.setCurrentPanel(pnl);
I am assuming you have a way of mapping each button to the panel it will use, which is what is in the panelMap. The viewPanel can have a CardPanel layout for the panels it displays and its setCurrentPanel, can bring to front/oradd the specified panel.
Good luck, hope this helps :-) -
Classic Restore changed by FF 29 tabs to beige with black text on the active tab and to beige with white text on the other open tabs. The white text is not visible. How do I change the white text to a darker color?
If this cannot be done, is there a way to reinstall FF 29 with just the security updates (and not all the other gimmicks) so that I can retain my FF 28 settings? Thank you.# Open the Add-ons Manager (Ctrl+Shift+A; Mac: Command+Shift+A), then the Extensions category.
# Next to Classic Theme Restorer, click the Options button.
# Click the Custom Colors tab, then the Tab (active/hover/default) tab below that.
# Below Tab (active), check "Text", then click the color swatch and pick black.
# Click the Tab (unread) / New Tab tab.
# Below Tab (unread), check "Text", then click the color swatch and pick black. -
How to open link in new tab with right click?
I'd love to be able to right click, i.e., two finger tap on the magic trackpad, and have a link open in a new tab. I know I can hold the command button to accomplish this, but then it takes two hands. I tried the following on the command line which had no effect:
defaults write com.apple.Safari TargetedClicksCreateTabs -bool true
Is there a way I can do a two finger tap and have the link open in a new tab?
I'm using safari 5.1 under Mac OSX 10.7 (Lion)
-ThanksI FINALLY found a solution! I was searching for a command-click plugin, and I found this app named "middleclick" It simulates clicking a middle mouse button, with a 3 finger tap. Now I can open links in a new tab with only one hand. Great!
http://clement.beffa.org/labs/projects/middleclick/ -
How to duplicate tabs with one click in Firefox 35 (Mac)?
Trying to switch from Chrome to Firefox, but really missing that right-click "duplicate tab" option in Chrome--quick, easy, one-handed. Any suggestions for how to do this in Firefox 35.0? Former add-on is not compatible. Need this for Mac. Thanks.
* Hold Ctrl and left-click or middle-click items in the history of the Back and Forward buttons to open a page from that list in a new tab<br>You can hold down the left mouse button on the Back or Forward button to open the tab history.
* Duplicate a tab with its history by pressing the Option key and dragging the tab to a new position on the tab bar.
*https://support.mozilla.org/kb/Keyboard+shortcuts
*https://support.mozilla.org/kb/Mouse+shortcuts -
Loading movie clip to stage with button click AS3
I'm trying to figure out how to load a movie clip to the stage with a button click and have the movieclip close again using a close button. Does anyone have a step by step on how to do this or links to some tutorials.
Below is an example of what I'm trying to do.Alrighty I changed the publish settings to as3. I'm still getting two errors:
Scene 1
1046: Type was not found or was not a compile-time constant: Popup1Btn.
Scene 1, Layer 'as', Frame 1, Line 3
1061: Call to a possibly undefined method addEventListener through a reference with static type Class.
So my setup on my main timeline is I have an actionscript layer with this code now:
var popup1:Popup1
Popup1Btn.addEventListener(MouseEvent.CLICK,addF);
ClosePopup1.addEventListener(MouseEvent.CLICK,closeF);
function addF(e:MouseEvent):void{
popup1=new Popup1();
addChild(popup1);
function closeF(e:MouseEvent):void{
removeChild(popup1);
popup1=null;
On the stage I have a button with the isntance/AS linkage name Popup1Btn. Inside my Popup1 MC I have a box with text and then a button with the instance/linkage name ClosePopup1 to close the popup.
What am I missing? -
Change Active Tab on TABBEDMENU Widget after exporting MUSE site to HTML
Hello,
We need to be able to change the active tab, not default tab, on a tabbedmenu widget based on an event from a button on the site using onCLick - onTouchStart etc.
Thank you for any help...Please refer to this blog post for more information about it, http://www.businesscatalyst.com/BlogRetrieve.aspx?PostID=294929&A=SearchResult&SearchID=51 01076&ObjectID=294929&ObjectType=55
Scroll down to, "Redirect system domain and URLs to default domain for better SEO performance"
This is how it looks like for real,
If you have more how to questions on Business Catalyst, you can get them answered here, http://helpx.adobe.com/contact/ via BC Chat support. In the products you will have to select Business Catalyst.
As far as your web site is concerned, have you already tried the built in FTP upload feature from the File menu? I checked your web site again and it gave me a server permission error.
- Abhishek Maurya -
Close tabs and open links in new tab with middle click
Until recently I was able to close tabs by middle clicking them or open new tabs by middle clicking them. Recently however Firefox either is no longer recognizing my middle clicks or is not processing them in the same way.
I tried looking in the about:config functions for functions including 'middle' in an attempt to find the configuration option for this but didn't find anything. I need to identify how to configure it first so I can attempt that.I have this problem as well, and tried basically everything. Even a fresh install (didn't help). I have this issue (using the same Logitech LX3) since I switched from Firefox 3.x to 4.x and now 5.x, all on Windows 7.
Basically, the middle mouse button behavior is totally unreliable. Most of the times, it doesn't work at all. However, sometimes it does, but then it may take up many seconds (keeping the middle button pressed) until the tab finally opens... and then it often opens multi. Sometimes the tab(s) open after X seconds while the middle mouse button is still pressed, sometimes it opens after the button was released.
It seems to be a bit better in Private Browsing mode, though. Can't really be more specific: sometimes the middle mouse button opens the new tab after seconds in "using tab x, page y, link z", while it doesn't work on exactely that same page on "using tab x, page y, link z" after doing nothing for 5 minutes. -
How can I change of page with double click on my I-pod nano 7th generation?
How can I change of page with the double click feature on my I pod nano 7th generation?
I can't really understand what you are asking. Can you elaborate?
-
Changing depths of movie clips with button clicks
Hello all,
I've got a file on working on that has 4 different movie clips on one layer that, when clicked, will zoom in (made with tweens in the timeline).
The issue I'm having, is that when I click one of them, they are arranged in a way that won't work for what I need. I click one, and it works, but it is hidden by the movie clip that is on top of it in the heirarchy. Click another, zooms in, but is partially hidden by another one.
My question is: Is there anyway in AS2 to code these so that when one is clicked, it will the top spot in the heriarchy? So that I can code them all like this so that whenever one is clicked, it goes to the top so it is not hidden?
ThanksCorrect me if I'm wrong, but isn't that just used to swap 2 movie clips?
Or is there a number I can input instead of the movie clip name that will change all of them? -
Hi Everyone
I have 5 tabs:
tab1 = user tab (which will contain 4 buttons: button 1, button2, button3, button4)
When button 1 is pressed tab 2 screen is user interface
When button 2 is pressed tab 3 screen is user interface
When button 3 is pressed tab 4 screen is user interface
When button 4 is pressed tab 5 screen is user interface
I tried to do this using Boolean buttons so when the button is pressed it will change to the correct page is there a better way to do this?
AilishI use this method quite a bit, within a state machine, attached is a basic example..
Cheers
Attachments:
StandardStateMachine_UserTabs.zip 13 KB -
Can I change active tab on Safari from Search tab to Address tab on iPad 2 ?
When I open a new tab in Safari its automatically puts you on search tab .. I want to disable this to makes the address tab is active when I start a new tab .. is it possible ?
Im using iPad 2 on OS 4.3.3You need to create a backing bean that will hold code for the event of clicking on the link.
In that code you'll set the disclosed property of the showDetailItem you want to make active to true, and then change the other tab to false.
A basic intro to working with backing beans is here:
http://blogs.oracle.com/shay/2010/03/working_with_backing_beans_in.html -
Changing box color with buttons
I'm kind of new to this whole flash thing...but here's what i
have:
I have a couple different .fla files that are opened via
buttons on a main "index" file.
It's probably easier for me to give an example:
Let's say I have files: "index" (as the main page), then
"page 1," "page 2," "page 3," and "page 4." On the "index" page, i
have buttons that display the other pages; 1,2,3, and 4.
What i'm trying to do is have three different boxes, say a,
b, and c on page 2, each one representing a different piece of
equipment.
On the additional pages, i'll have three buttons...each one
changing the color of one of the boxes. For example...button 1 will
turn "box a" green, button 2 will turn it yellow, etc... Then when
you go to the next page, button 1 will turn "box b" green, etc...
I've been doing tutorials, but i just cant figure out how to
code this. If anybody can help, please email me
Here
I also have a sample file i can send.
Thanks!thanks for the reply dzedward....
So I right clicked on the button I want to use this with and
pasted this code. I changed the (box.mc) to (box_a)...the name of
the color box. When i run it, an error comes up "Statement must
appear within on handler" and the source is
"btn.onRelease=function(){
I don't know if i'm supposed to change something else, but i
tried it with "btn1.onRelease" also (the name of the button)
All help is appreciated.
Thanks. -
Navigating through Tabs on Button click
Hi All,
I want to navigate from one tab to a different tab upon clicking on a button in the first tab. How do i do it?Hi Ronnie,
Check the simple example Below...Hope this is waht you need..? If not please be clear some what more...
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
private function onButtonClick():void
myTabNav.selectedIndex = 1;
]]>
</mx:Script>
<mx:TabNavigator width="200" id="myTabNav" height="300">
<mx:Canvas label="First Canvas" width="100%" height="100%">
<mx:Label text="First Canvas"/>
<mx:Button label="Change Tab" click="onButtonClick();" right="0"/>
</mx:Canvas>
<mx:Canvas label="Second Canvas" width="100%" height="100%">
<mx:Label text="Second Canvas"/>
</mx:Canvas>
<mx:Canvas label="Third Canvas" width="100%" height="100%">
<mx:Label text="Third Canvas"/>
</mx:Canvas>
</mx:TabNavigator>
</mx:Application>
Thanks,
Bhasker
Maybe you are looking for
-
How do I create database from bacpac on new Azure SQL DB Preview (v12)
Hi, I want to restore a database from a bacpac on the new preview tier, but there is no option in the portal(s) to do it. If I try "import data-tier-application" in SSMS I get error: The service objective 'Business' specified is invalid. (Microsoft
-
Reading XML file using BAPI and then uploading that xml file data into SAP
I am getting a xml file from Java server. I need to take data from this file using BAPI and need to upload into SAP using SAP. Please tell me how to read XML files using BAPI's.
-
No sound on hand set ear piece
I have an iphone 4 with the ios5 update, and I can only talk on the phone using the speaker phone. If I try to talk on the handset using the earpiece I can't hear anything the other person says, but they can hear me. I've tried restoring my phone to
-
Combine songs of 2 albums into one
I have songs from 1 album separated into 2 albums in itunes. How can I combine these into one? Thanks.
-
DVD shows no files but Finder info says DVD is full to the brim
Hello, I have a DVD which a friend of mine burned for me; he used a HD-Recorder to record a tv show for me which I missed, but I do not know which model he owns. When I insert it into my MacBooPro3,1 model with 10.6.1, which does run in 32-bit-mode (