How to use Web Dynpro Java isChanged and isChangedByClient
Hello,
I have read thorugh a lot of documentation, threads, ... --> but the picture is not geting clearer fro me.
We have Web Dynpro Java Application (on Netweaver 7.0 SP12) running in Enterprise Portal. We need to tell the portal work protect mode, that we have unsaved changes (how to do this is clear).
I am struggling with figuring out, that my Web Dynpro Context has unsaved changes. I found the two change-indicators isChanged() and isChangedByClient(), which already confuses me a little bit.
Anyway, this is what I have figured out so far:
I am calling wdContext.currentContextElement().isChangedByClient() to figure out changes and when a Save operation has been completed sucessfully, I call wdContext.currentContextElement().node().getContext().resetChangedByClient(). This works for some of the changes made by the user.
I then tried calling wdContext.nodeABC().getElementAt(i).isChanged() for all nodes of my Web Dynpro Context, but this results in detecting changes before the user ha done any interaction.
Implementing an own change tracking (i.e. by adding a changed-Attribute to each context node) does not seem a viable option for me.
So these are my questions:
- Does anyone now a working pattern relying on those chnage indicators ?
- Does anyone now how to reset the isChanged indicator (or when it is resetted by the framework) ?
Any help appreciated.
Thank you,
Stefan
Hi
Check this link
Re: How to keep isChangedbyClient flag set between roundtrips?
http://help.sap.com/javadocs/NW04/current/wd/com/sap/tc/webdynpro/progmodel/api/IWDNodeElement.html
Thanks
Similar Messages
-
How to integrate Web Dynpro Java 7.1 with EP 7.0?
Hi,
I have 2 servers: 1 is EP 7.0 and another is CE 7.1. Is there any way how to use Web Dynpro Java deployed in CE 7.1 as an iView in EP 7.0 other than portal federation? We cannot use the portal content producer-consumer concept. Is there any other way how to do that?
Regards,
TomasI have same task.
I did not understood how and which system you created to resolve problem?
As well, any reference would be very helpful.
thanks
Edited by: Ivan Ivanov on Sep 7, 2009 5:51 PM -
How to create a user in UME Database using web dynpro java custom application
Hi,
Can you please suggest me how to create a user in UME Database using web dynpro java custom application.
My Requirement is user can register his/her user id in SAP Portal 7.3 UME database.
Please suggest me.
Thanks and Regards,
AmitHi Amit,
Generated Documentation (Untitled)
This is what you're looking for, there's no real cook-book -- though Amey mentioned there might be some material on SDN, perhaps some tutorials.
You should be looking into com.sap.security.api.IUserFactory, methods newUser(String) which gives you and IUserMaint and commitUser(IUserMaint, IUserAccount) -- IUserAccount can be obtained using com.sap.security.api.IUserAccountFactory, method newUserAccount(String)
Hope it helps,
D. -
How to set a variable in portal session using web dynpro java.
Hi,
I have created a web dynpro application, which is running inside portal. I have created a role called "R1". Inside role R1, i have created 3 workset W1, W2 and W3. and inside each workset i have some pages and iviews.
My requirement is when user logins to the portal , and when he clicks on role R1 for the first time, a login page should come (so that we can do revalidation), and when he enters his password again in that login page , then only workset W1, W2 and W3 should be visible/accessible to him and after successful revalidation, if he clicks again on role R1, in that particular portal session, than that login page should not come.
for this, i thought i will set a variable in portal session, whenever user successfully revalidated himself, and if after successful revalidation he clicks again on role R1, i will check in doinit method of webdynpro whether variable is set or not (which i already set on successful revalidation), and if it is set then i will do Donavigation else i will present login page to the user.
Can anyone tells me how to set a variable in portal session using web dynpro java.
thanks
ArushHi,
Try this:
WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE, key, value)
WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE, key)
Ex:
WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE,"Key1","Value1");
String value1=WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE,"Key1").toString();
/people/william.cui/blog/2007/02/12/sharing-session-context-between-parent-and-external-windows-running-on-same-host
Regards,
Charan -
Problem in completing the TASK when using Web Dynpro Java and BPM
Hi,
I am using Web Dynpro Java and BPM.
i see my Web Dynpro View when i run the process.
Just that the task is not completing.
when i click on the Web Dynpro button to signal the completion of the event, nothing happens.
i have appropriately created events in both Component controller and Interface Controller and used the same in creating the Task.
a method in Component controller fires the event and a button click in the view calls this method.
i have successfully completed Donka Dimitrova's "SAP Netweaver Business Process Management-End-to-End Process Implementation Sample " but when i tried my own with slight modifications, it is not working !!!
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d07f3e88-554f-2b10-3cbf-ab8afea51b9f
regards,
-Amol GuptaHi Amol,
The way you described the things, I dont see any problems. Just to make sure that you are triggering the right event that you mapped as completion event for the task, try to cross check once again and see if the correct event is getting triggered. Also try to put some messages for debugging to see till where the control goes.
Regards,
Arafat -
How to implement Captcha using Web Dynpro Java
Hi Experts,
Can you please provide any information on CaptchaImplementation using Web Dynpro Java. We are using NWDS 7.01.
Regards,
SuvankarHello Suvankar,
maybe this blog will help. But haven't tryed it myself.
http://scn.sap.com/blogs/balab/2006/09/25/bid-adieu-to-bots--using-captchas
Regards,
Tobi -
Reusable objects using web dynpro java...any suggestions ?
Hello All,
I want to create few Reusable objects using web dynpro java. Please suggest some scenarios.
regards
Mrinalini.Hi,
I can suggest especially this one:
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30d56578-f7e5-2a10-5ab5-8afc55d2e0e8
Some other hits you may find useful:
This guide mentions some tutorials about reusability:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ba2db0e5-0601-0010-9790-e271902f2c38?quicklink=index&overridelayout=true
Here
Web Dynpro Java [original link is broken]
and here
SAP NetWeaver Composition Environment Samples Center [original link is broken]
you'll find other tutorials as well.
Best Regards,
Ervin -
File Visibility in uploading the file using web DynPro java
hello,
i have gone through the tutorial " uploading & downloading the file using web DynPro java".
the upload functionalty is working fine. but i need to know thw path where these files are getting uploaded ??
Waiting for the reply..
Regards,
Viren GuptaHi Viren,
Are you are refering to the below tutorial for upload and download:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0e10426-77ca-2910-7eb5-d7d8982cb83f?QuickLink=index&overridelayout=true
If yes, then answer is that the file is stored in the context of the application only as "com.sap.ide.webdynpro.uielement-definitions.Resource" object. Please read through the tutorial to understand the full process.
WD doesn't really upload to server automatically unless there is any explicit code written. All it does is to store the file in a temp context which you can access and write your own code to store it in a particular location.
Regards,
Mahesh -
Portal Eventing between Web DynPro Java iView and non-Web DynPro iView
Dear Experts,
I have 1 Web DynPro Java iView and 1 non-Web DynPro (using JSPDynPage and JSP) iView, both attached to a page. When Web DynPro Java iView fire a portal raise event, the portal iView did not execute the javascript function tied to the event subscribed.
Here is the code snippet which reside in the Web DynPro Java iView that is used to fire the event
String param = "test";
WPortalEventing.fire("urn:com.company.Test1", "TestEvent", param);
This the code snippet that is in the jsp page
function notifyTest(param)
// Code to print param value here
EPCM.subscribeEvent("urn:com.company.Test1", "TestEvent", notifyTest);
Note:
1. When Web DynPro Java iView fire the portal event the entire page is refreshed, including the non-WDP iView.
2. When EPCM is replaced with window.top.EPCM, the page is refreshed, it is totally hanged with progress bar.
Can anyone help to solve this problem?hi
Please write the below code snippet in ur jsp for notifyTestjavascriptfunction
function notifyTest( eventObj ) {
eventParameter=eventObj.dataObject;
// code to print the parameter "eventParameter"
Thanks
Harsimran -
Create PCD folder using web dynpro Java
Hi All ,
I would like to create pcd folder structure using web dynpro java
i.e. My folder at top level and under this there will be iviews , roles , worksets etc.
Is it possible using WDJ ?
I have checked the below link , but for folders I did not get anything.
http://help.sap.com/saphelp_nw04/helpdata/en/44/6aaf92f5a23672e10000000a114a6b/frameset.htm
Can you please help me ?
Thanks,
SandipHi,
Please refer to the following document
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/508baf88-9335-2d10-efa6-c6ad61e5fc4b?quicklink=index&overridelayout=true
The same can be implemented in webdynpro also.
Regards,
Raju Bonagiri
Edited by: Raju Bonagiri on Sep 3, 2010 8:36 AM -
Creating sales order using web dynpro JAVA
Hello everyone,
i am new to web dynpro. Can any one tell me how to creating sales order by web dynpro JAVA using BAPI.
Thanks.
Vinita SharmaHi...
you can use Adaptive RFC methodology in web dynpro java to work with BAPIs..... these are standard bapi's provided
Here are required Bapis... select which one you want....
BAPISDORDER_GETDETAILEDLIST Sales Order: List of All Order Data
BAPI_ORDER_CHANGE_STATUS_GET Change status for order
BAPI_SALESDOCU_CREATEFROMDATA Creating a Sales Document
BAPI_SALESORDER_CHANGE Sales Order: Change Sales Order
BAPI_SALESORDER_CREATEFROMDAT1 Sales Order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDAT2 Sales Order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDATA Create sales order, no more maintenance
BAPI_SALESORDER_GETLIST Sales order: List of all orders for customer
BAPI_SALESORDER_GETSTATUS Sales order: Display status
BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order
check this thread SALES ORDER creation using BAPI
sample java program which will call SAP bapi function sales order create
PradeeP -
How to run web dynpro java application
I am new to Web dynpro java.
I have created sample application through NWDS. I wanna run the application in server.
please tell me from where I have to download the server and the steps to install the server.
I have installed sap management console, but frankly speaking don know how to proceed my next step.
Struggling for last two days and I believe my search will come to an end.
Thanks in advance.
P.S: If I post in the wrong column, admin please redirect me to the right place.Hi Ram,
I tried to download the Software according to your instructions. I could follow the path Installations and Upgrades -> Entry by Application Group -> SAP NetWeaver -> SAP NETWEAVER, but then the only choices left are:
SAP NETWEAVER 04
SAP NETWEAVER 7.0
SAP EHP1 FOR SAP NETWEAVER 7.0
SAP NETWEAVER CE 7.1
SAP NETWEAVER MOBILE 7.1
SAP NETWEAVER PI 7.1
Please look this [Install & Configure SAP NetWeaver Composition Environment 7.1 ehp1 (Preview Version)|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b057d7e3-b89e-2b10-1e9e-c426e967f8e1]
and [SAP NetWeaver Composition Environment 7.1|SAP NetWeaver Composition Environment 7.1]
Hope help full!!!
Regards
Vijay
Edited by: VijaySAPEP on Aug 11, 2011 11:50 PM
Edited by: VijaySAPEP on Aug 11, 2011 11:54 PM -
Upload File in Web Dynpro Java CO and store it in the context
Hi Guys!
I have developed a web dynpro CO form, and I need to be able to upload a file in an action and then be able to download that file in further actions.. I have evaluated saving the file in the backend via RFC, in KM and also creating a CAF project.. but I think there must be a simpler way : saving it in the context of GP.
Does someone knows if it is possible to do that?
best regards,
Marco.Hi Marco
In webdynpro java, there are UI elements File Upload and File Download. You can use these UI's to upload and download attachments. From NetWeaver 7.0 onwards, you have IWDResource interface which can be used to upload attachments. But in GP if you want to pass attachment to another action you must use Binary as a data source. Bind the File upload UI element to Binary. In addition, you should define input and out parameters in getDescription method.
Thanks
Ghazanfar -
Web Dynpro Java Internationalization and backend ABAP function modules
Friends,
I have a requirement where I want my Web Dynpro Java application to support BRAZIL and CHINESE.
I have been through the sample programs and tutorials and I understand how to support my application in these 2 languages. The challenge I am facing is how to communicate the language to the backend code (ABAP function modules) so that the function modules can written language specific error messages and texts.
I searched SDN but could not find anything. Your help is appreciated.Prashant,
When you are configuring JCo connection in WebDynpro Content Administrator, just left language settings blank for metadata connection (you may do the same for data connection). Now WD will supply language of currently logged-in user when obtaining connection settings from system landscape and you'll get necessary functionality.
By default locale of user determined by parameter sap-locale (sap-locale=de_DE for example), settings of user's browser and lastly preferences of user stored in UME.
Btw, BRAZIL (or Portugees for this matter) is not fully supported language by SAP, so R/3 side may be not translated or partly translated.
Valery Silaev
SaM Solutions
http://www.sam-solutions.net -
How to use web dynpro's web service to import XML file
Hi
I have an xml file and I want to use a web dynpro's web service to cosume this file which is existing on my local drive. Can anyone help me which steps I have to do to use this file as a web service using web dynpro.
ThanksHi
You can refer below Wiki Article on SDN. I hope that will help you out.
[https://www.sdn.sap.com/irj/sdn/wiki?path=/display/emtech/consuming%2babap%2bweb%2bservices%2busing%2bflex]
Thanks.
Maybe you are looking for
-
How can I cancel a movie that has been trying to download for. 3 days? When I click on ITunes ,it says I don't have enough space. I tried to buy more and it went to the iCloud. Does anyone know how to cancel that movie?
-
PowerMac G5 DP 1.8GHz/GeForce FX 5200 - DELL 2407WFP 24" LCD compatibility?
Hi all, I am running Mac OS 10.3.9 (up-to-date) and would like to ask if there's anyone using and/or knowing about the following compatibility: PowerMac G5 dual processor 1.8GHz with NVIDIA GeForce FX 5200 (64MB VRAM) and DELL UltraSharp 2407WFP 24-i
-
I recently made a purchase from Insight to purchase the CS6 Creative Studio for DreamWeaver. I was told that all purchasing was done through the creative cloud and the "VIP" Process... This will cause procurement issues for my program. The initial co
-
I am trying to activate my new handset which is iPhone4S. After selecting region and language I connect to Wifi (which I know is working) and it tries to activate. It tries to activate then says activation failed conenct to iTunes or try later. I hav
-
I have been having the same issue as many of you folks. In the beginning of the week I was able to download one song and after that I got an error message of 502. So I waited and tried again the next day, which came up with and error message regardin