Disable tabs at runtime (WebDynpro Java - tab strip)
I have a tab strip view set and want to disable the navigation to some embedded views at runtime.
Tab 1 contains a view for selecting items. If the selection does not return any values from
the database I want to disable tab 2 ("the user shall not be able to select tab 2).
Any idea how I could do this?
Regards FW
Use a TabStrip and ViewContainerUIElements instead of a view set. Then you can disable tabs dynamically via the Tab.enabled property.
Armin
Similar Messages
-
Adding tabs dynamically at runtime for a tab navigator control
Hi,
Is it possible in flex builder 2 to dynamically add the tabs
at runtime to the tab navigator control, if we can add plz tell the
procedure to do that
thanks in advanceGiven that you had a tab navigator declared in mxml like
this:
<mx:TabNavigator id="myTabber" selectedIndex="0">
</mx:TabNavigator>
you should just be able to call the addChild method, passing
the child tab containers. So for example, in some ActionScript
event handler:
var newTab:Canvas = new Canvas();
myTabber.addChild(newTab);
bear in mind I haven't done this by adding tabs, but have
done tons with adding controls to an application at runtime using
this method (DataGrids, Grid, GridItems, etc...)
Jason -
Disabling opening of multiple windows and tabs
Hi experts,
do we have any option to disable opening of multiple windows and tabs. Like making end user to use single window browser to do all operations.
Regards
Govardan Raj SHI Rajendra ,
Actually if end user access the portal in a browser window , and if he opens another window i.e file->new window --- same portal applications will open in the new window with the same credentials and hence here i should either restrict him or log off the user in both windows.
Regards
Govardan Raj -
I want a stop button for disabling JavaScript only in the current tab
I want a 'Stop' button for disabling JavaScript only in the current tab.
I searched for a feature like this but couldn't find it. It would be a great new feature.Tab Permissions: https://addons.mozilla.org/firefox/addon/4757
-
Is it possible to Disable Right Mouse click In WebDynpro Java Application??
Dear Experts,
Is it possible to Disable Right Mouse click In WebDynpro Java Application??
If yes then kindly suggest how.
Warm Regards,
Upendra AgrawalWhat is the use-case?
Armin -
Hi,
I have a requirement in PC-UI as to add a new tab at runtime based on certain values.
I tried to modify the tab page group with the method check active tabstrip but somehow it does not work.
Can you please mention if there is some other method by which this can be achieved?
Regards,
Jaisish MohantyHi
This should definitely work. Please verify the steps that you carried out for this. Add your event to the tabpage group. All you need to do is delete this event in the interface method check_active_tabstrip when the value expected is not available.
Also make sure you trigger the check_active_tabstrip method on change of your values. For example, if its a scenario based on field, in the fieldgroup structure check the attribute send request. Put a breakpoint in method check_active_tabstrip and see if its getting trigerred and if it triggers check for your event in the table CT_TABSTRIP. Hope this helps.
Regards
Karthik
Edited by: karthik kuppuswamy on Feb 13, 2008 11:29 PM -
Runtime Error during FileUpload to KM through webdynpro java
Hi All,
When i try to upload a file using webdynpro java. I was using referring this blog.
/people/rohit.radhakrishnan/blog/2005/05/27/uploading-files-to-km-repository-using-webdynpro-apis
But when i deploy my application, it throws me a runtime error
" java.lang.NoClassDefFoundError: com/sapportals/wcm/repository/IResourceContext".
I have given the sharing reference as "Portal:sap.com/com.sap.km.aaplication". in webdynpro reference. and have added all the required jar files. What else needs to be done for this. Can anyone please help me out in this issue?
Regards,
DivyaPlease notice that this is case sensative-
"PORTAL:sap.com/com.sap.km.application"
Edit - I also see that you have two a instead of two p - please check for spelling errors
Edited by: Aviad Levy on Feb 4, 2008 9:16 AM -
Could not see Java tab on Apache Tomcat 5.5.20 Properties in CCM
Hi,
After uninstalling and reinstalling BusinessObjects Edge 3.1, I can no longer see Java tab on Apache Tomcat 5.5.20 Properties in Central Configuration Manager (CCM). I can only see 2 tabs namely Properties and Dependency. Therefore, I could not start my Tomcat because I could not change Java maximum memory pool from 1024 to 768 in the Java tab.
Please help.
HapizorrHi Denis,
Yes, it works. Thank you.
Hapizorr -
Call stateless session bean EJB 2.0 from Webdynpro Java UI
Hello,
Can someone please tell me asto how to call a stateless session bean EJB 2.0 from Webdynpro Java UI?
The NWDS version is 7.0.
Thanks and Regards,
AryaHi Aryadipta
Please check this pdfs
https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b00917dc-ead4-2910-3ebb-b0a63e49ef10&overridelayout=true
Steps for calling stateless session bean in Webdynpro java
Go to NWDS -> open perspective ->j2ee
select EJB Module Project ->create a project with name
Open the Project -->RC on ejb-jar.xml -> Select new --> EJB
Give name to EJB Bean (First letter should be in capital letters)
select the type of bean as Stateless session bean and give the package name to store that EJB bean.
After that Expand ejb-jar.xml and then select the <projectEJB>
Double click on this on method tab double click you will get business method where we will create the methods for business logic
Double click on projectEJB and then RC on bean tab and write required business logic in bean window as follows(based on requirement we will design a business logic).
After writing the business logic go to project -> rebuild
Till now we have created one EJB jar file
then go to File-->Enterprise Application Project -->create a project (projectEAR)
After creating a project click on next-> here we will have ear projects and then we select specific project required for our application.(here select projectEJB)
After that Calculate EAR project will be available on j2ee explorer.
Right click on <Bean> here
select New->Web Service->give a name to webservice and select Default configuration type as simple SOAP
-->click next -> Finish.
That webservice and related are created in ejb-jar.xml .
Expand the ejb-jar.xml.and double click on < webservice>
RC ProjectEJB -> Build EJB Archive RC on CalculateEAR ->Build applicationarchive.
Expand the projectEAR->RC on CalculateEAR.ear->Deploy to J2EE Engine
Double click on calculateEAR.ear ->Webservice navigator tab ->we eill servers expand the node
select the specific WebService
Here we test the webservice by click on Test and test it.
After that go to Web dynpro perspective ->create one webdynpro Project and one component
RC on model> Select import Web Service model(last)>give model name and package
and select radio button as local file system or URL
Go to WSnavigator->copy the WSDL path and paste it in model WSDL path and click on finish.
from here onwards steps are same as that adaptive RFC model
Hope it helps
Thanks
Tulasi Palnati
Edited by: Tulasi Palnati on Aug 26, 2009 12:15 PM
Edited by: Tulasi Palnati on Aug 26, 2009 12:43 PM -
Transport of activity from Quality to production for webDynpro Java applica
Hi,
can anybody tell me how do i go for transporting activity in webdynpro java applications from quality to production server.
i have done some changes in webdynpro code and deployed in quality system. i have created activity and now want to transport that to production so that the changed functionality should reflect in production system.
Its urgent so your quick suggestion will be appreciated.Hi,
can anybody tell me how do i go for transporting activity in webdynpro java applications from quality to production server.
i have done some changes in webdynpro code and deployed in quality system. i have created activity and now want to transport that to production so that the changed functionality should reflect in production system.
Its urgent so your quick suggestion will be appreciated.
Hi Vijayalaxmi,
Following are the steps for transporting the content from DEV to QA
1. Check in the activity into DTR and activate it. Once it is activated successfully it will show green
2. Now go to transport view and release the activity by drilling down in waiting... node.
3. Once the activity is released it becomes available in the Consolidation tab of CMS.
4. Import the activity in consolidation tab
5. Assemble the components in the Assembly tab.
Once you assemble an .SCA file is created in \usr\<SID>\trans\CMS
6. Copy this file manually and deploy it using SDM in QA.
Hope it clears your doubts
Best Regards,
Ravi -
Calling Webdynpro Java Application from Webdynpro ABAP Application.
Hi,
We have developed one Application using Webdynpro Java and I m in need to call the Webdynpro Java application from Webdynpro ABAP.
Require Suggestions to acheive this.
Thanks In advance.
Reg,
Ajay.Dear Ajay,
Assuming that both your applications WDA & WDJ are in the portal & you don't have to pass any parameters to the WDJ application.
Write the following code on the action where you would call the WDJ application.
DATA:
lr_compcontroller TYPE REF TO ig_componentcontroller,
l_component TYPE REF TO if_wd_component ,
lr_port_manager TYPE REF TO if_wd_portal_integration ,
wa_navigation TYPE navigation.
lr_compcontroller = wd_this->get_componentcontroller_ctr( ).
l_component = lr_compcontroller->wd_get_api( ).
lr_port_manager = l_component->get_portal_manager( ) .
* The value inserted into the navigation-target field can be found in the Portal
* content administration tab of your portal. It is the ID or PCD Location field
wa_navigation-target = pcd. " Please provide the PCD Location of the WDJ Application here.
wa_navigation-mode = '0'. "0 = INTERNAL(same page) and 1 = EXTERNAL(new page).
CALL METHOD lr_port_manager->navigate_absolute
EXPORTING
navigation_target = wa_navigation-target
navigation_mode = wa_navigation-mode.
You can get the PCD from the Page properties of the WDJ application page in the Portal.
Hope it helps!
Warm regards,
Upendra Agrawal -
Table ui element in webdynpro java.
Hi Friends,
I am krishna i am working as sap webdynpro abap consultant . But right now i got the requirement on sap webdynpro java.
so please give me the required details.
Here are my questions.
1. how to populate the data into the table.
2. and the back end is erp, i have to use rfc. to display the data into the table .
3. so how to integrate the rfc into webdynpro java.
if u send with screen shots that would be very help for me.
Waiting for your reply.
Thanks & Regards.
Krishna.It's very simple.
1) Import your RFC.
For this:
-Right click on Models->Create Model->Select Import Adaptaive RFC then follow the steps.
-Go to Used Models. Right click -> Add... -> then select the model that you created.
2) I guess you have a view that is using a controller (Custom/Component) so:
-Go to Context Tab-
-Create a model node.
-Bind the model node with the model that you created.
-Go to the view where you want to put the Table ui element and add the table (Outline window->right click->Insert Child->Table)
-Go to context tab, add a model node, en map it (Edit context mapping) with the model node that you created in the controller.
-Go back to layout tab. Then in table properties, in datasource click on the "..." and select the output node of the model that you have created in the view.
-Then in Outline Window-> Right click on the table element-> Create binding-> check the attributes that you want to be binded to the table.
-Then follow the steps.
You have now your table binded to the rfc.
Finally what you have to do is to create a method to execute the rfc. Usually it is written in the controller. Something like this:
public void execute<YourBapiName>( )
//@@begin execute<YourBapiName>()
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try
wdContext.current<YourBapiName>Element().modelObject().execute();
wdContext.node<YourBapiOutputNode>().invalidate();
wdContext.current<YourBapiName>Element().modelObject().modelInstance().disconnectIfAlive();
catch(WDDynamicRFCExecuteException e)
manager.reportException(e.getMessage(), false);
//@@end
To call this method, first, you have to bind the input parameters and then execute it (you can do this wherever you want):
<YourBapiName> input = new <YourBapiName>();
input.set<YourBapiParameters>(<YourParameter>);
wdContext.current<YourBapiName>Element.bind(input);
wdThis.wdGet<YourControllerName>(Controller().execute <YourBapiName>();
I hope it helps.
Bye bye. -
Reusability of Adobe form created in SFP in a WebDynpro Java application
Hi Experts,
Can some one advise me how I can use the pdf form created in ABAP side (Transaction SFP) in the WebDynpro Java application?
What is the procedure to include this pdf object in the WebDynpro application development?
Regards,
ShobhitHi,
You can add customised UI elements by a right click in your library pallette/ ot by dragging the ui elelments into the pallette. Like wise you can put your layout into the library pallette and reuse them. You may refer the Adobe life cycle designer (ALCD) help for it.
the second option i meant was after designing the layout in the SFP transaction, click on the PDF preview tab in the layout. Save the PDF.
NOw on developing the Java application, open the ALCD and use tools-> import to import the PDF you have saved.
Regards,
Anto. -
Debugging in Webdynpro java?
Hi All..
Can anybody explain in detail abt Debugging in Webdynpro java.(also send some documents and pdfs regarding tht)..
GSHi,
To debug an application
Run-> Debug->Webdynpr->
Right click and select new
Once this is done you will see four tabs
1)Debug: select your project and the application to launch
2) Select the SAP System for Debugging
3)Source need to be added here.
Enabling Debug mode is mentioned in the following docs
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/907751e5-f717-2a10-f3b4-de4431d4722d
http://help.sap.com/saphelp_nw04s/helpdata/en/66/547f09281d464b951c9a3a6b06a12d/frameset.htm
Regards
Ayyapparaj -
App tab wont stay as app tab when i reopen firefox
I remember it is stated in the app tab tutorial section that app tabs will stay as app tabs when you close and reopen firefox but mine doesnt do that. When i reopen open the browser my app tabs are gone. Anyone can help?
I had this problem after I installed an update for Java. Firefox also stopped remembering my open tabs from last time. I disabled all of the Java plug-ins, restarted, and it's worked great ever since. Haven't missed Java yet either.
Maybe you are looking for
-
Email Certificates doesn't work in mail
I've installed a personal email certificate from thawte. It showed up in my Keychain but Mail doesn't seem to recognize it. I can't sign/encrypt messages without it. I'm running leopard Mail 3.0 with gmail IMAP. Can anybody shed some light on this? T
-
need someone to help me. I upgraded to pro adobe and I can't open pdfs any more. It keeps asking me to sign up for pro when I already have it. please contact me. [email address removed by host]
-
JDBC query theme in a JSP page
Hi, everyone I tried to write JDBC query theme in a JSP page at MapViewer, but it did not work. The following is the codes. 1.JDBC theme in a map request in XML <theme name="jdbc_theme_contour"> <jdbc_query datasource="spatial10g" jdbc_srid="8703" sp
-
Is MacKeeper a good system to use?
Is the Mac Keeper a good system to use? I have had Panda in the past. Does the new Safari browser provide adequate protection against viruses and malware?
-
Revision: 14985 Revision: 14985 Author: [email protected] Date: 2010-03-24 09:40:24 -0700 (Wed, 24 Mar 2010) Log Message: Add support for mirroring for both error tips and tool tips in positionTip(). The layoutDirection of the toolTip will be