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
Jon
Hi 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
Similar Messages
-
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". -
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 GHi
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 -
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 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. -
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 -
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. -
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 -
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 -
Creating Client-side Image Map in Web Dynpro
Hi,
How can I create a client-side Image Map in Web Dynpro application?
My application consists of a screen-size image in which several areas will have to link to URLs and actions. I have browsed through the "Web Dynpro UI Element Reference Guide," but could not find anything appropriate.
Can someone give me an advice? Thanks.
TeecheuIt doesn't, there is no corresponding UI control for this.
There is only onAction event on BusinessGraphics (have not working with them since SP5, eventing did not work at that time) and onObjectAction in GeoMap (never see it in action, probably an option for you if your map is geographic map
WBR,
VS -
Web Dynpro V/s other web technologis
Hi to all,
We are working currently on a system that uses BAPI call from ASP.Now planning to design new web applications using WebDynPro.Could anyone pls let me know how we can track the advantages/disadvantages or possible benifits from comparing current system.Also we are trying to minimize the usage of BAPIs from Web DynPros.Is is possible??Pls advise..
Thanks in advance
<b>Regards
Vipin B</b>Hello Vipin B,
Check this first http://www.sappro.com/downloads/OptionComparison.pdf
And some material about dynpro itself and comparison of different available technologies:
http://help.sap.com/saphelp_nw04/helpdata/en/a5/1a1e3e7181b60ae10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/bd/48fc3f8fc2c542e10000000a1550b0/frameset.htm
/people/thomas.jung3/blog/2005/10/02/sap-teched-2005-boston-a-look-back
POLL: Web Dynpro UI elements - enhancement proposals POLL: Web Dynpro UI elements - enhancement proposals
Web Application Development certification Web Application Development certification
Information on some terms used in Web DynPro Information on some terms used in Web DynPro
Brand New to Webdynpro Brand New to Webdynpro
What is with the "Web Dynpro project diagram"? What is with the "Web Dynpro project diagram"?
New to Web dynpro New to Web dynpro
What is Web Dynpro? What is Web Dynpro?
Why WebDynpro ? Why WebDynpro ?
Why webdynpro and not BSP or JSP? Why webdynpro and not BSP or JSP?
BSP to WEB Dynpro BSP to WEB Dynpro
Benifits of using Webdynpro Benifits of using Webdynpro
Advantages of webdynpro Advantages of webdynpro
Java vs. ABAP Java vs. ABAP
regarding Java related webdynpro regarding Java related webdynpro
Web Dynpro vs. Struts - a few questions Web Dynpro vs. Struts - a few questions
What kind of applications are being developed with Web Dynpro? What kind of applications are being developed with Web Dynpro?
Best regards, Maksim Rashchynski. -
Appraisal Templates - Custom Web Dynpro developement
Hi All,
I have a requirement to display the new Appraisal document templates created using a Web Dynpro application.
How do I go about doing this? How can the Appraisal templates be exposed to the Web Dynpro application?
Regards,
Ashwini.Hi Bhagat
You have raised a very good point,
As far as i know there is no such option available in NWDS ,there is a separate thread called
POLL: Web Dynpro UI elements - enhancement proposals
Please do post your same query there, hope SAP considers this, we all wait for the same feature in the forthcoming versions of NWDS
Regards
Chaitanya.A -
Can I adjust the width of a table cell as I like in web dynpro?
hi,
In Micro Soft word or excel, when we use tables,we can adjust the width of a cell at our pleasure. I wonder, in web dynpro development, wether we can change
the width of cells as we like.Hope to hear your advices!Hi Daniel
That feature is not available in the Webdynpro. hope we get that in future releases
There is a sticky thread called "POLL: Web Dynpro UI elements - enhancement proposals" in the main page of webdynpro java forum. post your query there. SAP might consider this as useful enhancement.
Best Regards
Chaitanya.A
Maybe you are looking for
-
Creation of Manual Orders in PPDS in /sapapo/rrp4
Hi All, We are using PPDS for production planning. In the process of generating a plan in short term horizon, after executing the scheduling heuristic, user wants flexibility of manually creating some orders. We are using /sapapo/rrp4, where user can
-
Weirdness: http works but https does not
I have a very weird problem which no-one has been able to fix. I have an Airport Extreme card and a third-party DSL modem / wireless router combo. Most internet activities are fine (ftp, email, http) but whenever I try to access a secure site (https)
-
Routing headphone mix direct to amp?
Hi, Was RTFM (imagine that) trying to figure out how to best get a heaphone mix with the least possible latency and came across this quote from the docs: "Input monitoring always involves a little latency. In certain configurations, you may be best s
-
EMail Shortcut to TA CRMD_ORDER
Hello All, In the Solution manager I have added the following link in the Smartform CRM_REMINDER_MAIL_01 http://<my.server.com>:8002/sap/bc/ags_workcenter/ags_work_appln?CMD=CRMD_ORDER&%7esolmanwrkgui=SAPSHORTCUT&ID=&orderadm_h-guid& The link appears
-
Access ApplicationBean from servlet
My project uses both JSF generated pages as well as servlets. I would like to be able to access an Application Bean from a servlet in the same project. The java files for the servlet are in the same directory as the package that holds the generated j