Open a tabStrip with a treeNode

Struggling here, I know I must just be overlooking it but I've got a treeNode and I want to open a tab from my tabStrip by clicking on the treeNode.
I was doing this by just calling the page and passing a parameter however by doing this I was overiding the tabStrip and then by clicking on the tabs itself they would no longer open.
First question: is it possible?
Second question: If it is how can I go from the treeNode to the tab without reloading the page?

Craig,
When you write "to the tab without reloading the page", you are effectively asking to switch between the tabs in the tabStrip without a request/response cycle. This is of course only possible if all of the required tabs are available in the browser.
We ship two tabstrips. The old <htmlb:tabStrip> actually supports switch a browser based switching. Depending on whether a server event is defined per tab, the tab will be switched in the browser, or at the server. The newer <xhtmlb:tabStrip> only supports server switching of tabs. In the newer (XHTMLB) tabStrip the rendering code is more optimized. For example, only the tabStripItem that will actually be showed is processed.
The benefit of server switching is better rendering performance (only render one tab per request/response cycle), plus reduced bandwidth. Our recommendation is in general to use the newer <xhtmlb:tabStrip>.
In terms of using a tree to switch a tabStrip, I can not really say that it sounds like the way to go. The tabStrip itself already has tabs for switching. Just give them nice names. But then, I am no usability expert. So maybe a tree is acceptable.
The request is not so complex. All you want to do is that the when you click on a tree node, it fires for you a server side event. No, don't try to start messing with URLs and things like second guessing formfield names. This is bound to fail on you, leading to five more appends in the forum before the sun goes down. It is also the reason why you loose complete viewState of all controls on the page. Hmmm...you should really in the beginning copy more code from the SBSPEXT_*HTMLB examples. Just use the onClick attributes to get back to server when you require it. At the server pick up relevant data, and go out again on the next response.
So we have a tree, which fires a server side event. At the server, we pick up the event, and set the selection on tabStrip new. (If you click in tabStrip, just let the tabStrip handle the setting of the new active tabStrip. Do not do anything more.) I have written all the event handling code also in the layout just to make the example simple cut-and-paste. You can put the event handling code into the onInputProcessing. Code included below.
++bcm
<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<%@extension name="xhtmlb" prefix="xhtmlb"%>
<%
   DATA: event     TYPE REF TO IF_HTMLB_DATA,
         selection TYPE string.
   event = CL_HTMLB_MANAGER=>GET_EVENT_EX( request ).
   IF  event IS NOT INITIAL
   AND event->event_name = 'tree'
   AND event->event_type = 'click'
   AND event->event_server_name IS NOT INITIAL.
     selection = event->event_server_name.
   ENDIF.
%>
<htmlb:content design="design2003">
<htmlb:page title = " ">
<htmlb:form>
<xhtmlb:tabStrip id="details" selection="<%=selection%>">
  <xhtmlb:tabStripItem name="clients"   title="Clients"/>
  <xhtmlb:tabStripItem name="info"      title="Info"/>
  <xhtmlb:tabStripItem name="employees" title="Employees"/>
</xhtmlb:tabStrip>
<htmlb:tree id        = "menutree"
             showTitle = "true"
             title     = "Quick Links"
             width     = "220px" >
  <htmlb:treeNode id="c" text="Clients"   onNodeClick="clients"/>
  <htmlb:treeNode id="i" text="Info"      onNodeClick="info"/>
  <htmlb:treeNode id="e" text="Employees" onNodeClick="employees"/>
</htmlb:tree>
</htmlb:form>
</htmlb:page>
</htmlb:content>

Similar Messages

  • SD report for the open sales orders with items

    Hi,
    Is there any standard SAP report which display open sales order togeather with the open items. I want to have columns target quantity, delivered quantity and open quantity.
    Any tip?
    BR
    Saso

    Dear Saso,
    I think, instead using Report: VA05/ VA05N; its better to use Report: VL10C
    In this report, you will get all the Sales Orders along with Materials - relevant for open delivery, along with Open Qty. and various other options can be selected from "Change Layout - (Ctrlt+F8)".
    Best Regards,
    Amit
    Note: Don't maintain any Field-Entry (while executing the Report: VL10N; in order to list all Sales Orders. But, if you want to list Sales Orders based upon some criterias, maintain the Field-entries, as reqd.

  • Can't Copy text unless console is opened before applet with JTextField

    If an applet uses JTextFields, it is impossible to copy text from the console to the clipboard (or anywhere else) if the console is opened after the applet.
    See http://demo.capmon.dk/~pvm/nocopy/nocopy.html for a working applet with source and class file to try it out on...
    So if something bad has happened, and there are hints in the console e.g. a stack trace, it all has to be retyped by hand, since all Copy or export is impossible...
    Does anyone know of a workaround for this? I'd like to be able to e.g. copy stack traces to bug reports.
    Try these test cases:
    * Close all browser windows. Open a browser and visit this page. After the page with this applet has loaded, then open the console with "Tools/Sun Java Console" (or "Tools/Web Development/Java Console" in Mozilla). Select some text in the console. There is no way to put this text on the clipboard; the "Copy" button doesn't work, and neither does CTRL+Insert, CTRL+C or anything else.
    * Close all browser windows. Open a browser window no some non-java page and then open the console with "Tools/Sun Java Console" (or "Tools/Web Development/Java Console" in Mozilla). Then visit this page. Select some text in the console. Now the "Copy" button does work, enabling "export" of e.g. stack traces to other applicaitons e.g. email.
    The difference is which is opened first: The console or the applet. If you look at the very rudimentary Java source code, it is the mere creation of a JTextField is what disables or breaks the Copy functionality.
    I've tried this on Windows XP with IE 6.0 and Mozilla 1.3 and they behave exactly the same. The JVM is Sun's 1.4.2 and I've tried 1.4.1_02 also with the same behavior. I've also tried javac from both 1.4.2 and 1.4.1_01

    hey .. this seems like a bug.. can you please file a bug at
    http://java.sun.com/webapps/bugreport
    thanks...

  • SharePoint Foundation 2010 - Your client does not support opening this list with windows explorer when clicking Open with Explorer

    when I tried to open document library in Windows explorer view by click 'Open with Explorer', it popped up “Your client does not support opening list with windows explorer”
    OS: Windows Server 2008 Enterprise x64
    IE: 9.0 32bit
    webcient service is runing
    HKLM\System\CurrentControlSet\services\WebClient\Parameters and changed the BasicAuthLevel to 2 instead of 1.
    Anybody knows how?
    Thanks.

    Did you add your site to trusted site list?
    http://sharepoint.stackexchange.com/questions/15098/your-client-does-not-support-opening-this-list-with-windows-explorer
    --Cheers

  • How to open new window with required size when clicking on image in a table

    Hi,
    There is an image column in advanced table. i want to open new window with required parameters(size, toolbar, status bar,etc..) and with that transaction context.
    can any one help plzzzzzzzz?
    Thanks
    Raju

    You can also use OAF js function to open modal pop up:
    openWindow(self, '<url>','longTipWin', {width:900, height:400}, true); return false;
    --Mukul                                                                                                                                                                                                                                                                                                                                   

  • ITUNES WONT OPEN COMES UP WITH ERROR MESSAGE

    ITUNES WONT OPEN COMES UP WITH ERROR MESSAGE (send error report one)

    some preliminary questions aimed at narrowing in on possible culprits.
    try launching your QuickTime. does it:
    (a) launch perfectly fine?
    (b) fail to launch with an error message? (if so, what does it say?)
    (c) exhibit other peculiar behavior? (if so, could you describe it for us?)

  • TS1717 I have updated to version 11 of itunes and now it wont open comes up with comment saying it is not installed correctly or corrupt. Help

    I have updated to version 11 of itunes and now it wont open comes up with comment saying it is not installed correctly or corrupt. Help

    A complete uninstall/reinstall is worth a crack with that one:
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7

  • I want to run an open order report with no goods receipt

    I'm looking to run an open order report with no confirmations(i.e.the order must have no status like LA,Z4,Z5,Z6)and no goods receipt.
    ME80FN is still giving me orders that have no confirmations but closed.
    I tried using a logical database but no luck.
    What can i use to achieve this open order report?

    Hi,
    You can write a small report for this requirement:
    Just select all the PO's from EKKO and EKPO table into an internal table(ITAB) with the given where condition.
    Write a select statement for the MSEG for all entries in ITAB into an seperate internal Table(ITABM).(nothing but all GR's entries)
    Compare Both internal tables and delete all entries which are present in second Int table ITABM from the first.
    That's all.
    The remaining entries are nothing but the OPEN PO's without any Goods Receipt.
    Regards,
    Anji

  • Opening a file with FILE_SHARE_DELETE mode (Only on Windows)

    Hi,
    We have an application that imports logs from several 3rd party vendor's applications. Basically what we do is import the logs in real time, i.e we do have a live FileInputstream connection to the log file. Now, when the 3rd party applications that rotate these logs (many of them do when they grow big or scheduled periodically), all unix flavors dont see to have any problem, while the windows does complain that the device or resource is busy and the original application is not allowed to rotate it. When i dug into the native code of windows jvm, i found that the file is not opened in the FILE_SHARE_DELETE mode and only with FILE_SHARE_READ and FILE_SHARE_WRITE modes. When we wrote a separate C++ application the opens a file with FILE_SHARE_DELETE mode, we found that the logs are rotatable.
    Now, how can we instruct the JVM to open a file with FILE_SHARE_DELETE mode? Is there any such implementation already or do i have to come up with another class extending the FileInputStream and use a totally different open method where the file is opened with this mode in the native code?
    Thanks
    Manava

    Hello,
    I think you can write :
    Runtime.getRuntime().exec("start.exe " + MyFileDialog.getDirectory() + MyFileDialog.getFile());
    So, "start.exe" choose the application (not valid for NT machine), ".getDirectory()" return the PATH and ".getFile()" return the NAME.
    Best regards from France
    Thierry

  • AR open Items Migration with Dunning history

    Dear Experts,
    Please could you share your opinion and experience in the below issue
    We are migrating AR open items data from one company code (say AB01) to another company code (say AB02) within SAP, we are following the approach, download AR open items fromAB01 and Migrate to AB02 with same parameters of AB01 (document date, baseline date, assignment number, text, payment terms every thing is same, there will be no change)
    Now the question Iu2019ve is whether dunning history can migrate to company code AB02, please have a look it the following example to understand the issue
    AB01 data
    Customer      Open item amount     Current dun level     last dun date
    100015     1000               1     10.05.2009
    100015     2500               2     10.05.2009
    100015     500               4     10.05.2009
    Over all customer dunning status is : Highest level is 4
    Now we wanted to migrate same data to AB02 including dunning history.
    Certainly, we can migrate above open items data with dunning level, and master data history as well.
    Having said that, will the system able to dun next dunning level in AB02 (in the above example it should be level 5). .?
    Please could you advise me possible options which you had come across.
    My opinion is, system has to determine levels and update history in systematic way, rather than manipulating in our style.
    (Information: Iu2019d had quick test migrating test data into new company code AB02 including history which is same as AB01 and MHNK table history, even though system has not picked next dunning level)
    Would appreciate your replies.
    Regards
    Prab

    Hi,  I'm wanting to do the same thing.  Were you able to figure this out?  Regards, Adrien.

  • Open old documents with new Pages

    Switched to Mavericks some time ago. Having problems opening my memoir documents that I wrote a some time ago. When I try and open it I get the following error message: "This document is too old. To open save it with Pages '09 first". How do I do this?

    While there likely is a Pages support discussion
    area, there is this Support section for Pages.
    •Mac Apps - Pages - Apple Support:
    http://www.apple.com/support/mac-apps/pages/
    •Pages for Mac - ASC  Discussions area:
    https://discussions.apple.com/community/iwork/pages
    You may be able to get actual support for iWorks + Pages if you have recent software or hardware purchases, or OS X upgrade experience requiring a later software installation...
    See Support:
    http://www.apple.com/support/
    Since Pages is considered part of iWork, that may be another
    angle should you need to search for other information.
    Good luck & happy computing!

  • Open PO's with user wise list

    Hi experts,
    Open PO's with user wise list ?
    regards,
    Sanju M S
    Edited by: Csaba Szommer on Dec 31, 2011 9:22 AM

    Hi,
    I am not aware of FM. But I know the tables which can give the required inforamtion to you.
    Pass item GUID of RFx response to CRM_JEST-OBJNR. If it has a record with STAT=I1113 then it means that the follow on document created.
    Further you can find the meaning of status in CRM_JEST, in TJ02T table.
    Hope it will help you.
    GH

  • Open PDF Attachment with Adobe Reader put GW to background

    Hello all,
    We have problems with opening pdf attachments from GroupWise client 12.02 with Adobe Reader 11.0.06. The attachment opens fine, but when opening the attachment, the mail and GroupWise client immediately are placed to the background in Windows. So when closing Adobe Reader, the user won't come back in the mail but in another application that was open and the user have to click on groupwise in the taskbar to go back to the mail.
    There is no problem with opening other attachments from other applications (like Word or Excel) or when opening the pdf with Adobe Standard. It happens with every user.
    They are working in a Citrix Xenapp 6.5 environment on Windows 2008R2 (it also happens if working in a RDS session)
    Any thoughts?
    Regards,
    Jaap

    In article <[email protected]>, Jhpoot wrote:
    > They are working in a Citrix Xenapp 6.5 environment on Windows 2008R2
    > (it also happens if working in a RDS session)
    >
    Are you trying to say that all of the apps mentioned are running as
    XENapps? If not please specify which are local vs remote.
    What is the client OS being run as that may also factor in.
    Worth trying another PDF reader such as FoxIT reader to better see
    which side is driving that behaviour.
    Andy of
    KonecnyConsulting.ca in Toronto
    Knowledge Partner
    http://forums.novell.com/member.php/75037-konecnya
    If you find a post helpful and are logged in the Web interface, please
    show your appreciation by clicking on the star below. Thanks!

  • Can't open a file with spaces on the filename.

    Lets say I have a file:
    /home/orv/Open - Me - Please.txt
    When I double click to open that file with any program, the result is something like this:
    "Unable to find /home/orv/Open%20-%20Me%20-%20Please.txt"
    I'm not sure what to call that process of converting the file name so I've been unable to google it up to find a fix or a way to change the behavior of the file manager.
    I've checked the settings in Nautilus and nothings there. Any clues? Thank you!
    Last edited by orv (2007-12-14 23:11:59)

    I tried removing everything in my home directory to erase all settings, still the same problem.
    I tried using a different file manager and still the same problem.
    Here's another example of my problem and its quirks:
    Lets say I have a file called:
    /home/orv/I am a Movie.avi
    In nautilus or thunar, double-clicking that file so I can play it with Mplayer will give an error:
    Failed to open file:///home/orv/I%20am%20a%20Movie.avi
    However, when I drag and drop using the file manager into Mplayer, it works.
    So my problem is this automatic conversion of whitespaces into the %20 which I don't know how to turn off.

  • I am using Firefox 3.6.13 and have installed Windows Media Player 1.0.0.8 for Firefox. However, if I attempt to open a file with a .wmv extension it appears to function properly, except, that I cannot "play" the file. What am I doing wrong?

    # Question
    I am using Firefox 3.6.13 and have installed Windows Media Player 1.0.0.8 for Firefox. However, if I attempt to open a file with a .wmv extension it appears to function properly, except, that I cannot "play" the file. What am I doing wrong?

    You probably have not seen anyone reporting the exact same problem as you. All three crash reports have the same crash signature and as currently ranked 67 it is not the commonest of reasons for a crash.
    I hope you enter your email contact information when reporting crashes. I note you see this crash when using videos, others may possibly see this crash in other circumstances.
    You have already tried the obvious, attempts at a fix so it is now down to wait and see, maybe developers working on the bug will report something or fix it.
    Did you try my suggestion of installing portable ESR ?
    For forum cross referencing purposes
    * Crash Reports for Crash IDs <br />bp-71697f5d-41d4-48ae-9db9-3e6302130607<br /> bp-6e1347bc-153f-433a-9c35-a5f022130607<br /> bp-92a533a2-9e09-4c1e-8df7-deb4c2130607
    *(all three) Crash Signature: EnumSoftwareMFTs(_GUID const&, unsigned int, __MIDL___MIDL_itf_mfobjects_0000_0006_0003 const*, __MIDL___MIDL_itf_mfobjects_0000_0006_0003 const*, IMFActivate***, unsigned int*)
    * Related bug 858667 NEW crash in mozilla::wmf::MFTEnumEx @ EnumSoftwareMFTs
    *I note this was first seen in Fx21 and is 100% Windows 7
    <br />

Maybe you are looking for

  • Change the Credit control area with balances

    Hi, The requirement is there are two credit control areas, XX10, XX12. Now they want only one credit control area ie  XX12,( all customers which are in XX10, should be now with XX12 credit control area) but when  changing the credit control area of a

  • Colour Management problems - media AE to Encoder

    I have noticed that Adobe Media Encoder Doesn't seem to cater for colour management. Or make mention of how applies gamma adjustments to the content it encodes. Flash in particular. 1. I'm working in colour managed environment in AE (eg. Adobe 1998),

  • Interest for a project

    hi am searching for a project coz i hav to submit it soon so i was wondering if anybdy can tell what i hav to do as a project.. i hav done till swings in java so cant do with J2EE so plz am waiting

  • Getting ORA-01401for NVARCHAR2 greater than 1000 chars.

    I have a table with column PATTERN NVARCHAR2(1024). When I try to insert 1024 chars I get an error - INSERT INTO test VALUES('AAA..1024times') ERROR at line 1: ORA-01401: inserted value too large for column but INSERT INTO test VALUES(N'AAA..1024time

  • Re:Need help!Create a VI that plots an ellipse.

    Hi, I need to create a VI that plots an ellipse.attached is the problem detail and what i have done. May I know how to apply that formula?use formula node or mathscript? Can lead me to the solution. Hope to hear from the replys ASAP due to deadline t