Web Dynpro Field Elements Disabled
Hello:
The text fields of my Web Dynpro App are disabled when I run the app. Im trying to change the Collection Cardinality in the context to 1...1 but I cant, it seems to be disable too.
Can anyone help me? How can I change the cardinality?
Best Regards
Thanks
Mario G
Hi
You need to add the following code in your WdDoInit()
//create a new model instance
model = new <name_of_your_model>();
//create model objects
<name_of_your_request_model_class> requestMO = new <name_of_your_request_model_class>(model);
<name_of_your_send_model_class> sendMO = new <name_of_your_send_model_class>(model);
//associate model objects
requestMO.set< name_of_your_send_model_class>(sendMO);
//bind exacutable model object to context node
wdContext.node<name_of_your_context_node_for_ws>().bind(requestMO);
Regards,
Edzon
Similar Messages
-
Hi there,
I want to call a Remote function, but before that i want to set some fields by the values typed in by a web dynpro application.
I imported the RFC model, defined a view but when the view comes up for some reason all the fields are disabled.
Can anybody tell me what i should do in order to get the fields enabled
thanks
BertilHi,
If the rfc imported is zabc_input, I hope you have done the following.
zabc_input inp=new zabc_input();
wdcontext.nodezabc_input().bind(inp);
Suppose you have to input some String value and the attribute is name and mapped to an input field try out the following.
inp.setName(new String);
Hope it would help.
Do pls send in feedback.
Regards
Noufal -
Visual index of Web Dynpro UI - elements
hi!
i am looking for some sort of visual index of all UI - elements available for Web Dynpro. Does anybody know a good ressource?
Thanks!
RobinLook at this link:
https://sapneth7.wdf.sap.corp/~form/sapnet?_SHORTKEY=01100035870000467002&
There you will find a PDF document called "UI Building Blocks Presentation". -
Events for web dynpro UI elements
Hi,
In NWDS there are only a few event types associated with each UI element type. Say InputField has 'onEvent' event, DropDownList has 'onSelect' etc.
So, for the Input fields are we limited to triggering an event handler to fire only when the user hits the 'ENTER' key? What do I need to do to trigger an event handler for say when the user hits a 'TAB' key ? Is there some way we can extend the event listener interface to add more events to an UI element ?
Please advise. Thanks !
SriThere is no event triggered when the input field looses focus.
You cannot add your own events.
Armin -
Web dynpro UI element visibility
Hi
My situation is this.
I have a view on which I want to display certain fields to the user depending on whether a particular value is present in a database table.
In the Context I have attributes of type WDUI_VISIBILITY which are mapped to the relevant UI elements in the layout that I want to set to visible or not when the view loads.
In the WDDOINIT method I have declared local variables like so: DATA lv_visible TYPE wd_this->element_properties-visible.
I then perform the database check which I can see is fine in debugging and assign values to my local variables:
IF lv_unfal NE 'X'.
lv_visible = 02.
lv_hod_visible = 01.
ELSE.
lv_visible = 01.
lv_hod_visible = 02.
And then assign those values to the context element.
lo_el_properties->set_attribute( name = 'VISIBLE' value = lv_visible ).
lo_el_properties->set_attribute( name = 'HOD_VISIBLE' value = lv_hod_visible ).
lo_el_properties->set_attribute( name = 'HOD' value = lv_hod_vis ).
However on loading the view not all of the UI elements are being made visible/invisible as I would expect/hope! I am missing something here? I've used this concept before and it worked ok. Is is something to do with the WDDOINIT method?
As always very grateful for any suggestions.
Thanks
JonHi Rama
Can you elaborate on how by default the the ui elements are not visible please?
I've double checked all the assignments and I have bound the visibility attribute to all required UI element's Visible Property.
There are no other methods with code that is overwriting the INIT method. One of the elements involved is a checkbox which has an onToggle event. I'm not interacting or setting it on loading the view but might that have an effect?
Cheers
Jon -
Hi,
Can anyone will give me step by step process for web dynprobs with r/3.......
i have the screen shots from library which has step by step processs but , iam unable to get the fields from the BAPI ........
plz can anyone will be helpful for me...............
plz if any one has the file send to me not from library...
AnjaliHi Anjali,
I cannot quite understand your question. Are you talking about WebDynpro ABAP oder WebDynpro Java. If you have the problem with WebDynpro Java, please user the other forum (ForumID=52).
Regina -
Web Dynpro UI Elements not appearing in GP
Hi everyone,
I have been developing some Development Components using the GP guide found on SDN. The first CO works just fine but for some reason, the second one I created doesn't show any UI elements and it doesn't return any error messages. Has anyone had this happen to them before?
The difference between this DC and the previous one is that I included a second view and a second window to use as a popup.
Any ideas?
Thank you very much,
LuisThe problem was I didn't include the main view in the WebDynproCO window which is why nothing was being shown.
Problem solved. -
Context not updated from adobe from fields to ABAP web dynpro every time
Hi,
I work through a turtorial for interactive adobe form in web dynpro. The turtorial link is as following:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/c766e918-0b01-0010-99b1-c2b78cd059b3?prtmode=navigate
I use Active X adobe form display type and submit button. Basically, it works.
My problem is the 1st time I change the out_amount in adobe form and click 'Submit'. Everything OK. The corresponding context field in Web Dynpro is updated and showed in my own web dynpro field.
Then, I change the out_amount again in Adobe form and click 'Submit' again. The context is not updated.
The interesting thing is when I click 'Submit' the 3rd time, it works again. Same situation happens for 4 and 5 times click 'Submit' and so on.
It seems I need to click 'Submit' two times and the web dynpro context is then updated.
Is there anyone have any clue about my problem?
Thank you in advance!
TreyPlease provide the solution.......
-
Adobe Library Elements in Web Dynpro
Hi,
I cannot see the Web Dynpro tab elements under the library palette, even though I have defined the check and submit actions for the interactive form.
My NWDS is SP12, and Adobe Reader is 7.0.5. Can anyone point me in the right direction?
Thanks,
ManikHi Manik,
Close your NWDS and then open once again. There were some problems like this. When you restart your NWDS such problems disappear.
Regards,
Bhavik -
Passing data from one screen to another(web-dynpro) in SRM sourcing cockpit
HI Experts,
i am facing problem in passing data from one web-dynpro screen and assigning the data it to another web-dynpro screen.
my requirement is that when ever user selects a contract in PROPOSE SOURCES OF SUPPLY screen popup and press only assign only button, the data of the contract should be copied to the shopping cart.
i have already used the BADI BBP_DOC_CHANGE_BADI, but unfortunately it was not working.
so i tried to use the context, element and other web-dynpro fields to pass the data, i am able to pass the data from the popup to the second screen and able to assign it.
but when ever i deselect the shoppping cart which has been assigned with the data of the popup and select another shopping cart the data of the above shopping cart is cgetting changed.
i am unable to figure out the exact reason why this is happeing.i have written code in the ASSIGN ONLY button method to fetch the popup data and in the WDONMODIFYVIEW method of the second screen to assign the popup data to the shopping cart.
i have tried to bind the elements using the BIND_TABLE, BIND_STRUCTURE, BIND_ELEMENT, BIND_ELEMENTS methods, but nothing is working.
can anyone suggest me where i am making mistake and try to solve the issue.
Thanks
TanveerDear Poster
Your thread has had no response since it's creation over
2 weeks ago, therefore, I recommend that you either:
- Rephrase the question.
- Provide additional Information to prompt a response.
- Close the thread if the answer is already known.
Thank you for your compliance in this regard.
Jason Boggans
SAP SRM SDN Moderator -
Web Dynpro Java UI Customization from Portal Using CTRL+Right Click in Prev
Hi Team,
I am able to hide some Web Dynpro UI elements from Portal Content Administration >> Web Dynpro iView >> Preview and by Pressing CTRL+RIGHT CLICK.
Here I need to understand the concept like how things work in this case. If we hide some UI in Web Dynpro Java iView customization will there not be any RFC/BAPI calls associated with that particular UI
For Example: Web Dynpro iView is made up of CompA and CompB and I am going to hide the UI associated with CompA. When I invoke the application will there not be any activity like invoking CompA calling associated RFC/BAPI etc related to CompA
Please help me in understand the concepts and performance implications on this.
Regards
SudhirHi Sudhir
You are quite right to raise this concern
If you start hiding elements you may find a change to functionality
For example - in ESS - if you hide a field that is set to mandatory in the back-end ECC when the user
goes to edit the screen they will not see the field and not maintain the field but they will get an error
"fill in all required fields" - which will completely confuse them as they will have filled in all displayed fields
Also if you hide one field in ESS that is required to populate another field this too many causes inconsistencies or errors
Ideal UI elements to hide are those that have been set to unsued (in the case of ESS in the back-end) and have no dependancies to other fields - however there is no complete list - you must test each scenario to your satisfaction
Best wishes
Stuart -
Load and Display Multiple Images in a Web Dynpro Table
I am new to Web Dynpro and I am wondering if anyone can help me with an application that I am currently developing. I have a particular requirement to store images in a database table (not MIME repository) and then display them in a WD table element. An image can be of JPEG, PNG or TIFF format and is associated with an employee record.
I want to create a view in my application that displays multiple images in a table, one image per row. I want to do this using Web Dynpro for ABAP, not Java. I have looked into pretty much all examples available for Web Dynpro and came to the conclusion that Components such as WDR_TEST_EVENTS and WDR_TEST_UI_ELEMENTS do not have any examples of images being stored in a database table and viewed in/from a Web Dynpro table element. Programs such as RSDEMO_PICTURE_CONTROL, DEMO_PICTURE_CONTROL and SAP_PICTURE_DEMO do not show this either.
The images to be displayed in the Dynpro table are to come from a z-type table, stored in a column of data type XSTRING (RAW STRING). So I would also like to know how to upload these images into this z-type table using ABAP code (not Java).
Your help would be greatly appreciated.
KennHi,
May be this is the is the correct place to post your query.
Web Dynpro ABAP
Regards,
Swarna Munukoti.
Edited by: Swarna Munukoti on Jul 16, 2009 3:52 PM -
Problems using ALSM_EXCEL_TO_INTERNAL_TABLE in Web Dynpro ABAP
Hello experts, im using the fm ALSM_EXCEL_TO_INTERNAL_TABLE.
When i call this fm from a web dynpro i have a dump that says that cannot import the clipboard.
Any ideas why this is happening?
(The parameter of the function are Ok, becouse if I call the function from SAP/R3 everything work fine)
ThankS!>
Mariano Gallicchio wrote:
> Thanks for the answer!
>
> I will continue searching for other fm!
I didn't mean to imply that there is a Function Module that should work from Web Dynpro. In fact I would be highly suprised if there was one. As already posted in this forum, the only way to get data from the client desktop is with the fileUpload UI element. No function module is going to be able to work with the Web Dynpro UI element. -
SP18 effect on Web Dynpro controls?
Hey All,
Does anyone know if SP18 made any changes to any of the Web Dynpro controls? We recently went to SP18 and are now seeing some very odd things happening. Just to narrow down where the problem might be, just wanted to see if there are any known changes to Web Dynpro controls.
Example: Calendar control, if you type in 31/05/07, an error message will be returned in German. When all other error messages are returned in the correct language.
Thanks,
-KevinThese validation messages are not part of the Web Dynpro UI elements but come from the Java DDIC. So if you find a bug, open an OSS message on BC-DWB-JDD.
Armin -
Regarding Design of background color in a Web Dynpro Table
Hi
I have a Web Dynpro UI Element Table having two colums and some rows. I wished to set the background color of the rows to white instead of default blue.
Can anyone help me how to implement this?
Regards
SreekarHI
Shekar,
Go thorugh the follwing Web Dynpro Java
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/business_packages/a1-8-4/nw04stack09themes.zip
To know how to use it and for the steps to be followed please follow the tutorial here
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how to edit web dynpro themes.pdf
the last url gives you a step by step procedure with wizards..
I hope your problem is solved..
don't forget to reward
RK
Maybe you are looking for
-
This has to be one of the the most common problems that people encounter. We all get new computers every so often, and we all need to keep the old bookmarks when we get a new computer and install the new browser. I feel like I must be among the small
-
Product won't launch because of an error with Media Encoder CC
Does anyone know what I can do about this?
-
It sounds SO SIMPLE but i'm STILL having trouble with this!!
Well after tinkering with Java for three years i thought i was pretty comfortable with it but lo and behold i am completely stuck on the SIMPLEST problem: The good ole classpath. I've always run javac from the dir that has my .java files and never ne
-
Trouble passing a varible to INSERT page
I'm a novice and I'm having trouble passing a varible from one page into the database. I ultimately want to pass the word "Appliances" into the database field name called CATEGORY. The user clicks on: www.xyz.com/main.cfm?category=Appliances to go to
-
i try to turn it on and this window appears telling me i need to restart my computer. i press and hold the power button until it turns off, let it sit for a minute, then turn it back on and the same message appears. i've done this multiple times and