Creating popin in java webdynpro
Hi ,
wrote code regarding creating pop in in table.
WdDomodify(){
if(firstTime){
IWDTablePopinToggleCell pop= (IWDTablePopinToggleCell)view.getElement("TablePopinToggleCell");
pop.mappingOfOnToggle().addSourceMapping("nodeElement","I_Popin");
IWDTablePopin popin=(IWDTablePopin)view.getElement("Popin");
popin.mappingOfOnClose().addSourceMapping("nodeElement","i_close");
Then
WdInit(){
IPrivatePopinCompView.IMyInfoElement ele= wdContext.nodeMyInfo().createMyInfoElement();
ele.setName("Sudhira");
ele.setCity("Cuttack");
wdContext.nodeMyInfo().addElement(ele);
ele= wdContext.nodeMyInfo().createMyInfoElement();
IMyInfoNode node=wdContext.nodeMyInfo();
IMyInfoElement nodeEle =null;
for(int i=0;i<wdContext.nodeMyInfo().size();i++){
nodeEle = node.getMyInfoElementAt(i);
nodeEle.setSelectedpopin("");
OnToggle method is creted at event property of TablepopinTogglecell.
public void onActionOnClickIcon(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, com.sap.demo.popinproj.wd.comp.popincomp.wdp.IPrivatePopinCompView.IMyInfoElement I_Popin
IMyInfoNode node=wdContext.nodeMyInfo();
IMyInfoElement nodeEle =null;
for(int i=0;i<wdContext.nodeMyInfo().size();i++){
nodeEle = node.getMyInfoElementAt(i);
if(I_Popin.index()==i && nodeEle.getSelectedpopin()!=null){
nodeEle.setSelectedpopin("Popin");
}else{
nodeEle.setSelectedpopin("");
Onclose method is created at event property of Popin Ui
public void onActionOnclose(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, com.sap.demo.popinproj.wd.comp.popincomp.wdp.IPrivatePopinCompView.IMyInfoElement I_Popin
IMyInfoNode node=wdContext.nodeMyInfo();
IMyInfoElement nodeEle =null;
for(int i=0;i<wdContext.nodeMyInfo().size();i++){
nodeEle = node.getMyInfoElementAt(i);
if(I_Popin.index()==i && nodeEle.getSelectedpopin()!=null){
nodeEle.setSelectedpopin("");
Must be same value of selectedvariantcell and varian key propert of tablepopintoggglecell and column property (selectedvariantcell )
Thanks
Sudhir
What do you have and what do you need help with? This is not a please do it for me type of forum.
Similar Messages
-
Is it possible to execute a simple java webdynpro application without deploying?
Hi,
I am a beginner and just have created an elementary java webdynpro application that enables to switch between two views. When I tried to execute the application it prompts me to configure server settings(above screenshot).Is there a way to test the working of my app without deploying in server.
regards,
Ajeeth Kumar SHi Jun Wu,
Because without deploying, it doesn't allow me check how my java webdynpro application works!!
I need to execute my java web dynpro application and I dont have any access to SDM pins/passwords.
Please share your valuable thoughts on the same.
regards,
Ajeeth Kumar S -
How to create Table Popins inside a table using Java Webdynpro
Hi All,
I am working on a Java Webdynpro project and one of our requirements is to create Table popins inside the Table. I need to popin data beneath the row based on a value selected from the DropDown Box which is one of the column in the Table.
Also, I need to display vertical scrollbar instead of Table Footer to scroll thru the table rows. Any ideas.........
I would appreciate if you can let me know how can I do this. I am working on the 7.0 version of Java Webdynpro.
Thanks for your time and consideration!
Regards,
MadhaviHi,
Please refer the following link:
Re: Table popins
step by step procudure to create table popin on lead select.
thanks & regards,
Manoj
Edited by: Manoj Kumar on Apr 1, 2008 10:17 AM -
Need help to create a new record in mdm using java webdynpro
hi all,
I have to develop an application to create a new record in mdm by using java WebDynpro . Please help me what is the process that i have to follow to do this and provide me if you have any step by step guidance for this.
thanks & regards,
Mahi.Hi,
The below link will help u to make the application in JAVA webdynpro
The article has code to for creating records.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/803e9e80-21f4-2a10-8cbf-bcf6a8060be3
Hope this may help u .
Rgds
Ankit -
Create a navigation link from java webdynpro to ABAP BSP
Hi gurus,
we received a customer request; we have this scenario. We have created a custom Java WebDynrpo application that works with mySAP CRM.
The customer request is the following:
Into a webdynpro page it is possible to call a BSP application passing the parameter CRM_OBJECT_ID?
In detail (Example): we want to call the BSP Application Account (with the BP 1000001) selected:
http://domain:port/sap/bc/bsp/sap/crm_bsp_frame/entrypoint.do?appl=CRMM_ACCOUNT&CRM_OBJECT_ID=1000001.
Thanks in advance.
Eugenio.Hi All,
First of all, thanks to everybody for the collaboration.
I'm working to solve the problem. I have to specify better the customer request:
The navigation should be from a custom webdynpro to the standard crm BSP FrameWork (CRM PC_UI) CRM_BSP_FRAME. If I try to launch a BSP application, Ex: CRMM_ACCOUNT, i see that the application create automatically a session id; this is the URL generated:
http://name.domain.com:8034/sap(bD1pdCZjPTExMCZkPW1pbg==)/bc/bsp/sap/crm_bsp_frame/entrypoint.do?appl=CRMM_ACCOUNT.
Now, my question is the following?
Is there the possibility to call this (PC-UI) application through a custom webdynpro??
Thanks in advance.
Kind Regards.
Eugenio. -
When does a value help in Java webdynpro 2004s get created automatically
HI All
when does drop down value help get created automatically (without coding) in java webdynpro NW 2004s application for a view field mapped to a abap dictionary like currency(Domain:waers) having a value table TCURC but has to be created for a field like UOM(Domain:meins) having a value table T006
the only differnce I can see in the 2 domains in my current set up is, meins has a conversion routine & wears doesnt
this is a question that applies to both java webdynpro & abap so please dont ask me to post it in another forum.
Im sure some one has asked this question before. please guide me!!
Thanks
PrasadQuestion:
If I start a java thread from the �main� thread of
execution and that thread I just created finish�s
executing its �run� method is that threads resources
automatically clean up? Or do we have to do this
clean up ourselves?Depends which resources you mean. There's nothing special about threads in that respect.
Memory is automatically reclaimed when it is no longer reachable, so unless the run method set some member variables in some object that remains reachable after it completes, no worries there.
Files, sockets, etc. remain open unless you close them. -
Java.exe Error while creating the Model in Webdynpro
Hi,
I am creating the Model in Webdynpro Project. I have given the SAP r3 user id Passord details. after giving these details and clicking on next, it is giving an Error as " *Javaw.exe has got some problem needs to close. sorry for the inconvenence*". NWDS is getting closed if I click on Ok in the Pop-up window message.
I did re install the NWDS as well. but still the problem is persisting. and not able to proceed further.appreciate the quick resolution .
Rajyalakshmi
09739066796hi
This error occurs mainly due to the reason that particular plugin is not there in the NWDS.
So please try to reinstall the NWDS or try tracing out whether that particular plugin is there or not.
Thank,
kris -
Need to create a function to receive binary files from Java WebDynpro
Hey,
I need to recieve files from java Webdynpro and save them as a file on the backend
system. After that, the file will be loaded to the documentum.
In a function module, I only can get the files as a String. Therefore (I think), I need the
binary file as base64 encoded. Otherwise I can´t get it as a string.
Now I need to decode it in the backend, but how? I know, there are HTTP-classes
in newer system, but not in the 4.6C System, I have here.
Any idea, how I can recieve the files in the function module and transfer it as binary
file to the backend system?
If I load a file from the gui with gui_upload, I get the binary file as an internal table
and can transfer it to the backend filesystem now. Maybe I can get the binary file
in this way in the function?
Thank You for Your help!
Arnehttp://jakarta.apache.org/commons/net/
-
CNTL_ERROR while calling a function module from Java webdynpro
I am calling a RFC function module from javawebdynpro app
which inturn calls a function module performing BDC on CAPP transaction. When I run this from SE37 of the same system or a different system everything works fine. But when called from Java webdynpro app, it raises a CNTL_ERROR exception and creates a short dump.
Any help on this is highly appreciatedGood catch, BI Learner. This was exactly it: when assigning the values from SOURCEFIELDS directly to the import/export parameters, you have to make sure that the types are EXACTLY the same, otherwise it will not work (the routine stops with an error when calling the FM, but there is no dump).
Therefore, to solve my problem, I created the declarations precisely as expected by the FM and assigned the values to these fields:
DATA:
SOURCEVAL TYPE /BIC/OIINVQTY,
SOURCEUOM TYPE /BIC/OIUSUOM,
USITM TYPE /BIC/OIUSITM,
TARGETUOM TYPE /BIC/OIUSUOM,
CONVERTED_COST TYPE /BIC/OIINVQTY.
DATA PRODUCTION_UOM TYPE /BIC/OIUSUOM.
" get the Production UOM
SELECT SINGLE I~/BIC/USPRDUOM
FROM /BIC/PUSITM AS I
INTO PRODUCTION_UOM
WHERE I~/BIC/USITM = SOURCE_FIELDS-/BIC/USITM AND I~OBJVERS = 'A'.
IF ( SY-SUBRC = 4 ). " no records found
"RAISE PARTNO_NOT_FOUND.
RAISE EXCEPTION TYPE CX_RSROUT_SKIP_RECORD.
ENDIF.
" load the parameters
SOURCEVAL = SOURCE_FIELDS-/BIC/USFRZMFC.
SOURCEUOM = SOURCE_FIELDS-BASE_UOM.
USITM = SOURCE_FIELDS-/BIC/USITM.
" then you can call the FM
CALL FUNCTION 'Z_CA_CONVERT_US_COST'
EXPORTING
PSOURCEVAL = SOURCEVAL
PSOURCEUOM = SOURCEUOM
PUSITM = USITM
PTARGETUOM = PRODUCTION_UOM
IMPORTING
PTARGETVAL = CONVERTED_COST
EXCEPTIONS
CONVERSION_NOT_MAINTAINED = 1
PARTNO_NOT_FOUND = 2
OTHERS = 3.
" ... [do the rest]
Thanks for your help,
Dennis -
Image not showing in Abobe integrated with Java WebDynPro
Hi All,
Image is not showing in Abobe integrated with Java WebDynPro.
I did the following:
Added the image field in adobe form. in URL value set the value of context node binding. Binding set to none and size set to Use Original Size.
Then in script editor i wrote
this.value.image.href = xfa.resolveNode(this.value.image.href).value;
at innitialize , javascript and client.
I can see the image from the same url context value if image field is created directly in WebDynPro View.
Can anyone suggest what is missing?
Thanks and Regards,
NuzhatTry changing your line of code for this one
this.value.image.href = xfa.record.Images.URL;
Check that the url passed by scripting is correct with a messageBox for example.
You can also try assigning a hardcoded url at scripting level to check if its works.
Best regards, Aldo. -
How to configure JAVA webdynpro in ECC 5.0??
Hello Friends,
I just installed ECC 5.0. Is java webdynpro already installed with ECC 5.0?? If not how to install it?? if yes how to configure it?? And how to run java webdynpro?? help me please
ThanksNo, not required.
You will need to maintain JCo destinations when you deal with your backend R/3 system from WD but as of now you don't need to configure anything.
Just install and start creating your project in WD Java.
Happy Learning
Murtuza -
Error while importing Webservice Model in NWDS in java WebDynpro
Hi All,
Our Project FileNet team has developed 1 web service and they have given us WSDL of that webservice. I have to use this webservice in my java webdynpro code. We have 2 different webdynpro DC, In one DC I have imported this webservice model as Adaptive web service model, that is I choosed create model > Import Adaptive web service model->Local file system and URL (radio button)->No logical destinatination> and i pasted the WDSL url and imported the webservice, and i have done all the relevant coding and i am able to execute the webservice in my web dynpro code.
But today in 2nd DC when I am trying to import that webservice , I am getting the error (check the URL metioned below in bold letters , copy the URL mentioned below and paste in the browser, there I have attached the screen shot of my error), now I am not able to import the WSDL in my NWDS, help me in solving this error, why this error is coming now when i was able to import same webservice some days back in some other DC. Now NWDS is not at all allowing me to import the WSDL.
https://doc-0o-0k-docs.googleusercontent.com/docs/secure/5elephltc9fqco9g9svslcas2fe0vfp2/32ulb82g3ujf3faagc6tcs302if79vfs/1292241600000/09039132551478801166/09039132551478801166/0B74gjLoX5l3WOTA3NGYxMzYtODA5Ni00YjgzLThlZWEtMTcwNTIyNzNlYzgz?nonce=30ect8rgre40a&user=09039132551478801166&hash=85uqgdnm674vvgvli8oo4041n9lvj16nHi,
Please have a look at this threads
Can not create Adaptive Web Service Model
Problems embedding adaptive webservice model
Regards
Saravanan K -
Calling a Web Service from Java Webdynpro
Hi,
Can any one give me step by setp details on how to call a Web Service from Java Webdynpro ?
I tried creating a model using Import Web Service Model but when I completed creating the model, I got some errors as shown below.
Error The method setRouteGeometryLineArray(double[][]) in the type Trip is not applicable for the arguments (double[]) ComplexType_Trip.java WS_INVOKE/gen_wdp/packages/com/cintas/test/model/p1 line 249
thanks
SBKHi SBK,
I assume you may already have read the [help guide|http://help.sap.com/saphelp_nw70/helpdata/EN/81/12703e5da3e946e10000000a114084/content.htm] This gives a pretty good idea of how to do it (step by step).
Is there a typo in the error you pasted?
Error The method setRouteGeometryLineArray(double][) in the type Trip is not applicable for the arguments (double[]) ComplexType_Trip.java WS_INVOKE/gen_wdp/packages/com/cintas/test/model/p1 line 249
The square brackets [] after double in the method call appear to be reversed. Is that also in the code? or just a mistake here?
Hope this points you in the right direction.
BRgds,
Simon -
How to create popup in ABAP webdynpro.
Hi,
I found lot of examples to create a popup/ model window for java webdynpro.
Could anyone give a pointer to an example which explains how to create popup in ABAP webdynpro??
Kind Regards
ShahulHi Thomas:
It worked fine the 1st time. Second time when the user clicks on the button to open up the popup it dumps.
Here is the code in the action for popup:
data: l_cmp_api type ref to if_wd_Component,
l_window_manager type ref to if_wd_window_manager,
l_api type ref to if_wd_View_controller,
l_text type string_table.
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window_manager = l_cmp_api->get_window_manager( ).
if wd_this->m_popup is initial.
wd_this->m_popup = l_window_manager->create_window(
window_name = 'DOCQSOW'
button_kind = if_wd_window=>co_buttons_ok
message_type = if_wd_window=>co_msg_type_none ).
component_usage_name = 'DOCQUERY_USAGE_1'
l_api = wd_this->wd_get_api( ).
wd_this->m_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_ok
button_text = 'Transfer'
action_name = 'POPUP_CLOSED'
action_view = l_api ) .
wd_this->m_popup->SET_REMOVE_ON_CLOSE( abap_true ).
endif.
wd_this->m_popup->open( ).
Second time when the popup tries to open, I get the following error:
Method: RENDER_WINDOW of program CL_WDR_WINDOW_RENDERER========CP
Method: RENDER_WINDOW of program CL_WDR_CLIENT_SSR=============CP
Method: RENDER_POPUP_WINDOWS of program CL_WDR_CLIENT_SSR=============CP
Method: RENDER_WINDOWS of program CL_WDR_CLIENT_SSR=============CP
Method: IF_WDR_RESPONSE_RENDERER~RENDER_VIEWS of program CL_WDR_CLIENT_SSR=============CP
Method: IF_WDR_RESPONSE_RENDERER~RENDER_USER_INTERFACE_UPDATES of program CL_WDR_CLIENT_SSR=============CP
Method: IF_WDR_CLIENT~SEND_RESPONSE of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
Method: IF_WDR_CLIENT~SEND_RESPONSE of program CL_WDR_CLIENT_SSR=============CP
Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
Is there a way to destroy the instance of the m_popup?
Any help is appreciated!
Thanks -
Hi,
I'm creating a Java Webdynpro where I call RFC's from SAP.
For the images in the webdynpro, I call the standard SAP function 'CVAPI_DOC_VIEW'
When I execute the function in SAP, I get the url to the contentserver with the correct image.
After calling the same function in my Java Webdynpro, the url is empty.
I've checked the importing parameters after calling from webdynpro and SAP and they are the same.
After debugging, I saw that the function 'CVAPI_DOC_VIEW' is the problem. He's exporting an empty url after calling from the webdynpro.
Does anybody knows the possible fault and solution for my problem?I'm not an ABAPer but the last time I've dealt with DMS from Web Dynpro an ABAPer wrote a custom function that gets the file content (XSTRING) by sending DMS parameters (documenttype, documentnumber, documentversion, documentpart).
After getting the XSTRING from my Web Dynpro Java, I convert it to byte[] and created URL by using WDResourceFactory.
Hope it helps...
Omri
Maybe you are looking for
-
Can't add computer to 'iTunes in the Cloud'
For some reason, I'm not able to activate iTunes Match on my MacBook (late 2008 unibody). However, I've successfully enabled iTunes Match on my iMac (mid-2007), iPhone 4 and work computer (MacBook Pro) for a total of 3 devices. It will not activate w
-
hi everyone we have a 2 system landscape.the disk space left on dev is only 28gb. and the production size is 230 gb or something .we want to refresh the production system on the dev server atleast once a month.so is it advisable to upgrade the hardw
-
I'm very very confused/pi**ed off at the moment. For some reason, my European Creative Zen Touch is not making any sound. I turned it on, selected the song and put the headphones in and great, nothing! Not a thing. I have tried different songs, reset
-
Solution Manager Learning Map http error 403
Hi, I created a new learning map in solution manager using solar_learning_map, when I attempted to display the learning map in the web browser i received the following error. <i><URL> call was terminated because the corresponding service is not avail
-
hello and thankyou for whoever is reading this for taking the time! Im makinga band web site and I made flash buttons in flash 8(not the flash buttons in dreaweaver). now I need to add a link to each button. How can I do this. I see that a lot of ban